    @font-face {
      font-family: 'Signika';
      src: url('../fonts/signika/Signika-Variable.woff2') format('woff2');
      font-style: normal;
      font-weight: 300 700;
      font-display: swap;
    }

    @font-face {
      font-family: 'Inter';
      src: url('../fonts/inter/InterVariable.woff2') format('woff2');
      font-style: normal;
      font-weight: 100 900;
      font-display: swap;
    }

    :root {
      --bg: #000000;
      --panel: #121a2b;
      --line: #24314d;
      --text: #edf2ff;
      --muted: #9fb0d3;
      --good: #0fa86f;
      --warn: #d3a000;
      --bad: #d14d4d;
      --chip: #1b2740;
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: Signika, Arial, sans-serif;
    }

    body { overflow: hidden; }
    body.cursor-hidden,
    body.cursor-hidden * {
      cursor: none !important;
    }

    .status {
      font-size: 0.9rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }

    .status.ok { color: #8ce0bf; }
    .status.warn { color: #ffd36b; }
    .status.err { color: #ff8b8b; }

    .status-main {
      display: inline;
      max-width: 100%;
    }

    .status-message-text,
    .status-update-suffix {
      min-width: 0;
    }

    .status-message-text {
      overflow-wrap: anywhere;
    }

    .status-detail-button {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      margin: 0 0 0 4px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: currentColor;
      cursor: pointer;
      font: inherit;
      line-height: 1;
      vertical-align: -0.16em;
    }

    .status-detail-button .sgi {
      font-size: 1rem;
      line-height: 1;
    }

    .status-detail-button:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
    }

    .status-detail-text {
      box-sizing: border-box;
      width: 100%;
      max-height: min(42vh, 260px);
      margin: 0 0 12px 0;
      padding: 10px;
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(15, 23, 41, 0.9);
      color: #dce6fb;
      font-family: Signika, Arial, sans-serif;
      font-size: 0.86rem;
      line-height: 1.35;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .status-detail-actions {
      display: flex;
      justify-content: flex-end;
    }

    .client-instance {
      margin-top: 4px;
      margin-bottom: 8px;
      font-size: 0.78rem;
      color: var(--muted);
      font-family: Signika, Arial, sans-serif;
      font-weight: 500;
      letter-spacing: 0;
    }

    .client-instance-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
      margin-bottom: 8px;
      min-width: 0;
      flex-wrap: wrap;
    }

    .client-instance-row .client-instance {
      margin-top: 0;
      margin-bottom: 0;
      min-width: 0;
    }

    .btn {
      appearance: none;
      border: 1px solid var(--line);
      background: var(--chip);
      color: var(--text);
      padding: 8px 10px;
      border-radius: 8px;
      cursor: pointer;
      font: inherit;
      font-size: 0.88rem;
    }

    .btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .field {
      display: grid;
      gap: 6px;
      margin-bottom: 10px;
    }

    .field label {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .field input,
    .field select {
      box-sizing: border-box;
      width: 100%;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #0f1729;
      color: var(--text);
      font: inherit;
    }

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .chip {
      padding: 4px 8px;
      border: 1px solid var(--line);
      background: var(--chip);
      border-radius: 999px;
      font-size: 0.78rem;
      color: var(--muted);
    }

    .board-surface {
      position: fixed;
      inset: 0;
      min-height: 0;
      overflow: auto;
      background: var(--bg);
      z-index: 1;
    }

    .board-surface.led-output-active {
      overflow: hidden;
      background: #000;
    }

    .board-surface.penalty-output-active {
      overflow: hidden;
    }

    .led-stage-frame {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #000;
    }

    .led-stage {
      position: absolute;
      top: 0;
      left: 0;
      overflow: hidden;
      transform-origin: top left;
      box-sizing: border-box;
    }

    .led-render-surface {
      position: absolute;
      top: 0;
      left: 0;
      overflow: hidden;
      transform-origin: top left;
      box-sizing: border-box;
      --led-vw: 1vw;
      --led-vh: 1vh;
    }

    .led-stage-demo-badges {
      position: absolute;
      inset: 0;
      z-index: 80;
      pointer-events: none;
    }

    .led-stage-demo-badge {
      position: absolute;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 1px;
      border: 1px solid #c99a00;
      border-radius: 1px;
      background: #fff3bf;
      color: #6a4b00;
      font-size: 4px;
      font-weight: 700;
      letter-spacing: 0;
      line-height: 1;
      text-transform: uppercase;
    }

    .led-stage-demo-badge-top-left {
      top: 1px;
      left: 1px;
    }

    .led-stage-demo-badge-bottom-left {
      bottom: 1px;
      left: 1px;
    }

    .led-stage-demo-badge-bottom-right {
      right: 1px;
      bottom: 1px;
    }

    .led-test-pattern {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.14) 1px, transparent 1px),
        repeating-linear-gradient(90deg, #080808 0, #080808 9px, #101010 9px, #101010 18px);
      background-size: 32px 32px, 32px 32px, auto;
      color: #fff;
      font-family: Inter, Signika, Arial, sans-serif;
    }

    .led-test-border {
      position: absolute;
      inset: 0;
      border: 1px solid #fff;
      box-sizing: border-box;
    }

    .led-test-cross {
      position: absolute;
      background: #fff;
      opacity: 0.92;
    }

    .led-test-cross-h {
      left: 0;
      right: 0;
      top: 50%;
      height: 1px;
    }

    .led-test-cross-v {
      top: 0;
      bottom: 0;
      left: 50%;
      width: 1px;
    }

    .led-test-corner {
      position: absolute;
      width: 48px;
      height: 48px;
      border-color: #fff;
      border-style: solid;
      box-sizing: border-box;
    }

    .led-test-corner-tl { top: 0; left: 0; border-width: 4px 0 0 4px; }
    .led-test-corner-tr { top: 0; right: 0; border-width: 4px 4px 0 0; }
    .led-test-corner-bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
    .led-test-corner-br { bottom: 0; right: 0; border-width: 0 4px 4px 0; }

    .led-test-label {
      position: absolute;
      left: 50%;
      top: 50%;
      display: grid;
      gap: 6px;
      transform: translate(-50%, -50%);
      text-align: center;
      padding: 12px 18px;
      border: 1px solid #fff;
      background: rgba(0, 0, 0, 0.75);
      font-size: 24px;
      line-height: 1.1;
      white-space: nowrap;
    }

    .led-test-label span {
      font-size: 14px;
      color: #d7deef;
    }

    .led-test-bars {
      position: absolute;
      left: 50%;
      bottom: 24px;
      display: grid;
      grid-template-columns: repeat(5, minmax(40px, 96px));
      height: 44px;
      transform: translateX(-50%);
      border: 1px solid #fff;
    }

    .led-test-bar-white { background: #fff; }
    .led-test-bar-red { background: #f00; }
    .led-test-bar-green { background: #0f0; }
    .led-test-bar-blue { background: #00f; }
    .led-test-bar-black { background: #000; }

    .settings-fab {
      position: fixed;
      top: 12px;
      right: 12px;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: rgba(27, 39, 64, 0.92);
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font: inherit;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-8px);
      transition: opacity .18s ease, transform .18s ease, background .18s ease;
      z-index: 30;
      backdrop-filter: blur(4px);
    }

    .settings-fab.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .settings-fab:hover {
      background: rgba(38, 57, 94, 0.96);
    }

    .settings-fab .sgi {
      font-size: 1.16rem;
      line-height: 1;
    }

    .settings-modal {
      position: fixed;
      inset: 0;
      background: rgba(7, 11, 20, 0.66);
      display: none;
      align-items: flex-start;
      justify-content: flex-end;
      padding: 12px 12px 20px;
      box-sizing: border-box;
      z-index: 40;
      overflow: auto;
      overscroll-behavior: contain;
    }

    .settings-modal.open {
      display: flex;
    }

    .connect-modal {
      align-items: center;
      justify-content: center;
      z-index: 45;
    }

    .settings-panel {
      width: min(640px, calc(100vw - 24px));
      max-height: calc(100vh - 32px);
      overflow: auto;
      background: rgba(18, 26, 43, 0.97);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px;
      box-sizing: border-box;
      box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    }

    .connect-panel {
      width: min(420px, calc(100vw - 24px));
    }

    .settings-competition-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 10px;
      margin: 8px 0 10px 0;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(15, 23, 41, 0.7);
    }

    .settings-competition-meta[hidden] {
      display: none !important;
    }

    .settings-competition-name {
      color: #e7eefc;
      font-size: 0.88rem;
      font-weight: 600;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .settings-mode-switch {
      margin: 8px 0 10px 0;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(15, 23, 41, 0.55);
    }

    .settings-mode-switch[hidden] {
      display: none !important;
    }

    .settings-mode-switch-label {
      margin: 0 0 8px 0;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--muted);
      text-transform: uppercase;
    }

    .settings-mode-switch-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .settings-section-title {
      margin: 0;
      font-size: 1rem;
      line-height: 1.2;
    }

    .settings-led-output {
      margin: 12px 0;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(15, 23, 41, 0.55);
    }

    .settings-led-summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px;
      cursor: pointer;
      user-select: none;
      list-style: none;
    }

    .settings-led-summary::-webkit-details-marker {
      display: none;
    }

    .settings-led-summary::before {
      content: "\e009";
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      color: var(--muted);
      font-family: "Signika";
      font-size: 1.05rem;
      font-weight: normal;
      line-height: 1;
    }

    .settings-led-output[open] .settings-led-summary {
      border-bottom: 1px solid var(--line);
    }

    .settings-led-output[open] .settings-led-summary::before {
      content: "\e00b";
    }

    .settings-led-summary-hint {
      margin-left: auto;
      color: var(--muted);
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .settings-led-content {
      display: grid;
      gap: 10px;
      padding: 10px;
    }

    .settings-led-head {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }

    .settings-toggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: 0.85rem;
      white-space: nowrap;
    }

    .settings-toggle input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: #8ce0bf;
    }

    .settings-led-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(72px, 92px));
      gap: 8px;
      justify-content: start;
    }

    .settings-led-actions {
      display: grid;
      grid-template-columns: 92px auto;
      align-items: end;
      gap: 8px;
      justify-content: start;
    }

    .settings-led-zoom-field {
      margin-bottom: 0;
    }

    .settings-led-grid .field input,
    .settings-led-actions .field select {
      min-width: 0;
      max-width: 92px;
    }

    .settings-led-actions .btn {
      min-height: 42px;
    }

    .settings-led-diagnostics {
      padding: 8px 10px;
      border: 1px solid rgba(159, 176, 211, 0.28);
      border-radius: 8px;
      background: rgba(7, 11, 20, 0.42);
      color: #cbd7f4;
      font-size: 0.78rem;
      line-height: 1.35;
      white-space: pre-line;
    }

    .settings-led-diagnostics[hidden] {
      display: none !important;
    }

    .settings-led-diagnostics.warn {
      border-color: rgba(211, 160, 0, 0.44);
      color: #ffd36b;
    }

    .player-demo-floating {
      position: fixed;
      right: 12px;
      bottom: 12px;
      z-index: 24;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 8px 12px;
      border: 1px solid #c99a00;
      border-radius: 999px;
      background: #fff3bf;
      color: #6a4b00;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.25px;
      text-transform: uppercase;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
      backdrop-filter: blur(2px);
    }

    .player-demo-floating.visible {
      display: inline-flex;
    }

    .player-demo-floating-left-top {
      left: 12px;
      top: 12px;
      right: auto;
      bottom: auto;
    }

    .player-demo-floating-left-bottom {
      left: 12px;
      right: auto;
      bottom: 12px;
    }

    .player-demo-floating-inline {
      position: static;
      right: auto;
      bottom: auto;
      left: auto;
      top: auto;
      box-shadow: none;
      margin: 0;
      flex: 0 0 auto;
    }

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

    .settings-title {
      margin: 0;
      font-size: 1.06rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .settings-title-copy {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 3px;
      min-width: 0;
      line-height: 1;
    }

    .settings-title-label {
      display: block;
      line-height: 1.06;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .board-player-app-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      flex: 0 0 auto;
      object-fit: cover;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    }

    .app-version-badge {
      display: inline-flex;
      align-items: center;
      min-height: 15px;
      padding: 1px 5px;
      border: 1px solid rgba(159, 176, 211, 0.34);
      border-radius: 999px;
      background: rgba(15, 23, 41, 0.88);
      color: #cbd7f4;
      font-family: Signika, Arial, sans-serif;
      font-size: 0.58rem;
      font-weight: 650;
      line-height: 1;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .player-update-status {
      margin: -2px 0 10px 0;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(15, 23, 41, 0.72);
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.25;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .player-update-status[hidden] {
      display: none !important;
    }

    .player-update-status.warn {
      border-color: rgba(211, 160, 0, 0.42);
      color: #ffd36b;
    }

    .wake-lock-status {
      display: inline-flex;
      align-items: center;
      min-height: 17px;
      margin: 0;
      padding: 1px 6px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(15, 23, 41, 0.52);
      color: var(--muted);
      font-size: 0.62rem;
      font-weight: 650;
      line-height: 1;
      white-space: nowrap;
    }

    .wake-lock-status[hidden] {
      display: none !important;
    }

    .wake-lock-status.ok {
      border-color: rgba(15, 168, 111, 0.38);
      color: #8ce0bf;
    }

    .wake-lock-status.warn {
      border-color: rgba(211, 160, 0, 0.42);
      color: #ffd36b;
    }

    .wake-lock-status.err {
      border-color: rgba(209, 77, 77, 0.46);
      color: #ff8b8b;
    }

    .player-update-button {
      min-height: 32px;
      padding: 6px 10px;
      font-size: 0.78rem;
      flex: 0 0 auto;
    }

    .player-update-button[hidden] {
      display: none !important;
    }

    .settings-close {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: var(--chip);
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font: inherit;
      line-height: 1;
    }

    .settings-close .sgi {
      font-size: 1.06rem;
    }

    .empty {
      padding: 20px;
      color: var(--muted);
    }

    .section-title {
      margin: 0;
      padding: 12px;
      border-bottom: 1px solid var(--line);
      font-size: 1rem;
      position: sticky;
      top: 0;
      background: rgba(18, 26, 43, 0.95);
      backdrop-filter: blur(2px);
      z-index: 1;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }

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

    th {
      color: var(--muted);
      font-weight: 600;
      font-size: 0.85rem;
    }

    td {
      font-size: 0.96rem;
    }

    .mono {
      font-family: Signika, Arial, sans-serif;
      font-variant-numeric: tabular-nums;
    }

    .penalty-board-root {
      box-sizing: border-box;
      height: 100%;
      min-height: 0;
      background: #000;
      color: #fff;
      font-family: Signika, Arial, sans-serif;
      overflow: hidden;
      --pen-warning-bg: #ffff00;
      --pen-warning-fg: #000000;
      --pen-expired-bg: #00ff00;
      --pen-expired-fg: #000000;
      --pen-paused-bg: #ff0000;
      --pen-paused-fg: #ffffff;
    }

    .penalty-board-title {
      margin: 5px 0;
      text-align: center;
      color: #fff;
      font-size: clamp(1.8rem, 5.6vw, 3rem);
      line-height: 1.1;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .led-render-surface .penalty-board-title {
      font-size: clamp(1.8rem, calc(var(--led-vw) * 5.6), 3rem);
    }

    #penaltyTable.penalty-table {
      width: 100%;
      border-collapse: collapse;
      border: none;
      table-layout: fixed;
      margin: 0;
      background: #000;
    }

    #penaltyTable.penalty-table .penalty-bib-col,
    #penaltyTable.penalty-table .penalty-countdown-col {
      width: 50%;
    }

    #penaltyTable.penalty-table .penalty-athlete-col {
      width: 28%;
    }

    #penaltyTable.penalty-table.penalty-has-athlete .penalty-bib-col {
      width: 36%;
    }

    #penaltyTable.penalty-table.penalty-has-athlete .penalty-countdown-col {
      width: 36%;
    }

    #penaltyTable.penalty-table thead th {
      padding: 8px;
      text-align: center;
      background: #fff;
      color: #000;
      border: none;
      font-size: clamp(1.05rem, 2.9vw, 2rem);
      font-weight: 700;
      border-bottom: 3.5px solid #000;
      white-space: nowrap;
      text-overflow: clip;
    }

    .led-render-surface #penaltyTable.penalty-table thead th {
      font-size: clamp(1.05rem, calc(var(--led-vw) * 2.9), 2rem);
    }

    #penaltyTable.penalty-table th.penalty-bib-header {
      text-align: right;
      padding-right: var(--penalty-bib-padding-right, 0.28em);
    }

    #penaltyTable.penalty-table tbody tr {
      border-bottom: 3.5px solid #fff;
    }

    #penaltyTable.penalty-table.penalty-table-filled tbody tr:last-child {
      border-bottom-color: #000;
    }

    #penaltyTable.penalty-table tbody td {
      padding: 5px;
      text-align: center;
      border: none;
      color: inherit;
      font-size: 1em;
    }

    #penaltyTable.penalty-table td.penalty-bib-cell {
      padding-right: var(--penalty-bib-padding-right, 0.28em);
      text-align: right;
    }

    #penaltyTable.penalty-table td.penalty-countdown-cell {
      padding-left: 0.28em;
    }

    #penaltyTable.penalty-table td.penalty-athlete-cell {
      padding-left: 0.28em;
      padding-right: 0.28em;
    }

    #penaltyTable.penalty-table td.penalty-bib-cell,
    #penaltyTable.penalty-table td.penalty-countdown-cell {
      font-weight: 700;
      overflow: hidden;
      text-overflow: clip;
      white-space: nowrap;
    }

    #penaltyTable.penalty-table th.athlete-header,
    #penaltyTable.penalty-table td.penalty-athlete-cell {
      font-size: 0.6em;
      overflow: hidden;
      text-overflow: clip;
    }

    #penaltyTable.penalty-table td.penalty-athlete-cell {
      position: relative;
      overflow: hidden;
      text-align: left;
    }

    #penaltyTable.penalty-table td.penalty-athlete-cell span {
      display: inline-block;
      white-space: normal;
      word-break: normal;
      transform-origin: left center;
      max-width: none;
    }

    #penaltyTable.penalty-table td .cell-text {
      display: inline-block;
      white-space: nowrap;
      transform-origin: left center;
    }

    #penaltyTable.penalty-table td.penalty-bib-cell .cell-text {
      transform-origin: right center;
    }

    #penaltyTable.penalty-table td.penalty-countdown-cell .cell-text {
      transform-origin: left center;
    }

    #penaltyTable.penalty-table tr.pen-expired {
      background: var(--pen-expired-bg, #00ff00);
      color: var(--pen-expired-fg, #000000);
    }

    #penaltyTable.penalty-table tr.pen-soon {
      background: var(--pen-warning-bg, #ffff00);
      color: var(--pen-warning-fg, #000000);
    }

    #penaltyTable.penalty-table tr.pen-running {
      background: #000;
      color: #fff;
    }

    #penaltyTable.penalty-table tr.pen-paused {
      background: var(--pen-paused-bg, #ff0000);
      color: var(--pen-paused-fg, #ffffff);
    }

    .team-block {
      border-bottom: 1px solid var(--line);
      padding: 10px 12px;
    }

    .rc-board-root {
      min-height: 100%;
      height: 100%;
      box-sizing: border-box;
      padding: 0;
      overflow: hidden;
      font-weight: 700;
    }

    .rc-layout {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .rc-headline {
      margin: 0;
      text-align: center;
      padding: 8px;
      background-color: transparent;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
      line-height: 1.2;
      font-weight: 700;
    }

    .rc-fit-headline {
      display: block;
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-align: left;
    }

    .rc-row-area {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    .rc-columns-wrap {
      flex: 1 1 auto;
      min-height: 0;
      min-width: 0;
    }

    .rc-columns-wrap.rc-columns-with-side {
      display: grid;
      grid-template-columns: minmax(200px, 0.28fr) minmax(0, 1fr);
      gap: 0;
    }

    .rc-columns-wrap.rc-columns-with-side.rc-side-right {
      grid-template-columns: minmax(0, 1fr) minmax(200px, 0.28fr);
    }

    .rc-columns-wrap.rc-columns-with-side.rc-side-left .rc-penalty-left {
      grid-column: 1;
      grid-row: 1;
      border-right: 3px solid currentColor;
    }

    .rc-columns-wrap.rc-columns-with-side.rc-side-left .rc-columns {
      grid-column: 2;
      grid-row: 1;
    }

    .rc-columns-wrap.rc-columns-with-side.rc-side-right .rc-columns {
      grid-column: 1;
      grid-row: 1;
    }

    .rc-columns-wrap.rc-columns-with-side.rc-side-right .rc-penalty-right {
      border-left: 3px solid currentColor;
      grid-column: 2;
      grid-row: 1;
    }

    .rc-columns {
      width: 100%;
      height: 100%;
      display: flex;
      min-width: 0;
    }

    .rc-column {
      flex: 1 1 0;
      display: flex;
      align-items: flex-start;
      box-sizing: border-box;
      overflow: hidden;
      min-width: 0;
      height: 100%;
    }

    .rc-column.rc-col-sep {
      border-right: 3px solid currentColor;
    }

    .rc-table-legacy {
      width: 100%;
      height: auto;
      border-collapse: collapse;
      table-layout: fixed;
      margin: 0;
    }

    .rc-table-legacy td {
      padding: 2px 8px 2px 2px;
      box-sizing: border-box;
      vertical-align: middle;
      line-height: 1.05;
      min-width: 0;
      border-bottom: 0;
      font-size: 1em;
      text-overflow: clip;
    }

    .rc-table-legacy td.rc-bib-cell {
      width: 30%;
      text-align: right;
      font-family: 'Signika', Arial, sans-serif;
      white-space: nowrap;
      font-size: 1.15em;
      overflow: hidden;
    }

    .rc-fit-bib {
      display: block;
      width: 100%;
      overflow: hidden;
      white-space: nowrap;
      text-align: left;
    }

    .rc-fit-text {
      display: inline-block;
      max-width: none;
      white-space: nowrap;
      transform-origin: left center;
    }

    .rc-table-legacy td.rc-reason-cell {
      white-space: nowrap;
      font-size: 1.2em;
      overflow: hidden;
    }

    .rc-table-legacy td.rc-reason-cell,
    .rc-table-legacy td.rc-reason-cell * {
      font-family: 'Inter', 'Signika', Arial, sans-serif;
    }

    .rc-table-legacy tr.rc-team-header-row > td {
      padding: 4px;
    }

    .rc-table-legacy td.rc-team-header-cell {
      background: transparent;
      color: inherit;
      box-sizing: border-box;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
    }

    .rc-team-header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
      padding: 2px 10px;
      box-sizing: border-box;
      min-width: 0;
    }

    .rc-team-header-name {
      flex: 1 1 auto;
      min-width: 0;
      display: inline-block;
      overflow: hidden;
      text-overflow: clip;
      white-space: nowrap;
      line-height: 1;
    }

    .rc-team-header-count {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.4em;
    }

    .rc-team-header-count-text {
      display: inline-block;
      line-height: 1;
      font-weight: 700;
    }

    .rc-team-header-count-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.2em;
      height: 0.95em;
      padding: 0 0.2em;
      box-sizing: border-box;
      border: 1px solid #000;
      background: #ff0000;
      line-height: 1;
      font-weight: 600;
      border-radius: 0;
    }

    .rc-team-header-count-badge-circle {
      border-radius: 999px;
    }

    .rc-board-team .rc-table-legacy td.rc-bib-cell {
      width: 16%;
      text-align: right;
      padding-left: 2px;
      padding-right: 2px;
      line-height: 1;
    }

    .rc-board-team .rc-table-legacy td.rc-reason-cell {
      width: 84%;
      padding-left: 2px;
      text-align: left;
      line-height: 1;
    }

    .rc-board-team .rc-table-legacy tr.rc-team-header-row > td {
      padding: 1px 4px;
    }

    .rc-board-team .rc-team-header-content {
      height: 100%;
      padding: 0 10px;
    }

    .rc-board-team .rc-team-header-count {
      min-width: 0;
    }

    .rc-board-team .rc-team-header-count-badge {
      min-width: 0;
      padding: 0;
      margin: 0.015em;
      font-weight: 700;
    }

    .rc-board-team .rc-table-legacy td {
      vertical-align: middle;
      line-height: 1;
    }

    .rc-board-team .rc-table-legacy tr.rc-team-header-row + tr.rc-data-row > td {
      padding-top: 4px;
    }

    .rc-board-team .rc-reason-badge {
      width: 1.22em;
      height: 1.22em;
      font-size: 1.2em;
      margin: 0.015em;
    }

    .rc-board-team .rc-reason-badge > span {
      transform: translateY(-0.03em);
    }

    .rc-table-legacy tr.rc-penalty-inline-row > td {
      padding: 0;
      border-bottom: 0;
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
    }

    .rc-penalty-inline {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }

    .rc-penalty-inline-right .rc-penalty-inner {
      align-items: stretch;
      gap: 4px;
      overflow: hidden;
      padding: 2px 4px;
    }

    .rc-penalty-inline-right .rc-penalty-tag {
      align-self: flex-start;
      margin-top: 1px;
    }

    .rc-penalty-inline-right .rc-penalty-track {
      align-items: center;
      align-self: stretch;
      height: auto;
      justify-content: center;
    }

    .rc-table {
      width: 100%;
      border-collapse: collapse;
    }

    .rc-table th,
    .rc-table td {
      padding: 6px 8px;
    }

    .rc-reason-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.1em;
      height: 1.1em;
      margin: 0.02em;
      border: 1px solid #000;
      background: red;
      font-size: 1.1em;
      line-height: 1;
      box-sizing: border-box;
      vertical-align: middle;
    }

    .rc-reason-badge > span {
      display: block;
      transform: translateY(-0.05em);
    }

    .rc-reason-badge-circle {
      border-radius: 50%;
    }

    .rc-penalty {
      box-sizing: border-box;
      overflow: hidden;
      width: 100%;
    }

    .rc-penalty-left,
    .rc-penalty-right {
      height: 100%;
    }

    .rc-penalty-inner {
      display: flex;
      align-items: center;
      gap: 6px;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      padding: 2px 4px;
    }

    .rc-penalty-track {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
    }

    .rc-penalty-top,
    .rc-penalty-bottom {
      margin: 0;
    }

    .rc-penalty-bottom {
      margin-top: 0;
    }

    .rc-penalty-list {
      display: inline-flex;
      flex-wrap: nowrap;
      gap: 14px;
      align-items: center;
      width: max-content;
      transform-origin: left center;
    }

    .rc-penalty-list.rc-penalty-list-right-vertical {
      display: flex;
      flex-direction: column;
      gap: 0.14em;
      align-items: center;
      width: max-content;
      max-width: none;
      transform-origin: center center;
    }

    .rc-penalty-inline-right .rc-penalty-item {
      width: auto;
      max-width: 100%;
      justify-content: flex-start;
      gap: 0.2em;
      padding: 0.04em 0.32em;
      min-width: 0;
    }

    .rc-penalty-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin: 0;
      padding: 2px 8px;
      white-space: nowrap;
      border: 1px solid var(--rc-pen-fg, #fff);
      background: rgba(0, 0, 0, 0.22);
      color: var(--rc-pen-fg, #fff);
      box-sizing: border-box;
    }

    .rc-penalty-bib {
      display: inline-block;
      min-width: 2.8ch;
      text-align: right;
      color: inherit;
      padding: 0;
      box-sizing: border-box;
    }

    .rc-penalty-time {
      display: inline-block;
      background: transparent;
      color: inherit;
      padding: 0;
      box-sizing: border-box;
    }

    .rc-penalty-sep {
      display: inline-block;
      color: inherit;
      opacity: 0.65;
      font-weight: 700;
      line-height: 1;
    }

    .rc-penalty-item.expired {
      background: var(--rc-pen-expired-bg, #00ff00);
      color: var(--rc-pen-expired-fg, #000000);
      border-color: transparent;
    }

    .rc-penalty-item.soon {
      background: var(--rc-pen-warning-bg, #ffff00);
      color: var(--rc-pen-warning-fg, #000000);
      border-color: transparent;
    }

    .rc-penalty-item.paused {
      background: var(--rc-pen-paused-bg, #ff0000);
      color: var(--rc-pen-paused-fg, #ffffff);
      border-color: transparent;
    }

    .rc-penalty-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.2em;
      height: 1.2em;
      min-width: 1.2em;
      padding: 0;
      box-sizing: border-box;
      overflow: hidden;
      border-radius: 50%;
      border: 1px solid #000;
      background: #fff;
      color: #000;
      font-family: 'Inter', 'Signika', Arial, sans-serif;
      font-size: 0.92em;
      font-weight: 700;
      font-style: normal;
      font-variant: normal;
      line-height: 1;
      letter-spacing: 0;
      text-align: center;
      text-decoration: none;
      text-transform: none;
      vertical-align: middle;
    }

    .team-head {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .team-athlete {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 8px;
      padding: 4px 0;
      border-top: 1px dashed rgba(159, 176, 211, 0.18);
      font-size: 0.93rem;
    }

    .small {
      font-size: 0.8rem;
      color: var(--muted);
    }

    @media (max-width: 760px) {
      .settings-panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
      }
      .settings-modal {
        padding: 8px 8px 16px;
      }
      .settings-led-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .settings-led-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .settings-led-actions {
        grid-template-columns: minmax(90px, 1fr) minmax(0, auto);
      }
    }

    @media (max-width: 420px) {
      .settings-led-grid,
      .settings-led-actions {
        grid-template-columns: 1fr;
      }
    }
