:root {
  --red: #c8102e;
  --blue: #1e5fa8;
  --black: #0a0a0a;
  --shell: #0d0d0d;
  --canvas: #fefefe;
  --text: #111;
  --muted: #555;
  --tertiary: #888;
  --line: #d8dce2;
  --soft-line: #eceff3;
  --green-row: #e8f5ea;
  --gold-row: #fdf4d4;
  --pink-row: #fbe9e9;
  --bubble-row: #dce8fb;
}

/* Obstacle Completion Counter utility */
.counter-shell {
  min-height: 100vh;
  background: var(--shell);
}

.counter-content {
  display: contents;
}

.counter-shell-macos {
  --counter-titlebar-height: 40px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.counter-shell-macos > :not(.counter-content) {
  flex-shrink: 0;
}

.counter-shell-macos .counter-window-controls {
  height: var(--counter-titlebar-height);
  background: var(--black);
  -webkit-app-region: drag;
}

.counter-shell-macos > .counter-content {
  display: block;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.counter-shell-macos :is(.counter-browser, .counter-workspace) {
  min-height: calc(100% - 40px);
}

.counter-shell-macos :is(.counter-modal-backdrop, .delete-confirm-backdrop) {
  top: var(--counter-titlebar-height);
  -webkit-app-region: no-drag;
}

.counter-shell-macos :is(.counter-modal, .delete-confirm) {
  max-height: calc(100vh - var(--counter-titlebar-height) - 48px);
  overflow: auto;
}

.counter-dialog {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
}

.counter-dialog:not([open]) {
  display: none;
}

.counter-dialog::backdrop {
  background: transparent;
}

.counter-shell-macos .counter-dialog {
  height: calc(100% - var(--counter-titlebar-height));
}

.counter-toolbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 34px;
  color: #fff;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-app-region: drag;
}

.counter-toolbar .logo-mark {
  width: 70px;
  height: 60px;
}

.counter-toolbar h1 {
  margin: 2px 0 0;
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
}

.counter-toolbar-kicker {
  color: #aaa;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.counter-toolbar-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.counter-toolbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.counter-toolbar button,
.counter-toolbar input,
.counter-toolbar select {
  -webkit-app-region: no-drag;
}

.counter-browser,
.counter-workspace {
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100vh - 124px);
  margin: 20px auto;
  padding: 26px;
  border: 1px solid #d5d9df;
  border-radius: 6px;
  background: #fff;
}

.counter-browser-heading,
.counter-tracker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.counter-browser-heading h2,
.counter-tracker-heading h2 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.2;
}

.counter-browser-heading p,
.counter-tracker-heading p,
.counter-modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.counter-heading-actions,
.counter-project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-back-button {
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 9px;
  color: #222;
  background: #fff;
  border-color: #b9bec6;
}

.counter-project-list {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.counter-project-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  align-items: center;
  gap: 18px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--soft-line);
}

.counter-project-row:last-child {
  border-bottom: 0;
}

.counter-project-name,
.counter-source-row > div,
.counter-source-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.counter-project-name strong,
.counter-source-row strong,
.counter-source-option-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.counter-project-name span,
.counter-project-row time,
.counter-source-row span,
.counter-source-option-copy span {
  color: var(--muted);
  font-size: 11px;
}

.counter-settings {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.counter-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.counter-field > span {
  color: #333;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.counter-field .input {
  min-height: 38px;
}

.counter-settings-action {
  align-self: end;
}

.counter-tracker-config .counter-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.counter-tracker-config .counter-config-name,
.counter-tracker-config .counter-settings-action {
  grid-column: 1 / -1;
}

.counter-tracker-config .counter-source-section,
.counter-workspace > .counter-standings {
  margin-top: 0;
}

.counter-config-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.counter-form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.counter-source-section,
.counter-standings,
.counter-review-section {
  margin-top: 22px;
}

.counter-section-title {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 8px;
}

.counter-section-title h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.counter-section-title > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.counter-source-list {
  border: 1px solid var(--line);
  border-radius: 5px;
}

.counter-source-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--soft-line);
}

.counter-source-row:last-child {
  border-bottom: 0;
}

.counter-source-row.is-missing {
  border-left: 4px solid var(--red);
  background: #fff4f5;
}

