    :root {
      --bg: #eef1f6;
      --panel: #ffffff;
      --panel-muted: #f1f5f9;
      --text: #0f172a;
      --muted: #64748b;
      --accent: #2563eb;
      --border: #cbd5e1;
      --ok: #059669;
      --warn: #ca8a04;
      --table-header: #e2e8f0;
      --table-header-text: #475569;
      --sticky-bg: #f8fafc;
      --sticky-bg-hover: #f1f5f9;
      --pre-bg: #f8fafc;
      --row-hover: rgba(37, 99, 235, 0.06);
      --src-dav: #0369a1;
      --src-ifsc: #6d28d9;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Segoe UI", system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    .app-layout {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    .app-header {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid var(--border);
      background: linear-gradient(180deg, #ffffff 0%, var(--panel-muted) 100%);
      flex-shrink: 0;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
      position: relative;
      z-index: 100;
    }
    .header-admin-pending-banner {
      max-width: 1200px;
      margin: 0.65rem auto 0;
      padding: 0.5rem 0.75rem;
      border-radius: 8px;
      border: 1px solid rgba(202, 138, 4, 0.45);
      background: rgba(254, 243, 199, 0.65);
      color: var(--text);
      font-size: 0.86rem;
      line-height: 1.45;
    }
    .header-admin-pending-banner[hidden] {
      display: none !important;
    }
    .header-admin-pending-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem 0.75rem;
    }
    .header-admin-pending-text {
      flex: 1 1 12rem;
      min-width: 0;
      font-weight: 500;
    }
    .header-admin-pending-go {
      flex-shrink: 0;
      font-size: 0.82rem;
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
    }
    .header-admin-pending-dismiss {
      flex-shrink: 0;
      width: 1.75rem;
      height: 1.75rem;
      padding: 0;
      margin: 0;
      font-size: 1.15rem;
      line-height: 1;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .app-header-inner {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 0.75rem 1rem;
      max-width: 1200px;
      margin: 0 auto;
      justify-content: space-between;
    }
    .app-header-end {
      display: flex;
      align-items: flex-start;
      gap: 0.65rem 0.85rem;
      margin-left: auto;
      flex-shrink: 0;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .app-header-menu-wrap {
      position: relative;
      flex-shrink: 0;
      padding-top: 0.12rem;
    }
    .header-menu-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.65rem;
      height: 2.65rem;
      padding: 0;
      border-radius: 10px;
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--text);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
      cursor: pointer;
    }
    .header-menu-btn:hover {
      background: var(--panel-muted);
      border-color: var(--accent);
      color: var(--accent);
    }
    .header-menu-btn svg {
      width: 1.4rem;
      height: 1.4rem;
    }
    .app-header-titles {
      flex: 1 1 10rem;
      min-width: 0;
    }
    .header-auth-root {
      flex: 0 1 auto;
      min-width: 0;
      padding: 0.15rem 0;
      padding-top: 0.27rem;
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }
    .header-auth-open {
      font: inherit;
      font-size: 0.88rem;
      font-weight: 600;
      padding: 0.35rem 0.65rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--accent);
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    }
    .header-auth-open:hover {
      background: var(--panel-muted);
      border-color: var(--accent);
    }
    .header-auth-msg-err {
      color: #b91c1c;
    }
    .auth-view-lead {
      margin-bottom: 1rem;
    }
    .header-auth-logged-in {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      max-width: min(100%, 14rem);
    }
    .header-auth-user-line {
      font-size: 0.82rem;
      color: var(--text);
      word-break: break-word;
      text-align: right;
      min-width: 0;
    }
    .app-header-titles h1,
    h1.app-header-title {
      margin: 0 0 0.35rem;
    }
    h1 {
      font-size: 1.35rem;
      font-weight: 600;
      letter-spacing: -0.02em;
    }
    .app-title-home {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      border: none;
      background: none;
      font: inherit;
      font-size: inherit;
      font-weight: inherit;
      letter-spacing: inherit;
      text-align: inherit;
      color: inherit;
      cursor: pointer;
      border-radius: 6px;
    }
    .app-title-home:hover {
      color: var(--accent);
    }
    .app-title-home:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .header-menu {
      position: absolute;
      top: calc(100% + 0.35rem);
      right: 0;
      left: auto;
      min-width: 12.5rem;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
      padding: 0.4rem;
      z-index: 250;
    }
    .header-menu[hidden] {
      display: none !important;
    }
    .header-menu button.menu-item {
      display: block;
      width: 100%;
      text-align: left;
      background: transparent;
      border: none;
      color: var(--text);
      box-shadow: none;
      min-height: 2.4rem;
      padding: 0.52rem 0.72rem;
      border-radius: 8px;
      font: inherit;
      font-weight: 500;
      font-size: 0.95rem;
      cursor: pointer;
    }
    /* `display: block` above beats the UA [hidden] rule; force hide when JS sets .hidden */
    .header-menu button.menu-item[hidden] {
      display: none !important;
    }
    .header-menu button.menu-item:hover {
      background: var(--panel-muted);
    }
    .header-menu button.menu-item.menu-item-logout {
      border-top: 1px solid var(--border);
      margin-top: 0.3rem;
      padding-top: 0.55rem;
    }
    .app-settings-view {
      max-width: 720px;
    }
    .app-settings-view h2 {
      margin: 0 0 0.5rem;
      font-size: 1.15rem;
    }
    .settings-dl {
      margin: 0;
      display: grid;
      grid-template-columns: minmax(7rem, 10rem) 1fr;
      gap: 0.5rem 1rem;
      font-size: 0.9rem;
    }
    .settings-dl dt {
      margin: 0;
      color: var(--muted);
      font-weight: 500;
    }
    .settings-dl dd {
      margin: 0;
      word-break: break-word;
    }
    .settings-select-wide {
        min-width: min(100%, 22rem);
        max-width: 100%;
    }

    .settings-field-hint {
        margin: 0.35rem 0 0;
        font-size: 0.9em;
    }

    .settings-time-zone-dd {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .settings-dl dd.mono {
      font-family: ui-monospace, monospace;
      font-size: 0.82rem;
    }
    .settings-highlight-athletes,
    .settings-highlight-countries {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.65rem;
      align-items: center;
      line-height: 1.5;
    }
    .settings-chip-row {
      display: inline-flex;
      align-items: center;
      gap: 0.15rem;
      max-width: 100%;
    }
    .settings-highlight-athletes .ath-chip,
    .country-chip {
      cursor: default;
      border-bottom: 1px dotted var(--border);
    }
    .settings-chip-remove {
      flex-shrink: 0;
      margin: 0;
      padding: 0 0.2rem;
      min-width: 1.35rem;
      height: 1.35rem;
      line-height: 1;
      font-size: 1rem;
      font-weight: 600;
      border: none;
      border-radius: 4px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      box-shadow: none;
    }
    .settings-chip-remove:hover {
      color: #dc2626;
      background: rgba(220, 38, 38, 0.1);
    }
    .settings-chip-remove:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }
    a.settings-open-last-event {
      color: var(--accent);
      text-decoration: none;
    }
    a.settings-open-last-event:hover {
      text-decoration: underline;
    }
    .settings-section {
      margin-bottom: 1.35rem;
    }
    .settings-section h3 {
      margin: 0 0 0.5rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
    }
    .settings-auth-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem 1.5rem;
      align-items: start;
    }
    @media (max-width: 640px) {
      .settings-auth-grid {
        grid-template-columns: 1fr;
      }
    }
    .settings-auth-grid h4 {
      margin: 0 0 0.5rem;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--muted);
    }
    .settings-auth-label {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      margin-bottom: 0.65rem;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text);
    }
    .settings-auth-label input {
      font: inherit;
      padding: 0.35rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      max-width: 100%;
    }
    .settings-auth-msg {
      margin: 0.4rem 0 0;
      font-size: 0.82rem;
      color: var(--muted);
    }
    .settings-auth-msg-err {
      color: #b91c1c;
    }
    .settings-account-actions {
      margin: 0.75rem 0 0;
    }
    .settings-profile-footer-wrap {
      margin-top: 2rem;
      padding-top: 1.35rem;
      border-top: 1px solid var(--border);
    }
    .settings-profile-footer-inner {
      margin: 0;
    }
    a.settings-delete-account-link {
      color: #b91c1c;
      font-size: 0.78rem;
      text-decoration: underline;
    }
    a.settings-delete-account-link:hover {
      color: #991b1b;
    }
    .app-admin-view {
      max-width: 100%;
    }
    .admin-new-user {
      margin-bottom: 1.25rem;
      padding: 0.85rem 1rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel);
    }
    .admin-new-user-heading {
      margin: 0 0 0.65rem;
      font-size: 1rem;
      font-weight: 600;
    }
    .admin-new-user-fields {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.65rem 1rem;
    }
    .admin-new-user-label {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .admin-new-user-label input[type="email"],
    .admin-new-user-label input[type="password"],
    .admin-new-user-label input[type="text"],
    .admin-new-user-label select {
      font: inherit;
      font-weight: 400;
      color: var(--text);
      min-width: 10rem;
      max-width: 16rem;
      padding: 0.3rem 0.45rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      box-sizing: border-box;
    }
    .admin-new-user-enabled {
      margin-bottom: 0.15rem;
    }
    .admin-user-create-submit {
      align-self: flex-end;
    }
    .app-admin-view .admin-user-create-submit,
    .app-admin-view .admin-open-new-user-overlay {
      padding: 0.28rem 0.55rem;
      font-size: 0.8rem;
      line-height: 1.25;
      border-radius: 6px;
      box-shadow: none;
    }
    .admin-db-details {
      margin-top: 1.25rem;
      margin-bottom: 0;
      padding-top: 0.65rem;
      border-top: 1px solid var(--border);
    }
    .admin-db-summary {
      cursor: pointer;
      list-style: none;
      font-size: 0.88rem;
      font-weight: 600;
      letter-spacing: 0.01em;
      padding: 0.15rem 0;
      user-select: none;
    }
    .admin-db-summary::-webkit-details-marker,
    .admin-db-summary::marker {
      display: none;
    }
    .admin-db-summary::before {
      content: "";
      display: inline-block;
      width: 0.35rem;
      height: 0.35rem;
      margin-right: 0.45rem;
      margin-bottom: 0.06rem;
      border-right: 2px solid var(--text-muted);
      border-bottom: 2px solid var(--text-muted);
      transform: rotate(-45deg);
      vertical-align: middle;
      transition: transform 0.15s ease;
    }
    .admin-db-details[open] > .admin-db-summary::before {
      transform: rotate(45deg);
      margin-bottom: -0.02rem;
    }
    .admin-db-summary-title {
      vertical-align: middle;
    }
    .admin-db-summary-hint {
      font-size: 0.72rem;
      font-weight: 400;
      vertical-align: middle;
    }
    .admin-db-details-inner {
      padding: 0.35rem 0 0 1.1rem;
      margin-top: 0.15rem;
    }
    .admin-db-details .admin-db-file-meta {
      margin: 0 0 0.4rem;
      font-size: 0.72rem;
    }
    .admin-db-empty {
      margin: 0;
      font-size: 0.78rem;
    }
    .admin-db-details .admin-table-wrap {
      margin-bottom: 0;
      border-radius: 8px;
    }
    .admin-db-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.76rem;
      table-layout: auto;
    }
    .admin-db-table th,
    .admin-db-table td {
      padding: 0.22rem 0.4rem;
      border-bottom: 1px solid var(--border);
      text-align: left;
      vertical-align: middle;
    }
    .admin-db-table th {
      background: var(--table-header);
      color: var(--table-header-text);
      font-weight: 600;
      font-size: 0.72rem;
    }
    .admin-db-table tbody > tr:last-child > td {
      border-bottom: none;
    }
    .admin-db-table code {
      font-size: 0.92em;
    }
    .admin-db-table td:last-child {
      white-space: nowrap;
    }
    .admin-db-details button.admin-db-clear {
      font-size: 0.7rem;
      padding: 0.18rem 0.42rem;
      line-height: 1.2;
      border-radius: 5px;
    }
    .admin-users-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      margin: 0 0 0.85rem;
    }
    html.admin-user-edit-overlay-open {
      overflow: hidden;
    }
    .admin-user-edit-overlay {
      position: fixed;
      inset: 0;
      z-index: 10055;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      box-sizing: border-box;
    }
    .admin-user-edit-overlay-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
    }
    .admin-user-edit-overlay-dialog {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 22rem;
      padding: 1rem 1.1rem 1.1rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--panel);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    .admin-user-edit-overlay-close {
      position: absolute;
      top: 0.35rem;
      right: 0.35rem;
      width: 2rem;
      height: 2rem;
      padding: 0;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
    }
    .admin-user-edit-overlay-close:hover {
      background: var(--panel-muted);
      color: var(--text);
    }
    .admin-user-edit-overlay-title {
      margin: 0 2rem 0.85rem 0;
      font-size: 1.05rem;
      font-weight: 600;
    }
    .admin-user-edit-form .admin-new-user-label {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
      margin-bottom: 0.65rem;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .admin-user-edit-form .admin-new-user-label input {
      font: inherit;
      font-weight: 400;
      padding: 0.35rem 0.45rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      max-width: 100%;
    }
    .admin-user-edit-form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.35rem;
    }
    .admin-user-edit-msg.is-err {
      color: #b91c1c;
      margin: 0.5rem 0 0;
    }
    .admin-pw-panel-cell {
      padding: 0.65rem 0.75rem 0.85rem;
      background: var(--panel-muted);
      border-bottom: 1px solid var(--border);
    }
    .admin-pw-panel-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.65rem 1rem;
    }
    .admin-pw-panel-inner .admin-new-user-label {
      margin: 0;
    }
    .admin-table-wrap {
      overflow-x: auto;
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel);
    }
    .admin-users-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.85rem;
      table-layout: auto;
    }
    .admin-users-table th,
    .admin-users-table td {
      padding: 0.45rem 0.55rem;
      border-bottom: 1px solid var(--border);
      text-align: left;
      vertical-align: middle;
    }
    .admin-users-table th {
      background: var(--table-header);
      color: var(--table-header-text);
      font-weight: 600;
    }
    .admin-th-sort {
      display: inline-flex;
      align-items: center;
      gap: 0.15rem;
      margin: 0;
      padding: 0.15rem 0.25rem;
      font: inherit;
      font-weight: 600;
      color: inherit;
      background: transparent;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      text-align: left;
      max-width: 100%;
    }
    .admin-th-sort:hover {
      background: rgba(37, 99, 235, 0.12);
      color: var(--accent);
    }
    .admin-sort-mark {
      font-size: 0.7em;
      opacity: 0.85;
      white-space: nowrap;
    }
    button.danger-outline,
    button.secondary.danger-outline {
      border-color: #dc2626;
      color: #b91c1c;
    }
    button.danger-outline:hover,
    button.secondary.danger-outline:hover {
      background: rgba(220, 38, 38, 0.08);
      border-color: #b91c1c;
      color: #991b1b;
    }
    .admin-users-table tbody > tr:last-child > td {
      border-bottom: none;
    }
    .admin-users-table input[type="email"],
    .admin-users-table input[type="text"],
    .admin-users-table input[type="password"],
    .admin-users-table select {
      font: inherit;
      width: 100%;
      padding: 0.25rem 0.4rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      box-sizing: border-box;
    }
    .admin-users-table input[type="email"],
    .admin-users-table input[type="text"],
    .admin-users-table input[type="password"],
    .admin-users-table select {
      max-width: 14rem;
    }
    .admin-users-table input.admin-cl-url-input {
      max-width: 28rem;
      min-width: 8rem;
    }
    .admin-cl-edit-panel-cell {
      padding: 0.65rem 0.75rem 0.85rem;
      background: var(--panel-muted);
      border-bottom: 1px solid var(--border);
    }
    .admin-cl-edit-panel-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.65rem 1rem;
    }
    .admin-cl-edit-panel-inner .admin-new-user-label {
      margin: 0;
    }
    button.admin-cl-status-icon-wrap {
      margin: 0;
      padding: 0;
      font: inherit;
      line-height: 0;
      appearance: none;
      -webkit-appearance: none;
      cursor: pointer;
    }
    .admin-cl-status-icon-wrap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.05rem;
      height: 1.05rem;
      border-radius: 50%;
      box-sizing: border-box;
      vertical-align: middle;
      flex-shrink: 0;
    }
    button.admin-cl-status-icon-wrap:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .admin-cl-status-pending {
      border: 2px solid var(--warn);
      background: transparent;
    }
    .admin-cl-status-approved {
      border: none;
      background: var(--ok);
      color: #fff;
    }
    .admin-cl-status-approved svg {
      width: 0.62rem;
      height: 0.62rem;
    }
    .admin-cl-url-cell {
      max-width: 20rem;
      word-break: break-word;
      vertical-align: middle;
    }
    .admin-cl-url-cell a {
      word-break: break-all;
    }
    .admin-cl-submitted-cell {
      vertical-align: middle;
      line-height: 1.35;
    }
    .admin-enabled-label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      cursor: pointer;
      font-weight: 500;
      white-space: nowrap;
    }
    .admin-actions-cell {
      vertical-align: middle;
      white-space: nowrap;
      min-width: 11rem;
      width: 1%;
    }
    .admin-actions-inner {
      display: inline-flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 0.2rem;
      vertical-align: middle;
    }
    .admin-user-display-cell {
      vertical-align: middle;
      max-width: 14rem;
      word-break: break-word;
      font-weight: 500;
      color: var(--text);
    }
    .admin-icon-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.65rem;
      height: 1.65rem;
      padding: 0;
      margin: 0;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--panel-muted);
      color: var(--text);
      cursor: pointer;
      box-shadow: none;
      flex-shrink: 0;
    }
    .admin-icon-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: var(--panel);
    }
    .admin-icon-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }
    .admin-icon-btn svg {
      width: 0.88rem;
      height: 0.88rem;
    }
    .admin-icon-btn.danger-outline {
      border-color: #fca5a5;
      color: #b91c1c;
    }
    .admin-icon-btn.danger-outline:hover {
      border-color: #dc2626;
      color: #991b1b;
      background: rgba(220, 38, 38, 0.08);
    }
    .admin-user-settings-panel {
      margin: 0.75rem 0 1rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel);
      overflow: hidden;
    }
    .admin-user-settings-panel[hidden] {
      display: none !important;
    }
    .admin-user-settings-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.45rem 0.5rem 0.45rem 0.75rem;
      background: var(--panel-muted);
      border-bottom: 1px solid var(--border);
    }
    .admin-user-settings-panel-title {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
    }
    .admin-user-settings-panel-close {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      padding: 0;
      margin: 0;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
    }
    .admin-user-settings-panel-close:hover {
      background: var(--panel);
      color: var(--text);
    }
    .admin-user-settings-panel-close:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .admin-user-settings-panel .admin-settings-pre {
      margin: 0;
      padding: 0.75rem 1rem;
      background: var(--pre-bg);
      border: none;
      border-radius: 0;
      font-size: 0.78rem;
      line-height: 1.45;
      overflow-x: auto;
      max-height: 22rem;
      overflow-y: auto;
    }
    .settings-check-label {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      cursor: pointer;
      font-weight: 500;
    }
    .settings-check-label input {
      width: auto;
      margin: 0;
    }
    .sub {
      color: var(--muted);
      font-size: 0.9rem;
    }
    .app-content {
      flex: 1 1 auto;
      padding: 1.25rem 1.5rem 2rem;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
    }
    .app-footer {
      flex-shrink: 0;
      margin-top: auto;
      padding: 0.85rem 1.5rem 1.1rem;
      border-top: 1px solid var(--border);
      background: var(--panel);
      color: var(--muted);
      font-size: 0.8rem;
    }
    .app-footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.65rem 1.25rem;
    }
    .footer-start {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.65rem 1rem;
    }
    .footer-version {
      font-variant-numeric: tabular-nums;
      color: var(--text);
      opacity: 0.9;
    }
    a.footer-impressum-link {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
    }
    a.footer-impressum-link:hover {
      text-decoration: underline;
    }
    .footer-copy {
      text-align: right;
    }
    .footer-locale {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .footer-locale-title {
      color: inherit;
    }
    .footer-locale-btns {
      display: inline-flex;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    .footer-locale-btn {
      font: inherit;
      font-size: 0.8rem;
      font-weight: 500;
      padding: 0.2rem 0.55rem;
      margin: 0;
      border: none;
      background: var(--bg);
      color: var(--muted);
      cursor: pointer;
      letter-spacing: 0.02em;
    }
    .footer-locale-btn:hover {
      color: var(--text);
    }
    .footer-locale-btn.is-active {
      background: var(--border);
      color: var(--text);
    }
    .footer-locale-btn + .footer-locale-btn {
      border-left: 1px solid var(--border);
    }
    @media (max-width: 520px) {
      .app-footer-inner { flex-direction: column; align-items: flex-start; }
      .footer-copy { text-align: left; }
    }
    .app-impressum-view .impressum-page {
      max-width: 40rem;
      margin: 0;
      padding: 0 0 1.5rem;
      color: var(--text);
      font-size: 0.92rem;
      line-height: 1.55;
    }
    .impressum-page h2 {
      font-size: 1.02rem;
      font-weight: 600;
      margin: 1.4rem 0 0.45rem;
      color: var(--text);
    }
    .impressum-page p {
      margin: 0 0 0.65rem;
    }
    .impressum-page a {
      color: var(--accent);
    }
    .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      margin-bottom: 1rem;
    }
    label { font-size: 0.85rem; color: var(--muted); }
    select, button {
      font: inherit;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      padding: 0.45rem 0.75rem;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .toolbar input[type="search"],
    .toolbar-event-search input[type="search"],
    .events-overview-name-search-wrap input[type="search"] {
      font: inherit;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      padding: 0.45rem 0.75rem;
      min-width: 12rem;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .toolbar-event-search {
      flex: 1 1 12rem;
      min-width: 12rem;
      max-width: 100%;
    }
    .toolbar-event-search input[type="search"] {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }
    .toolbar input[type="search"]::placeholder,
    .toolbar-event-search input[type="search"]::placeholder,
    .events-overview-name-search-wrap input[type="search"]::placeholder {
      color: var(--muted);
    }
    button {
      cursor: pointer;
      background: var(--accent);
      border-color: transparent;
      color: #fff;
      font-weight: 500;
    }
    button:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }
    button.secondary {
      background: var(--panel-muted);
      border-color: var(--border);
      color: var(--text);
    }
    .nav-back-glyph {
      margin-inline-end: 0.35em;
    }
    .status {
      font-size: 0.85rem;
      color: var(--muted);
    }
    .status.syncing { color: var(--warn); }
    .status.ok { color: var(--ok); }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
      background: var(--panel);
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--border);
    }
    th, td {
      text-align: left;
      padding: 0.65rem 0.85rem;
      border-bottom: 1px solid var(--border);
    }
    th {
      background: var(--table-header);
      font-weight: 600;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--table-header-text);
    }
    tr:last-child td { border-bottom: none; }
    tr:hover td { background: var(--row-hover); }
    .src-dav { color: var(--src-dav); }
    .src-ifsc { color: var(--src-ifsc); }
    a.row-link {
      color: var(--accent);
      text-decoration: none;
      cursor: pointer;
    }
    a.row-link:hover { text-decoration: underline; }
    /* Inner flex — never `display:flex` on `td` (breaks table row/border alignment). */
    .td-event-name-inner {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      min-width: 0;
    }
    .td-event-name-inner .row-link {
      flex: 1 1 auto;
      min-width: 0;
    }
    .event-series-logo {
      width: 1.75rem;
      height: 1.75rem;
      object-fit: contain;
      flex-shrink: 0;
      margin-top: 0.12em;
    }
    pre {
      margin: 0;
      font-size: 0.78rem;
      white-space: pre-wrap;
      word-break: break-word;
      background: var(--pre-bg);
      color: var(--text);
      padding: 0.75rem;
      border-radius: 8px;
      border: 1px solid var(--border);
    }
    .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
    .rounds { list-style: none; padding: 0; margin: 0; }
    .rounds li { margin-bottom: 0.35rem; }
    .round-block {
      border: 1px solid var(--border);
      border-radius: 10px;
      margin-bottom: 0.65rem;
      background: var(--panel);
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    }
    .round-block > summary {
      cursor: pointer;
      padding: 0.65rem 0.85rem;
      font-weight: 500;
      list-style: none;
    }
    .round-block > summary::-webkit-details-marker { display: none; }
    .round-block .round-inner { padding: 0 0.75rem 0.85rem; }
    .results-table-wrap {
      overflow-x: auto;
      border-radius: 8px;
      border: 1px solid var(--border);
      margin-top: 0.35rem;
    }
    .speed-elimination-wrap {
      margin-top: 1rem;
    }
    .speed-elimination-heading {
      margin: 0 0 0.5rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
    }
    .speed-elim-bracket-outer {
      overflow-x: auto;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel);
      padding: 0.65rem 0.5rem 0.85rem;
      margin-top: 0.35rem;
    }
    .speed-elim-bracket-flow {
      display: flex;
      flex-direction: row;
      align-items: stretch;
      gap: 0;
      min-width: min-content;
    }
    .speed-elim-bracket-column {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      min-width: 12.5rem;
      max-width: 16rem;
      padding-right: 1.5rem;
      position: relative;
    }
    .speed-elim-bracket-column:not(:last-child)::after {
      content: "";
      position: absolute;
      right: 0;
      top: 2.25rem;
      bottom: 0.35rem;
      width: 1px;
      background: var(--border);
      pointer-events: none;
    }
    .speed-elim-bracket-round-label {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
      margin-bottom: 0.55rem;
      padding: 0 0.25rem;
    }
    .speed-elim-bracket-match-list {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      flex: 1 1 auto;
      gap: 1rem;
      min-height: 2rem;
    }
    .speed-elim-match {
      position: relative;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: var(--panel);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    }
    .speed-elim-bracket-column:not(:last-child) .speed-elim-match::after {
      content: "";
      position: absolute;
      right: -1.5rem;
      top: 50%;
      width: 1.5rem;
      height: 1px;
      background: var(--border);
      pointer-events: none;
    }
    .speed-elim-match-slot {
      padding: 0.38rem 0.45rem;
      font-size: 0.74rem;
      line-height: 1.35;
      text-align: left;
      background: var(--panel);
    }
    .speed-elim-match-slot:not(.speed-elim-match-slot--empty) {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }
    .speed-elim-match-slot--details:not(.speed-elim-match-slot--empty) {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-rows: auto auto;
      column-gap: 0.5rem;
      row-gap: 0.1rem;
      align-items: start;
    }
    .speed-elim-match-slot--details:not(.speed-elim-match-slot--empty)
      .speed-elim-match-name {
      grid-column: 1;
      grid-row: 1;
      flex: unset;
    }
    .speed-elim-match-slot--details:not(.speed-elim-match-slot--empty)
      .speed-elim-match-result {
      grid-column: 2;
      grid-row: 1;
      flex: unset;
    }
    .speed-elim-match-slot--details:not(.speed-elim-match-slot--empty)
      .speed-elim-match-meta {
      grid-column: 1 / -1;
      grid-row: 2;
    }
    .speed-elim-match-name {
      min-width: 0;
      flex: 1 1 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .speed-elim-match-result {
      flex: 0 0 auto;
      text-align: right;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .speed-elim-match-meta {
      font-size: 0.68rem;
      line-height: 1.25;
      color: var(--muted);
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .speed-elim-match-result--winner {
      color: var(--ok);
      font-weight: 600;
    }
    .speed-elim-match-slot--empty {
      color: var(--muted);
      font-style: italic;
    }
    .speed-elim-match-slot--winner {
      background: rgba(5, 150, 105, 0.08);
      border-left: 3px solid var(--ok);
      padding-left: calc(0.45rem - 3px);
    }
    .speed-elim-match-divider {
      height: 1px;
      background: var(--border);
      margin: 0;
    }
    table.results-athletes {
      font-size: 0.78rem;
      border: none;
      border-radius: 0;
    }
    table.results-athletes th,
    table.results-athletes td {
      padding: 0.4rem 0.5rem;
      vertical-align: middle;
    }
    table.results-athletes th.route-col,
    table.results-athletes td.route-col {
      text-align: center;
      font-variant-numeric: tabular-nums;
      max-width: 5.5rem;
    }
    table.results-athletes th.route-col {
      white-space: nowrap;
    }
    table.results-athletes td.route-col {
      white-space: normal;
      vertical-align: top;
      line-height: 1.25;
    }
    td.route-col .ascent-points-line {
      font-variant-numeric: tabular-nums;
    }
    td.route-col .ascent-inline-box-layout {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
    }
    td.route-col .ascent-inline-box-layout .ascent-points-line {
      min-width: 1.3rem;
      text-align: right;
      line-height: 1.3;
    }
    td.route-col .ascent-tz-line {
      font-size: 0.92em;
      margin-top: 0.2em;
    }
    td.route-col .ascent-tz-boxes {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1px;
      margin-top: 0;
    }
    td.route-col .ascent-tz-box {
      width: 2.1rem;
      padding: 0.12rem 0.35rem;
      font-size: 0.85em;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      border-radius: 4px;
      line-height: 1.2;
      text-align: center;
      box-sizing: border-box;
      border: 2px solid transparent;
    }
    td.route-col .ascent-tz-box--filled {
      background: var(--ascent-filled-color, var(--ok));
      border-color: var(--ascent-filled-color, var(--ok));
      color: var(--ascent-filled-text-color, #fff);
    }
    td.route-col .ascent-tz-box--outline {
      background: transparent;
      border-color: var(--border);
      color: var(--text);
    }
    td.route-col .ascent-tz-box--miss-text {
      color: #dc2626;
    }
    td.route-col .ascent-tz-box--empty {
      background: transparent;
      border: 1px dashed var(--border);
      color: var(--muted);
      font-weight: 500;
    }
    td.route-col .ascent-lead-cell {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    td.route-col .ascent-lead-rank-inline {
      color: var(--muted);
      font-size: 0.88em;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
    }
    td.route-col .ascent-top-ok,
    td.route-col .ascent-zone-ok {
      color: var(--ok);
      font-weight: 600;
    }
    td.route-col .ascent-top-miss,
    td.route-col .ascent-zone-miss {
      color: #dc2626;
    }
    table.results-athletes td.route-col.ascent-status-active {
      box-shadow: inset 0 0 0 2px var(--ok);
      border-radius: 6px;
    }
    table.results-athletes td.td-score {
      text-align: center;
      vertical-align: middle;
      line-height: 1.25;
    }
    table.results-athletes td.td-score .score-ascent-summary {
      display: block;
      margin-top: 0.2rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    table.results-athletes thead th.speed-best-column-sep,
    table.results-athletes tbody td.speed-best-column-sep {
      border-right: 2px solid var(--table-header-text);
    }
    table.results-athletes thead th.speed-elim-stage-col,
    table.results-athletes td.speed-elim-stage-col {
      max-width: 9rem;
      font-size: 0.88em;
      white-space: nowrap;
    }
    table.results-athletes thead th.th-prior-round {
      text-align: center;
      vertical-align: middle;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      max-width: 6.5rem;
    }
    table.results-athletes td.td-prior-round {
      text-align: center;
      vertical-align: middle;
      font-size: 0.82rem;
      line-height: 1.25;
      max-width: 7rem;
      white-space: normal;
    }
    table.results-athletes td.td-prior-round .prior-round-score-line {
      font-variant-numeric: tabular-nums;
    }
    table.results-athletes td.td-prior-round .prior-round-rank {
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      margin-top: 0.15rem;
    }
    table.results-athletes th.sticky-left,
    table.results-athletes td.sticky-left {
      position: sticky;
      left: 0;
      background: var(--sticky-bg);
      z-index: 1;
      box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.12);
    }
    table.results-athletes tr:hover td.sticky-left { background: var(--sticky-bg-hover); }
    table.results-athletes thead th.th-sortable {
      cursor: pointer;
      user-select: none;
    }
    table.results-athletes thead th.th-sortable:hover {
      color: var(--text);
    }
    table.results-athletes thead th.route-col .route-col-head {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.2rem;
      line-height: 1.2;
      min-height: 2.5rem;
    }
    table.results-athletes thead th.route-col .route-col-title {
      font-weight: 600;
      white-space: nowrap;
    }
    table.results-athletes thead th.route-col .route-col-stats {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    table.results-athletes thead th.route-col.route-col-detail-off .route-col-stats {
      display: none;
    }
    table.results-athletes thead th.route-col.route-col-detail-off .route-col-head {
      min-height: 0;
      gap: 0;
    }
    /* Speed: no stats sub-row; keep header single-line even when “Details” is on */
    table.results-athletes thead th.route-col.route-col-speed .route-col-head {
      min-height: 0;
      gap: 0;
    }
    table.results-athletes td.td-athlete,
    table.results-athletes td.td-country {
      cursor: pointer;
    }
    table.results-athletes td.td-athlete:hover,
    table.results-athletes td.td-country:hover {
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    table.results-athletes tr.row-highlight-athlete td {
      background: rgba(37, 99, 235, 0.1);
    }
    table.results-athletes tr.row-highlight-athlete:hover td {
      background: rgba(37, 99, 235, 0.16);
    }
    table.results-athletes tr.row-highlight-athlete td.sticky-left {
      background: rgba(37, 99, 235, 0.12);
    }
    table.results-athletes tr.row-highlight-athlete:hover td.sticky-left {
      background: rgba(37, 99, 235, 0.18);
    }
    table.results-athletes tr.row-highlight-country td {
      background: rgba(5, 150, 105, 0.1);
    }
    table.results-athletes tr.row-highlight-country:hover td {
      background: rgba(5, 150, 105, 0.16);
    }
    table.results-athletes tr.row-highlight-country td.sticky-left {
      background: rgba(5, 150, 105, 0.12);
    }
    table.results-athletes tr.row-highlight-country:hover td.sticky-left {
      background: rgba(5, 150, 105, 0.18);
    }
    table.results-athletes tr.row-highlight-athlete.row-highlight-country td {
      background: rgba(14, 116, 144, 0.12);
    }
    table.results-athletes tr.row-highlight-athlete.row-highlight-country td.sticky-left {
      background: rgba(14, 116, 144, 0.16);
    }
    .results-table-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.36rem 0.46rem;
      align-items: center;
      margin: 0.35rem 0 0.4rem;
    }
    .results-table-toolbar-label {
      flex: 0 0 auto;
      font-size: 0.73rem;
      font-weight: 600;
      color: var(--muted);
      line-height: 1.2;
      margin-right: 0.2rem;
    }
    .results-table-toolbar button.secondary {
      font-size: 0.76rem;
      font-weight: 500;
      padding: 0.28rem 0.52rem;
      line-height: 1.25;
      border-radius: 10px;
      min-height: 2.2rem;
    }
    .round-filters .event-results-toolbar-host .results-table-toolbar {
      margin: 0.3rem 0 0;
      padding-top: 0.4rem;
      border-top: 1px solid var(--border);
    }
    .event-results-toolbar-host--standalone .results-table-toolbar {
      margin: 0 0 0.55rem;
    }
    .results-table-toolbar .results-filter-btn.is-pressed {
      background: rgba(37, 99, 235, 0.14);
      border-color: var(--accent);
      color: var(--text);
    }
    .results-athlete-counts,
    .registration-athlete-counts,
    .events-overview-counts {
      font-size: 0.75rem;
      margin: 0.35rem 0 0;
      color: var(--muted);
    }
    .results-column-dialog {
      border: none;
      border-radius: 12px;
      padding: 0;
      max-width: min(440px, calc(100vw - 2rem));
      width: 100%;
      background: var(--panel);
      color: var(--text);
      box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
    }
    .results-column-dialog::backdrop {
      background: rgba(15, 23, 42, 0.4);
    }
    .results-column-dialog-inner {
      padding: 0.58rem 0.68rem 0.68rem;
      max-height: min(70vh, 29rem);
      overflow-y: auto;
    }
    .results-column-dialog h3 {
      margin: 0 0 0.18rem;
      font-size: 0.94rem;
    }
    .results-column-dialog .col-dialog-intro {
      margin: 0 0 0.3rem;
      font-size: 0.76rem;
      line-height: 1.32;
    }
    .results-column-dialog .col-dialog-section {
      margin-top: 0.34rem;
    }
    .results-column-dialog .col-dialog-section:first-of-type {
      margin-top: 0.12rem;
    }
    .results-column-dialog .col-dialog-section h4 {
      margin: 0 0 0.2rem;
      font-size: 0.67rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      line-height: 1.2;
    }
    .col-dialog-list {
      list-style: none;
      margin: 0;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 6px;
      overflow: hidden;
      max-height: min(50vh, 19rem);
      overflow-y: auto;
    }
    .col-dialog-list li {
      display: flex;
      align-items: center;
      gap: 0.36rem;
      padding: 0.34rem 0.44rem;
      min-height: 2.35rem;
      border-bottom: 1px solid var(--border);
      background: var(--panel);
      font-size: 0.81rem;
      line-height: 1.28;
    }
    .col-dialog-list li:last-child {
      border-bottom: none;
    }
    .col-dialog-list label {
      flex: 1;
      min-width: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.36rem;
      margin: 0;
    }
    .col-dialog-list input[type="checkbox"] {
      width: 1rem;
      height: 1rem;
      accent-color: var(--accent);
      flex-shrink: 0;
    }
    .col-dialog-routes-all-label {
      display: flex;
      align-items: flex-start;
      gap: 0.34rem;
      cursor: pointer;
      font-size: 0.8rem;
      line-height: 1.28;
      margin: 0.3rem 0 0;
      padding: 0.36rem 0.44rem;
      min-height: 2.25rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--panel-muted);
    }
    .col-dialog-routes-all-label input {
      width: 1rem;
      height: 1rem;
      margin-top: 0.08rem;
      accent-color: var(--accent);
      flex-shrink: 0;
    }
    .results-column-dialog .col-dialog-prior-rounds-label {
      margin-top: 0.45rem;
    }
    .col-dialog-move {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.16rem;
      flex-shrink: 0;
    }
    .col-dialog-move button {
      padding: 0.2rem 0.34rem;
      min-height: 1.95rem;
      min-width: 2.1rem;
      font-size: 0.72rem;
      line-height: 1.15;
    }
    .results-column-dialog-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 0.42rem;
      margin-top: 0.48rem;
      padding-top: 0.44rem;
      border-top: 1px solid var(--border);
    }
    .results-column-dialog-actions button {
      font-size: 0.82rem;
      padding: 0.34rem 0.68rem;
      min-height: 2.3rem;
      line-height: 1.25;
    }
    .athlete-active-dot {
      display: inline-block;
      width: 0.45rem;
      height: 0.45rem;
      border-radius: 50%;
      background: var(--ok);
      box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
      vertical-align: middle;
      margin-right: 0.15rem;
      flex-shrink: 0;
    }
    .athlete-next-round-star {
      display: inline-block;
      color: var(--accent);
      font-size: 0.72em;
      line-height: 1;
      vertical-align: middle;
      margin-right: 0.2rem;
      flex-shrink: 0;
    }
    .round-block > summary .round-status-dot {
      display: inline-block;
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      vertical-align: middle;
      margin-left: 0.35rem;
      flex-shrink: 0;
    }
    .round-status-dot.pending { background: #94a3b8; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
    .round-status-dot.active { background: var(--ok); }
    .round-status-dot.completed { background: #dc2626; }
    .round-results-reload-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-left: 0.2rem;
      padding: 0.12rem 0.28rem;
      border: 1px solid var(--border);
      border-radius: 5px;
      background: var(--panel);
      cursor: pointer;
      vertical-align: middle;
      color: var(--muted);
      line-height: 0;
    }
    .round-results-reload-btn:hover:not(:disabled) {
      color: var(--accent);
      border-color: var(--accent);
    }
    .round-results-reload-btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .round-results-reload-btn svg {
      display: block;
    }
    .cell-muted { color: var(--muted); font-size: 0.72rem; }
    .raw-json details {
      margin-top: 0.75rem;
    }
    .raw-json summary {
      cursor: pointer;
      color: var(--muted);
      font-size: 0.85rem;
    }
    .raw-json-toolbar {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
      gap: 0.35rem;
      margin: 0.35rem 0 0;
    }
    button.json-copy-btn {
      font-size: 0.72rem;
      padding: 0.15rem 0.5rem;
      min-height: 0;
      line-height: 1.2;
    }
    .json-tree-holder {
      margin: 0.35rem 0 0;
      padding: 0.5rem 0.65rem;
      max-height: min(55vh, 28rem);
      overflow: auto;
      background: var(--panel-muted);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.76rem;
      line-height: 1.45;
      color: var(--text);
    }
    .json-node {
      margin: 0;
      border: none;
      padding: 0;
    }
    .json-node > summary {
      cursor: pointer;
      list-style: none;
      user-select: none;
      color: var(--muted);
      font-size: inherit;
    }
    .json-node > summary::-webkit-details-marker {
      display: none;
    }
    .json-node > summary::before {
      content: "\25b6";
      display: inline-block;
      width: 0.65rem;
      margin-right: 0.2rem;
      font-size: 0.55rem;
      vertical-align: middle;
      transition: transform 0.12s ease;
      color: var(--muted);
    }
    .json-node[open] > summary::before {
      transform: rotate(90deg);
    }
    .json-node > summary:hover {
      color: var(--text);
    }
    .json-bracket,
    .json-brace {
      color: var(--muted);
      font-weight: 600;
    }
    .json-meta {
      color: var(--muted);
      font-weight: normal;
    }
    .json-children {
      margin: 0.15rem 0 0.1rem 0.85rem;
      padding-left: 0.5rem;
      border-left: 1px solid var(--border);
    }
    .json-row {
      margin: 0.08rem 0;
    }
    .json-key {
      color: #7c3aed;
      margin-right: 0.25rem;
    }
    .json-scalar.json-str {
      color: #0d9488;
      word-break: break-word;
    }
    .json-scalar.json-num {
      color: #2563eb;
    }
    .json-scalar.json-bool {
      color: #c026d3;
    }
    .json-scalar.json-null {
      color: var(--muted);
      font-style: italic;
    }
    .json-inline {
      color: var(--muted);
    }
    .round-filters {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      margin-bottom: 1rem;
      padding: 0.5rem 0.65rem;
      background: var(--panel-muted);
      border: 1px solid var(--border);
      border-radius: 10px;
    }
    .round-filter-row {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 0.5rem 0.65rem;
      flex-wrap: wrap;
    }
    .round-filter-row-label {
      flex: 0 0 auto;
      min-width: 4.75rem;
      font-size: 0.77rem;
      font-weight: 600;
      color: var(--muted);
      line-height: 1.2;
    }
    .round-filter-btn-group {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      gap: 0.3rem 0.45rem;
      align-items: center;
      min-width: 0;
    }
    .events-overview-cup-select-wrap {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      align-items: center;
      min-width: 0;
    }
    .events-overview-cup-select-wrap select {
      min-width: 10rem;
      max-width: 100%;
    }
    .events-overview-name-search-wrap {
      display: flex;
      flex: 1 1 auto;
      flex-wrap: wrap;
      align-items: center;
      min-width: 0;
    }
    .events-overview-name-search-wrap input[type="search"] {
      width: 100%;
      min-width: 10rem;
      max-width: 100%;
      box-sizing: border-box;
    }
    button.round-filter-btn {
      font-size: 0.76rem;
      font-weight: 500;
      padding: 0.28rem 0.52rem;
      line-height: 1.25;
      border-radius: 10px;
      min-height: 2.2rem;
    }
    button.round-filter-btn.is-pressed {
      border-color: var(--accent);
      background: rgba(37, 99, 235, 0.12);
      color: var(--accent);
    }
    .app-tabs {
      display: flex;
      gap: 0.25rem;
      margin-bottom: 1.1rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0;
    }
    .app-tabs button {
      font: inherit;
      padding: 0.55rem 1rem 0.65rem;
      border: none;
      border-bottom: 3px solid transparent;
      border-radius: 8px 8px 0 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-weight: 500;
      margin-bottom: -1px;
      box-shadow: none;
    }
    .app-tabs button:hover {
      color: var(--text);
      background: var(--panel-muted);
    }
    .app-tabs button[aria-selected="true"] {
      color: var(--accent);
      border-bottom-color: var(--accent);
      background: var(--panel);
    }
    .event-subtabs {
      display: flex;
      gap: 0.35rem;
      margin-bottom: 0.85rem;
      flex-wrap: wrap;
    }
    .event-subtabs .event-subtab {
      background: var(--panel-muted);
      border: 1px solid var(--border);
      color: var(--text);
      font-weight: 500;
      box-shadow: none;
    }
    .event-subtabs .event-subtab[aria-selected="true"] {
      background: var(--panel);
      border-color: var(--accent);
      color: var(--accent);
    }
    .event-subpanel[hidden] {
      display: none !important;
    }
    .results-event-meta-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 0.35rem 1rem;
    }
    .results-event-meta-row #results-event-meta {
      margin: 0;
      flex: 1 1 10rem;
      min-width: 0;
    }
    .results-event-external-links-wrap {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 0.45rem 1rem;
      flex: 0 1 auto;
      min-width: 0;
      font-size: 0.85rem;
      color: var(--muted);
    }
    .results-event-external-links-wrap:empty {
      display: none;
    }
    .results-event-community-wrap {
      margin-top: 0.45rem;
      padding-top: 0.45rem;
      border-top: 1px solid var(--border);
      font-size: 0.85rem;
      color: var(--muted);
    }
    .results-event-community-wrap[hidden] {
      display: none !important;
    }
    .event-community-links-approved {
      margin-bottom: 0.5rem;
    }
    .event-community-links-label {
      display: block;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 0.25rem;
      font-size: 0.82rem;
    }
    .event-community-links-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 1rem;
      align-items: center;
    }
    .event-community-links-row a {
      color: var(--accent);
      text-decoration: underline;
    }
    .event-community-link-item {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0 0.35rem;
    }
    .event-community-link-kind {
      font-weight: 500;
      color: var(--muted);
      font-size: 0.8em;
    }
    .event-custom-link-suggest-slot {
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
    }
    .event-custom-link-suggest-open {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.75rem;
      height: 1.75rem;
      padding: 0;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      opacity: 0.65;
    }
    .event-custom-link-suggest-open:hover {
      opacity: 1;
      color: var(--text);
      background: var(--panel-muted);
    }
    .event-custom-link-suggest-open:focus-visible {
      opacity: 1;
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    html.event-custom-link-overlay-open {
      overflow: hidden;
    }
    .event-custom-link-overlay {
      position: fixed;
      inset: 0;
      z-index: 10050;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      box-sizing: border-box;
    }
    .event-custom-link-overlay[hidden] {
      display: none !important;
    }
    .event-custom-link-overlay-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
    }
    .event-custom-link-overlay-dialog {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 24rem;
      max-height: min(90vh, 32rem);
      overflow: auto;
      padding: 1rem 1.1rem 1.1rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--panel);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    .event-custom-link-overlay-close {
      position: absolute;
      top: 0.35rem;
      right: 0.35rem;
      width: 2rem;
      height: 2rem;
      padding: 0;
      border: none;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
    }
    .event-custom-link-overlay-close:hover {
      color: var(--text);
      background: var(--panel-muted);
    }
    .event-custom-link-overlay-title {
      margin: 0 2rem 0.65rem 0;
      font-size: 1rem;
      font-weight: 600;
      color: var(--text);
    }
    .event-custom-link-overlay-body .event-custom-link-sub-intro {
      margin: 0 0 0.35rem;
    }
    .event-custom-link-overlay-body .event-custom-link-submissions {
      margin: 0 0 0.75rem;
    }
    .event-custom-link-fields {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 0.65rem;
      align-items: flex-end;
      margin-bottom: 0.35rem;
    }
    .event-custom-link-fields label {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      font-size: 0.8rem;
      color: var(--muted);
      min-width: min(100%, 10rem);
    }
    .event-custom-link-fields input {
      font: inherit;
      padding: 0.3rem 0.45rem;
      border: 1px solid var(--border);
      border-radius: 6px;
      min-width: min(100%, 14rem);
    }
    .event-custom-link-msg {
      margin: 0.25rem 0 0;
      font-size: 0.8rem;
    }
    .event-custom-link-msg.is-err {
      color: #b91c1c;
    }
    .event-custom-link-submissions {
      margin: 0.35rem 0 0;
      padding-left: 1.1rem;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .admin-section-heading {
      margin: 1.75rem 0 0.65rem;
      font-size: 1.05rem;
      font-weight: 600;
    }
    .results-event-public-info {
      margin: 0.35rem 0 0;
      font-size: 0.88rem;
      line-height: 1.45;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--panel-muted);
      overflow: hidden;
    }
    .results-event-public-info[hidden] {
      display: none !important;
    }
    .results-event-public-info > summary {
      cursor: pointer;
      padding: 0.5rem 0.65rem;
      font-weight: 500;
      font-size: 0.85rem;
      color: var(--muted);
      list-style: none;
      user-select: none;
    }
    .results-event-public-info > summary::-webkit-details-marker {
      display: none;
    }
    .results-event-public-info > summary::before {
      content: "";
      display: inline-block;
      width: 0.35em;
      height: 0.35em;
      margin-right: 0.45em;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(-45deg);
      vertical-align: 0.12em;
      transition: transform 0.12s ease;
    }
    .results-event-public-info[open] > summary::before {
      transform: rotate(45deg);
      vertical-align: 0.08em;
    }
    .results-event-public-info > summary:hover {
      color: var(--text);
    }
    .results-event-public-info-inner {
      padding: 0 0.65rem 0.65rem;
      border-top: 1px solid var(--border);
      margin: 0;
    }
    .results-event-public-info-inner > p {
      margin: 0 0 0.5rem;
    }
    .results-event-public-info-inner > p:last-child {
      margin-bottom: 0;
    }
    .results-event-pi-venue {
      color: var(--muted);
      font-size: 0.85rem;
    }
    .results-event-pi-description {
      color: var(--text);
    }
    .results-source-page-link {
      margin: 0.65rem 0 0;
    }
    .results-external-source-link {
      color: var(--accent);
      text-decoration: none;
      word-break: break-all;
    }
    .results-external-source-link:hover {
      text-decoration: underline;
    }
    .event-external-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem 1rem;
      align-items: center;
      margin: 0;
      padding: 0;
      border: none;
      font-size: inherit;
      color: inherit;
    }
    .event-external-links a {
      color: var(--accent);
      text-decoration: none;
    }
    .event-external-links a:hover {
      text-decoration: underline;
    }
    .event-external-links .event-external-text {
      color: var(--muted);
    }
    .tab-panel[hidden] {
      display: none !important;
    }
    #tab-panel-events table.events-overview-table {
      table-layout: auto;
    }
    #tab-panel-events table.events-overview-table th,
    #tab-panel-events table.events-overview-table td {
      vertical-align: top;
    }
    #tab-panel-events table.events-overview-table thead th.th-sortable {
      cursor: pointer;
      user-select: none;
    }
    #tab-panel-events table.events-overview-table thead th.th-sortable:hover {
      color: var(--text);
    }
    #tab-panel-events table.events-overview-table td.td-events-disciplines {
      white-space: pre-line;
    }
    table.registration-table {
      margin-top: 0.5rem;
    }
    .registration-filters {
      margin: 0.65rem 0 0.5rem;
    }
    p.registration-source-quelle {
      margin: 0.65rem 0 0;
      word-break: break-all;
    }
    table.registration-participants-table {
      font-size: 0.78rem;
      border: none;
      border-radius: 0;
    }
    table.registration-participants-table th,
    table.registration-participants-table td {
      padding: 0.4rem 0.5rem;
      vertical-align: middle;
      text-align: left;
    }
    table.registration-participants-table thead th.th-sortable {
      cursor: pointer;
      user-select: none;
    }
    table.registration-participants-table thead th.th-sortable:hover {
      color: var(--text);
    }
    table.registration-participants-table td.td-reg-name,
    table.registration-participants-table td.td-reg-country {
      cursor: pointer;
    }
    table.registration-participants-table td.td-reg-name:hover,
    table.registration-participants-table td.td-reg-country:hover {
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    table.registration-participants-table td.td-reg-birth {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    table.registration-participants-table td.td-reg-discipline,
    table.registration-participants-table td.td-reg-category,
    table.registration-participants-table td.td-reg-status {
      white-space: pre-line;
    }
    table.registration-participants-table .registration-status-not-attending {
      color: #b91c1c;
      font-weight: 500;
    }
    table.registration-participants-table tr.row-highlight-athlete td {
      background: rgba(37, 99, 235, 0.1);
    }
    table.registration-participants-table tr.row-highlight-athlete:hover td {
      background: rgba(37, 99, 235, 0.16);
    }
    table.registration-participants-table tr.row-highlight-country td {
      background: rgba(5, 150, 105, 0.1);
    }
    table.registration-participants-table tr.row-highlight-country:hover td {
      background: rgba(5, 150, 105, 0.16);
    }
    table.registration-participants-table tr.row-highlight-athlete.row-highlight-country td {
      background: rgba(14, 116, 144, 0.12);
    }
    tr.row-startlist-only td {
      color: var(--muted);
    }
    .results-view-head {
      margin-bottom: 1rem;
      padding-bottom: 0.85rem;
      border-bottom: 1px solid var(--border);
    }
    .results-view-head .results-view-title {
      margin: 0.35rem 0 0.25rem;
      font-size: 1.15rem;
      font-weight: 600;
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0.35rem 0.55rem;
    }
    .results-view-head .results-view-title .results-view-title-text {
      min-width: 0;
    }
    .results-view-head .results-view-title .results-view-title-dates {
      font-size: 0.92em;
      font-weight: 500;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
    }
    .results-view-head .results-view-title .results-view-title-dates::before {
      content: "\00b7";
      margin-right: 0.45rem;
      color: var(--border);
      font-weight: 400;
    }
    .results-view-head .btn-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.65rem;
    }
    .results-view-head .btn-row button.secondary {
      font-size: 0.88rem;
      padding: 0.42rem 0.78rem;
      min-height: 2.35rem;
    }
    .results-view-head .btn-row .results-filter-btn.is-pressed {
      background: rgba(37, 99, 235, 0.14);
      border-color: var(--accent);
      color: var(--text);
    }
    .athletes-favorites-wrap {
      margin-bottom: 1rem;
    }
    .athletes-favorites-wrap[hidden] {
      display: none !important;
    }
    .athletes-favorites-heading {
      margin: 0 0 0.4rem;
    }
    .athletes-favorites-table-scroll {
      overflow-x: auto;
      max-width: 100%;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel);
    }
    .athletes-favorites-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.92rem;
      border: none;
      border-radius: 0;
      background: transparent;
      overflow: visible;
    }
    .athletes-favorites-table th,
    .athletes-favorites-table td {
      padding: 0.45rem 0.65rem;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: middle;
    }
    .athletes-favorites-table thead th {
      background: var(--table-header);
      color: var(--table-header-text);
      font-weight: 600;
      font-size: inherit;
      text-transform: none;
      letter-spacing: normal;
    }
    .athletes-favorites-table thead th:has(> .admin-th-sort) {
      padding: 0.35rem 0.45rem;
      vertical-align: middle;
    }
    .athletes-favorites-table tbody tr:last-child td {
      border-bottom: none;
    }
    .athletes-favorites-table tbody tr:hover td {
      background: var(--row-hover);
    }
    /* Flex lives on inner div — not on td (preserves table column layout). */
    .athletes-fav-name-inner {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      min-width: 0;
    }
    .athletes-fav-star {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      border: none;
      background: transparent;
      padding: 0.12rem;
      margin: 0;
      cursor: pointer;
      border-radius: 6px;
      line-height: 0;
      color: var(--muted);
    }
    .athletes-fav-star svg {
      width: 1.15rem;
      height: 1.15rem;
      display: block;
    }
    .athletes-fav-star.is-favorite {
      color: #ca8a04;
    }
    .athletes-fav-star:not(.is-favorite) {
      color: var(--muted);
    }
    .athletes-fav-star:hover {
      background: rgba(0, 0, 0, 0.06);
    }
    .athletes-fav-star.is-favorite:hover {
      background: rgba(202, 138, 4, 0.14);
    }
    .athletes-detail-name-value {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      flex-wrap: wrap;
    }
    .athletes-favorite-open {
      flex: 1 1 auto;
      min-width: 0;
      border: none;
      background: transparent;
      color: var(--accent);
      font: inherit;
      font-weight: 500;
      padding: 0;
      cursor: pointer;
      text-align: left;
      text-decoration: underline;
      text-underline-offset: 2px;
      max-width: 18rem;
    }
    .athletes-favorite-open:hover {
      color: var(--text);
    }
    .athletes-subtabs {
      display: flex;
      gap: 0.25rem;
      margin-bottom: 0.85rem;
      border-bottom: 1px solid var(--border);
      padding-bottom: 0;
    }
    .athletes-subtabs button {
      font: inherit;
      padding: 0.45rem 0.85rem 0.55rem;
      border: none;
      border-bottom: 3px solid transparent;
      border-radius: 8px 8px 0 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-weight: 500;
      margin-bottom: -1px;
      box-shadow: none;
    }
    .athletes-subtabs button:hover:not(:disabled) {
      color: var(--text);
      background: var(--panel-muted);
    }
    .athletes-subtabs button[aria-selected="true"] {
      color: var(--accent);
      border-bottom-color: var(--accent);
      background: var(--panel);
    }
    .athletes-subtabs button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .athletes-subpanel[hidden] {
      display: none !important;
    }
    .athletes-view-head {
      margin-bottom: 1rem;
    }
    .athletes-guest {
      max-width: 36rem;
    }
    .athletes-guest .primary {
      margin-top: 0.75rem;
    }
    .athletes-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.75rem 1rem;
      margin-bottom: 0.75rem;
    }
    .athletes-toolbar .athletes-search-spacer {
      display: block;
      visibility: hidden;
    }
    .athletes-candidates-label {
      margin: 0.5rem 0 0.35rem;
    }
    .athletes-candidates {
      list-style: none;
      margin: 0 0 1rem;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
      max-width: 40rem;
    }
    .athletes-candidates li {
      margin: 0;
    }
    .athletes-candidate-btn {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
      width: 100%;
      text-align: left;
      padding: 0.5rem 0.65rem;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--panel);
      color: var(--text);
      font: inherit;
      cursor: pointer;
    }
    .athletes-candidate-name {
      font-weight: 500;
    }
    .athletes-candidate-meta {
      font-size: 0.86rem;
      color: var(--muted);
      line-height: 1.35;
      white-space: pre-line;
    }
    .athletes-candidate-btn:hover {
      border-color: var(--accent);
      background: var(--row-hover);
    }
    .athletes-detail-dl {
      margin: 0;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.35rem 1rem;
      align-items: baseline;
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
    .athletes-detail-dl dt {
      margin: 0;
      color: var(--muted);
      font-weight: 500;
    }
    .athletes-detail-dl dd {
      margin: 0;
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .athletes-detail-fetched-at-group {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0.35rem 1rem;
      align-items: baseline;
      grid-column: 1 / -1;
      margin-top: 0.55rem;
      padding-top: 0.8rem;
      border-top: 1px solid var(--border);
    }
    /* Quelle + fetched stamp: same scale as `.results-source-page-link.meta`, space before filter rows */
    .athletes-detail-fetched-at-group.athletes-detail-source-line.meta {
      margin-bottom: 1rem;
      font-size: 0.8rem;
      line-height: 1.45;
    }
    .athletes-detail-fetched-at-group dt,
    .athletes-detail-fetched-at-group dd {
      margin: 0;
      font-size: inherit;
      line-height: inherit;
    }
    .athletes-detail-fetched-at-group dd a {
      color: var(--accent);
      text-decoration: none;
      word-break: break-all;
    }
    .athletes-detail-fetched-at-group dd a:hover {
      text-decoration: underline;
    }
    .athletes-detail-section {
      margin-top: 1.1rem;
    }
    .athletes-detail-section-title {
      margin: 0 0 0.45rem;
      font-size: 1rem;
      font-weight: 600;
    }
    .athletes-detail-table-wrap {
      overflow-x: auto;
      max-width: 100%;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel);
    }
    table.athletes-detail-data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.88rem;
    }
    table.athletes-detail-data-table th,
    table.athletes-detail-data-table td {
      padding: 0.4rem 0.55rem;
      text-align: left;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
    }
    table.athletes-detail-data-table thead th {
      background: var(--table-header);
      color: var(--table-header-text);
      font-weight: 600;
    }
    table.athletes-detail-data-table thead th:has(> .admin-th-sort) {
      padding: 0.35rem 0.45rem;
      vertical-align: middle;
    }
    table.athletes-detail-data-table tbody tr:last-child td {
      border-bottom: none;
    }
    .athletes-detail-event-link {
      border: none;
      background: transparent;
      color: var(--accent);
      font: inherit;
      font-weight: 500;
      padding: 0;
      cursor: pointer;
      text-align: left;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .athletes-detail-event-link:hover {
      color: var(--text);
    }
    @media (max-width: 720px) {
      .header-menu-btn {
        width: 2.85rem;
        height: 2.85rem;
      }
      .header-menu-btn svg {
        width: 1.5rem;
        height: 1.5rem;
      }
      .header-menu button.menu-item {
        min-height: 2.55rem;
        font-size: 0.98rem;
      }
      button.round-filter-btn {
        font-size: 0.82rem;
        padding: 0.38rem 0.62rem;
        min-height: 2.5rem;
      }
      .results-table-toolbar button.secondary {
        font-size: 0.82rem;
        padding: 0.38rem 0.62rem;
        min-height: 2.5rem;
      }
      .col-dialog-list li {
        min-height: 2.65rem;
        font-size: 0.88rem;
        padding: 0.42rem 0.52rem;
      }
      .col-dialog-list input[type="checkbox"] {
        width: 1.1rem;
        height: 1.1rem;
      }
      .col-dialog-move button {
        min-height: 2.25rem;
        min-width: 2.4rem;
        font-size: 0.78rem;
      }
      .results-column-dialog-actions button {
        min-height: 2.5rem;
        font-size: 0.86rem;
      }
      .col-dialog-routes-all-label {
        min-height: 2.45rem;
        font-size: 0.86rem;
        padding: 0.42rem 0.48rem;
      }
      .col-dialog-routes-all-label input {
        width: 1.1rem;
        height: 1.1rem;
      }
      .results-view-head .btn-row button.secondary {
        min-height: 2.5rem;
      }
    }