.counter-empty-state {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.counter-empty-projects {
  min-height: 180px;
}

.counter-empty-projects strong {
  color: #222;
  font-size: 15px;
}

.counter-standings,
.counter-review-section {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.counter-standings .counter-section-title,
.counter-review-section .counter-section-title {
  padding: 10px 12px;
  background: #f4f6f8;
  border-bottom: 1px solid var(--line);
}

.counter-standings-table {
  table-layout: fixed;
  font-size: 13px;
}

.counter-standings-table th,
.counter-standings-table td {
  padding: 10px 12px;
}

.counter-standings-table th:first-child,
.counter-standings-table td:first-child {
  width: 90px;
  text-align: center;
}

.counter-standings-table th:nth-child(n + 3),
.counter-standings-table td:nth-child(n + 3) {
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.counter-athlete-row {
  cursor: pointer;
}

.counter-athlete-row:hover,
.counter-athlete-row:focus-visible {
  background: #f3f6fa;
  outline: 0;
}

.counter-athlete-row.is-cut-line td {
  border-bottom: 3px solid var(--red);
}

.counter-athlete-row.is-cut-line-tied td {
  border-bottom-color: var(--blue);
}

.counter-cutoff-label {
  color: var(--red);
}

.counter-cut-warning,
.counter-notice {
  padding: 9px 13px;
  color: #402e00;
  background: #fff6d8;
  border: 1px solid #d7b04c;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.counter-cut-warning {
  margin-top: 18px;
  border-radius: 4px;
}

.counter-standings .counter-cut-warning {
  margin: 12px;
}

.counter-notice {
  width: min(1320px, calc(100% - 40px));
  margin: 16px auto -4px;
}

.counter-empty-cell {
  height: 90px;
  color: var(--muted);
  text-align: center;
}

.counter-review-section ul {
  margin: 0;
  padding: 12px 30px 16px;
  font-size: 12px;
}

.counter-review-section li + li {
  margin-top: 7px;
}

.counter-review-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.counter-modal-body,
.counter-source-picker,
.counter-breakdown {
  padding: 20px 24px 24px;
}

.counter-modal-body {
  display: grid;
  gap: 16px;
}

.counter-modal-body .modal-actions,
.counter-source-picker .modal-actions,
.counter-breakdown .modal-actions {
  padding: 4px 0 0;
}

.counter-delete-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.counter-source-picker-list {
  max-height: 50vh;
  margin-top: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.counter-source-option {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--soft-line);
}

.counter-source-option:last-child {
  border-bottom: 0;
}

.counter-source-option.is-included {
  background: #f4f6f8;
}

.counter-source-included {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.counter-breakdown-summary {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.counter-breakdown-summary > div {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.counter-breakdown-summary span,
.counter-breakdown-summary small {
  color: var(--muted);
  font-size: 10px;
}

.counter-breakdown-summary strong {
  font-size: 20px;
}

.counter-breakdown-summary small {
  margin-top: 3px;
  line-height: 1.25;
}

.counter-breakdown-table .counter-breakdown-number {
  width: 100px;
  text-align: right;
  padding: 5px 8px;
  font-variant-numeric: tabular-nums;
}

.counter-breakdown-run td {
  color: var(--muted);
  background: #f8f9fa;
  font-size: 11px;
}

.counter-standings-heading,
.counter-export-actions {
  flex-wrap: wrap;
}

.counter-export-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.counter-export-error {
  margin: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.counter-standings-export {
  display: none;
}

@media (max-width: 1040px) {
  .counter-browser,
  .counter-workspace {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 18px;
  }

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

  .counter-project-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .counter-project-row time {
    display: none;
  }

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

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.brand-stripe {
  height: 8px;
  background: var(--red);
  width: 100%;
}

.home-shell,
.dashboard-shell {
  min-height: 100vh;
  background: var(--shell);
}

.home-toolbar,
.dash-toolbar {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 38px;
  color: #f6f6f6;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.dash-toolbar {
  height: 76px;
}

html.electron-desktop .home-toolbar,
html.electron-desktop .dash-toolbar {
  padding-left: 96px;
  -webkit-app-region: drag;
}

html.electron-desktop.electron-fullscreen .home-toolbar,
html.electron-desktop.electron-fullscreen .dash-toolbar {
  padding-left: 38px;
}

html.electron-desktop.electron-demo-mode.electron-fullscreen .home-toolbar,
html.electron-desktop.electron-demo-mode.electron-fullscreen .dash-toolbar {
  padding-left: 88px;
}

.demo-mode-indicator {
  position: absolute;
  top: 40px;
  left: 20px;
  display: flex;
  flex-direction: column;
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  -webkit-app-region: no-drag;
}

html.electron-desktop .home-toolbar button,
html.electron-desktop .home-toolbar input,
html.electron-desktop .home-toolbar select,
html.electron-desktop .home-toolbar a,
html.electron-desktop .dash-toolbar button,
html.electron-desktop .dash-toolbar input,
html.electron-desktop .dash-toolbar select,
html.electron-desktop .dash-toolbar a,
html.electron-desktop .zoom-controls,
html.electron-desktop .logo-button {
  -webkit-app-region: no-drag;
}

.toolbar-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.32);
}

.home-toolbar h1,
.dash-toolbar h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: 19px;
  font-weight: 800;
}

.toolbar-spacer {
  flex: 1;
}

.toolbar-session {
  font-size: 15px;
  color: #f7f7f7;
}

.logo-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.logo-mark {
  width: 76px;
  height: 66px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.logo-button:hover .logo-mark {
  filter: brightness(1.08);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #d6d6d6;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  color: #fff;
}

.icon-btn:disabled {
  color: rgba(214, 214, 214, 0.28);
  cursor: not-allowed;
}

.home-main {
  padding: 54px 56px;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.hero-row h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 850;
}

.hero-row p {
  color: #d0d0d0;
  margin: 0;
  font-size: 19px;
}

.red-rule {
  margin-top: 22px;
  width: 94px;
  height: 4px;
  background: var(--red);
}

.btn {
  min-height: 36px;
  border: 1px solid #2c2c2c;
  background: #0b0b0b;
  color: #fff;
  padding: 0 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.btn:hover {
  border-color: #575757;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
}

.btn-primary:hover {
  background: #a80e27;
  border-color: #a80e27;
}

.btn-large {
  min-height: 56px;
  padding: 0 30px;
  font-size: 15px;
}

.session-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  overflow: hidden;
  color: #fff;
  background: rgba(10, 10, 10, 0.74);
}

.section-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.section-title,
.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  font-weight: 900;
}

.vertical-accent {
  width: 7px;
  height: 28px;
  background: var(--red);
  border-radius: 5px;
  display: inline-block;
}

.table-tools {
  display: flex;
  gap: 14px;
  align-items: center;
}

.search-box {
  width: 280px;
  height: 44px;
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #aaa;
}

.search-box input {
  min-width: 0;
  flex: 1;
  color: #f7f7f7;
  background: transparent;
  border: 0;
  outline: 0;
}

.select-wrap {
  position: relative;
  min-width: 185px;
}

.select-wrap select {
  width: 100%;
  height: 44px;
  color: #f7f7f7;
  border: 1px solid #333;
  background: #0c0c0c;
  border-radius: 4px;
  padding: 0 36px 0 14px;
  appearance: none;
}

.select-wrap svg {
  position: absolute;
  right: 12px;
  top: 14px;
  color: #aaa;
  pointer-events: none;
}

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

.home-col-name {
  width: 31%;
}

.home-col-type {
  width: 26%;
}

.home-col-date {
  width: 34%;
}

.home-col-actions {
  width: 9%;
}

.home-table th,
.home-table td {
  height: 72px;
  text-align: left;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  vertical-align: middle;
}

.home-table th {
  color: #aaa;
  text-transform: uppercase;
  font-size: 13px;
}

.home-table tbody tr {
  background: rgba(255, 255, 255, 0.02);
}

.home-table tbody tr:hover {
  background: rgba(200, 16, 46, 0.12);
}

.session-name-cell {
  font-weight: 720;
}

.session-name-content {
  display: flex;
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.session-name-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  width: 110px;
  text-align: right;
  white-space: nowrap;
}

.row-actions .icon-btn {
  display: inline-grid;
  vertical-align: middle;
  margin-left: 8px;
}

.session-folder-anchor {
  display: inline-block;
  position: relative;
  width: 0;
  height: 38px;
  vertical-align: middle;
}

.session-folder-anchor .icon-btn {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0;
}

.session-folder-popover {
  position: fixed;
  inset: auto;
  width: 280px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #151515;
  color: #f7f7f7;
  box-shadow: 0 6px 24px #0006;
  white-space: normal;
  font-size: 14px;
}

.session-folder-heading,
.session-folder-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.session-folder-list button {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.session-folder-list button span { flex: 0 0 16px; }
.session-folder-list button:hover { background: #ffffff16; }
.session-folder-popover button:focus-visible { outline: 2px solid #83bfff; outline-offset: -2px; }
.session-folder-popover button:disabled { opacity: 0.5; }
.session-folder-create { margin-top: 12px; }
.session-folder-create .input { margin: 6px 0 10px; }
.session-folder-create-actions { justify-content: flex-end; }
.session-folder-error { margin: 10px 0 0; color: #ffabb8; overflow-wrap: anywhere; }

.home-folder-actions .icon-btn { margin-left: 54px; }
.home-folder-row { cursor: pointer; }
.home-folder-open,
.home-folder-back {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.home-folder-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}
.home-folder-open svg,
.home-folder-breadcrumb .vertical-accent,
.home-folder-back { flex-shrink: 0; }
.home-folder-open span,
.home-folder-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-folder-breadcrumb { min-width: 0; }
.home-folder-back { text-transform: inherit; text-decoration: underline; }
.home-folder-empty { color: #aaa; }
.folder-delete-confirm { margin: auto; overflow-wrap: anywhere; }
.folder-delete-confirm::backdrop { background: rgba(0, 0, 0, 0.58); }

.delete-session-btn:not(:disabled):hover {
  color: #ff4155;
}

.delete-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
}

.delete-confirm {
  width: min(320px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 22px;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.56);
}

.delete-confirm p {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
}

.delete-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.config-close-confirm-backdrop {
  z-index: 30;
}

.config-close-confirm {
  width: min(520px, 100%);
}

.config-close-confirm-actions {
  flex-wrap: wrap;
}

.type-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.type-qualifying {
  color: #f7f7f7;
  border-color: #3c3c3c;
}

.type-groups {
  color: #73c6cf;
  border-color: #2d7f8b;
}

.type-threeway {
  color: #65cfff;
  border-color: #1e5fa8;
}

.type-finals {
  color: #ffd422;
  border-color: #d6ab00;
}

.toolbar-type {
  min-height: 36px;
}

.home-count {
  color: #d0d0d0;
  margin-top: 74px;
}

.workspace {
  margin: 24px;
  padding: 18px;
  background: var(--canvas);
  color: var(--text);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
}

.workspace-zoom-shell {
  margin: 24px;
}

.workspace-zoom-shell .workspace {
  margin: 0;
  zoom: var(--dashboard-zoom, 1);
}

@media screen {
  html.electron-desktop .workspace-zoom-shell {
    max-height: calc(100vh - 124px);
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }

  html.electron-desktop:not(.electron-fullscreen) .workspace-zoom-shell {
    width: auto;
    max-width: calc(100vw - 48px);
    min-width: 0;
    border-radius: 6px;
    background: var(--canvas);
  }
}

.finals-shell .workspace-zoom-shell {
  background: var(--canvas);
  border-radius: 6px;
  min-height: calc(100vh - 124px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
}

.finals-shell .workspace {
  min-height: calc(100vh - 124px);
  background: var(--canvas);
  box-shadow: none;
  padding-bottom: 16px;
}

.finals-shell .workspace-zoom-shell,
.finals-shell .workspace {
  background: var(--canvas);
}

@media screen {
  .threeway-shell .workspace-zoom-shell,
  .threeway-shell .workspace {
    min-height: calc(100vh - 124px);
    box-sizing: border-box;
  }

  .threeway-shell .workspace-zoom-shell {
    border-radius: 6px;
    background: var(--canvas);
  }
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 12px;
}

.section-kicker {
  color: var(--red);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.workspace h2,
.modal h2,
.clean-heats-session-title,
.group-clean-session-title {
  font-family: Georgia, "Times New Roman", serif;
}

.workspace h2,
.modal h2 {
  margin: 0 0 4px;
  font-size: 38px;
  line-height: 1.05;
}

.workspace p {
  margin: 0;
  color: #626975;
}

.threeway-shell .threeway-workspace-head {
  gap: 28px;
  margin: -2px -2px 11px;
  align-items: stretch;
}

.threeway-shell .section-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

.threeway-shell .workspace h2.threeway-workspace-title {
  margin-bottom: 4px;
  font-size: 32px;
  line-height: 1.05;
}

.threeway-shell .workspace p.threeway-workspace-date {
  font-size: 14px;
  line-height: 1.2;
}

.threeway-shell .action-row {
  gap: 9px;
}

.threeway-shell .action-row .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

.threeway-shell .action-row .btn svg {
  width: 16px;
  height: 16px;
}

.threeway-shell .run-back-btn {
  width: 28px;
  height: 27px;
  font-size: 13px;
}

.threeway-shell .queue-status {
  font-size: 10px;
}

.stats-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 14px;
}

.stats-readout div {
  min-width: 92px;
}

.stats-readout span {
  display: block;
  text-transform: uppercase;
  color: #6d7280;
  font-size: 10px;
  margin-bottom: 4px;
}

.stats-readout strong {
  font-size: 20px;
  font-weight: 500;
}

.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.run-back-btn {
  width: 32px;
  height: 30px;
  border: 1px solid #bfc5cf;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 900;
}

.run-back-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.queue-status {
  color: #555;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.zoom-controls {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 4px;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #070707;
  color: #d7d7d7;
  overflow: hidden;
}

.zoom-controls button {
  min-width: 28px;
  height: 30px;
  border: 0;
  border-right: 1px solid #242424;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.zoom-controls button:hover {
  color: #fff;
  background: #171717;
}

.zoom-controls span {
  min-width: 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 900;
}

.zoom-controls .zoom-fit-btn {
  min-width: 38px;
  text-transform: uppercase;
  font-size: 9px;
}

.zoom-controls .zoom-fit-btn.active {
  color: #fff;
  background: #1b1b1b;
}

.zoom-input {
  width: 48px;
  height: 30px;
  border: 0;
  border-right: 1px solid #242424;
  background: transparent;
  color: #f2f2f2;
  text-align: right;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.zoom-input:focus {
  outline: 1px solid rgba(200, 16, 46, 0.65);
  outline-offset: -1px;
}

.qual-layout {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 40fr) minmax(288px, 16fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: auto;
}

.panel-title {
  padding: 12px 14px 8px;
  font-size: 13px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

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

.data-table th {
  text-transform: uppercase;
  font-size: 10px;
  color: #111;
  font-weight: 900;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  text-align: center;
  width: 42px;
}

.leaderboard-table {
  min-width: 0;
  table-layout: fixed;
}

.compact-table {
  min-width: 520px;
}

.mini-table {
  min-width: 640px;
}

.compact-table td,
.compact-table th {
  padding: 8px 10px;
}

.input,
.gender-select {
  width: 100%;
  min-height: 30px;
  border: 1px solid #cfd5df;
  border-radius: 4px;
  background: #fff;
  color: #111;
  padding: 5px 8px;
}

.input:focus,
.gender-select:focus,
.csv-textarea:focus {
  outline: 2px solid rgba(200, 16, 46, 0.22);
  border-color: var(--red);
}

.time-input {
  width: 76px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.time-input.time-inc,
.time-input.time-dq {
  text-align: center;
}

.obstacle-select {
  min-width: 148px;
}

.obstacle-control {
  display: grid;
  gap: 4px;
}

.result-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.qual-layout .panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.qual-layout .panel-overall {
  min-width: 0;
  margin-right: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: hidden;
}

.qual-layout .panel-women {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-x: hidden;
}

.qual-layout .tally-panel {
  min-width: 0;
  margin-left: 0;
  max-width: 100%;
  width: 100%;
}

.qual-layout .panel-overall,
.qual-layout .panel-women,
.qual-layout .tally-panel {
  align-self: start;
}

.qualifying-shell .workspace-zoom-shell {
  margin: 24px;
  width: auto;
  min-height: calc(100vh - 124px);
  padding: 0;
  overflow: visible;
  background: var(--canvas);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
}

.qualifying-shell .workspace {
  margin: 0;
  padding: 8px 10px 7px;
  width: 100%;
  min-height: calc(100vh - 124px);
  min-width: 0;
  max-width: none;
  background: var(--canvas);
  border-radius: 6px;
  box-shadow: none;
  transform: none;
  zoom: 1;
}

.qualifying-shell .workspace-head {
  gap: 32px;
  align-items: stretch;
  margin: 9px 8px 12px;
}

.qualifying-shell .section-kicker {
  margin-bottom: 4px;
  font-size: 12px;
}

.qualifying-shell .workspace h2 {
  margin-bottom: 4px;
  font-size: 38px;
  line-height: 1.05;
}

.qualifying-shell .workspace p {
  font-size: 16px;
  line-height: 1.2;
}

.qualifying-shell .action-row {
  gap: 10px;
}

.qualifying-shell .action-row .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.qualifying-shell .action-row .btn svg {
  width: 18px;
  height: 18px;
}

.qualifying-shell .run-back-btn {
  width: 32px;
  height: 30px;
  font-size: 15px;
}

.qualifying-shell .queue-status {
  font-size: 11px;
}

.qual-layout .panel-title {
  padding: 3px 7px;
  font-size: calc(var(--q-font-size, 11.2px) * 1.08);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.qual-layout .panel-title.is-focus-trigger {
  cursor: zoom-in;
}

.qual-layout .panel-title.is-focus-trigger:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.55);
  outline-offset: -2px;
}

.qual-layout .panel-title.has-run-progress {
  padding-right: 0;
}

.qual-layout .panel-title.has-run-progress .vertical-accent {
  flex-shrink: 0;
}

.qual-layout .qualifying-panel-title-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qual-layout .qualifying-run-progress {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}

.qual-layout .qualifying-preview-toggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
}

.qual-layout .qualifying-preview-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}

.qualifying-preview-print-name {
  display: none;
}

.qual-layout .data-table .qualifying-upcoming td {
  background: rgba(232, 235, 239, 0.45);
}

.qual-layout .qualifying-upcoming .table-name {
  display: block;
}

.qual-layout .data-table .qualifying-upcoming-label td {
  font-size: 0.85em;
  color: #555;
  text-align: left;
}

.qualifying-shell .qualifying-focus-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
  overflow: auto;
}

.qualifying-shell .qualifying-focus-card {
  position: relative;
  width: min(1080px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  padding: 12px;
  overflow: auto;
  border: 1px solid #aeb7c2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.28);
}

.qualifying-shell .qualifying-focus-card .group-focus-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #b7c0cb;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.qualifying-shell .qualifying-focus-content {
  display: block;
  width: 100%;
}

.qualifying-shell .qualifying-focus-panel {
  width: 100%;
  overflow: visible;
}

.qualifying-shell .qualifying-focus-panel .panel-title {
  padding-right: 40px;
}

.qual-layout .vertical-accent {
  width: 5px;
  height: 16px;
  border-radius: 4px;
}

.qual-layout .data-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: var(--q-font-size, 11.2px);
  line-height: var(--q-line-height, 1.12);
  table-layout: fixed;
  border: 1px solid var(--line);
  background: #fff;
}

.qual-layout .leaderboard-table {
  min-width: 0;
}

.qual-layout .compact-table {
  min-width: 0;
}

.qual-layout .women-table {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.qual-col-place {
  width: 8%;
}

.qual-col-name {
  width: 29%;
}

.qual-col-obstacle {
  width: auto;
}

.qual-col-time {
  width: 13%;
}

.qual-col-tags {
  width: 14ch;
}

.women-col-place {
  width: 8%;
}

.women-col-name {
  width: 29%;
}

.women-col-obstacle {
  width: auto;
}

.women-col-time {
  width: 13%;
}

.women-col-tags {
  width: 14ch;
}

.qual-layout .women-table tr,
.qual-layout .women-table th,
.qual-layout .women-table td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
}

.qual-layout .women-table tbody tr {
  background: transparent;
}

.qual-layout .women-table tbody tr.row-adv-women > td {
  background: var(--gold-row);
}

.qual-layout .women-table tbody tr.row-women-base > td {
  background: var(--pink-row);
}

.qual-layout .data-table th,
.qual-layout .data-table td {
  height: var(--q-row-height, 18px);
  padding: var(--q-cell-padding-y, 1px) var(--q-cell-padding-x, 3px);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
}

.qual-layout .data-table th {
  height: var(--q-header-height, 17px);
  font-size: var(--q-header-font-size, 7.7px);
  line-height: var(--q-line-height, 1.12);
  border-bottom: 1px solid #b8bec8;
  overflow: hidden;
  text-overflow: clip;
}

.qual-layout .data-table th + th {
  border-left: 1px solid #cfd5df;
}

.qual-layout .data-table td + td {
  border-left: 1px solid rgba(216, 220, 226, 0.5);
}

.qual-layout .leaderboard-table th:nth-child(5),
.qual-layout .leaderboard-table td:nth-child(5) {
  border-left: 0;
  padding-left: 2px;
}

.qual-layout .women-table th:nth-child(5),
.qual-layout .women-table td:nth-child(5) {
  border-left: 0;
}

.qual-layout .women-table th:nth-child(5),
.qual-layout .women-table td:nth-child(5) {
  padding-left: 2px;
}

.qual-layout .leaderboard-table th:first-child,
.qual-layout .leaderboard-table td:first-child {
  text-align: center;
}

.qual-layout .compact-table th:first-child,
.qual-layout .compact-table td:first-child {
  text-align: center;
}

.qual-layout .leaderboard-table th,
.qual-layout .leaderboard-table td,
.qual-layout .compact-table th,
.qual-layout .compact-table td {
  width: auto !important;
  min-width: 0 !important;
}

.qual-layout .input,
.qual-layout .gender-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--q-input-height, 16px);
  height: var(--q-input-height, 16px);
  padding: 0 var(--q-cell-padding-x, 3px);
  font-size: var(--q-font-size, 11.2px);
  line-height: var(--q-line-height, 1.12);
  box-sizing: border-box;
}

.qual-layout .time-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 3px;
  padding-right: 3px;
  overflow: visible;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.qual-layout .time-input.time-inc,
.qual-layout .time-input.time-dq,
.qual-layout .time-input.time-empty {
  text-align: center;
}

.qual-layout .obstacle-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--q-input-height, 17px);
  line-height: var(--q-line-height, 1.12);
  box-sizing: border-box;
}

.qual-layout .leaderboard-table .athlete-name-edit .input {
  width: var(--q-overall-name-width, 18ch);
  max-width: none;
  font-weight: 400;
}

.qual-layout .table-name {
  font-weight: 400;
  white-space: nowrap;
}

.qual-layout .table-name.has-athlete-tag {
  display: block;
}

.qual-layout .table-name.name-locked,
.qual-layout .athlete-name-edit.name-locked .input {
  font-weight: 800;
}

.qual-layout .time-display {
  display: block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.qual-layout .time-display.time-inc,
.qual-layout .time-display.time-dq {
  text-align: center;
}

.qual-layout .result-display {
  flex-wrap: nowrap;
  max-width: none;
  overflow: visible;
}

.qual-layout .athlete-name-edit {
  display: block;
}

.qual-layout .athlete-name-edit .input {
  min-height: var(--q-input-height, 15px);
  height: var(--q-input-height, 15px);
}

.qual-density-roomy .qual-layout .data-table {
  font-size: 12.2px;
}

.qual-density-roomy .qual-layout .data-table th {
  font-size: 9px;
}

.qual-density-roomy .qual-layout .input,
.qual-density-roomy .qual-layout .gender-select,
.qual-density-roomy .qual-layout .athlete-name-edit .input {
  min-height: 19px;
  height: 19px;
  font-size: 12.2px;
}

.qual-density-roomy .qual-layout .data-table th,
.qual-density-roomy .qual-layout .data-table td {
  height: 21px;
}

.qual-density-roomy .qual-layout .obstacle-select {
  height: 20px;
}

.qual-density-comfy .qual-layout .data-table {
  font-size: 11.8px;
}

.qual-density-comfy .qual-layout .data-table th {
  font-size: 8.8px;
}

.qual-density-comfy .qual-layout .input,
.qual-density-comfy .qual-layout .gender-select,
.qual-density-comfy .qual-layout .athlete-name-edit .input {
  min-height: 18px;
  height: 18px;
  font-size: 11.8px;
}

.qual-density-comfy .qual-layout .data-table th,
.qual-density-comfy .qual-layout .data-table td {
  height: 20px;
}

.qual-density-comfy .qual-layout .obstacle-select {
  height: 19px;
}

.qual-density-medium .qual-layout .data-table {
  font-size: 11.2px;
}

.qual-density-medium .qual-layout .data-table th {
  font-size: 8.4px;
}

.qual-density-compact .qual-layout .data-table {
  font-size: 10.7px;
}

.qual-density-compact .qual-layout .data-table th {
  font-size: 8px;
}

.qual-density-compact .qual-layout .input,
.qual-density-compact .qual-layout .gender-select,
.qual-density-compact .qual-layout .athlete-name-edit .input {
  min-height: 15px;
  height: 15px;
  font-size: 10.7px;
}

.qual-density-compact .qual-layout .data-table th,
.qual-density-compact .qual-layout .data-table td {
  height: 16px;
}

.qual-density-compact .qual-layout .obstacle-select {
  height: 16px;
}

.qual-density-compact .qual-layout .tag {
  font-size: 7.2px;
}

.qualifying-shell .qual-layout .data-table {
  font-size: var(--q-font-size, 11.2px);
}

.qualifying-shell .qual-layout .data-table th {
  height: var(--q-header-height, 17px);
  font-size: var(--q-header-font-size, 7.7px);
  text-align: left;
}

.qualifying-shell .qual-layout .data-table th:nth-child(2),
.qualifying-shell .qual-layout .data-table th:nth-child(3) {
  padding-left: calc(var(--q-cell-padding-x, 3px) + 2px);
}

.qualifying-shell .qual-layout .data-table th:first-child,
.qualifying-shell .qual-layout .data-table th:nth-child(4) {
  text-align: center;
}

.qualifying-shell .qual-layout .data-table td {
  height: var(--q-row-height, 18px);
}

.qualifying-shell .qual-layout .data-table th,
.qualifying-shell .qual-layout .data-table td {
  padding: var(--q-cell-padding-y, 1px) var(--q-cell-padding-x, 3px);
}

.qualifying-shell .qual-layout .data-table th {
  overflow: visible;
  text-overflow: clip;
}

.qualifying-shell .qual-layout .data-table td {
  overflow: visible;
  text-overflow: clip;
}

.qualifying-shell .qual-layout .input,
.qualifying-shell .qual-layout .gender-select,
.qualifying-shell .qual-layout .athlete-name-edit .input {
  min-height: var(--q-input-height, 16px);
  height: var(--q-input-height, 16px);
  font-size: var(--q-font-size, 11.2px);
}

.qualifying-shell .qual-layout .athlete-name-edit .input {
  min-height: var(--q-input-height, 15px);
  height: var(--q-input-height, 15px);
}

.qualifying-shell .qual-layout .obstacle-select {
  height: var(--q-input-height, 17px);
}

.qualifying-shell .qual-layout .tag {
  min-height: var(--q-tag-height, 13px);
  font-size: var(--q-tag-font-size, 7.4px);
  line-height: var(--q-line-height, 1.12);
}

.athlete-name-edit {
  display: block;
}

.athlete-name-edit .input {
  min-height: 28px;
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  font-weight: 620;
}

.athlete-name-edit .input:focus {
  background: #fff;
  border-color: var(--red);
  padding-left: 6px;
}

.gender-select {
  width: 42px;
  min-height: 28px;
  color: #005cd6;
  font-weight: 800;
  padding: 2px 4px;
}

.rank-box {
  display: inline-flex;
  min-width: 22px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 800;
}

.qual-layout .rank-box {
  min-width: var(--q-rank-width, 18px);
  min-height: var(--q-rank-height, 13px);
  line-height: 1;
  vertical-align: middle;
}

.rank-locked {
  color: #0e6d28;
  border-color: #65a476;
  background: #f5fff7;
}

.row-adv-men {
  background: var(--green-row);
}

.row-adv-women {
  background: var(--gold-row);
}

.row-women-base {
  background: var(--pink-row);
}

.row-bubble {
  outline: 2px solid #00aeff;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px #00aeff;
}

.winner-row {
  background: var(--green-row);
}

.tag-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.tag-cell {
  overflow: visible !important;
}

.qual-layout .tag-cell {
  overflow: hidden !important;
}

.qual-layout .women-tag-cell {
  padding-left: 0;
  padding-right: 0;
}

.qual-layout .tag-stack {
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}

.tag {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  background: #fff;
}

.qual-layout .tag {
  min-height: 13px;
  padding: 0 3px;
  font-size: 7.6px;
  white-space: nowrap;
}

.qual-layout .tag-stack.has-producer-decision {
  flex-wrap: wrap;
  overflow: visible;
}

.qual-layout .tag-stack .tag-decision {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-transform: none;
  font-size: var(--q-font-size, 11.2px);
  line-height: 1.15;
}

.tag-green {
  color: #0e6d28;
  border-color: #65a476;
}

.tag-gold {
  color: #8b6200;
  border-color: #d7a929;
}

.tag-orange {
  color: #c17200;
  border-color: #f0a11f;
}

.tag-blue {
  color: #1e5fa8;
  border-color: #82a8d6;
}

.tag-purple {
  color: #5a2a8a;
  border-color: #9b72cf;
  background: #f3edff;
}

.tag-bubble {
  color: #0086d1;
  border-color: #00aeff;
}

.tag-danger {
  color: var(--red);
  border-color: var(--red);
}

.row-controls {
  white-space: nowrap;
  text-align: right;
}

.micro-btn {
  min-width: 30px;
  height: 22px;
  border: 1px solid #d3d8df;
  border-radius: 3px;
  background: #fff;
  color: #666;
  font-size: 10px;
  font-weight: 900;
  margin-right: 4px;
}

.micro-btn.active {
  color: #fff;
  background: #111;
  border-color: #111;
}

.drag-handle,
.grip {
  color: #8b8f99;
  font-weight: 900;
  user-select: none;
}

.tally-panel {
  padding-bottom: 10px;
}

.tally-list {
  display: grid;
  gap: 5px;
  padding: 0 10px 10px;
}

.tally-card {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  font-size: 11px;
}

.tally-card strong {
  font-size: 17px;
  font-weight: 500;
}

.tally-total {
  border-color: #aeb6c2;
  font-weight: 900;
}

.tally-total strong {
  font-weight: 900;
}

.tally-note {
  margin: 0 10px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 9px;
  color: #555;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.qualifying-shell .tally-panel {
  padding-bottom: 5px;
}

.qualifying-shell .tally-panel .panel-title {
  padding: 4px 8px;
  max-width: 100%;
  overflow: hidden;
  font-size: min(calc(var(--q-font-size, 11.2px) * 1.12), 20px);
}

.qualifying-shell .tally-list {
  gap: calc(var(--q-cell-padding-y, 1px) + 2px);
  padding: 0 calc(var(--q-cell-padding-x, 3px) * 2) calc(var(--q-cell-padding-x, 3px) * 2);
}

.qualifying-shell .tally-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: calc(var(--q-row-height, 18px) * 1.14);
  padding: calc(var(--q-cell-padding-y, 1px) * 1.35) calc(var(--q-cell-padding-x, 3px) * 2);
  font-size: calc(var(--q-font-size, 11.2px) * 1.12);
  line-height: var(--q-line-height, 1.12);
  gap: 6px;
}

.qualifying-shell .tally-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.qualifying-shell .tally-card strong {
  flex: 0 0 auto;
  min-width: 3ch;
  text-align: right;
  font-size: calc(var(--q-font-size, 11.2px) * 1.3);
  font-variant-numeric: tabular-nums;
}

.qualifying-shell .tally-note {
  margin: 0 calc(var(--q-cell-padding-x, 3px) * 2) calc(var(--q-cell-padding-x, 3px) * 2);
  padding: calc(var(--q-cell-padding-y, 1px) * 1.35) calc(var(--q-cell-padding-x, 3px) * 2);
  font-size: calc(var(--q-header-font-size, 7.7px) * 1.1);
  line-height: var(--q-line-height, 1.12);
}

.qualifying-shell .tally-note.mega-tower-qualifying-time-note {
  padding-left: var(--q-cell-padding-x, 3px);
  padding-right: var(--q-cell-padding-x, 3px);
  color: #000;
  font-weight: 400;
  font-size: calc(9px + 3pt);
  white-space: normal;
  overflow-wrap: anywhere;
}

.qualifying-shell .mega-tower-qualifying-time-note strong {
  font-weight: 800;
}

.big-stats {
  margin: 6px 14px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.big-stats div {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.big-stats div:last-child {
  border-bottom: 0;
}

.big-stats span {
  display: block;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

.big-stats strong {
  font-size: 38px;
  font-weight: 700;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
  margin-top: 18px;
  text-transform: uppercase;
  font-size: 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 24px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.qualifying-shell .legend {
  gap: 14px;
  margin-top: 10px;
  font-size: 8.5px;
}

.qualifying-shell .legend span {
  gap: 5px;
}

.qualifying-shell .swatch {
  width: 16px;
  height: 11px;
}

.swatch.men {
  background: var(--green-row);
}

.swatch.women {
  background: var(--gold-row);
}

.swatch.baseline {
  background: var(--pink-row);
}

.swatch.bubble {
  background: var(--bubble-row);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 7px;
  background: #fff;
  color: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
}

.modal-wide {
  width: min(1180px, 100%);
}

.modal-head {
  padding: 22px 24px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head > :first-child {
  min-width: 0;
}

.modal-close {
  position: relative;
  z-index: 2;
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.dismiss-close-button {
  z-index: 4;
  min-width: 32px;
  min-height: 32px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.dismiss-close-glyph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  line-height: 1;
  pointer-events: none;
}

html.electron-desktop .threeway-config-close {
  -webkit-app-region: no-drag;
}

html.electron-desktop .qualifying-config-close,
html.electron-desktop .group-stages-config-close {
  -webkit-app-region: no-drag;
}

.form-grid {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.form-grid.compact {
  gap: 12px;
  margin-top: 20px;
}

.qualifying-advancement-format,
.group-stage-size-format,
.group-stage-race-days-format {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.qualifying-advancement-format-label,
.group-stage-size-format-label,
.group-stage-race-days-format-label {
  color: #555;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.group-stage-size-format-helper {
  color: #5c626a;
  font-size: 10px;
  font-weight: 800;
}

.qualifying-advancement-format-options,
.group-stage-size-format-options,
.group-stage-race-days-format-options {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-self: start;
  border: 1px solid #2c2c2c;
  border-radius: 3px;
  overflow: hidden;
}

.qualifying-advancement-format-options button,
.group-stage-size-format-options button,
.group-stage-race-days-format-options button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  background: #fff;
  color: #24282d;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.qualifying-advancement-format-options button + button,
.group-stage-size-format-options button + button,
.group-stage-race-days-format-options button + button {
  border-left: 1px solid #2c2c2c;
}

.qualifying-advancement-format-options button.active,
.group-stage-size-format-options button.active,
.group-stage-race-days-format-options button.active {
  background: #0b0b0b;
  color: #fff;
}

.qualifying-advancement-format-options button:focus-visible,
.group-stage-size-format-options button:focus-visible,
.group-stage-race-days-format-options button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(200, 16, 46, 0.6);
  outline-offset: -2px;
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-grid label > span,
.checkline span {
  color: #555;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.checkline {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
}

.config-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  padding: 22px 24px;
}

.config-layout.threeway-config-layout {
  grid-template-columns: minmax(0, 1fr);
}

.config-panel h3,
.subhead h3 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
}

.subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.obstacle-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 30px;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}

.obstacle-number {
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 900;
}

.grip,
.tiny-danger {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

.tiny-danger {
  color: var(--red);
  font-weight: 900;
}

.finals-obstacles details {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 8px;
}

.finals-obstacles summary {
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.import-row {
  display: flex;
  gap: 10px;
  margin: 16px 0 10px;
}

.file-btn {
  min-height: 36px;
  border: 1px solid #2c2c2c;
  background: #0b0b0b;
  color: #fff;
  padding: 0 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.csv-textarea {
  width: 100%;
  min-height: 132px;
  border: 1px solid #cfd5df;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
}

.mini-roster {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.mini-roster-row {
  display: grid;
  grid-template-columns: 24px 40px minmax(0, 2fr) minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--soft-line);
}

.mini-roster-row.group-roster-row,
.mini-roster-row.finals-roster-row {
  grid-template-columns: 24px 72px minmax(0, 2fr) minmax(0, 1fr);
}

.mini-roster-heading {
  background: #eef4f8;
  color: #111318;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-roster-row.finals-roster-row {
  grid-template-columns: 72px minmax(0, 2fr) minmax(0, 1fr);
}

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

.threeway-roster-actions .btn {
  min-height: 28px;
  padding: 4px 8px;
}

.threeway-heat-validation {
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid #cbd5df;
  border-radius: 3px;
  background: #eef4f8;
  color: #303b46;
  font-size: 9px;
  font-weight: 800;
}

.threeway-heat-validation.is-ready {
  border-color: #7fac8a;
  background: #e7f5e9;
  color: #174c26;
}

.threeway-heat-validation.is-error {
  border-color: #d2a63e;
  background: #fff5d7;
  color: #5a430a;
}

.threeway-heat-validation ul {
  margin: 0;
  padding-left: 18px;
}

.mini-roster-row.name-gender-roster-row {
  grid-template-columns: 24px 48px minmax(0, 2fr) minmax(0, 1fr) 58px 28px;
  padding: 5px 10px;
}

.mini-roster-row.name-gender-roster-row .qualifying-remove-queue {
  width: 28px;
  height: 28px;
}

.mini-roster-row.name-gender-roster-row .qualifying-roster-run {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mini-roster-row.group-roster-row .input,
.mini-roster-row.finals-roster-row .input,
.mini-roster-row.name-gender-roster-row .input {
  min-height: 28px;
  padding: 4px 7px;
}

.mini-roster-row.name-gender-roster-row .gender-select {
  width: 100%;
}

.mini-roster-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-grip {
  cursor: grab;
}

.threeway-heat-roster-list {
  max-height: min(520px, 58vh);
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f9fb;
}

.threeway-roster-heat-group {
  min-width: 0;
}

.threeway-roster-heat-group + .threeway-roster-heat-group {
  border-top: 6px solid #f7f9fb;
}

.threeway-roster-heat-head {
  display: grid;
  grid-template-columns: 26px 76px 58px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: #eaf1f6;
}

.threeway-heat-drag-handle {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 3px;
  color: #697480;
  cursor: grab;
  user-select: none;
}

.threeway-heat-drag-handle:active {
  cursor: grabbing;
}

.threeway-roster-run-field {
  display: grid;
  grid-template-columns: auto 34px;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.threeway-roster-identity {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.threeway-roster-identity small {
  color: #5d6874;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.threeway-roster-identity strong {
  font-size: 11px;
}

.threeway-roster-athlete-heading,
.threeway-roster-athlete-row {
  display: grid;
  grid-template-columns: 54px 62px minmax(0, 2fr) minmax(0, 1fr) 76px 28px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border-bottom: 1px solid var(--soft-line);
}

.threeway-roster-athlete-heading {
  padding-top: 4px;
  padding-bottom: 3px;
  background: #f5f7f9;
  color: #4b5662;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.threeway-roster-athlete-row .input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 4px 6px;
}

.threeway-roster-unassigned-group {
  background: #fbfcfd;
}

.threeway-roster-unassigned-head {
  grid-template-columns: minmax(0, 1fr);
}

.threeway-roster-unassigned-title {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.threeway-roster-name-input {
  text-align: left;
}

.threeway-roster-source {
  color: #4b5662;
  font-size: 8px;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.threeway-roster-empty {
  padding: 9px 8px 10px;
  color: #727c87;
  font-size: 10px;
  font-style: italic;
}

.finals-obstacles {
  margin-top: 22px;
}

.finals-config-subhead {
  margin-top: 16px;
  margin-bottom: 8px;
}

.finals-round-count-label {
  color: #4d5664;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finals-round-count-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  column-gap: 14px;
  row-gap: 8px;
}

.finals-round-count-field {
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;
  min-width: 0;
}

.finals-round-count-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.finals-round-count-input {
  text-align: center;
}

.config-import-error {
  margin: 0 0 10px;
  color: #a30d27;
  font-size: 12px;
  font-weight: 800;
}

.finals-round-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.round-active-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #c9d1dc;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.round-active-btn.active {
  border-color: #20242a;
  color: #111;
}

.round-active-btn.inactive {
  color: #911124;
}

.round-active-btn.active:not(.locked):hover {
  border-color: #111;
  background: #f1f3f5;
}

.round-active-btn.inactive:hover {
  border-color: var(--red);
  background: #fff4f5;
}

.round-active-btn.locked:disabled {
  opacity: 1;
  border-color: #20242a;
  background: #f4f6f8;
  color: #111;
  cursor: default;
}

.round-active-btn.active.mt-midoriyama,
.round-active-btn.active.mt-midoriyama.locked:disabled,
.round-active-btn.active.mt-midoriyama:not(.locked):hover {
  border-color: #25103f;
  background: linear-gradient(145deg, #190b2e 0%, #351451 25%, #7440ad 50%, #451d70 74%, #170a2a 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(241, 228, 255, 0.45),
    inset 0 -2px 3px rgba(9, 3, 22, 0.44);
}

.finals-round-count-field.inactive .finals-round-count-input:disabled {
  opacity: 1;
  border-color: #d8dde5;
  background: #eef1f5;
  color: #7b8490;
}

.groups-layout,
.threeway-layout,
.finals-layout {
  display: grid;
  gap: 18px;
}

.wildcard-panel {
  overflow-x: auto;
}

.group-card-grid,
.matchup-grid,
.finals-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-card-grid,
.matchup-grid {
  display: grid;
  gap: 18px;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.group-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

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

.race-title {
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 10px;
  color: #666;
  font-weight: 900;
}

.mini-table td,
.mini-table th {
  padding: 5px 6px;
}

.run-col {
  width: 34px;
  color: #666;
  font-weight: 900;
}

.name-col {
  min-width: 160px;
}

.seed-chip {
  min-width: 30px;
  height: 25px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--lane);
  color: #fff;
  font-weight: 900;
}

.standings-table {
  margin-top: 8px;
}

.threeway-sheet,
.threeway-unassigned-panel {
  --threeway-line: #b8c3cf;
  --threeway-soft: #d9e1e8;
  --threeway-head: #eaf1f6;
  --threeway-green: #dff6dc;
  --threeway-export-width: 1536px;
}

.threeway-sheet {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  color: #111318;
  font-size: 10px;
}

.threeway-live-board {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 190px);
  align-items: start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.threeway-live-board > *,
.threeway-rail-round,
.threeway-heat-deck,
.threeway-heat-section,
.threeway-heat-columns,
.threeway-heat-columns > * {
  min-width: 0;
}

.threeway-leaderboard-rail {
  grid-column: 1;
}

.threeway-heat-deck {
  grid-column: 2 / 4;
}

.threeway-tally-rail {
  grid-column: 4;
}

.threeway-leaderboard-rail,
.threeway-tally-rail,
.threeway-heat-deck {
  display: grid;
  align-content: start;
  gap: 10px;
}

.threeway-rail-round {
  display: grid;
  align-content: start;
  gap: 6px;
}

.threeway-rail-round + .threeway-rail-round,
.threeway-heat-section + .threeway-heat-section {
  border-top: 1px solid var(--threeway-line);
  padding-top: 10px;
}

.threeway-rail-round-head {
  display: grid;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--threeway-line);
  background: #f8fafc;
}

.threeway-rail-round-head strong {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.threeway-heat-section {
  min-width: 0;
}

.threeway-heat-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.threeway-heat-round-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--threeway-line);
  background: #f8fafc;
  box-sizing: border-box;
}

.threeway-heat-round-head > div {
  min-width: 0;
}

.threeway-heat-round-head h3 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.threeway-heat-round-head > span {
  flex: 0 0 auto;
  color: #56616d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.threeway-export-board {
  display: none;
  width: var(--threeway-export-width);
  max-width: none;
}

.threeway-export-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 190px);
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.threeway-export-grid > * {
  min-width: 0;
  align-self: start;
}

.threeway-summary-board,
.threeway-tally-panel .tally-panel {
  min-width: 0;
  border: 1px solid var(--threeway-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.threeway-summary-title,
.threeway-tally-panel .panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--threeway-line);
  background: var(--threeway-head);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.threeway-summary-title span {
  color: #4f5965;
  font-size: 8px;
}

.threeway-unassigned-panel {
  position: fixed;
  z-index: 9;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: #111318;
  font-size: 10px;
}

.threeway-unassigned-panel > .threeway-summary-title {
  flex-shrink: 0;
}

.threeway-unassigned-list {
  margin: 0;
  padding: 0;
  min-height: 0;
  list-style: none;
  overflow: auto;
  overscroll-behavior: contain;
}

.threeway-unassigned-list li {
  padding: 3px 4px;
  border-bottom: 1px solid var(--threeway-soft);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.threeway-unassigned-list li:last-child {
  border-bottom: 0;
}

body:has(.modal-backdrop, .delete-confirm-backdrop, [aria-modal="true"], dialog[open], .clean-heats-overlay) .threeway-unassigned-panel,
body.electron-pdf-exporting .threeway-unassigned-panel {
  display: none;
}

.threeway-summary-title-actions,
.threeway-heat-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
}

.threeway-summary-table,
.threeway-heat-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.threeway-summary-table th,
.threeway-summary-table td,
.threeway-heat-table th,
.threeway-heat-table td {
  overflow: hidden;
  border-right: 1px solid var(--threeway-soft);
  border-bottom: 1px solid var(--threeway-soft);
  padding: 3px 4px;
  text-overflow: clip;
  white-space: nowrap;
}

.threeway-summary-table th:last-child,
.threeway-summary-table td:last-child,
.threeway-heat-table th:last-child,
.threeway-heat-table td:last-child {
  border-right: 0;
}

.threeway-summary-table tbody tr:last-child td,
.threeway-heat-table tbody tr:last-child td {
  border-bottom: 0;
}

.threeway-summary-table th,
.threeway-heat-table th {
  background: #f5f7f9;
  color: #46515d;
  font-size: 7px;
  font-weight: 950;
  text-transform: uppercase;
}

.threeway-summary-table th:nth-child(1),
.threeway-summary-table td:nth-child(1),
.threeway-summary-table th:nth-child(2),
.threeway-summary-table td:nth-child(2) {
  width: 34px;
  text-align: center;
}

.threeway-summary-table th:nth-child(3),
.threeway-summary-table td:nth-child(3) {
  width: 42px;
  text-align: center;
}

.threeway-summary-table th:nth-child(4),
.threeway-summary-table td:nth-child(4) {
  width: 132px;
}

.threeway-summary-table th:nth-child(6),
.threeway-summary-table td:nth-child(6) {
  width: 62px;
  text-align: center;
}

.threeway-summary-table-compact th:nth-child(1),
.threeway-summary-table-compact td:nth-child(1) {
  width: 38px;
  text-align: center;
}

.threeway-summary-table-compact th:nth-child(2),
.threeway-summary-table-compact td:nth-child(2) {
  width: auto;
  text-align: left;
}

.threeway-summary-table-compact th:nth-child(3),
.threeway-summary-table-compact td:nth-child(3) {
  width: 142px;
  text-align: left;
}

.threeway-summary-table-compact th:nth-child(4),
.threeway-summary-table-compact td:nth-child(4) {
  width: 62px;
  text-align: center;
}

.threeway-summary-name {
  font-weight: 800;
  text-align: left;
}

.threeway-live-board .threeway-summary-name {
  white-space: nowrap;
}

.threeway-fitted-name {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.threeway-fitted-name > span {
  display: inline-block;
  line-height: 1;
}

.threeway-summary-empty td {
  color: #7a838d;
  text-align: center;
}

.threeway-advancers-board tbody tr {
  background: #fff;
}

.threeway-special-qualifier {
  background: #4be7ff;
  color: #062f36;
  font-weight: 900;
}

.threeway-tally-panel .panel-title .vertical-accent {
  display: none;
}

.threeway-tally-panel .tally-list {
  display: grid;
  gap: 2px;
  padding: 4px;
}

.threeway-live-board .threeway-tally-panel .tally-list,
.threeway-focus-content .threeway-tally-panel .tally-list {
  padding-top: 0;
}

.threeway-live-board .threeway-tally-panel .tally-card:first-child,
.threeway-focus-content .threeway-tally-panel .tally-card:first-child {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.threeway-tally-panel .tally-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 4px;
  min-height: 19px;
  margin: 0;
  border: 1px solid var(--threeway-soft);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 9px;
}

.threeway-tally-panel .tally-card span {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.threeway-tally-panel .tally-card strong {
  text-align: right;
}

.threeway-live-board .threeway-tally-panel .tally-card span {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.threeway-heat-block {
  min-width: 0;
  border: 1px solid var(--threeway-line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.threeway-live-board .threeway-heat-block {
  width: 100%;
  box-sizing: border-box;
  align-self: start;
}

.threeway-export-board .threeway-heat-block {
  width: 100%;
  box-sizing: border-box;
  align-self: start;
}

.threeway-export-board .threeway-summary-name,
.threeway-export-board .threeway-name-cell {
  text-align: left;
}

.threeway-export-board .threeway-tally-panel .tally-card span {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.threeway-heat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--threeway-line);
  background: var(--threeway-head);
  text-transform: uppercase;
}

.threeway-heat-head strong {
  font-size: 10px;
  font-weight: 950;
}

.threeway-heat-selector {
  display: inline-flex;
}

.threeway-heat-selector select {
  width: 80px;
  height: 14px;
  min-height: 0;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #111;
  font-family: inherit;
  font-size: 10px;
  font-weight: 950;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
}

.threeway-heat-selector select:focus-visible:not(:open) {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.threeway-heat-head > span,
.threeway-heat-head-actions > span {
  color: #56616d;
  font-size: 8px;
  font-weight: 900;
}

.threeway-heat-table th:nth-child(1),
.threeway-heat-table td:nth-child(1) {
  width: 30px;
  text-align: center;
}

.threeway-heat-table th:nth-child(2),
.threeway-heat-table td:nth-child(2) {
  width: 45px;
  text-align: center;
}

.threeway-heat-table th:nth-child(3),
.threeway-heat-table td:nth-child(3) {
  width: 132px;
}

.threeway-heat-table th:nth-child(5),
.threeway-heat-table td:nth-child(5) {
  width: 62px;
  text-align: center;
}

.threeway-heat-table td {
  height: 29px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.threeway-run-cell {
  background: #f4f6f8;
  color: #5b6570;
  font-weight: 950;
  vertical-align: middle;
}

.threeway-run-cell.is-current {
  background: #f5c928;
  color: #111;
  border: 0 !important;
  outline: 0;
  padding: 0;
  box-shadow: none;
}

.threeway-run-input {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  appearance: textfield;
}

.threeway-run-input::-webkit-inner-spin-button,
.threeway-run-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.threeway-run-cell.is-current .threeway-run-input:focus-visible {
  outline: 0;
  text-decoration: underline 2px;
  text-underline-offset: 2px;
}

.threeway-seed-chip {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 20px;
  border: 1px solid color-mix(in srgb, var(--lane), #000 18%);
  border-radius: 3px;
  background: var(--lane);
  color: #fff;
  font-weight: 950;
  cursor: default;
}

.threeway-seed-chip.lane-grey {
  color: #111;
}

.threeway-name-cell,
.threeway-name-cell > span,
.threeway-name-swap {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.threeway-name-cell {
  padding: 0 !important;
  font-weight: 800;
  text-align: left;
}

.threeway-name-cell > span,
.threeway-name-swap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  box-sizing: border-box;
  letter-spacing: 0;
  text-indent: 0;
  text-align: left;
}

.threeway-name-swap {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.threeway-live-board .threeway-summary-title.is-focus-trigger,
.threeway-live-board .threeway-tally-panel .panel-title.is-focus-trigger,
.threeway-live-board .threeway-heat-head.is-focus-trigger {
  cursor: zoom-in;
}

.threeway-live-board .threeway-summary-title.is-focus-trigger:focus-visible,
.threeway-live-board .threeway-tally-panel .panel-title.is-focus-trigger:focus-visible,
.threeway-live-board .threeway-heat-head.is-focus-trigger:focus-visible {
  outline: 2px solid #111;
  outline-offset: -3px;
}

.threeway-heat-table .obstacle-control,
.threeway-heat-table .time-input {
  width: 100%;
}

.threeway-live-board .threeway-heat-table,
.threeway-live-board .threeway-heat-table .obstacle-control,
.threeway-live-board .threeway-heat-table .obstacle-select,
.threeway-live-board .threeway-heat-table .time-input,
.threeway-live-board .threeway-heat-table .input {
  min-width: 0;
  max-width: 100%;
}

.threeway-heat-table .obstacle-control select,
.threeway-heat-table .input {
  min-height: 23px;
  height: 23px;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 9px;
}

.threeway-heat-table td.threeway-time-cell,
.threeway-summary-table td.threeway-time-cell,
.threeway-heat-table .threeway-time-cell > .time-input,
.threeway-heat-table .threeway-time-cell > .threeway-focus-result,
.threeway-heat-table .threeway-time-cell > .threeway-empty-result {
  text-align: left;
}

.threeway-live-board .threeway-time-cell > .threeway-empty-result {
  /* Match the editable input's 4px padding and 1px border. */
  padding-left: 5px;
}

.threeway-empty-result {
  display: block;
  color: #7d8791;
  text-align: center;
}

.threeway-heat-advancer {
  background: var(--threeway-green);
}

.threeway-round-editor {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.threeway-round-config-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: #f8fafc;
}

.threeway-round-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8dee6;
}

.threeway-round-config-head strong {
  font-size: 12px;
  text-transform: uppercase;
}

.threeway-round-remove {
  min-height: 28px;
  padding: 4px 8px;
}

.threeway-round-config-grid {
  align-items: end;
}

.threeway-round-config-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.threeway-round-config-main,
.threeway-round-roster-preview {
  min-width: 0;
}

.threeway-round-roster-preview {
  align-self: start;
}

.threeway-round-roster-preview > .subhead {
  margin: 0 0 10px;
}

.threeway-round-obstacles-section {
  width: 100%;
  min-width: 0;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #d8dee6;
  box-sizing: border-box;
}

.threeway-round-obstacles-section > .obstacle-editor {
  min-width: 0;
}

.threeway-round-obstacles-section .subhead {
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
}

.threeway-round-obstacles-section .subhead h3 {
  margin: 0;
}

.threeway-round-obstacles-section .obstacle-row {
  margin-bottom: 8px;
}

.threeway-round-obstacles-section .obstacle-row:last-child {
  margin-bottom: 0;
}

.threeway-source-status {
  margin: 9px 0 0;
  padding: 6px 8px;
  border: 1px solid #cbd5df;
  border-radius: 3px;
  background: #eef4f8;
  color: #303b46;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.threeway-source-status.is-stale,
.threeway-source-status.is-blocked {
  border-color: #d2a63e;
  background: #fff5d7;
  color: #5a430a;
}

.threeway-generate-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.threeway-initial-field-intake {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
}

.threeway-initial-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.threeway-initial-field-head strong {
  font-size: 12px;
  text-transform: uppercase;
}

.threeway-initial-field-intake .muted {
  margin: 4px 0 0;
  font-size: 9px;
}

.threeway-initial-field-actions {
  flex-wrap: wrap;
  margin: 7px 0;
  gap: 6px;
}

.threeway-initial-field-actions .btn,
.threeway-initial-field-actions .file-btn {
  min-height: 29px;
  padding: 4px 8px;
  font-size: 9px;
}

.threeway-initial-field-textarea {
  min-height: 88px;
  font-size: 10px;
}

.threeway-initial-field-feedback {
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid #b9c8d5;
  border-radius: 3px;
  background: #eef4f8;
  color: #303b46;
  font-size: 9px;
  font-weight: 800;
}

.threeway-initial-field-feedback.is-error {
  border-color: #d2a63e;
  background: #fff5d7;
  color: #5a430a;
}

.threeway-initial-field-feedback p {
  margin: 0 0 3px;
}

.threeway-initial-field-issues {
  margin: 0 0 4px;
  padding-left: 17px;
}

.threeway-initial-field-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  margin: 0;
  padding-left: 16px;
}

.threeway-initial-field-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.threeway-initial-field-confirm-actions .btn {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 9px;
}

.threeway-population-workflow {
  margin-top: 12px;
  border-top: 1px solid #dce2e8;
  padding-top: 10px;
}

.threeway-population-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  border: 1px solid #2c2c2c;
  border-radius: 3px;
  overflow: hidden;
}

.threeway-population-tabs button {
  min-height: 28px;
  padding: 4px 12px;
  border: 0;
  background: #fff;
  color: #24282d;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.threeway-population-tabs button + button {
  border-left: 1px solid #2c2c2c;
}

.threeway-population-tabs button.active {
  background: #0b0b0b;
  color: #fff;
}

.threeway-manual-population-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dce2e8;
}

.threeway-preset-help {
  margin: 8px 0 0;
  color: #46515d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.threeway-source-fields {
  margin-top: 10px;
}

.threeway-population-count {
  margin: 6px 0 0;
  color: #5d6874;
  font-size: 9px;
  font-weight: 800;
}

.threeway-second-place-toggle {
  min-height: 37px;
  align-self: end;
}

.clean-heats-config-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.clean-heats-config-actions .btn {
  background: #08090b;
  color: #fff;
}
.clean-groups-config-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.clean-groups-config-actions .btn {
  background: #08090b;
  color: #fff;
}

.clean-groups-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 8, 12, 0.72);
}

.clean-groups-dialog {
  width: min(1500px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #aeb8c4;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.clean-groups-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #cbd4df;
  background: #fff;
}

.clean-groups-toolbar h2 {
  margin: 0;
  color: #111318;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.clean-groups-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  -webkit-app-region: no-drag;
}

.clean-groups-actions button {
  pointer-events: auto;
  -webkit-app-region: no-drag;
}

.clean-groups-sheet {
  display: grid;
  gap: 28px;
  padding: 18px;
  background: #fff;
}

.clean-groups-section {
  display: grid;
  gap: 10px;
}

.clean-groups-a .clean-group-title {
  background: #d9d3e9;
}

.clean-groups-b .clean-group-title {
  background: #d9e8f7;
}

.clean-groups-c .clean-group-title {
  background: #dcefd8;
}

.clean-groups-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 18px;
}

.clean-group-card {
  border: 1px solid #1b1d22;
  background: #fff;
}

.clean-group-title {
  min-height: 25px;
  border-bottom: 1px solid #1b1d22;
  color: #111318;
  font-size: 17px;
  font-weight: 950;
  line-height: 25px;
  text-align: center;
}

.clean-group-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 25px;
  border-bottom: 1px solid #1b1d22;
  color: #111318;
  font-size: 17px;
  line-height: 25px;
}

.clean-group-row:last-child {
  border-bottom: 0;
}

.clean-group-seed {
  border-right: 1px solid #1b1d22;
  font-weight: 950;
  text-align: center;
}

.clean-group-name {
  padding: 0 7px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.clean-heats-sheet .clean-group-name {
  text-align: left;
}

.threeway-shell .group-focus-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
}

.threeway-shell .threeway-focus-card {
  position: relative;
  width: min(900px, calc(100vw - 80px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  border: 1px solid #8995a2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(17, 24, 39, 0.3);
}

.threeway-shell .threeway-focus-card-leaderboard {
  width: min(646px, calc(100vw - 80px));
}

.threeway-shell .threeway-focus-card-tally {
  width: min(326px, calc(100vw - 80px));
}

.threeway-shell .threeway-focus-card-heat {
  width: min(786px, calc(100vw - 80px));
}

.threeway-shell .threeway-focus-card .group-focus-close {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #aeb8c3;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.threeway-focus-title {
  min-height: 42px;
  padding: 11px 44px 9px 12px;
  border-bottom: 1px solid var(--threeway-line, #b8c3cf);
  background: #f8fafc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.threeway-focus-content {
  --threeway-line: #9da9b5;
  --threeway-soft: #d0d8e0;
  --threeway-head: #eaf1f6;
  --threeway-green: #dff6dc;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px;
  font-size: 13px;
}

.threeway-focus-frame {
  min-width: 0;
  max-width: 100%;
}

.threeway-focus-frame > * {
  width: 100%;
  box-sizing: border-box;
}

.threeway-focus-frame-leaderboard {
  width: min(620px, 100%);
}

.threeway-focus-frame-tally {
  width: min(300px, 100%);
}

.threeway-focus-frame-heat {
  width: min(760px, 100%);
}

.threeway-focus-content .threeway-summary-title,
.threeway-focus-content .threeway-heat-head,
.threeway-focus-content .threeway-tally-panel .panel-title {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 13px;
}

.threeway-focus-content .threeway-summary-table th,
.threeway-focus-content .threeway-summary-table td,
.threeway-focus-content .threeway-heat-table th,
.threeway-focus-content .threeway-heat-table td {
  padding: 5px 7px;
}

.threeway-focus-content .threeway-summary-table th,
.threeway-focus-content .threeway-heat-table th {
  font-size: 9px;
}

.threeway-focus-frame-leaderboard .threeway-summary-table-compact th:nth-child(1),
.threeway-focus-frame-leaderboard .threeway-summary-table-compact td:nth-child(1) {
  width: 56px;
}

.threeway-focus-frame-leaderboard .threeway-summary-table-compact th:nth-child(3),
.threeway-focus-frame-leaderboard .threeway-summary-table-compact td:nth-child(3) {
  width: 210px;
}

.threeway-focus-frame-leaderboard .threeway-summary-table-compact th:nth-child(4),
.threeway-focus-frame-leaderboard .threeway-summary-table-compact td:nth-child(4) {
  width: 92px;
}

.threeway-focus-frame-heat .threeway-heat-table th:nth-child(1),
.threeway-focus-frame-heat .threeway-heat-table td:nth-child(1) {
  width: 43px;
}

.threeway-focus-frame-heat .threeway-heat-table th:nth-child(2),
.threeway-focus-frame-heat .threeway-heat-table td:nth-child(2) {
  width: 64px;
}

.threeway-focus-frame-heat .threeway-heat-table th:nth-child(3),
.threeway-focus-frame-heat .threeway-heat-table td:nth-child(3) {
  width: 188px;
}

.threeway-focus-frame-heat .threeway-heat-table th:nth-child(5),
.threeway-focus-frame-heat .threeway-heat-table td:nth-child(5) {
  width: 88px;
}

.threeway-focus-frame-heat .threeway-heat-table th:last-child {
  text-align: center;
}

.threeway-focus-frame-heat .threeway-heat-table td:last-child > .threeway-focus-result,
.threeway-focus-frame-heat .threeway-heat-table td:last-child > .threeway-empty-result {
  width: 100%;
}

.threeway-focus-frame-heat .threeway-seed-chip {
  min-width: 38px;
  height: 28px;
}

.threeway-focus-frame-tally .threeway-tally-panel .tally-card {
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 13px;
}

.threeway-focus-content .threeway-name-cell,
.threeway-focus-content .threeway-summary-name {
  text-align: left;
}

.threeway-focus-result {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.threeway-focus-result.is-special-time {
  text-align: center;
}

.clean-heats-dialog {
  width: min(1280px, calc(100vw - 56px));
}

.clean-heats-toolbar,
.group-clean-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

.clean-heats-session-title,
.group-clean-session-title {
  min-width: 0;
  color: #000;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.clean-heats-toolbar .clean-groups-actions,
.group-clean-toolbar .clean-groups-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.clean-heats-sheet {
  gap: 28px;
  padding: 20px;
}

.clean-heats-round {
  gap: 16px;
  break-inside: avoid;
}

.clean-heats-round-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  border: 1px solid #1b1d22;
  border-bottom: 0;
  padding: 5px 10px;
  background: #eaf1f6;
  color: #111318;
  font-size: 17px;
  text-transform: uppercase;
}

.clean-heats-round-title span {
  color: #4d5965;
  font-size: 12px;
  font-weight: 900;
}

.clean-heats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 30px;
  align-items: start;
}

.clean-heat-card {
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: none;
}

.clean-heat-card .clean-group-title {
  min-height: 30px;
  border-bottom: 2px solid #111;
  background: #fff;
  color: #050608;
  font-size: 25px;
  font-weight: 950;
  line-height: 30px;
}

.clean-heat-card .clean-group-row {
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 29px;
  border-bottom: 2px solid #111;
  color: #050608;
  font-size: 25px;
  line-height: 29px;
}

.clean-heat-row {
  grid-template-columns: 76px minmax(0, 1fr);
}

.clean-heat-card .clean-group-seed {
  border-right: 2px solid #111;
  font-weight: 950;
}

.clean-heat-card .clean-group-name {
  padding: 0 10px;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.clean-heat-seed {
  display: grid;
  place-items: center;
  align-self: stretch;
  box-sizing: border-box;
  width: 76px;
  min-width: 76px;
  padding: 0;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.clean-heat-seed.lane-blue {
  background: #0f4f9a;
  color: #fff;
}

.clean-heat-seed.lane-grey {
  background: #b9c0c8;
  color: #111;
}

.clean-heat-seed.lane-red {
  background: #cf1e36;
  color: #fff;
}

.group-clean-groups-dialog {
  width: min(1280px, calc(100vw - 56px));
}

.group-clean-sheet {
  gap: 18px;
  padding: 20px;
}

.group-clean-episode {
  border: 3px solid #111;
  background: #d9d3e9;
  color: #050608;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  padding: 4px 12px;
}

.group-clean-grid {
  display: grid;
  gap: 24px 30px;
  align-items: start;
}

.group-clean-grid.all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-clean-grid.race-day {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-clean-size-3 .group-clean-grid,
.group-clean-size-3 .group-clean-grid.all,
.group-clean-size-3 .group-clean-grid.race-day {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 22px;
}

.group-clean-card {
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: none;
}

.group-clean-card .clean-group-title {
  min-height: 30px;
  border-bottom: 2px solid #111;
  background: #d9d3e9;
  color: #050608;
  font-size: 25px;
  font-weight: 950;
  line-height: 30px;
}

.group-clean-card .clean-group-row {
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 29px;
  border-bottom: 2px solid #111;
  color: #050608;
  font-size: 25px;
  line-height: 29px;
}

.group-clean-card .clean-group-seed {
  border-right: 2px solid #111;
  font-weight: 950;
}

.group-clean-card .clean-group-name {
  padding: 0 10px;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.group-clean-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 18px 18px;
}

.group-clean-tabs button {
  min-width: 34px;
  height: 28px;
  border: 1px solid #c5cbd3;
  background: #fff;
  color: #111318;
  font-weight: 850;
  cursor: pointer;
}

.group-clean-tabs button + button {
  margin-left: -1px;
}

.group-clean-tabs button.active {
  background: #050608;
  border-color: #050608;
  color: #fff;
}

.group-sheet {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: #111;
}

.group-sheet-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.group-sheet-header .section-kicker {
  margin: 0;
  color: var(--red);
}

.group-sheet-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

.group-sheet-header span {
  color: #555;
  font-size: 11px;
  font-weight: 800;
}

.group-worksheet {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.group-summary-column {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.group-summary-section,
.group-worksheet-block {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}

.group-section-title,
.group-block-title,
.group-matchups-title {
  background: #fff;
  color: #111;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.group-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 6px;
}

.group-section-title::before,
.group-matchups-title::before,
.group-block-title::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: var(--red);
}

.group-matchups-area {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.group-matchups-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 7px 8px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.group-matchups-title h3 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.05;
  text-transform: uppercase;
}

.group-matchups-title span,
.group-matchups-title strong {
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.group-worksheet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.group-block-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 7px 6px 16px;
}

.group-matchups-title::before,
.group-block-title::before {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
}

.group-block-title strong,
.group-block-title span {
  font-size: 9px;
  font-weight: 900;
}

.group-sheet-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 9px;
  line-height: 1.18;
}

.group-sheet-table th,
.group-sheet-table td {
  border-right: 1px solid rgba(216, 220, 226, 0.75);
  border-bottom: 1px solid var(--soft-line);
  padding: 3px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.group-sheet-table th {
  background: #f7f8fa;
  color: #111;
  font-size: 7.8px;
  font-weight: 900;
  text-transform: uppercase;
}

.group-sheet-table th:last-child,
.group-sheet-table td:last-child {
  border-right: 0;
}

.group-summary-table th:nth-child(1),
.group-summary-table td:nth-child(1) {
  width: 13%;
  text-align: center;
  font-weight: 900;
}

.group-summary-table th:nth-child(2),
.group-summary-table td:nth-child(2) {
  width: 35%;
}

.group-summary-table th:nth-child(3),
.group-summary-table td:nth-child(3) {
  width: 34%;
}

.group-summary-table th:nth-child(4),
.group-summary-table td:nth-child(4) {
  width: 18%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.group-summary-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.group-summary-table-grid.is-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.group-races-table th:nth-child(1),
.group-races-table td:nth-child(1) {
  width: 10%;
  text-align: center;
  font-weight: 900;
}

.group-races-table th:nth-child(2),
.group-races-table td:nth-child(2) {
  width: 12%;
  text-align: center;
  font-weight: 900;
}

.group-races-table th:nth-child(3),
.group-races-table td:nth-child(3) {
  width: 33%;
}

.group-races-table th:nth-child(4),
.group-races-table td:nth-child(4) {
  width: 29%;
}

.group-races-table th:nth-child(5),
.group-races-table td:nth-child(5) {
  width: 16%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.group-races-table .group-run-cell {
  width: 9%;
  text-align: center;
  padding: 2px;
}

.group-races-table .group-col-run {
  width: 6%;
}

.group-races-table .group-col-seed {
  width: 7%;
}

.group-races-table .group-col-letter {
  width: 5%;
}

.group-races-table .group-col-name {
  width: 30%;
}

.group-races-table .group-col-obstacle {
  width: 31%;
}

.group-races-table .group-col-time {
  width: 14%;
}

.group-races-table th:nth-child(1),
.group-races-table th:nth-child(2),
.group-races-table th:nth-child(3),
.group-races-table th:nth-child(7) {
  text-align: center;
}

.group-races-table th:nth-child(4),
.group-races-table th:nth-child(5) {
  text-align: left;
}

.group-races-table th:nth-child(6) {
  text-align: right;
}

.group-races-table .group-seed-number {
  width: 9%;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.group-races-table .group-seed-letter {
  width: 7%;
  text-align: center;
  font-weight: 900;
}

.group-races-table .group-name-cell {
  width: 28%;
  text-align: left !important;
  font-weight: 700;
}

.group-races-table .group-obstacle-cell {
  width: 28%;
  text-align: left !important;
}

.group-races-table .group-time-cell {
  width: 13%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.group-standings-sheet {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.group-standings-sheet th:nth-child(1),
.group-standings-sheet td:nth-child(1) {
  width: 13%;
  text-align: center;
}

.group-standings-sheet th:nth-child(2),
.group-standings-sheet td:nth-child(2) {
  width: 16%;
  text-align: center;
}

.group-standings-sheet th:nth-child(3),
.group-standings-sheet td:nth-child(3) {
  width: 36%;
}

.group-standings-sheet th:nth-child(4),
.group-standings-sheet td:nth-child(4) {
  width: 35%;
}

.group-row-highlight,
.group-race-winner {
  background: #65ff4f;
}

.group-wildcard-highlight {
  background: #5de8ff;
}

.group-tally-list {
  display: grid;
}

.group-tally-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--soft-line);
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.1;
}

.group-tally-list > div:last-child {
  border-bottom: 0;
}

.group-tally-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-tally-list strong {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.matchup-card {
  overflow-x: auto;
}

.finals-layout {
  --finals-round-width: 340px;
  --finals-end-width: 330px;
  --finals-line: #8c97a5;
  --finals-strong-line: #171717;
  --finals-yellow: #fff04d;
  --finals-cyan: #35dfea;
  display: grid;
  grid-template-columns: max-content var(--finals-end-width);
  align-items: start;
  gap: 8px;
  width: max-content;
}

.finals-lanes {
  display: grid;
  gap: 5px;
}

.finals-board-reduced[data-first-round="SF"] .finals-lanes {
  gap: 16px;
}

.finals-board-full {
  grid-template-columns: max-content;
}

.finals-board .finals-bracket-layout {
  display: grid;
  grid-template-columns: max-content var(--finals-end-width);
  align-items: center;
  align-self: start;
  gap: 8px;
  width: max-content;
}

.finals-board-final-only .finals-bracket-layout {
  grid-template-columns: var(--finals-end-width);
}

.finals-lane {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.finals-lane-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 12px;
  padding: 1px 6px;
  border: 1px solid #b8c4d1;
  border-radius: 3px;
  background: linear-gradient(90deg, #f8fbfd, #fff);
  color: #050505;
  text-transform: uppercase;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0;
}

.finals-lane-title .vertical-accent {
  width: 4px;
  height: 12px;
}

.finals-round-grid {
  display: grid;
  grid-template-columns: repeat(var(--finals-round-count, 4), var(--finals-round-width));
  gap: 8px;
  align-items: start;
  padding: 3px 0 0;
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.bracket-round-r16 {
  padding-top: 22px;
}

.bracket-round-qf {
  padding-top: 60px;
}

.bracket-round-sf {
  padding-top: 96px;
}

.finals-board-reduced .finals-round-grid > .bracket-round:first-child {
  padding-top: 0;
}

.finals-board-reduced[data-first-round="R16"] .bracket-round-qf {
  padding-top: calc(60px - 22px);
}

.finals-board-reduced[data-first-round="R16"] .bracket-round-sf {
  padding-top: calc(96px - 22px);
}

.finals-board-reduced[data-first-round="QF"] .bracket-round-sf {
  padding-top: calc(96px - 60px);
}

.finals-round-title {
  margin: 0;
  border: 1px solid var(--finals-strong-line);
  background: linear-gradient(180deg, #fff879, var(--finals-yellow));
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  padding: 0 4px;
  text-align: center;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: inherit;
  cursor: default;
}

.finals-focus-trigger {
  cursor: zoom-in;
}

.bracket-match {
  border: 1px solid #b6bec9;
  border-radius: 4px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.bracket-match .race-title {
  display: none;
}

.finals-layout .mini-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 8.5px;
}

.finals-layout .mini-table td,
.finals-layout .mini-table th {
  padding: 1px 2px;
  border-bottom: 1px solid #d5dbe4;
  vertical-align: middle;
}

.finals-layout .mini-table thead th {
  height: 11px;
  padding: 0 2px;
  background: #eaf2f8;
  color: #111;
  text-align: center;
  text-transform: uppercase;
  font-size: 6.6px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}

.finals-layout .mini-table tr:last-child td {
  border-bottom: 0;
}

.finals-layout .winner-row {
  background: #42f337;
}

.finals-col-run {
  width: 24px;
}

.finals-col-seed {
  width: 26px;
}

.finals-col-name {
  width: 70px;
}

.finals-col-obstacle {
  width: 142px;
}

.finals-col-time {
  width: 60px;
}

.finals-layout .finals-run-cell {
  text-align: center;
  vertical-align: middle;
  font-weight: 900;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  background: #f7f9fb;
  border-right: 1px solid #aeb7c2;
}

.finals-layout .finals-current-run {
  background: #ffeb3b;
  box-shadow: none;
}

.finals-layout .finals-run-input {
  width: 20px;
  height: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  font: inherit;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  padding: 0;
}

.finals-layout .finals-run-input:focus {
  outline: 1px solid rgba(17, 17, 17, 0.55);
  background: #fffbe7;
}

.finals-layout .finals-seed-cell {
  text-align: center;
}

.finals-layout .name-col {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  font-weight: 800;
  white-space: nowrap;
}

.finals-layout .finals-name-swap {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1.05;
  cursor: pointer;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.finals-layout .finals-fitted-name {
  --finals-name-default-size: 8.5px;
  --finals-name-slight-size: 7.6px;
  --finals-name-compact-size: 6.6px;
  --finals-name-tight-size: 5.6px;
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 3px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-size: var(--finals-name-default-size);
  line-height: inherit;
}

.finals-layout .finals-fitted-name.finals-name-size-slight {
  font-size: var(--finals-name-slight-size);
}

.finals-layout .finals-fitted-name.finals-name-size-compact {
  font-size: var(--finals-name-compact-size);
}

.finals-layout .finals-fitted-name.finals-name-size-tight {
  font-size: var(--finals-name-tight-size);
}

.finals-layout .obstacle-select {
  width: 136px;
  min-width: 0;
  min-height: 16px;
  height: 16px;
  padding: 0 1px;
  font-size: 8.2px;
}

.finals-layout .finals-mt-result-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 136px;
  min-width: 0;
}

.finals-layout .finals-mt-distance-input {
  width: 100%;
  min-width: 0;
  min-height: 16px;
  height: 16px;
  padding: 0 2px;
  font-size: 8.2px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.finals-layout .finals-mt-distance-input.is-invalid {
  border-color: var(--red);
  background: #fff4f5;
}

.finals-layout .time-input {
  width: 56px;
  min-height: 16px;
  height: 16px;
  padding: 0 1px;
  font-size: 8.2px;
}

.finals-layout .seed-chip {
  min-width: 18px;
  height: 14px;
  padding: 0 2px;
  font-size: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--lane);
  color: #fff;
  font-weight: 900;
}

.finals-layout .tag-stack {
  align-items: center;
}

.finals-layout .tag {
  min-height: 10px;
  padding: 0 2px;
  font-size: 6px;
  line-height: 1.05;
}

.finals-board .finals-end-zone {
  display: grid;
  align-items: center;
  align-self: stretch;
  width: var(--finals-end-width);
}

.finals-board-full .finals-end-zone {
  grid-template-rows: minmax(min-content, 1fr) auto minmax(0, 1fr);
  row-gap: 8px;
}

.finals-board-full .finals-tally-wrap {
  grid-row: 1;
}

.finals-board-full .final-match-panel {
  grid-row: 2;
}

.finals-board .finals-tally-wrap {
  align-self: start;
  width: var(--finals-end-width);
}

.finals-board .final-match-panel {
  width: 100%;
  border-color: transparent;
  border-radius: 3px;
  overflow: hidden;
}

.final-match-panel .panel-title {
  width: 100%;
  height: 13px;
  min-height: 13px;
  background: linear-gradient(180deg, #fff879, var(--finals-yellow));
  border: 1px solid var(--finals-strong-line);
  padding: 0 6px;
  font-size: 9.4px;
  line-height: 1;
  font-weight: 950;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: inherit;
}

.final-match-panel .panel-title .vertical-accent {
  display: none;
}

.final-match-panel .bracket-match {
  margin: 4px 0;
}

.finals-tally-wrap .tally-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.finals-tally-wrap .panel-title {
  height: 18px;
  min-height: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  cursor: zoom-in;
}

.finals-tally-wrap .panel-title .vertical-accent {
  width: 4px;
  height: 13px;
  border-radius: 3px;
}

.finals-tally-wrap .tally-list {
  gap: 4px;
  padding: 5px;
  background: #f8fafc;
}

.finals-tally-wrap .tally-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  border: 1px solid #d5dbe4;
  border-radius: 3px;
  padding: 2px 7px;
  background: #fff;
  font-size: 9.4px;
  line-height: 1.08;
}

.finals-tally-wrap .tally-card:nth-child(even) {
  background: #fff;
}

.finals-tally-wrap .tally-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finals-tally-wrap .tally-card strong {
  font-size: 10px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finals-tally-wrap .tally-card .finals-mt-tally-emphasis {
  font-size: inherit;
  font-weight: 900;
  text-align: inherit;
  font-variant-numeric: normal;
}

.finals-tally-wrap .tally-total {
  border-bottom: 0;
  background: #f3f5f8;
  border-top: 1px solid #8d98a6;
}

.finals-focus-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(3, 7, 18, 0.62);
}

.finals-focus-panel {
  position: relative;
  width: min(900px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 30px 18px 18px;
}

.finals-focus-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #cfd7e2;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.finals-focus-layout {
  --finals-round-width: 100%;
  display: block;
  width: 100%;
}

.finals-focus-layout .bracket-round,
.finals-focus-final-section {
  display: grid;
  gap: 8px;
  width: 100%;
}

.finals-focus-layout .bracket-round-r16,
.finals-focus-layout .bracket-round-qf,
.finals-focus-layout .bracket-round-sf {
  padding-top: 0;
}

.finals-focus-layout .finals-round-title,
.finals-focus-final-section .panel-title {
  height: 24px;
  min-height: 24px;
  font-size: 14px;
}

.finals-focus-final-section {
  border: 1px solid var(--finals-strong-line);
  border-radius: 4px;
  overflow: hidden;
}

.finals-focus-final-section .panel-title {
  margin: 0;
  border-bottom: 1px solid var(--finals-strong-line);
  background: linear-gradient(180deg, #fff879, var(--finals-yellow));
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 950;
}

.finals-focus-tally-section {
  width: min(560px, 100%);
  margin: 0 auto;
}

.finals-focus-tally-section .tally-panel {
  border: 1px solid #d6dde6;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: none;
}

.finals-focus-tally-section .panel-title {
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #d6dde6;
  background: #fff;
  color: #111318;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  gap: 14px;
  white-space: nowrap;
}

.finals-focus-tally-section .panel-title .vertical-accent {
  width: 7px;
  height: 24px;
  border-radius: 999px;
}

.finals-focus-tally-section .tally-list {
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
}

.finals-focus-tally-section .tally-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #d5dbe4;
  border-radius: 6px;
  background: #fff;
  color: #111318;
  font-size: 22px;
  line-height: 1.05;
}

.finals-focus-tally-section .tally-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finals-focus-tally-section .tally-card strong {
  font-size: 26px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finals-focus-tally-section .tally-card .finals-mt-tally-emphasis {
  font-size: inherit;
  font-weight: 900;
  text-align: inherit;
  font-variant-numeric: normal;
}

.finals-focus-layout .bracket-match {
  border-radius: 5px;
}

.finals-focus-layout .mini-table {
  font-size: 12px;
}

.finals-focus-layout .mini-table td,
.finals-focus-layout .mini-table th {
  padding: 3px 5px;
}

.finals-focus-layout .mini-table thead th {
  height: 22px;
  font-size: 9px;
}

.finals-focus-layout .finals-col-run {
  width: 44px;
}

.finals-focus-layout .finals-col-seed {
  width: 48px;
}

.finals-focus-layout .finals-col-name {
  width: 160px;
}

.finals-focus-layout .finals-col-obstacle {
  width: 310px;
}

.finals-focus-layout .finals-col-time {
  width: 92px;
}

.finals-focus-layout .finals-run-cell {
  font-size: 14px;
}

.finals-focus-layout .finals-run-input {
  width: 36px;
  height: 26px;
  font-size: 14px;
}

.finals-focus-layout .name-col {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

.finals-focus-layout .finals-name-swap {
  font-size: 12px;
}

.finals-focus-layout .finals-fitted-name {
  --finals-name-default-size: 12px;
  --finals-name-slight-size: 11px;
  --finals-name-compact-size: 10px;
  --finals-name-tight-size: 9px;
}

.finals-focus-layout .seed-chip {
  min-width: 28px;
  height: 22px;
  font-size: 11px;
}

.finals-focus-layout .obstacle-select,
.finals-focus-layout .time-input {
  width: 100%;
  min-height: 26px;
  height: 26px;
  font-size: 12px;
  padding: 0 6px;
}

.finals-focus-layout .finals-mt-result-control {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.finals-focus-layout .finals-mt-distance-input {
  min-height: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 12px;
}

.finals-focus-layout .time-input {
  text-align: center;
}

.bracket-match-final .winner-row {
  background: #48dce8;
}

.groups-shell {
  --group-stages-sticky-top: 10px;
  background: var(--shell);
}

.groups-shell .workspace-zoom-shell {
  margin: 24px;
  width: auto;
  min-height: calc(100vh - 124px);
  padding: 0;
  background: var(--canvas);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
  overflow: visible;
}

.groups-shell .workspace {
  margin: 0;
  padding: 10px 10px;
  min-height: calc(100vh - 124px);
  border-radius: 6px;
  box-shadow: none;
  background: var(--canvas);
  zoom: var(--dashboard-zoom, 1);
}

.groups-shell .workspace-head {
  gap: 43px;
  margin: 13px 13px 16px;
  align-items: stretch;
}

.groups-shell .section-kicker {
  margin-bottom: 5px;
  font-size: 16px;
}

.groups-shell .workspace h2 {
  margin-bottom: 5px;
  font-size: 49px;
  line-height: 1.05;
}

.groups-shell .workspace p {
  font-size: 21px;
  line-height: 1.2;
}

.groups-shell .action-row {
  gap: 13px;
}

.groups-shell .action-row .btn {
  min-height: 48px;
  padding: 0 19px;
  font-size: 16px;
}

.groups-shell .action-row .btn svg {
  width: 24px;
  height: 24px;
}

.groups-shell .run-back-btn {
  width: 43px;
  height: 40px;
  font-size: 20px;
}

.groups-shell .queue-status {
  font-size: 15px;
}

.groups-shell .stats-readout {
  display: none;
}

.groups-shell .group-sheet {
  gap: 8px;
}

.groups-shell .group-sheet-header {
  display: none;
}

/* Group Stages reversible color polish: remove or tune this variable block to undo the color pass. */
.groups-shell {
  --group-polish-title-bg: #f8fafc;
  --group-polish-header-bg: #f7fbff;
  --group-polish-table-head: #eaf3fb;
  --group-polish-soft-bg: #f8fbff;
  --group-polish-line: #9eacba;
}

.groups-shell .group-worksheet {
  --group-block-width: 440px;
  --group-grid-gap: 14px;
  grid-template-columns: 390px max-content;
  gap: 12px;
  width: max-content;
  max-width: none;
}

.groups-shell .group-summary-column {
  gap: 8px;
}

@media screen {
  .groups-shell .group-summary-column {
    position: sticky;
    top: var(--group-stages-sticky-top);
    align-self: start;
  }
}

.groups-shell .group-matchups-area {
  position: relative;
  width: max-content;
  max-width: none;
  min-width: 0;
}

.groups-shell .group-matchups-title {
  width: 100%;
  box-sizing: border-box;
}

.groups-shell .group-summary-section,
.groups-shell .group-worksheet-block,
.groups-shell .group-matchups-title {
  border: 1px solid #aeb7c2 !important;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.groups-shell .group-section-title,
.groups-shell .group-block-title,
.groups-shell .group-matchups-title {
  background: var(--group-polish-title-bg) !important;
  color: #111;
  border-bottom: 1px solid var(--group-polish-line) !important;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.groups-shell .group-section-title {
  min-height: 28px;
  padding: 6px 8px;
}

.groups-shell .group-section-title::before,
.groups-shell .group-block-title::before,
.groups-shell .group-matchups-title::before {
  background: var(--red);
  width: 3px;
  height: 14px;
  border-radius: 3px;
}

.groups-shell .group-matchups-title {
  min-height: 30px;
  padding: 6px 8px 6px 16px;
}

.groups-shell .group-matchups-title h3 {
  font-size: 15px;
  font-weight: 900;
}

.groups-shell .group-matchups-title span,
.groups-shell .group-matchups-title strong {
  color: #555;
  font-size: 11px;
}

.groups-shell .group-worksheet-grid {
  grid-template-columns: repeat(4, var(--group-block-width));
  width: max-content;
  max-width: none;
  justify-content: start;
  align-items: start;
  gap: var(--group-grid-gap);
  padding: 5px 0 8px;
}

.groups-shell .group-worksheet-block {
  width: var(--group-block-width);
  max-width: var(--group-block-width);
}

.groups-shell .group-block-title {
  min-height: 24px;
  justify-content: flex-start;
  padding: 4px 18px 4px 14px;
  cursor: zoom-in;
}

.groups-shell .group-block-title strong,
.groups-shell .group-block-title span {
  font-size: 10.4px;
  line-height: 1.1;
}

.groups-shell .group-block-title span {
  color: #555;
}

.groups-shell .group-title-select {
  width: 98px;
  height: 18px;
  min-height: 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #111;
  font-size: 10.4px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 14px 0 0;
  outline: 0;
  cursor: pointer;
}

.groups-shell .group-title-select:hover,
.groups-shell .group-title-select:focus {
  border-color: #aeb7c2;
  background: #f8fafc;
}

.groups-shell .group-sheet-table {
  font-size: 12.7px;
  line-height: 1.2;
  border-collapse: collapse;
}

.groups-shell .group-sheet-table th,
.groups-shell .group-sheet-table td {
  border-right: 1px solid #bcc4ce !important;
  border-bottom: 1px solid #c8d0da !important;
  padding: 4px 5px;
  background-clip: padding-box;
}

.groups-shell .group-sheet-table th {
  background: var(--group-polish-table-head) !important;
  color: #111;
  font-size: 9.1px;
  font-weight: 900;
  overflow: visible;
  text-overflow: clip;
  padding-left: 1px;
  padding-right: 1px;
}

.groups-shell .group-worksheet-block .group-sheet-table th,
.groups-shell .group-worksheet-block .group-sheet-table td {
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
}

.groups-shell .group-races-table th {
  text-align: center !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap;
}

.groups-shell .group-races-table th:nth-child(5) {
  font-size: 8.4px;
  padding-left: 4px !important;
  padding-right: 4px !important;
  overflow: visible;
  text-overflow: initial;
}

.groups-shell .group-races-table th:nth-child(6) {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

.groups-shell .group-sheet-table th:last-child,
.groups-shell .group-sheet-table td:last-child {
  border-right: 0 !important;
}

.groups-shell .group-races-table .group-col-run,
.groups-shell .group-races-table th:nth-child(1) {
  width: 9% !important;
}

.groups-shell .group-races-table .group-col-seed,
.groups-shell .group-races-table th:nth-child(2) {
  width: 10% !important;
}

.groups-shell .group-races-table .group-col-letter,
.groups-shell .group-races-table th:nth-child(3) {
  width: 8% !important;
}

.groups-shell .group-races-table .group-col-name,
.groups-shell .group-races-table th:nth-child(4) {
  width: 26% !important;
}

.groups-shell .group-races-table .group-col-obstacle,
.groups-shell .group-races-table th:nth-child(5) {
  width: 28% !important;
}

.groups-shell .group-races-table .group-col-time,
.groups-shell .group-races-table th:nth-child(6) {
  width: 19% !important;
}

.groups-shell .group-races-table .group-run-cell {
  width: 9% !important;
  padding: 0;
  position: relative;
  background: var(--group-polish-soft-bg);
  border-right: 1px solid #aeb7c2 !important;
  border-bottom: 2px solid var(--group-polish-line) !important;
  overflow: visible;
  text-overflow: clip;
}

.groups-shell .group-races-table tbody tr:nth-child(even) td {
  border-bottom: 2px solid var(--group-polish-line) !important;
}

.groups-shell .group-races-table tbody tr:last-child td,
.groups-shell .group-races-table tbody tr:nth-last-child(2) .group-run-cell {
  border-bottom: 1px solid #aeb7c2 !important;
}

.groups-shell .group-races-table tbody tr:nth-child(odd) td {
  border-top-color: #dde3ea !important;
}

.groups-shell .group-run-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 11.5px;
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  padding: 0;
  outline: 0;
}

.groups-shell .group-run-input::-webkit-outer-spin-button,
.groups-shell .group-run-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.groups-shell .group-current-run .group-run-input {
  background: #ffeb3b;
  box-shadow: none;
}

.groups-shell .group-seed-letter {
  width: 8% !important;
  min-width: 0;
  color: #fff;
  font-weight: 900;
  font-size: 11.6px;
  text-align: center !important;
  letter-spacing: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.groups-shell .group-seed-letter.lane-red {
  background: #d3082c !important;
}

.groups-shell .group-seed-letter.lane-blue {
  background: #1464b4 !important;
}

.groups-shell .group-obstacle-cell .obstacle-control,
.groups-shell .group-obstacle-cell .obstacle-select,
.groups-shell .group-time-cell .time-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 25px;
  height: 25px;
  box-sizing: border-box;
  font-size: 11.4px;
  line-height: 1;
  padding: 0 3px;
}

.groups-shell .group-obstacle-cell .obstacle-control {
  gap: 0;
}

.groups-shell .group-obstacle-cell .obstacle-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  padding-left: 2px;
  padding-right: 2px;
  text-overflow: initial;
}

.groups-shell .group-seed-number {
  width: 10% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible;
  text-overflow: clip;
  font-size: 11.2px;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-name-cell {
  width: 26% !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
}

.groups-shell .group-name-swap {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
  line-height: 1.05;
  cursor: pointer;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.group-fitted-name {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-size: var(--group-name-default-size);
  line-height: inherit;
}

.groups-shell .group-worksheet-block .group-fitted-name-matchup,
.groups-shell .group-worksheet-block .group-fitted-name-standings {
  padding-right: 0;
  overflow: visible;
  text-overflow: initial;
}

.group-fitted-name-matchup {
  --group-name-default-size: 11.4px;
  --group-name-slight-size: 10.8px;
  --group-name-compact-size: 9.8px;
  --group-name-tight-size: 8.5px;
  --group-name-minimum-size: 8px;
}

.group-fitted-name-summary {
  --group-name-default-size: 13.4px;
  --group-name-slight-size: 12.5px;
  --group-name-compact-size: 11.5px;
  --group-name-tight-size: 9.5px;
}

.group-fitted-name-standings {
  --group-name-default-size: 12.7px;
  --group-name-slight-size: 11.8px;
  --group-name-compact-size: 10.8px;
  --group-name-tight-size: 9px;
  --group-name-minimum-size: 8px;
}

.group-fitted-name-finishers {
  --group-name-default-size: clamp(18px, 2.15vh, 28px);
  --group-name-slight-size: clamp(17px, 2vh, 25px);
  --group-name-compact-size: clamp(15.5px, 1.8vh, 22px);
  --group-name-tight-size: clamp(13.5px, 1.6vh, 19px);
}

.group-fitted-name-clean {
  --group-name-default-size: 25px;
  --group-name-slight-size: 23px;
  --group-name-compact-size: 21px;
  --group-name-tight-size: 17px;
}

.group-fitted-name.group-name-size-slight {
  font-size: var(--group-name-slight-size);
}

.group-fitted-name.group-name-size-compact {
  font-size: var(--group-name-compact-size);
}

.group-fitted-name.group-name-size-tight {
  font-size: var(--group-name-tight-size);
}

.group-fitted-name.group-name-size-minimum {
  font-size: var(--group-name-minimum-size, var(--group-name-tight-size));
}

.group-fitted-obstacle-control {
  --group-contained-default-size: 11.4px;
  --group-contained-slight-size: 10.6px;
  --group-contained-compact-size: 9.7px;
  --group-contained-tight-size: 8.8px;
  --group-contained-minimum-size: 8px;
  --group-control-text-reserve: 16px;
  position: relative;
  width: 100%;
  min-width: 0;
}

.groups-shell .group-obstacle-cell .obstacle-select.group-fitted-obstacle-select {
  font-family: inherit;
  font-size: var(--group-control-font-size, var(--group-contained-default-size));
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.group-obstacle-fit-probe {
  font-size: var(--group-contained-default-size);
}

.group-obstacle-fit-probe {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: none;
  height: 25px;
  box-sizing: border-box;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: visible;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 25px;
}

.group-fitted-value {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
  font-size: var(--group-contained-default-size);
  line-height: inherit;
}

.group-fitted-value-best-result {
  --group-contained-default-size: 10.8px;
  --group-contained-slight-size: 10.1px;
  --group-contained-compact-size: 9.3px;
  --group-contained-tight-size: 8.6px;
  --group-contained-minimum-size: 8px;
}

.group-fitted-value.group-contained-size-slight,
.group-obstacle-fit-probe.group-contained-size-slight {
  font-size: var(--group-contained-slight-size);
}

.group-fitted-value.group-contained-size-compact,
.group-obstacle-fit-probe.group-contained-size-compact {
  font-size: var(--group-contained-compact-size);
}

.group-fitted-value.group-contained-size-tight,
.group-obstacle-fit-probe.group-contained-size-tight {
  font-size: var(--group-contained-tight-size);
}

.group-fitted-value.group-contained-size-minimum,
.group-obstacle-fit-probe.group-contained-size-minimum {
  font-size: var(--group-contained-minimum-size);
}

.groups-shell .group-obstacle-cell {
  width: 28% !important;
  padding-left: 2px !important;
  padding-right: 3px !important;
  overflow: visible;
  text-overflow: initial;
}

.groups-shell .group-time-cell {
  width: 19% !important;
  padding-left: 3px !important;
  padding-right: 6px !important;
}

.groups-shell .group-time-cell .time-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 11.4px;
  padding-left: 1px;
  padding-right: 1px;
}

.groups-shell .group-time-cell .time-input.time-inc,
.groups-shell .group-time-cell .time-input.time-dq {
  text-align: center;
}

.groups-shell .group-summary-table th,
.groups-shell .group-summary-table td {
  padding: 6px 4px;
  font-size: 13.4px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.groups-shell .group-summary-table th {
  font-size: 12.4px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  white-space: nowrap;
}

.groups-shell .group-summary-table th:nth-child(1),
.groups-shell .group-summary-table td:nth-child(1) {
  width: 11%;
  padding-left: 2px;
  padding-right: 2px;
  text-align: center !important;
  overflow: visible;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-summary-table th:nth-child(2),
.groups-shell .group-summary-table td:nth-child(2) {
  width: 31%;
  padding-left: 4px;
  padding-right: 4px;
}

.groups-shell .group-summary-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.groups-shell .group-summary-table th:nth-child(3),
.groups-shell .group-summary-table td:nth-child(3) {
  width: 42%;
  padding-left: 4px;
  padding-right: 4px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.groups-shell .group-summary-table th:nth-child(4),
.groups-shell .group-summary-table td:nth-child(4) {
  width: 16%;
  padding-left: 3px;
  padding-right: 3px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-summary-table td.group-time-status {
  text-align: center;
}

.groups-shell .group-row-highlight,
.groups-shell .group-race-winner {
  background: #5cff43 !important;
  color: #071307;
}

.groups-shell .group-standings-sheet .group-row-highlight {
  font-weight: 800;
}

.groups-shell .group-standings-sheet .group-wildcard-highlight {
  background: #4be7ff !important;
  color: #062f36;
  font-weight: 800;
}

.groups-shell .group-summary-table .group-row-highlight {
  font-weight: 800;
}

.groups-shell .group-summary-table .group-summary-winner-row {
  background: #fff !important;
  color: #111;
  font-weight: 800;
}

.groups-shell .group-races-table .group-race-winner {
  font-weight: 800;
}

.groups-shell .group-wildcard-highlight {
  background: #4be7ff !important;
  color: #062f36;
}

.groups-shell .group-summary-table .group-wildcard-highlight {
  font-weight: 800;
}

.groups-shell .group-standings-sheet {
  margin-top: 8px;
  border-top: 1px solid var(--group-polish-line) !important;
}

.groups-shell .group-standings-sheet th,
.groups-shell .group-standings-sheet td {
  padding-top: 4.5px;
  padding-bottom: 4.5px;
}

.groups-shell .group-standings-sheet th:nth-child(1),
.groups-shell .group-standings-sheet td:nth-child(1) {
  width: 12%;
  overflow: visible;
  text-overflow: clip;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-standings-sheet th:nth-child(2),
.groups-shell .group-standings-sheet td:nth-child(2) {
  width: 15%;
}

.groups-shell .group-standings-sheet th:nth-child(3),
.groups-shell .group-standings-sheet td:nth-child(3) {
  width: 33%;
}

.groups-shell .group-standings-sheet td.group-standing-name-cell {
  padding-left: 3px;
  padding-right: 3px;
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
}

.groups-shell .group-standings-sheet th:nth-child(4),
.groups-shell .group-standings-sheet td:nth-child(4) {
  width: 40%;
}

.groups-shell .group-standings-sheet td.group-best-result-cell {
  padding-left: 3px;
  padding-right: 3px;
  font-size: 10.8px;
  overflow: visible;
  text-overflow: initial;
  white-space: nowrap;
}

.groups-shell .group-tally-list > div {
  min-height: 27px;
  border-bottom: 1px solid #c8d0da;
  padding: 5px 7px;
  font-size: 14px;
}

.groups-shell .group-section-title.is-focus-trigger {
  cursor: zoom-in;
}

.groups-shell .group-section-title.is-focus-trigger:hover {
  background: #f8fafc;
}

.groups-shell .group-worksheet-grid.is-focus-dimmed {
  opacity: 0.32;
}

.groups-shell .group-matchups-area.is-group-focus-open > .group-matchups-title,
.groups-shell .group-matchups-area.is-group-focus-open > .group-worksheet-grid {
  opacity: 0.38;
  filter: blur(2px);
  pointer-events: none;
}

.groups-shell .group-focus-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  min-height: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 7vh, 72px) 24px;
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
}

.groups-shell .group-focus-card {
  --group-block-width: 620px;
  width: var(--group-block-width);
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 96px);
  position: relative;
  overflow: auto;
  filter: none;
}

.groups-shell .group-focus-layer-group {
  background: rgba(255, 255, 255, 0.16);
}

.groups-shell .group-focus-card-group {
  --group-block-width: 806px;
  position: absolute;
  z-index: 82;
  top: 50%;
  left: 50%;
  width: var(--group-block-width);
  max-width: min(calc(100% - 48px), calc(100vw - 80px));
  max-height: calc(100vh - 96px);
  transform: translate(-50%, -50%);
}

.groups-shell .group-focus-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border: 1px solid #b7c0cb;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.groups-shell .group-focus-card .group-worksheet-block {
  width: var(--group-block-width);
  max-width: 100%;
  border-color: #5d6672 !important;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.28);
}

.groups-shell .group-focus-card .group-block-title {
  cursor: zoom-out;
}

.groups-shell .group-focus-card .group-races-table,
.groups-shell .group-focus-card .group-standings-sheet {
  font-size: 13px;
  line-height: 1.2;
}

.groups-shell .group-focus-card-group .group-block-title {
  min-height: 42px;
  padding: 7px 44px 7px 16px;
}

.groups-shell .group-focus-card-group .group-title-select {
  width: min(220px, calc(100% - 40px));
  height: 28px;
  min-height: 28px;
  font-size: 21px;
  line-height: 1;
}

.groups-shell .group-focus-card-group .group-block-title strong,
.groups-shell .group-focus-card-group .group-block-title span {
  font-size: 13px;
  line-height: 1.2;
}

.groups-shell .group-focus-card-group .group-races-table th,
.groups-shell .group-focus-card-group .group-standings-sheet th {
  font-size: 9px;
  line-height: 1.2;
}

.groups-shell .group-focus-card-group .group-races-table td,
.groups-shell .group-focus-card-group .group-standings-sheet td,
.groups-shell .group-focus-card-group .group-standings-sheet td:nth-child(4) {
  font-size: 13px;
  line-height: 1.2;
}

.groups-shell .group-focus-card-group .group-run-input,
.groups-shell .group-focus-card-group .group-seed-number,
.groups-shell .group-focus-card-group .group-seed-letter,
.groups-shell .group-focus-card-group .group-time-cell .time-input {
  font-size: 13px;
  line-height: 1.2;
}

.groups-shell .group-focus-card-group .group-fitted-name-matchup,
.groups-shell .group-focus-card-group .group-fitted-name-standings {
  --group-name-default-size: 13px;
  --group-name-slight-size: 12.2px;
  --group-name-compact-size: 11.4px;
  --group-name-tight-size: 10.5px;
  --group-name-minimum-size: 9.6px;
}

.groups-shell .group-focus-card-group .group-fitted-obstacle-control,
.groups-shell .group-focus-card-group .group-fitted-value-best-result {
  --group-contained-default-size: 13px;
  --group-contained-slight-size: 12.2px;
  --group-contained-compact-size: 11.4px;
  --group-contained-tight-size: 10.5px;
  --group-contained-minimum-size: 9.6px;
}

.groups-shell .group-focus-card-group .group-races-table th,
.groups-shell .group-focus-card-group .group-races-table td {
  padding-top: 5.5px;
  padding-bottom: 5.5px;
}

.groups-shell .group-focus-card-group .group-obstacle-cell .obstacle-control,
.groups-shell .group-focus-card-group .group-obstacle-cell .obstacle-select,
.groups-shell .group-focus-card-group .group-time-cell .time-input {
  min-height: 32px;
  height: 32px;
}

.groups-shell .group-focus-card-group .group-obstacle-fit-probe {
  height: 32px;
  line-height: 32px;
}

.groups-shell .group-focus-card-group .group-standings-sheet th,
.groups-shell .group-focus-card-group .group-standings-sheet td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.groups-shell .group-summary-focus-card {
  width: min(760px, calc(100vw - 88px));
  max-width: calc(100vw - 88px);
}

.groups-shell .group-summary-focus-card.group-summary-focus-advancers {
  width: min(1180px, calc(100vw - 88px));
  max-width: calc(100vw - 88px);
  max-height: none;
  overflow: visible;
}

.groups-shell .group-summary-focus-card .group-summary-section {
  width: 100%;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.26);
}

.groups-shell .group-summary-focus-card .group-section-title {
  padding-right: 42px;
}

.groups-shell .group-summary-focus-card .group-summary-table th,
.groups-shell .group-summary-focus-card .group-summary-table td {
  padding: 8px 10px;
  font-size: 17px;
  white-space: nowrap;
  overflow: visible;
}

.groups-shell .group-summary-focus-card .group-summary-table th {
  font-size: 13px;
  white-space: nowrap;
}

.groups-shell .group-summary-focus-card .group-summary-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.groups-shell .group-summary-focus-card .group-summary-table-grid.is-balanced {
  gap: 14px;
  padding: 12px;
  background: #fff;
}

.groups-shell .group-summary-focus-card .group-summary-table-grid.is-balanced .group-summary-table {
  border: 1px solid #aeb7c2;
}

.groups-shell .group-summary-focus-card .group-tally-list > div {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 20px;
}

.groups-shell .group-summary-focus-card .group-tally-list strong {
  font-size: 22px;
}

.groups-shell .group-tally-list strong {
  font-size: 15.5px;
  font-weight: 800;
}

.groups-shell .group-finishers-btn {
  width: 100%;
  min-height: 32px;
  margin-top: 7px;
  border: 1px solid #111;
  border-radius: 3px;
  background: #0b0b0b;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.groups-shell .group-finishers-btn:hover {
  background: #1f2937;
}

.groups-shell .group-finishers-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
}

.groups-shell .group-finishers-panel {
  display: flex;
  flex-direction: column;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #111;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.groups-shell .group-finishers-head {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(48px, 6vh, 68px);
  padding: 6px clamp(52px, 5vw, 76px);
  border-bottom: 2px solid #111;
  background: #f5dfc3;
}

.groups-shell .group-finishers-head h3 {
  margin: 0;
  flex: 1;
  color: #000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(26px, 3.2vh, 40px);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.groups-shell .group-finishers-close {
  position: absolute;
  top: 50%;
  right: 12px;
  width: clamp(32px, 4vh, 42px);
  height: clamp(32px, 4vh, 42px);
  transform: translateY(-50%);
  border: 1px solid #111;
  border-radius: 3px;
  background: #fff;
  font-size: clamp(17px, 2vh, 22px);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.groups-shell .group-finishers-table {
  flex: 0 0 auto;
  width: max-content;
  max-width: calc(100vw - 76px);
  height: auto;
  min-height: 0;
  margin: 8px 14px 14px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: clamp(18px, 2.15vh, 28px);
  line-height: 1.05;
}

.groups-shell .group-finishers-table th,
.groups-shell .group-finishers-table td {
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  padding: 1px clamp(6px, 0.6vw, 10px);
  color: #000;
  vertical-align: middle;
  white-space: nowrap;
}

.groups-shell .group-finishers-table th {
  background: #d9d9d9;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: clamp(16px, 1.65vh, 21px);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.groups-shell .group-finishers-table th:last-child,
.groups-shell .group-finishers-table td:last-child {
  border-right: 0;
}

.groups-shell .group-finishers-table tbody tr:last-child td {
  border-bottom: 0;
}

.groups-shell .group-finishers-table th:nth-child(1),
.groups-shell .group-finishers-table td:nth-child(1) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  background: #d9e9f8;
  text-align: center;
  font-weight: 900;
}

.groups-shell .group-finishers-table th:nth-child(2),
.groups-shell .group-finishers-table td:nth-child(2) {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-finishers-table th:nth-child(3),
.groups-shell .group-finishers-table td:nth-child(3) {
  width: max-content;
  max-width: min(440px, 40vw);
  text-align: left;
  font-weight: 900;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.groups-shell .group-finishers-table .group-fitted-name-finishers {
  width: max-content;
  max-width: min(440px, 40vw);
  overflow: visible;
}

.groups-shell .group-finishers-table th:nth-child(4),
.groups-shell .group-finishers-table td:nth-child(4) {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  text-align: center;
  font-weight: 900;
}

.groups-shell .group-finishers-table th:nth-child(5),
.groups-shell .group-finishers-table td:nth-child(5) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  text-align: center;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.groups-shell .group-finishers-empty {
  padding: 46px 24px;
  color: #4b5563;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.groups-shell .group-day-toggle {
  display: inline-flex;
  gap: 0;
  width: fit-content;
  margin: 8px 0 0 221px;
  border: 1px solid #aeb7c2;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.groups-shell .group-day-toggle button {
  width: 28px;
  height: 22px;
  border: 0;
  border-right: 1px solid #aeb7c2;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 900;
}

.groups-shell .group-day-toggle button:last-child {
  border-right: 0;
}

.groups-shell .group-day-toggle button.active {
  background: #111;
  color: #fff;
}

.groups-shell .legend {
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
}

.groups-shell .legend span {
  gap: 6px;
}

.groups-shell .swatch {
  width: 18px;
  height: 12px;
}

.groups-shell .swatch.men {
  background: #5cff43;
}

.swatch.wildcard {
  background: #4be7ff;
}

@media (max-width: 900px) {
  .threeway-round-config-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .group-card-grid,
  .matchup-grid,
  .config-layout {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .hero-row {
    flex-direction: column;
  }

  .action-row,
  .table-tools {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .home-toolbar,
  .dash-toolbar {
    padding: 0 16px;
    gap: 12px;
  }

  .home-main,
  .workspace,
  .workspace-zoom-shell {
    margin: 0;
  }

  .workspace {
    padding: 18px;
  }

  .workspace h2,
  .modal h2 {
    font-size: 30px;
  }

  .hero-row h2 {
    font-size: 36px;
  }

  .search-box {
    width: 100%;
  }
}

@media print {
  .qualifying-preview-print-name {
    display: inline;
  }

  html.printing-counter-standings,
  body.printing-counter-standings,
  body.printing-counter-standings #root,
  body.printing-counter-standings .counter-shell {
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body.printing-counter-standings .counter-shell {
    display: block !important;
    padding: var(--electron-pdf-content-inset, 0.5in);
  }

  body.printing-counter-standings .counter-content {
    display: contents !important;
  }

  body.printing-counter-standings .counter-shell > :not(.counter-content),
  body.printing-counter-standings .counter-content > :not(.counter-standings-export) {
    display: none !important;
  }

  body.printing-counter-standings .counter-standings-export {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    color: #111;
    font-size: 13px;
  }

  .counter-standings-export h1 {
    margin: 0 0 8px;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .counter-standings-export h2 {
    margin: 18px 0 10px;
    font-size: 16px;
    break-after: avoid;
  }

  .counter-export-warning {
    padding: 8px;
    border: 1px solid #d7b04c;
    background: #fff6d8;
    overflow-wrap: anywhere;
  }

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

  .counter-export-table thead {
    display: table-header-group;
  }

  .counter-export-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .counter-export-table th,
  .counter-export-table td {
    padding: 8px;
    border-bottom: 1px solid #d8dce2;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .counter-export-table th:first-child,
  .counter-export-table td:first-child {
    width: 64px;
    text-align: center;
  }

  .counter-export-table .is-cut-line td {
    border-bottom: 3px solid var(--red);
  }

  .counter-export-table .is-cut-line-tied td {
    border-bottom-color: var(--blue);
  }

  .counter-export-table th:nth-child(n + 3),
  .counter-export-table td:nth-child(n + 3) {
    width: 96px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  html,
  body {
    background: #fff !important;
  }

  .threeway-live-board {
    display: none !important;
  }

  .threeway-export-board {
    display: block !important;
  }

  .threeway-sheet {
    width: var(--threeway-export-width);
    max-width: none;
  }

  .threeway-export-board,
  .threeway-export-grid,
  .threeway-export-board .threeway-leaderboard-rail,
  .threeway-export-board .threeway-heat-deck,
  .threeway-export-board .threeway-tally-rail,
  .threeway-export-board .threeway-heat-section,
  .threeway-export-board .threeway-heat-columns {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .threeway-export-grid,
  .threeway-export-grid > *,
  .threeway-export-board .threeway-heat-columns,
  .threeway-export-board .threeway-heat-block {
    align-items: start;
    align-self: start;
  }

  .threeway-export-board .threeway-leaderboard-rail,
  .threeway-export-board .threeway-heat-deck,
  .threeway-export-board .threeway-tally-rail,
  .threeway-export-board .threeway-heat-section,
  .threeway-export-board .threeway-rail-round,
  .threeway-export-board .threeway-summary-board {
    break-inside: auto;
    page-break-inside: auto;
  }

  .threeway-export-board .threeway-summary-board {
    overflow: visible;
  }

  .threeway-export-board .threeway-rail-round-head,
  .threeway-export-board .threeway-summary-title,
  .threeway-export-board .threeway-heat-round-head,
  .threeway-export-board .threeway-heat-head,
  .threeway-export-board .threeway-tally-panel .panel-title {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .threeway-export-board .threeway-summary-table thead,
  .threeway-export-board .threeway-heat-table thead {
    display: table-header-group;
  }

  .threeway-export-board .threeway-summary-table tr,
  .threeway-export-board .threeway-heat-table tr,
  .threeway-export-board .threeway-heat-block,
  .threeway-export-board .threeway-tally-panel .tally-panel {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .no-print,
  .dash-toolbar,
  .home-shell,
  .brand-stripe,
  .qualifying-focus-layer,
  .modal-backdrop {
    display: none !important;
  }

  .dashboard-shell {
    background: #fff !important;
  }

  .workspace {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .workspace-zoom-shell {
    margin: 0;
    height: auto !important;
  }

  .workspace-zoom-shell .workspace {
    zoom: 1 !important;
    transform: none !important;
  }

  .finals-shell,
  .finals-shell .workspace-zoom-shell,
  .finals-shell .workspace {
    background: #fff !important;
  }

  .finals-shell .workspace-zoom-shell,
  .finals-shell .workspace {
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .finals-shell .workspace {
    padding-bottom: 0 !important;
  }

  .finals-shell .finals-obstacle-cell .obstacle-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
  }

  .qualifying-shell .workspace-zoom-shell,
  .groups-shell .workspace-zoom-shell {
    margin: 0 !important;
    min-height: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .qualifying-shell .workspace,
  .groups-shell .workspace {
    min-height: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .qualifying-shell .obstacle-select,
  .qualifying-shell .time-input {
    appearance: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  body.printing-clean-groups * {
    visibility: hidden !important;
  }

  body.printing-clean-groups .clean-groups-overlay,
  body.printing-clean-groups .clean-groups-overlay * {
    visibility: visible !important;
  }

  body.printing-clean-groups .clean-groups-overlay {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    background: #fff;
  }

  body.printing-clean-groups .clean-groups-dialog {
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.printing-clean-groups .clean-groups-toolbar {
    position: static;
  }

  body.printing-clean-groups .group-clean-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.printing-clean-groups .clean-groups-actions {
    display: none !important;
  }

  body.printing-clean-groups .group-clean-tabs {
    display: none !important;
  }

  .panel {
    break-inside: avoid;
  }

  html.electron-pdf-exporting,
  html.electron-pdf-exporting body,
  html.electron-pdf-exporting #root,
  body.electron-pdf-exporting .dashboard-shell,
  body.electron-pdf-exporting .workspace-zoom-shell,
  body.electron-pdf-exporting .workspace {
    min-height: 0 !important;
    height: auto !important;
  }

  body.electron-pdf-exporting,
  body.electron-pdf-exporting .dashboard-shell,
  body.electron-pdf-exporting .workspace-zoom-shell,
  body.electron-pdf-exporting .workspace {
    overflow: visible !important;
  }

  body.electron-pdf-exporting:not(.printing-clean-groups) .dashboard-shell {
    box-sizing: border-box !important;
    padding: var(--electron-pdf-content-inset) !important;
  }

  body.electron-pdf-exporting:not(.printing-clean-groups) .groups-shell .workspace-zoom-shell {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
  }

  body.electron-pdf-exporting:not(.printing-clean-groups) .groups-shell .group-title-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
  }

  body.electron-pdf-exporting.printing-clean-groups .clean-groups-overlay {
    box-sizing: border-box !important;
    inset: var(--electron-pdf-content-inset) !important;
  }

  body.electron-pdf-exporting .workspace-head {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.electron-pdf-exporting .qual-layout {
    grid-template-columns: minmax(0, 44fr) minmax(0, 40fr) minmax(220px, 16fr) !important;
    column-gap: 8px !important;
    break-before: avoid-page;
    page-break-before: avoid;
  }

  body.electron-pdf-exporting .qual-layout .panel {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.electron-pdf-exporting .qual-layout .tally-panel {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.electron-pdf-exporting .qual-layout .data-table {
    table-layout: fixed !important;
  }

  body.electron-pdf-exporting .qual-layout .data-table thead {
    display: table-header-group;
  }

  body.electron-pdf-exporting .qual-layout .data-table th {
    padding-left: 2px !important;
    padding-right: 2px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
  }

  body.electron-pdf-exporting .qual-layout .data-table th:first-child,
  body.electron-pdf-exporting .qual-layout .data-table th:nth-child(4) {
    text-align: center;
  }

  body.printing-clean-groups-threeway-heats .clean-heats-round {
    break-inside: auto;
    page-break-inside: auto;
  }

  body.printing-clean-groups-threeway-heats .clean-heat-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

.counter-shell .counter-back-button {
  min-height: 28px;
  padding: 0 9px;
  color: #222;
  background: #fff;
  border-color: #b9bec6;
}

.counter-shell .data-table.counter-standings-table {
  font-size: 13px;
}

.counter-shell .data-table.counter-standings-table th,
.counter-shell .data-table.counter-standings-table td {
  padding: 10px 12px;
}

.counter-shell .counter-standings-table td.counter-empty-cell {
  text-align: center;
}
