.cps-app {
  position: relative;
  --cps-black: #050505;
  --cps-panel: #101010;
  --cps-panel-2: #171717;
  --cps-line: #2a2a2a;
  --cps-text: #f7f7f7;
  --cps-muted: #b8b8b8;
  --cps-red: #bf0d0c;
  --cps-red-2: #e11b1a;
  --cps-setup-font-scale: 1;
  --cps-table-font-scale: 1;
  color: var(--cps-text);
  background: var(--cps-black);
  border: 1px solid var(--cps-line);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 100%;
  min-height: 0;
  overflow-x: clip;
}

.cps-app ::selection {
  background: rgba(191, 13, 12, 0.88);
  color: #ffffff;
}

html:has(.cps-app),
body:has(.cps-app) {
  background: #000;
}

.cps-faux-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--cps-line);
  background: #080808;
  color: var(--cps-muted);
  font-size: calc(13px * var(--cps-setup-font-scale));
  line-height: 1.4;
  text-align: center;
}

.cps-faux-footer a,
.cps-footer-version {
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.cps-faux-footer a:hover,
.cps-faux-footer a:focus,
.cps-footer-version:hover,
.cps-footer-version:focus {
  color: var(--cps-red-2);
}

.cps-footer-version {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: inherit;
  box-shadow: none;
}

.cps-footer-version:hover,
.cps-footer-version:focus {
  background: transparent;
  text-decoration-color: currentColor;
  outline: none;
}

.cps-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.cps-modal[hidden] {
  display: none;
}

.cps-modal-panel {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 2px solid var(--cps-line);
  border-radius: 8px;
  background: #101010;
  color: var(--cps-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.cps-modal-panel:focus {
  outline: 2px solid rgba(225, 27, 26, 0.75);
  outline-offset: 3px;
}

.cps-modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--cps-line);
  background: #111;
}

.cps-modal-head p {
  margin: 0 0 4px;
  color: var(--cps-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cps-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.cps-modal-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.cps-modal-close:hover,
.cps-modal-close:focus {
  background: transparent;
  color: var(--cps-red-2);
  outline: none;
}

.cps-changelog-list {
  display: grid;
  gap: 0;
}

.cps-changelog-entry {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--cps-line);
}

.cps-changelog-entry:last-child {
  border-bottom: 0;
}

.cps-changelog-version {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.cps-changelog-version h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.cps-changelog-version time {
  color: var(--cps-muted);
  font-size: 13px;
  font-weight: 700;
  font-weight: 700;
}

.cps-changelog-entry ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 20px;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.45;
}

.cps-changelog-empty {
  padding: 20px;
  color: var(--cps-muted);
  font-size: 14px;
}

.cps-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10001;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid var(--cps-line);
  border-radius: 6px;
  background: #111;
  color: var(--cps-text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cps-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cps-toast.is-error {
  border-color: var(--cps-red-2);
  background: #111;
  color: #ff6b66;
  box-shadow: 0 0 0 1px rgba(255, 107, 102, 0.25), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.cps-toast.is-success {
  border-color: #00e676;
  background: #111;
  color: #00e676;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.25), 0 14px 40px rgba(0, 0, 0, 0.45);
}

.cps-help-open {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid #444;
  border-radius: 50%;
  background: #0f0f0f;
  color: #fff;
  cursor: pointer;
}

.cps-help-open svg,
.cps-tip svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-help-open:hover,
.cps-help-open:focus,
.cps-tip:hover,
.cps-tip:focus {
  outline: none;
  border-color: var(--cps-red-2);
}

.cps-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.cps-help-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #090909;
  color: var(--cps-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.cps-help-card:focus {
  outline: none;
}

.cps-referral-card {
  width: min(560px, 100%);
}

.cps-referral-card .cps-help-close {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cps-referral-card .cps-help-close:hover,
.cps-referral-card .cps-help-close:focus {
  border-color: transparent;
}

.cps-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cps-help-close:hover,
.cps-help-close:focus {
  outline: none;
  background: transparent;
  color: var(--cps-red-2);
}

.cps-help-head {
  max-width: 620px;
  padding-right: 46px;
  margin-bottom: 22px;
}

.cps-help-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--cps-red-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cps-help-head h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.cps-help-head p,
.cps-help-step p {
  margin: 0;
  color: var(--cps-muted);
  font-size: 14px;
  line-height: 1.45;
}

.cps-referral-card .cps-help-head strong {
  color: var(--cps-red-2);
  font-weight: 800;
}

.cps-referral-widget {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cps-referral-copy-row {
  display: flex;
  gap: 10px;
}

.cps-referral-copy-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid #343434;
  border-radius: 6px;
  background: #151515;
  color: #fff;
  font: inherit;
}

.cps-referral-copy-row button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #050505;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.cps-referral-widget-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cps-muted);
  font-size: 13px;
}

.cps-referral-widget-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #303030;
  border-radius: 6px;
  background: #151515;
}

.cps-help-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cps-help-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--cps-line);
  background: #101010;
}

.cps-help-step > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--cps-red);
  color: #fff;
  font-weight: 900;
}

.cps-help-step h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.cps-help-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.cps-app * {
  box-sizing: border-box;
}

.cps-app h3 {
  margin: 0;
  letter-spacing: 0;
}

.cps-kicker {
  color: var(--cps-red-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cps-auth-link,
.cps-auth-chip,
.cps-auth-muted,
.cps-auth-signout,
.cps-auth-icon-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--cps-line);
  color: var(--cps-text);
  text-decoration: none !important;
  background: var(--cps-panel);
}

.cps-auth-signed-in {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cps-auth-link {
  background: var(--cps-panel);
  border-color: #555;
  gap: 10px;
  font-weight: 800;
}

.cps-auth-overlay .cps-auth-link {
  min-height: 58px;
  padding: 0 24px;
  border-color: rgba(225, 27, 26, 0.82);
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cps-auth-overlay .cps-auth-link:hover,
.cps-auth-overlay .cps-auth-link:focus {
  border-color: #ff3534;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(225, 27, 26, 0.28);
}

.cps-login-overlay.is-attention .cps-auth-overlay {
  animation: cps-login-attention 360ms ease-out;
}

.cps-auth-link:hover,
.cps-auth-link:focus,
.cps-auth-signout:hover,
.cps-auth-signout:focus,
.cps-auth-icon-button:hover,
.cps-auth-icon-button:focus {
  border-color: var(--cps-red-2);
  outline: none;
  color: var(--cps-text);
  text-decoration: none !important;
}

.cps-auth-icon-button {
  position: relative;
  justify-content: center;
  width: 36px;
  padding: 0;
  border-color: #444;
  background: #0d0d0d;
  color: #fff;
  cursor: pointer;
}

.cps-ui-tip {
  position: relative;
}

.cps-auth-tip::after,
.cps-ui-tip::after {
  content: attr(data-cps-tip);
  position: absolute;
  z-index: 200;
  left: 50%;
  top: calc(100% + 8px);
  width: max-content;
  max-width: min(220px, calc(100vw - 48px));
  padding: 8px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #050505;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: normal;
}

.cps-auth-tip:hover::after,
.cps-auth-tip:focus::after,
.cps-ui-tip:hover::after,
.cps-ui-tip:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cps-auth-nav-button {
  position: relative;
  width: auto;
  min-width: 72px;
  padding: 0 10px;
}

.cps-auth-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-auth-icon-button .cps-link-icon {
  width: 17.1px;
  height: 17.1px;
}

.cps-x-comp-nav {
  position: relative;
}

.cps-x-comp-new-badge {
  position: absolute;
  top: -9px;
  left: -8px;
  min-height: 13px;
  padding: 1px 4px;
  border: 1px solid var(--cps-red-2);
  border-radius: 999px;
  background: var(--cps-red);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.cps-x-comp-count-badge {
  position: absolute;
  top: -9px;
  right: -8px;
  min-width: 15px;
  padding: 1px 4px;
  border: 1px solid #ffdf6e;
  border-radius: 999px;
  background: #ffcf33;
  color: #111;
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.cps-auth-icon-button .cps-x-comp-icon,
.cps-auth-icon-button .cps-comp-sim-icon {
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.cps-results-123-icon text {
  fill: currentColor;
  stroke: none;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.cps-auth-signout {
  min-height: 32px;
  color: var(--cps-muted);
  font-size: 13px;
  cursor: pointer;
}

.cps-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-red-2);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cps-link-button:hover,
.cps-link-button:focus {
  outline: none;
  color: #fff;
}

.cps-account-menu {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 280px;
  padding: 8px;
  border: 1px solid #555;
  background: #000;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.95);
}

.cps-account-menu[hidden] {
  display: none;
}

.cps-account-menu .cps-auth-signout {
  width: 100%;
  justify-content: flex-start;
  border-color: #444;
  background: #141414;
  color: #f7f7f7;
}

.cps-auth-menu-note {
  display: block;
  max-width: 260px;
  padding: 8px 10px;
  color: var(--cps-muted);
  border: 1px solid #242424;
  background: #101010;
  font-size: 12px;
  line-height: 1.35;
}

.cps-subscription-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--cps-line);
  background: #0b0b0b;
  color: var(--cps-muted);
  font-size: 12px;
  font-weight: 700;
}

.cps-subscription-status.is-active {
  border-color: #0f7b3d;
  color: #91f0b5;
}

.cps-subscription-status.is-limited {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-muted);
  font-weight: 600;
}

.cps-subscription-status.is-problem {
  border-color: var(--cps-red);
  color: #ffb8b8;
}

.cps-auth-link span {
  text-decoration: none !important;
}

.cps-wca-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: url("https://assets.worldcubeassociation.org/assets/136d86d/assets/WCA%20Logo-4ef000323c6a9a407cdf07647a31c0ef4dc847f2352a9a136ef3e809e95bdeab.svg") center / contain no-repeat;
}

.cps-auth-inline {
  position: relative;
  z-index: 50;
  margin-bottom: 14px;
}

.cps-auth-inline .cps-auth-link,
.cps-auth-inline .cps-auth-chip,
.cps-auth-inline .cps-auth-muted {
  justify-content: center;
}

.cps-auth-inline .cps-auth-link {
  width: auto;
}

.cps-auth-chip {
  gap: 10px;
}

.cps-auth-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--cps-line);
  background: #000;
}

.cps-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
}

.cps-panel {
  max-width: 100%;
  min-width: 0;
  padding: 18px 20px;
}

.cps-app:not(.is-simulating) .cps-panel {
  padding-left: clamp(24px, 3vw, 56px);
  padding-right: clamp(24px, 3vw, 56px);
}

.cps-setup {
  border-right: 0;
  border-bottom: 1px solid var(--cps-line);
  background: #080808;
}

.cps-stage {
  background: var(--cps-black);
  overflow: visible;
  min-height: 0;
  min-width: 0;
}

.cps-stage:empty {
  display: none;
}

.cps-app.is-loading-shared {
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.cps-app.is-loading-shared .cps-grid,
.cps-app.is-loading-shared .cps-stage {
  box-shadow: none;
  border: 0;
  background: transparent;
}

.cps-app.is-loading-shared .cps-stage {
  padding: 0;
}

.cps-app.is-loading-shared .cps-shared-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  min-height: 100dvh;
  background: var(--cps-black);
}

.cps-app.is-loading-shared > .cps-faux-footer {
  display: none;
}

.cps-shared-loading {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.cps-shared-loading::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 3px solid var(--cps-line);
  border-top-color: var(--cps-text);
  border-radius: 50%;
  animation: cps-step-spin 0.8s linear infinite;
}

.cps-step {
  position: relative;
  padding: 14px 0;
  border-bottom: 1px solid var(--cps-line);
  opacity: 0.78;
}

.cps-step:last-child {
  border-bottom: 0;
}

.cps-step[data-step="competition"] {
  z-index: 20;
}

.cps-step:hover,
.cps-step:focus-within {
  z-index: 120;
}

.cps-step.is-disabled {
  opacity: 0.42;
}

.cps-step.is-disabled input,
.cps-step.is-disabled select,
.cps-step.is-disabled button,
.cps-step.is-disabled label {
  pointer-events: none;
}

.cps-step.is-disabled .cps-option-toggle {
  pointer-events: auto;
}

.cps-step.is-disabled .cps-tip {
  pointer-events: auto;
}

.cps-step.is-disabled .cps-discord-live-button {
  pointer-events: none;
}

.cps-step.is-active {
  opacity: 1;
}

/* Center scramble preparation, extra scrambles, and table call-ups above the footer. */
.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-table-callup),
.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-callup > .cps-scramble) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.cps-app.is-simulating .cps-grid {
  grid-template-columns: 1fr;
}

.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-table-callup) > .cps-grid,
.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-callup > .cps-scramble) > .cps-grid {
  flex: 1 0 auto;
  width: 100%;
  align-self: stretch;
}

.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-table-callup) > .cps-faux-footer,
.cps-app.is-simulating:has(> .cps-grid > .cps-stage > .cps-callup > .cps-scramble) > .cps-faux-footer {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-table-callup),
.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-callup > .cps-scramble) {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-table-callup) > .cps-sim-header,
.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-callup > .cps-scramble) > .cps-sim-header {
  align-self: start;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.cps-app.is-simulating > .cps-grid > .cps-stage > .cps-table-callup,
.cps-app.is-simulating > .cps-grid > .cps-stage > .cps-callup:has(> .cps-scramble) {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  text-align: center;
}

.cps-app.is-simulating > .cps-grid > .cps-stage > .cps-callup > .cps-scramble {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.cps-app.is-simulating > .cps-home-header {
  display: none;
}

.cps-app.is-simulating:has(.cps-results-view) {
  border-color: transparent;
}

.cps-app.is-simulating .cps-stage {
  overflow-x: hidden;
}

.cps-app.is-simulating:has(.cps-entry.has-video) {
  border-color: transparent;
  background: #000;
}

.cps-app.is-simulating:has(.cps-entry.has-video) .cps-stage {
  position: relative;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  padding: 0;
  overflow: hidden;
  background: #000;
}

.cps-app.is-simulating .cps-setup {
  display: none;
}

.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-entry:not(.has-video)) {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  box-sizing: border-box;
  padding: 0;
}

.cps-app.is-simulating > .cps-grid > .cps-stage:has(> .cps-entry:not(.has-video)) > .cps-sim-header {
  align-self: start;
}

.cps-app.is-simulating > .cps-grid > .cps-stage > .cps-entry:not(.has-video) {
  grid-row: 2;
  justify-self: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 948px;
}

.cps-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cps-step-head h3 {
  color: #fff;
}

.cps-setup .cps-step-head h3 {
  font-size: calc(16px * var(--cps-setup-font-scale));
}

.cps-step-head > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--cps-red);
  font-weight: 800;
}

.cps-step-status {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  flex: 0 0 auto;
}

.cps-step-status::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.cps-step-status[data-status="working"] {
  border-color: #fff;
  border-top-color: transparent;
  color: #fff;
  animation: cps-step-spin 0.8s linear infinite;
}

.cps-step-status[data-status="working"]::before {
  display: none;
}

.cps-step-status[data-status="complete"] {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.cps-step-status[data-status="complete"]::before {
  content: "\2713";
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.cps-step-status[data-status="error"] {
  border-color: var(--cps-red-2);
  background: var(--cps-red-2);
  color: #fff;
}

.cps-step-status[data-status="error"]::before {
  content: "!";
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.cps-step[data-status="working"] {
  opacity: 1;
}

.cps-step[data-status="working"] .cps-step-head h3 {
  color: #fff;
}

@keyframes cps-step-spin {
  to {
    transform: rotate(360deg);
  }
}

.cps-field {
  margin-bottom: 12px;
}

.cps-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--cps-muted);
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-app input,
.cps-app select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #000;
  color: var(--cps-text);
  border-radius: 0;
}

.cps-app input:focus,
.cps-app select:focus {
  background: #000;
  color: var(--cps-text);
  outline: 1px solid var(--cps-red);
  box-shadow: none;
}

.cps-app input:-webkit-autofill,
.cps-app input:-webkit-autofill:hover,
.cps-app input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cps-text);
  box-shadow: 0 0 0 1000px #000 inset;
}

.cps-app input.is-error {
  border-color: var(--cps-red);
}

.cps-setup input,
.cps-setup select {
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-field-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.cps-field-inline label {
  margin: 0;
}

.cps-field-inline > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cps-field-inline input {
  max-width: 120px;
}

.cps-field-inline span {
  color: var(--cps-muted);
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-options-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(220px, calc((100% - 96px) / 5))), 1fr));
  gap: 8px 24px;
  margin: 12px 0 14px;
  align-items: start;
  width: 100%;
}

.cps-seating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.cps-discord-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
}

.cps-discord-post-toggle + .cps-discord-live {
  margin-top: 12px;
}

.cps-discord-live + [data-cps-start],
.cps-discord-post-toggle + [data-cps-start] {
  margin-top: 18px;
}

.cps-discord-live-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  gap: 9px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #050505 !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
}

.cps-discord-live-button:hover,
.cps-discord-live-button:focus {
  outline: none;
  border-color: #fff;
  background: #e8e8e8;
  color: #050505 !important;
}

.cps-discord-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.cps-discord-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-option-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-text);
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-option-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--cps-red);
}

.cps-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  flex: 0 0 18px;
}

.cps-option-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-option-toggle.is-disabled {
  opacity: 0.45;
}

.cps-tip {
  position: relative;
  z-index: 1000;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #404040;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: help;
  opacity: 0.92;
  flex: 0 0 24px;
}

.cps-tip-inline {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  vertical-align: middle;
  flex: 0 0 20px;
}

.cps-tip-inline svg {
  width: 14px;
  height: 14px;
}

.cps-premium-help::after,
.cps-tip::after {
  content: attr(data-cps-tip);
  position: fixed;
  z-index: 100001;
  left: var(--cps-tip-left, 16px);
  top: var(--cps-tip-top, 16px);
  width: var(--cps-tip-width, min(260px, calc(100vw - 48px)));
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #050505;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.cps-premium-help:hover::after,
.cps-premium-help:focus::after,
.cps-tip:hover::after,
.cps-tip:focus::after {
  opacity: 1;
  transform: translateX(0);
}

.cps-tip:hover,
.cps-tip:focus {
  z-index: 100000;
}

.cps-round-length-field.is-hidden {
  display: none;
}

.cps-results {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.cps-results button {
  width: 100%;
  text-align: left;
  padding: 10px;
  color: var(--cps-text);
  border: 1px solid var(--cps-line);
  background: var(--cps-panel);
  cursor: pointer;
}

.cps-results button > strong {
  display: block;
}

.cps-results span,
.cps-note {
  display: block;
  color: var(--cps-muted);
  font-size: 12px;
}

.cps-results .cps-competition-search-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: inherit;
}

.cps-results .cps-competition-search-name .cps-history-flag {
  display: inline-flex;
}

.cps-results .cps-competition-search-meta,
.cps-results .cps-competition-search-date,
.cps-results .cps-competition-search-events {
  display: inline-flex;
  align-items: center;
}

.cps-results .cps-competition-search-meta {
  flex-wrap: wrap;
  gap: 3px 7px;
  margin-top: 3px;
}

.cps-results .cps-competition-search-date {
  gap: 7px;
}

.cps-results .cps-competition-search-events {
  gap: 4px;
}

.cps-results .cps-competition-search-events .cubing-icon {
  width: 14px;
  height: 14px;
  color: var(--cps-muted);
}

.cps-results .cps-competition-search-separator {
  display: inline;
}

.cps-competition-status {
  margin-top: 8px;
  min-height: 0;
  color: var(--cps-muted);
  font-size: 12px;
}

.cps-competition-status.is-error {
  padding: 12px 14px;
  border: 1px solid var(--cps-red);
  background: #3a0808;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.cps-trial-banner {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cps-trial-banner[hidden] {
  display: none;
}

.cps-trial-banner span {
  display: inline;
  color: var(--cps-muted);
  font-size: 13px;
  line-height: 1.35;
}

.cps-upgrade-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  text-decoration: underline !important;
}

.cps-app.is-x-comp .cps-discord-live {
  display: none;
}

.cps-app.is-x-comp {
  left: 50%;
  width: 100vw;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  margin-left: -50vw;
  border-left: 0;
  border-right: 0;
  background: #000;
}

.cps-app.is-x-comp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

.cps-app.is-x-comp:not(.is-simulating) .cps-stage {
  display: none;
}

.cps-app.is-x-comp:not(.is-simulating) .cps-grid {
  grid-template-columns: 1fr;
}

.cps-app.is-x-comp:not(.is-simulating) .cps-setup {
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.cps-x-comp-create-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

.cps-x-comp-create-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.cps-x-comp-create-link:hover,
.cps-x-comp-create-link:focus {
  color: #fff;
  background: transparent;
  outline: none;
}

.cps-x-comp-step-body {
  display: grid;
  gap: 14px;
}

.cps-x-comp-countdown-panel {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #101010;
}

.cps-x-comp-empty-panel {
  justify-items: center;
  text-align: center;
  font-weight: 400;
}

.cps-x-comp-empty-panel .cps-link-button {
  font-weight: 400;
}

.cps-x-comp-countdown-panel select,
.cps-x-comp-visibility select,
.cps-x-comp-share-link {
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--cps-text);
  padding: 9px 10px;
}

.cps-x-comp-share-link {
  min-height: 36px;
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-x-comp-countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 112px));
  justify-content: start;
  gap: 12px;
  margin: 4px 0 2px;
}

.cps-x-comp-countdown-boxes > span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 14px 10px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #080808;
}

.cps-x-comp-countdown-boxes strong {
  font-size: 36px;
  line-height: 1;
}

.cps-x-comp-countdown-boxes small {
  color: var(--cps-muted);
  font-size: 11px;
  font-weight: 800;
}

.cps-x-comp-countdown-boxes.is-live {
  display: block;
  margin: 2px 0;
}

.cps-x-comp-countdown-boxes.is-live > strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.cps-x-comp-upcoming {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cps-x-comp-upcoming summary {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
}

.cps-x-comp-upcoming-title {
  position: relative;
  display: inline-block;
  padding-right: 18px;
}

.cps-x-comp-joined-list,
.cps-x-comp-upcoming-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.cps-x-comp-upcoming-list {
  margin-top: 12px;
}

.cps-x-comp-event-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--cps-line);
  border-radius: 8px;
  background: var(--cps-panel);
  color: var(--cps-muted);
}

.cps-x-comp-event-filters > span {
  margin: 0 6px;
  font-size: 12px;
}

.cps-x-comp-event-filters button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--cps-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cps-x-comp-event-filters button .cubing-icon {
  font-size: 23px;
}

.cps-x-comp-event-filters button:hover,
.cps-x-comp-event-filters button[aria-pressed="true"] {
  border-color: var(--cps-line);
  background: var(--cps-panel-2);
  color: var(--cps-text);
}

.cps-x-comp-event-filters button[aria-pressed="true"] {
  border-color: var(--cps-red-2);
}

.cps-x-comp-event-filters button:focus-visible {
  outline: 2px solid var(--cps-red-2);
  outline-offset: 2px;
}

.cps-x-comp-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  border-bottom: 1px solid var(--cps-line);
}

.cps-x-comp-region-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  background: transparent;
  color: var(--cps-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.cps-x-comp-region-tabs button:hover,
.cps-x-comp-region-tabs button[aria-pressed="true"] {
  background: var(--cps-panel-2);
  color: var(--cps-text);
}

.cps-x-comp-region-tabs .cps-x-comp-section-badge {
  position: static;
  flex: 0 0 auto;
}

.cps-x-comp-region-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--cps-red-2);
}

.cps-x-comp-region-tabs button:focus-visible {
  outline: 2px solid var(--cps-red-2);
  outline-offset: 2px;
}

.cps-x-comp-region-tabs button[hidden],
.cps-x-comp-upcoming-list .cps-x-comp-card[hidden] {
  display: none;
}

.cps-x-comp-section-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid #ffdf6e;
  border-radius: 999px;
  background: #ffcf33;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.cps-x-comp-modal-panel {
  width: min(960px, calc(100vw - 44px));
  max-height: calc(100vh - 88px);
}

.cps-x-comp-modal-panel:focus {
  outline: none;
}

.cps-x-comp-modal .cps-modal-close {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.cps-x-comp-modal .cps-modal-close:hover,
.cps-x-comp-modal .cps-modal-close:focus {
  border-color: transparent;
  color: #fff;
  background: transparent;
  outline: none;
}

.cps-x-comp-modal-step {
  margin: 0 20px;
  padding: 18px 0;
}

.cps-x-comp-modal-step:first-of-type {
  margin-top: 10px;
}

.cps-x-comp-schedule-button {
  width: 100%;
  margin: 22px 0 0;
}

.cps-x-comp-modal-status {
  margin: 0 20px 14px;
  padding: 11px 12px;
  border: 1px solid var(--cps-line);
  border-radius: 6px;
  background: #090909;
  color: var(--cps-muted);
  font-size: 13px;
  line-height: 1.4;
}

.cps-x-comp-modal-status.is-error {
  border-color: var(--cps-red-2);
  color: #ff6b66;
  box-shadow: 0 0 0 1px rgba(255, 107, 102, 0.18);
}

.cps-x-comp-modal-status.is-success {
  border-color: #00e676;
  color: #00e676;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.18);
}

.cps-x-comp-modal-step .cps-event-grid {
  margin-top: 0;
}

.cps-x-comp-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.cps-x-comp-schedule-grid label {
  display: grid;
  gap: 5px;
  color: var(--cps-muted);
  font-size: 13px;
  font-weight: 800;
}

.cps-x-comp-schedule-grid input,
.cps-x-comp-schedule-grid select {
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--cps-text);
  padding: 9px 10px;
}

.cps-x-comp-schedule-grid input[type="date"],
.cps-x-comp-schedule-grid input[type="time"] {
  color-scheme: dark;
}

.cps-x-comp-schedule-grid input[type="date"]::-webkit-calendar-picker-indicator,
.cps-x-comp-schedule-grid input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.95;
}

.cps-x-comp-break-field {
  grid-column: 1 / -1;
}

.cps-x-comp-preview {
  margin-top: 14px;
}

.cps-x-comp-preview:empty {
  display: none;
}

.cps-x-comp-preview-head {
  margin-bottom: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cps-x-comp-preview-list {
  display: grid;
  gap: 0;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  background: #090909;
}

.cps-x-comp-preview-row {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) minmax(190px, auto) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #262626;
  color: var(--cps-text);
}

.cps-x-comp-preview-row:last-child {
  border-bottom: 0;
}

.cps-x-comp-preview-row .cubing-icon {
  width: 22px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.cps-x-comp-preview-row strong {
  color: #fff;
  font-size: 14px;
}

.cps-x-comp-preview-row time,
.cps-x-comp-preview-row em,
.cps-x-comp-preview-row small {
  color: var(--cps-muted);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}

.cps-x-comp-visibility {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--cps-muted);
  font-size: 13px;
  font-weight: 800;
}

.cps-x-comp-visibility > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
}

.cps-x-comp-selected-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cps-x-comp-selected-people > span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #555;
  border-radius: 999px;
  background: #1b1b1b;
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 800;
}

.cps-x-comp-person-badge,
.cps-x-comp-public-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #555;
  border-radius: 999px;
  background: #1b1b1b;
  color: #f3f3f3;
  font-size: 12px;
  font-weight: 800;
}

.cps-x-comp-public-badge {
  border-color: var(--cps-red-2);
  background: #170707;
}

.cps-x-comp-hub {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 20px;
}

.cps-x-comp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cps-x-comp-head h2,
.cps-x-comp-section h3,
.cps-x-comp-card h4,
.cps-x-comp-countdown h2 {
  margin: 0;
}

.cps-x-comp-head p,
.cps-x-comp-card p,
.cps-x-comp-muted {
  margin: 4px 0 0;
  color: var(--cps-muted);
}

.cps-x-comp-banner {
  border: 1px solid #6b5f24;
  border-radius: 8px;
  background: #191505;
  color: #ffe58a;
  padding: 10px 12px;
  font-weight: 800;
}

.cps-x-comp-section {
  display: grid;
  gap: 12px;
}

.cps-x-comp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.cps-x-comp-form label {
  display: grid;
  gap: 5px;
  color: var(--cps-muted);
  font-size: 13px;
  font-weight: 800;
}

.cps-x-comp-form input,
.cps-x-comp-form select,
.cps-x-comp-form textarea,
.cps-x-comp-card input {
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0d0d0d;
  color: var(--cps-text);
  padding: 9px 10px;
}

.cps-x-comp-wide,
.cps-x-comp-form .cps-primary {
  grid-column: 1 / -1;
}

.cps-x-comp-card {
  box-sizing: border-box;
  flex: 0 1 420px;
  width: 100%;
  min-width: 0;
  max-width: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  position: relative;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #101010;
}

.cps-x-comp-card.is-selected {
  border-color: var(--cps-red-2);
  box-shadow: 0 0 0 1px rgba(255, 62, 54, 0.3);
}

.cps-x-comp-joined-card {
  grid-template-columns: minmax(0, 1fr);
}

.cps-x-comp-card-main {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.cps-x-comp-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.cps-x-comp-card-title {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #fff;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cps-x-comp-card-title .cubing-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--cps-red-2);
}

.cps-x-comp-card-date {
  color: var(--cps-muted);
  font: inherit;
  font-weight: 700;
}

.cps-x-comp-card-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--cps-muted);
}

.cps-x-comp-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.cps-x-comp-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cps-x-comp-card-actions .cps-share-button,
.cps-x-comp-register-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 0;
}

.cps-x-comp-start-button {
  width: fit-content;
  min-height: 64px;
  padding: 0 24px;
  border-color: #fff;
  background: #000;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(210, 47, 39, 0.46);
}

.cps-x-comp-start-button:hover,
.cps-x-comp-start-button:focus {
  border-color: var(--cps-red);
  background: #151515;
  box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.5), 0 0 30px rgba(210, 47, 39, 0.62);
}

.cps-x-comp-register-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-muted);
  cursor: pointer;
}

.cps-x-comp-register-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-x-comp-card-actions .cps-share-button .cps-link-icon,
.cps-x-comp-card-actions .cps-share-button svg {
  width: 21px;
  height: 21px;
}

.cps-x-comp-person-label {
  display: inline;
}

.cps-x-comp-person-label.is-organizer {
  color: #fff;
}

.cps-x-comp-person-label a {
  color: inherit;
  text-decoration: none;
}

.cps-x-comp-person-label a:hover,
.cps-x-comp-person-label a:focus {
  color: #fff;
  text-decoration: underline;
}

.cps-x-comp-register-button:hover,
.cps-x-comp-register-button:focus {
  outline: none;
  background: transparent;
  color: #fff;
}

.cps-x-comp-unjoin {
  color: var(--cps-muted);
}

.cps-x-comp-countdown {
  display: grid;
  place-items: center;
  min-height: 50vh;
  gap: 10px;
  text-align: center;
}

.cps-x-comp-countdown strong {
  font-size: clamp(32px, 8vw, 76px);
  line-height: 1;
}

@media (max-width: 720px) {
  .cps-x-comp-hub {
    padding: 14px;
  }

  .cps-x-comp-head,
  .cps-x-comp-card {
    grid-template-columns: 1fr;
  }

  .cps-x-comp-joined-card {
    grid-template-columns: 1fr;
  }

  .cps-x-comp-countdown-boxes {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }

  .cps-x-comp-head {
    display: grid;
  }

  .cps-x-comp-form {
    grid-template-columns: 1fr;
  }

  .cps-x-comp-schedule-grid {
    grid-template-columns: 1fr;
  }

  .cps-x-comp-preview-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .cps-x-comp-preview-row time,
  .cps-x-comp-preview-row em,
  .cps-x-comp-preview-row small {
    grid-column: 2;
    white-space: normal;
  }
}

.cps-upgrade-link:hover,
.cps-upgrade-link:focus {
  color: #fff;
  outline: none;
  text-decoration: underline !important;
}

.cps-upgrade-link[hidden] {
  display: none;
}

.cps-trial-banner small {
  display: block;
  margin-top: 4px;
  color: var(--cps-muted);
  font-size: 11px;
  line-height: 1.35;
}

.cps-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.cps-event-grid[data-cps-events] {
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
}

.cps-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}

.cps-mode-tile {
  position: relative;
  min-height: 92px;
}

.cps-mode-tile::after {
  top: calc(100% + 8px);
  left: 50%;
}

.cps-mode-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #fff;
}

.cps-mode-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-mode-tile[data-cps-mode="challenge"] .cps-mode-icon svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
}

.cps-mode-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  padding: 2px 5px;
  border: 1px solid #ffdf6e;
  border-radius: 999px;
  background: #ffcf33;
  color: #111;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.cps-mode-badge[hidden] {
  display: none;
}

.cps-event-status {
  margin-top: 8px;
  min-height: 16px;
  color: var(--cps-muted);
  font-size: calc(12px * var(--cps-setup-font-scale));
}

.cps-event-status.is-error {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--cps-red);
  background: #3a0808;
  color: #fff;
  font-size: calc(13px * var(--cps-setup-font-scale));
  line-height: 1.35;
}

.cps-event-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 4px;
  border: 1px solid var(--cps-line);
  background: var(--cps-panel);
  color: var(--cps-text);
  cursor: pointer;
}

.cps-event-tile:not(.cps-mode-tile) {
  min-height: 52px;
}

.cps-event-tile:hover,
.cps-event-tile:focus {
  outline: none;
  border-color: var(--cps-red-2);
  background: #180505;
}

.cps-event-tile.is-selected {
  border-color: var(--cps-red-2);
  background: #220606;
}

.cps-event-tile:disabled,
.cps-event-tile.is-disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.cps-event-tile .cubing-icon {
  display: block;
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.cps-event-tile small {
  display: block;
  margin-top: 6px;
}

.cps-challenge-hub {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(12px, 2.4vw, 24px);
  align-content: start;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  align-items: start;
}

.cps-challenge-picker { min-width: 0; }

.cps-live-challenges {
  min-width: 0;
  max-height: 60dvh;
  overflow-y: auto;
  color: var(--cps-text);
}

.cps-live-challenges h3 { margin: 0 0 12px; color: inherit; }
.cps-live-challenges p { color: var(--cps-muted); }

.cps-app .cps-live-challenge {
  display: grid;
  grid-template-columns: 40px 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--cps-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.cps-app .cps-live-challenge:hover,
.cps-app .cps-live-challenge:focus { background: var(--cps-panel-2); color: var(--cps-text); }
.cps-live-challenge img,
.cps-live-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cps-live-avatar { display: grid; place-items: center; background: var(--cps-panel-2); }
.cps-live-challenge .cubing-icon { font-size: 26px; }
.cps-live-challenge > span:last-child { overflow-wrap: anywhere; }

.cps-challenge-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 24px);
  align-items: stretch;
  width: min(100%, calc((100dvh - 220px) * 0.7875));
  margin: 0 auto;
}

.cps-challenge-hub .cps-challenge-grid {
  width: min(100%, var(--cps-challenge-grid-size, 45dvh));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 1vh, 12px);
  margin-left: 0;
}

.cps-challenge-grid .cps-challenge-tile {
  padding: 4px;
  container-type: inline-size;
}

.cps-challenge-grid .cps-challenge-tile .cubing-icon {
  font-size: clamp(18px, 60cqw, 64px);
}

.cps-challenge-hub .cps-challenge-note {
  width: min(100%, 600px);
}

[data-cps-challenge-post-slot] {
  width: 100%;
}

[data-cps-challenge-post-slot]:not(:empty) {
  margin-top: 12px;
}

.cps-challenge-post-inline .cps-challenge-post-body {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 8px;
}

.cps-challenge-post-inline .cps-challenge-post-body p {
  font-size: 14px;
  white-space: nowrap;
}

.cps-challenge-post-inline .cps-challenge-post-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

.cps-challenge-post-inline .cps-challenge-post-actions button {
  padding: 8px 10px;
  font-size: 14px;
}

.cps-challenge-tile {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
}

.cps-challenge-tile.is-disabled {
  opacity: 0.18;
}

.cps-challenge-tile .cubing-icon {
  margin: 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
}

.cps-challenge-tile small,
.cps-challenge-tile em {
  display: none;
}

.cps-challenge-tile.is-searching {
  border-color: var(--cps-red-2);
  box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.5), 0 0 24px rgba(210, 47, 39, 0.46);
  animation: cps-challenge-tile-glow 1.35s ease-in-out infinite;
}

@keyframes cps-challenge-tile-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.36), 0 0 18px rgba(210, 47, 39, 0.34);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.64), 0 0 32px rgba(210, 47, 39, 0.7);
  }
}

.cps-challenge-note {
  width: min(100%, calc((100dvh - 220px) * 0.7875));
  margin: -4px auto 0;
  color: var(--cps-muted);
  font-size: calc(12px * var(--cps-setup-font-scale));
  line-height: 1.45;
  text-align: center;
}

.cps-challenge-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.cps-challenge-post-panel {
  width: min(460px, 100%);
}

.cps-challenge-post-panel:focus {
  outline: none;
}

.cps-challenge-post-body {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.cps-challenge-post-body p {
  margin: 0;
  color: var(--cps-text);
  font-size: 16px;
  line-height: 1.45;
}

.cps-challenge-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cps-challenge-post-actions .cps-toggle,
.cps-challenge-post-actions .cps-primary {
  min-height: 42px;
  padding: 10px 14px;
}

.cps-challenge-post-actions .cps-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505 !important;
}

.cps-challenge-post-actions .cps-primary:hover,
.cps-challenge-post-actions .cps-primary:focus {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505 !important;
}

.cps-challenge-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(980px, 100%);
  max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 44px);
  overflow: auto;
  padding: 28px 32px 24px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #17191f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.cps-challenge-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: #fff;
  color: rgba(23, 25, 31, 0.62);
}

.cps-challenge-match-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, 112px) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: 100%;
}

.cps-challenge-person {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 5px solid transparent;
  border-radius: 8px;
  text-align: center;
}

.cps-challenge-person.is-match-winner {
  border-color: #168a4a;
  background: rgba(22, 138, 74, 0.08);
}

.cps-challenge-person.is-match-loser {
  border-color: #c4322b;
  background: rgba(196, 50, 43, 0.08);
}

.cps-challenge-person.is-match-tie {
  border-color: #6d7078;
  background: rgba(109, 112, 120, 0.1);
}

.cps-challenge-person.is-waiting .cps-challenge-photo {
  background: transparent;
  border-color: #d8d8dc;
}

.cps-challenge-person.is-waiting .cps-challenge-name {
  color: rgba(23, 25, 31, 0.68);
}

.cps-challenge-photo {
  display: grid;
  place-items: center;
  width: clamp(82px, 14vw, 144px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid #d8d8dc;
  border-radius: 50%;
  background: #f7f7f8;
  color: #17191f;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
}

.cps-challenge-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cps-challenge-name {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.cps-challenge-name strong {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #17191f;
  font-size: 20px;
  line-height: 1.15;
}

.cps-challenge-name a,
.cps-challenge-name a:hover,
.cps-challenge-name a:focus,
.cps-challenge-name a:visited {
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

.cps-challenge-vs {
  display: grid;
  justify-items: center;
  gap: 10px;
  align-self: center;
  padding-top: 0;
}

.cps-challenge-vs strong {
  color: #17191f;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}

.cps-challenge-vs .cubing-icon {
  color: var(--cps-red-2);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.cps-challenge-result-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17191f;
  cursor: pointer;
}

.cps-challenge-complete-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.cps-challenge-result-link:hover,
.cps-challenge-result-link:focus {
  border: 0;
  background: transparent;
  color: var(--cps-red-2);
  outline: none;
  box-shadow: none;
}

.cps-challenge-result-link .cps-results-123-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-challenge-new-opponent-link svg {
  display: block;
  width: 26px;
  height: 26px;
}

.cps-challenge-vs.is-match-tie strong {
  color: #6d7078;
}

.cps-challenge-vs.is-match-tie .cubing-icon {
  color: #6d7078;
}

.cps-challenge-attempts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.cps-challenge-attempt-chip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  padding: 6px 8px;
  border: 1px solid #d8d8dc;
  border-radius: 6px;
  background: #f7f7f8;
  color: rgba(23, 25, 31, 0.42);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.cps-challenge-attempt-chip.is-revealed {
  border-color: #d8d8dc;
  background: #737780;
  color: #fff;
}

.cps-challenge-attempt-chip.is-win {
  border-color: #168a4a;
  background: #168a4a;
  color: #fff;
}

.cps-challenge-attempt-chip.is-loss {
  border-color: #c4322b;
  background: #c4322b;
  color: #fff;
}

.cps-challenge-attempt-chip.is-tie {
  border-color: #6d7078;
  background: #6d7078;
  color: #fff;
}

.cps-challenge-attempt-chip .cps-dropped-attempt {
  color: inherit;
}

.cps-challenge-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 18px;
  color: #17191f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.cps-challenge-summary span {
  color: rgba(23, 25, 31, 0.62);
}

.cps-challenge-summary strong {
  color: #17191f;
  font: inherit;
}

.cps-challenge-timer {
  justify-self: start;
  color: rgba(23, 25, 31, 0.62);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.cps-challenge-bell {
  align-items: center;
  background: var(--cps-panel-2);
  border: 1px solid var(--cps-line);
  border-radius: 999px;
  box-shadow: none;
  color: var(--cps-text);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 80;
}

.cps-app.is-simulating .cps-challenge-bell,
.cps-app.is-login-gated .cps-challenge-bell {
  display: none;
}

.cps-app .cps-challenge-bell:hover,
.cps-app .cps-challenge-bell:focus {
  background: var(--cps-panel);
  color: var(--cps-text);
  border-color: var(--cps-line);
  transform: translateY(-1px);
}

.cps-challenge-bell.has-unseen {
  background: #fbbf24;
  border-color: rgba(15, 23, 42, 0.18);
  color: #111827;
}

.cps-app .cps-challenge-bell.has-unseen:hover,
.cps-app .cps-challenge-bell.has-unseen:focus {
  background: #f59e0b;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.18);
}

.cps-challenge-bell svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.cps-challenge-bell span {
  font-size: 0.82rem;
  font-weight: 900;
}

.cps-challenge-notification-panel {
  width: min(320px, calc(100vw - 28px));
}

.cps-challenge-notification-row {
  align-items: center;
  margin-bottom: 0;
}

.cps-challenge-notification-icon {
  flex: 0 0 24px;
  font-size: 24px;
  line-height: 1;
}

.cps-challenge-notification-message {
  display: block;
  font-size: 16px;
  font-weight: 400;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-entry {
  padding: 0;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-scramble {
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 0;
  background: #f6f6f8;
  color: #17191f;
  font-size: clamp(28px, 3.2vw, 46px) !important;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row {
  grid-template-columns: minmax(120px, 1fr) minmax(76px, auto) minmax(64px, auto) minmax(76px, auto) minmax(112px, auto);
  gap: 10px;
  justify-items: stretch;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border-color: #d8d8dc;
  border-radius: 6px;
  background: #f7f7f8;
  color: #17191f;
  font-size: calc(24px * var(--cps-table-font-scale));
  font-weight: 700;
  text-align: center;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-primary,
.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-toggle {
  min-height: 46px;
  padding: 0 14px;
  border-color: #d8d8dc;
  border-radius: 6px;
  background: transparent;
  color: #17191f;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-primary {
  border-color: var(--cps-red-2);
  background: var(--cps-red-2);
  color: #fff;
}

.cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-toggle.is-selected {
  border-color: var(--cps-red-2);
  background: var(--cps-red-2);
  color: #fff;
}

.cps-history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cps-history-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--cps-line);
  border-radius: 6px;
  background: #111;
  color: var(--cps-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.cps-history-filter-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.cps-history-filter-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-history-filter-button:hover,
.cps-history-filter-button:focus,
.cps-history-filter-button.is-selected {
  border-color: var(--cps-red-2);
  outline: none;
}

.cps-event-tile small {
  color: var(--cps-muted);
  font-size: calc(11px * var(--cps-setup-font-scale));
  line-height: 1.2;
}

.cps-mode-tile small {
  color: var(--cps-muted);
  font-size: calc(11px * var(--cps-setup-font-scale));
  font-weight: 400;
  line-height: 1.2;
}

.cps-primary,
.cps-toggle {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.cps-primary:hover,
.cps-primary:focus,
.cps-toggle:hover,
.cps-toggle:focus {
  outline: none;
  border-color: var(--cps-red);
  background: #151515;
}

.cps-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cps-start-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--cps-muted);
  font-size: 12px;
}

.cps-toggle {
  border-color: var(--cps-line);
  background: #151515;
}

.cps-toggle.is-selected {
  border-color: #fff;
  background: #000;
}

.cps-group-title {
  margin: 10px 0 8px;
  color: var(--cps-muted);
  font-size: 13px;
}

.cps-people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.cps-people-list span {
  padding: 5px 8px;
  background: var(--cps-panel);
  border: 1px solid var(--cps-line);
  font-size: 12px;
}

.cps-empty,
.cps-error,
.cps-callup,
.cps-entry {
  padding: 24px;
}

.cps-callup:focus,
.cps-entry:focus {
  outline: none;
}

.cps-entry.has-video {
  position: relative;
  display: grid;
  min-height: clamp(420px, 72vh, 860px);
  place-items: center;
  overflow: hidden;
  background: #000;
}

.cps-app.is-simulating .cps-entry.has-video {
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  padding: 0;
}

.cps-crowd-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  pointer-events: none;
}

.cps-setup .cps-primary {
  font-size: calc(13px * var(--cps-setup-font-scale));
}

.cps-camera-flashes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.cps-camera-flashes:has(.cps-camera-flash)::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background:
    radial-gradient(circle at var(--cps-flash-x, 50%) var(--cps-flash-y, 50%), rgba(255, 255, 255, 0.22), rgba(255, 246, 216, 0.08) 26%, rgba(255, 255, 255, 0) 58%),
    rgba(255, 255, 255, 0.08);
  mix-blend-mode: screen;
  opacity: 0;
  animation: cps-camera-exposure 520ms ease-out forwards;
}

.cps-camera-flash {
  position: absolute;
  width: calc(var(--cps-flash-size, 64px) * 0.18);
  height: calc(var(--cps-flash-size, 64px) * 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 4px 2px rgba(255, 255, 255, 0.95),
    0 0 calc(var(--cps-flash-size, 64px) * 0.22) calc(var(--cps-flash-size, 64px) * 0.1) rgba(255, 246, 208, 0.82),
    0 0 calc(var(--cps-flash-size, 64px) * 0.86) calc(var(--cps-flash-size, 64px) * 0.34) rgba(255, 240, 178, 0.25);
  filter: saturate(0.85);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: cps-camera-flash var(--cps-flash-duration, 420ms) cubic-bezier(0.12, 0.78, 0.22, 1) forwards;
}

.cps-camera-flash::before,
.cps-camera-flash::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.94), rgba(255,246,208,0));
  filter: blur(0.4px);
  transform: translate(-50%, -50%);
}

.cps-camera-flash::before {
  width: calc(var(--cps-flash-size, 64px) * 1.05);
  height: 2px;
}

.cps-camera-flash::after {
  width: calc(var(--cps-flash-size, 64px) * 0.64);
  height: 1px;
  transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes cps-camera-flash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  8% {
    opacity: var(--cps-flash-opacity, 0.7);
    transform: translate(-50%, -50%) scale(1.18);
  }
  22% {
    opacity: calc(var(--cps-flash-opacity, 0.7) * 0.72);
    transform: translate(-50%, -50%) scale(0.94);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
}

@keyframes cps-camera-exposure {
  0% {
    opacity: 0;
  }
  9% {
    opacity: 1;
  }
  24% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
  }
}

.cps-error {
  color: #fff;
  background: #3a0808;
  border: 1px solid var(--cps-red);
}

.cps-callup h3 {
  margin: 8px 0 24px;
  font-size: 34px;
}

.cps-callup-title {
  margin: 8px 0 24px;
  color: #fff;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
}

.cps-app.is-simulating .cps-callup,
.cps-app.is-simulating .cps-entry {
  padding: 24px 36px 36px;
}

.cps-app.is-simulating .cps-callup h3 {
  font-size: 48px;
}

.cps-app.is-simulating .cps-callup-title {
  font-size: 24px;
}

.cps-callup-time {
  color: var(--cps-muted);
  font-size: 18px;
  font-weight: 700;
}

.cps-callup-note {
  max-width: 760px;
  margin: -10px 0 18px;
  color: var(--cps-muted);
  font-size: 17px;
  line-height: 1.45;
}

.cps-scramble {
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--cps-line);
  background: #000;
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 700;
}

.cps-scramble.compact {
  font-size: 20px;
}

.cps-app.is-simulating .cps-scramble {
  padding: 34px;
  font-size: var(--cps-scramble-font, clamp(42px, 4.6vw, 70px));
}

.cps-app.is-simulating .cps-scramble.compact {
  font-size: var(--cps-scramble-font, 34px);
}

.cps-time-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
}

.cps-time-row.is-over-video {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.cps-app.is-simulating .cps-time-row {
  grid-template-columns: minmax(260px, 1fr) auto auto auto auto;
  gap: 12px;
}

.cps-app.is-simulating .cps-time-row input {
  min-height: 64px;
  font-size: 34px;
  font-weight: 400;
  text-align: center;
}

.cps-app.is-simulating .cps-time-row.is-over-video input {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.cps-app.is-simulating .cps-time-row.is-over-video input:focus {
  background: rgba(0, 0, 0, 0.34);
  outline-color: #fff;
}

.cps-app.is-simulating .cps-time-row.is-over-video .cps-primary,
.cps-app.is-simulating .cps-time-row.is-over-video .cps-toggle {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.cps-app.is-simulating .cps-time-row .cps-primary,
.cps-app.is-simulating .cps-time-row .cps-toggle,
.cps-app.is-simulating .cps-callup .cps-primary {
  min-height: 64px;
  padding: 0 24px;
  font-size: 18px;
}

.cps-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #111;
}

.cps-result-banner h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.cps-podium {
  display: block;
  margin-top: 4px;
  color: #71dc72;
  font-size: 18px;
}

.cps-sim-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 16px;
  align-items: center;
  padding: 0;
  background: #080808;
  color: #f5f5f5;
  line-height: 1.25;
}

.cps-competition-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 22px 26px;
  background: #222;
}

.cps-results-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cps-profile-results {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 46px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.cps-history-trash svg {
  width: 20px;
  height: 20px;
}

.cps-profile-results svg {
  width: 28px;
  height: 28px;
}

.cps-profile-results span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.cps-profile-results svg,
.cps-history-trash svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-profile-results:hover,
.cps-profile-results:focus {
  outline: none;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.cps-results-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.cps-results-menu-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.cps-results-menu {
  position: fixed;
  top: var(--cps-results-menu-top, 70px);
  left: var(--cps-results-menu-left, 12px);
  width: min(264px, calc(100vw - 28px));
  max-height: var(--cps-results-menu-max-height, min(680px, calc(100vh - 86px)));
  padding: 12px;
  border: 1px solid #2a2a2a;
  background: #101010;
  color: #f5f5f5;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
  overflow-x: hidden;
  overflow-y: auto;
}

.cps-results-menu:focus {
  outline: none;
}

.cps-results-menu-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 42px;
  padding: 0 0 12px;
  border-bottom: 1px solid #2a2a2a;
  background: transparent;
}

.cps-results-menu-home,
.cps-theme-toggle,
.cps-results-menu-text-size,
.cps-results-menu-share,
.cps-results-menu-refresh,
.cps-results-menu-all {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cps-text);
  cursor: pointer;
}

.cps-results-menu-home:hover,
.cps-results-menu-home:focus,
.cps-theme-toggle:hover,
.cps-theme-toggle:focus,
.cps-theme-toggle.is-active,
.cps-results-menu-text-size:hover,
.cps-results-menu-text-size:focus,
.cps-results-menu-text-size.is-active,
.cps-results-menu-share:hover,
.cps-results-menu-share:focus,
.cps-results-menu-refresh:hover,
.cps-results-menu-refresh:focus,
.cps-results-menu-all:hover,
.cps-results-menu-all:focus {
  outline: none;
  background: transparent;
  color: var(--cps-text);
  box-shadow: none;
}

.cps-results-menu-home svg,
.cps-theme-toggle svg,
.cps-results-menu-text-size svg,
.cps-results-menu-share svg,
.cps-results-menu-refresh svg,
.cps-results-menu-all svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 auto;
  gap: 0;
  padding: 0;
}

.cps-theme-toggle [data-cps-theme-icon] {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.cps-theme-toggle [data-cps-theme-icon] svg {
  display: block;
  width: 24px;
  height: 24px;
}

.cps-theme-toggle [data-cps-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cps-results-menu-share .cps-link-icon {
  width: 19px;
  height: 19px;
}

.cps-results-menu-text-size svg {
  fill: currentColor;
  stroke: none;
}

.cps-results-menu-list {
  display: grid;
  gap: 4px;
  padding: 12px 0 0;
}

.cps-results-menu-control {
  padding: 12px 0;
  border-bottom: 1px solid #2a2a2a;
  background: transparent;
}

.cps-results-menu-control[hidden] {
  display: none !important;
}

.cps-text-size-control {
  display: grid;
  grid-template-columns: 28px 118px;
  gap: 10px;
  align-items: center;
  justify-content: start;
  min-height: 40px;
  color: #fff;
}

.cps-text-size-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 28px;
  color: currentColor;
  line-height: 1;
}

.cps-text-size-mark svg {
  display: block;
  width: 24px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.cps-text-size-control input {
  width: 118px;
  height: 18px;
  padding: 0;
  border: 0;
  appearance: none;
  accent-color: var(--cps-red-2);
  background: transparent;
  box-shadow: none;
}

.cps-text-size-control input::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  background: currentColor;
  box-shadow: none;
}

.cps-text-size-control input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: currentColor;
  box-shadow: none;
}

.cps-text-size-control input::-moz-range-track {
  height: 3px;
  border: 0;
  background: currentColor;
  box-shadow: none;
}

.cps-text-size-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

.cps-results-menu-event-group {
  border-bottom: 0;
}

.cps-results-menu-event {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.cps-results-menu-event:hover,
.cps-results-menu-event:focus {
  outline: none;
  background: #1f1f1f;
  color: #fff;
}

.cps-results-menu-event-group.is-expanded > .cps-results-menu-event {
  background: transparent;
  color: #fff;
}

.cps-results-menu-event.is-unavailable {
  color: #696969;
  cursor: default;
}

.cps-results-menu-event.is-unavailable:hover,
.cps-results-menu-event.is-unavailable:focus {
  background: transparent;
}

.cps-results-menu-event h3,
.cps-results-menu-event span:first-child {
  margin: 0;
}

.cps-results-menu-event .cubing-icon {
  width: 28px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  text-align: center;
}

.cps-results-menu-event-group.is-expanded .cps-results-menu-event .cubing-icon {
  color: #fff;
}

.cps-results-menu-event > span:last-child {
  grid-column: 2;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cps-results-menu-event-group.is-expanded > .cps-results-menu-event > span:last-child {
  color: #fff;
}

.cps-results-menu-rounds {
  display: grid;
  gap: 4px;
  padding: 2px 0 8px 38px;
  background: transparent;
}

.cps-results-menu-round {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.cps-results-menu-round:hover,
.cps-results-menu-round:focus {
  outline: none;
  background: #1f1f1f;
}

.cps-results-menu-round strong {
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.cps-results-menu-round.is-disabled {
  color: #696969;
  cursor: default;
}

.cps-results-menu-round.is-disabled:hover,
.cps-results-menu-round.is-disabled:focus {
  background: transparent;
}

.cps-results-menu-round.is-disabled strong {
  background: transparent;
  color: #696969;
  font-weight: 700;
}

.cps-competition-bar strong {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cps-home-header .cps-competition-bar {
  gap: 18px;
  background: #080808;
}

.cps-app:not(.is-simulating) > .cps-home-header .cps-competition-bar {
  padding-left: clamp(24px, 3vw, 56px);
  padding-right: clamp(24px, 3vw, 56px);
}

.cps-home-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cps-home-logo {
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  flex: 0 0 auto;
}

.cps-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, 0.36);
  backdrop-filter: blur(4px) saturate(0.86);
  -webkit-backdrop-filter: blur(4px) saturate(0.86);
}

.cps-auth-overlay {
  position: relative;
  z-index: 1;
  margin: 0;
}

.cps-login-consent {
  --cps-login-text: #fff;
  width: min(340px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-login-text);
  text-align: left;
}

.cps-app .cps-login-consent > p { margin: 0 0 20px; }
.cps-app .cps-login-consent > .cps-auth-link { display: flex; width: 100%; justify-content: center; box-sizing: border-box; }
.cps-consent-fields { margin-bottom: 20px; text-align: left; }
.cps-app .cps-login-consent .cps-consent-fields label { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 0; font-size: 14px; line-height: 1.5; font-weight: 400; }
.cps-app .cps-login-consent .cps-consent-fields input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; appearance: auto; accent-color: var(--cps-red-2); }
.cps-app .cps-login-consent .cps-consent-fields input[type="checkbox"]:focus { outline: none; box-shadow: none; }
.cps-app .cps-login-consent .cps-consent-fields input[type="checkbox"]:focus-visible + span { text-decoration: underline; text-underline-offset: 3px; }
.cps-app .cps-login-consent .cps-consent-fields label,
.cps-app .cps-login-consent .cps-consent-fields span,
.cps-app .cps-login-consent .cps-consent-fields a,
.cps-app .cps-login-consent > p { color: var(--cps-login-text); }
.cps-app .cps-login-consent > p a { color: inherit; text-decoration: underline; }
.cps-app.is-light-mode .cps-login-consent,
body.cps-light-mode .cps-login-consent { --cps-login-text: #000; }
.cps-consent-fields a { color: inherit; text-decoration: underline; }

.cps-app .cps-terms-modal {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(22px, 5vw, 32px);
  border: 1px solid var(--cps-line);
  border-top: 3px solid var(--cps-red-2);
  border-radius: 12px;
  background: var(--cps-panel);
  color: var(--cps-text);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
  text-align: left;
  overflow: auto;
}

.cps-terms-modal[open] { animation: cps-terms-enter 180ms ease-out; }
.cps-terms-modal::backdrop { background: rgba(5, 5, 5, 0.65); backdrop-filter: blur(3px); }
.cps-app .cps-terms-modal h2 { margin: 0 0 12px; color: var(--cps-text); font-size: 24px; line-height: 1.25; }
.cps-app .cps-terms-modal p { margin: 0 0 22px; color: var(--cps-muted); font-size: 14px; line-height: 1.6; }
.cps-app .cps-terms-modal .cps-consent-fields label { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; padding: 0; color: var(--cps-text); font-size: 14px; font-weight: 400; line-height: 1.6; }
.cps-app .cps-terms-modal .cps-consent-fields span,
.cps-app .cps-terms-modal .cps-consent-fields a { color: var(--cps-text); }
.cps-app .cps-terms-modal input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; appearance: auto; accent-color: var(--cps-red-2); }
.cps-app .cps-terms-actions { display: flex; gap: 12px; margin-top: 26px; }
.cps-app .cps-terms-actions button { flex: 1; min-height: 44px; padding: 10px 18px; border: 1px solid var(--cps-line); border-radius: 6px; background: var(--cps-panel-2); color: var(--cps-text); font: inherit; font-weight: 700; cursor: pointer; }
.cps-app .cps-terms-actions .cps-primary { background: var(--cps-red); border-color: var(--cps-red); color: #fff; }
.cps-app .cps-terms-actions button:hover:not(:disabled) { border-color: var(--cps-red-2); }
.cps-app .cps-terms-actions .cps-primary:hover:not(:disabled) { background: var(--cps-red-2); }
.cps-app .cps-terms-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.cps-app .cps-terms-modal :focus-visible { outline: 2px solid var(--cps-red-2); outline-offset: 3px; }
.cps-app .cps-terms-modal h2:focus { outline: none; }
.cps-app .cps-terms-modal .cps-terms-note { margin: 14px 0 0; text-align: center; font-size: 12px; }
.cps-app .cps-terms-modal .cps-terms-error { color: var(--cps-text); border-left: 3px solid var(--cps-red-2); padding-left: 12px; }
@keyframes cps-terms-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cps-terms-modal[open] { animation: none; } }

@keyframes cps-login-attention {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  34% {
    transform: scale(1.035);
    filter: brightness(1.24);
  }
  64% {
    transform: scale(0.992);
    filter: brightness(1.06);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.cps-account-sidebar {
  width: min(264px, calc(100vw - 28px));
  padding: 12px;
  background: #101010;
}

.cps-account-sidebar-label {
  margin: 16px 0 18px;
  color: var(--cps-muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cps-account-sidebar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  text-align: left;
  text-decoration: none !important;
}

.cps-account-sidebar-row:hover,
.cps-account-sidebar-row:focus {
  outline: none;
  background: transparent;
  color: #fff !important;
  box-shadow: none;
  text-decoration: none !important;
}

.cps-account-sidebar-profile {
  margin-bottom: 24px;
}

.cps-account-sidebar-avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #333;
  border-radius: 50%;
  background: #050505;
  flex: 0 0 42px;
  overflow: hidden;
}

.cps-account-sidebar-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cps-account-sidebar-row .cps-menu-logo {
  display: block;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px;
  object-fit: contain;
}

.cps-account-sidebar-row svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 24px;
}

.cps-account-sidebar-row > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cps-account-sidebar .cps-subscription-status,
.cps-account-sidebar .cps-auth-menu-note {
  margin-top: 6px;
}

.cps-bar-round-title {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: 16px;
  margin-left: auto;
  min-width: 0;
}

.cps-bar-round-title span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.1;
  white-space: nowrap;
}

.cps-bar-round-title .cps-result-actions {
  margin-left: 0;
}

.cps-round-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 40px 26px 28px;
}

.cps-round-title p {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.1;
}

.cps-app.is-simulating .cps-sim-header {
  font-size: inherit;
}

.cps-app.is-simulating:has(.cps-entry.has-video) .cps-sim-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  background: transparent;
  backdrop-filter: none;
}

.cps-app.is-simulating:has(.cps-entry.has-video) .cps-competition-bar {
  background: transparent;
  border-bottom: 0;
}

.cps-app.is-simulating:has(.cps-entry.has-video) .cps-competition-bar strong,
.cps-app.is-simulating:has(.cps-entry.has-video) .cps-bar-round-title span {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9);
}

.cps-app.is-simulating .cps-competition-bar {
  padding: 24px 32px;
}

.cps-app.is-simulating .cps-round-title {
  padding: 24px 32px 20px;
}

.cps-result-banner.is-advance {
  background: #082716;
}

.cps-result-banner.is-fail {
  background: #211;
}

.cps-result-stat span,
.cps-result-stat strong {
  display: block;
  text-align: right;
}

.cps-result-stat span {
  color: var(--cps-muted);
  font-size: 12px;
}

.cps-result-stat strong {
  font-size: 26px;
}

.cps-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  background: #090909;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  container-type: inline-size;
}

.cps-results-view:focus {
  outline: none;
}

.cps-round-tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  background: #0b0b0b;
  border-bottom: 1px solid #333;
}

.cps-round-tabs {
  display: flex;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
}

.cps-round-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-right: 1px solid #333;
  background: #141414;
  color: var(--cps-muted);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.cps-round-tab .cubing-icon {
  font-size: 18px;
  line-height: 1;
}

.cps-round-tab:hover,
.cps-round-tab:focus {
  outline: none;
  background: #1f1f1f;
  color: #fff;
}

.cps-round-tab.is-selected {
  background: #2f2f2f;
  color: #fff;
  box-shadow: inset 0 3px 0 var(--cps-red-2);
}

.cps-share-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cps-muted);
  cursor: pointer;
}

.cps-share-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-share-button .cps-link-icon {
  width: 17.1px;
  height: 17.1px;
}

.cps-share-button:hover,
.cps-share-button:focus {
  outline: none;
  background: transparent;
  color: #fff;
}

.cps-ranking {
  width: 100%;
  min-width: 0;
  border: 0;
  border-collapse: collapse;
  border-style: hidden;
  table-layout: fixed;
  font-size: calc(18px * var(--cps-table-font-scale));
  line-height: 1.25;
  background: #090909;
  outline: none;
  box-shadow: none;
}

.cps-app.has-custom-column-widths .cps-ranking {
  width: max(100%, var(--cps-table-min-width, 100%));
}

.cps-ranking .cps-col-rank {
  width: var(--cps-col-rank, 64px);
}

.cps-ranking .cps-rank-head,
.cps-ranking .cps-rank-cell {
  width: var(--cps-col-rank, 64px);
  min-width: var(--cps-col-rank, 64px);
  max-width: var(--cps-col-rank, 64px);
}

.cps-ranking .cps-col-name {
  width: var(--cps-col-name, auto);
}

.cps-ranking .cps-col-average {
  width: var(--cps-col-average, 8%);
}

.cps-ranking .cps-col-attempt-1 {
  width: var(--cps-col-attempt1, 6%);
}

.cps-ranking .cps-col-attempt-2 {
  width: var(--cps-col-attempt2, 6%);
}

.cps-ranking .cps-col-attempt-3 {
  width: var(--cps-col-attempt3, 6%);
}

.cps-ranking .cps-col-attempt-4 {
  width: var(--cps-col-attempt4, 6%);
}

.cps-ranking .cps-col-attempt-5 {
  width: var(--cps-col-attempt5, 6%);
}

.cps-ranking .cps-col-best {
  width: var(--cps-col-best, 8%);
}

.cps-ranking th,
.cps-ranking td {
  padding: calc(13px * var(--cps-table-font-scale)) 14px;
  border: 0;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.cps-ranking tbody td {
  border-bottom: 2px solid #444;
}

.cps-ranking thead,
.cps-ranking thead tr,
.cps-ranking thead th {
  border: 0 !important;
  border-color: transparent !important;
  border-style: hidden !important;
  outline: none;
  box-shadow: none;
}

.cps-ranking th {
  position: relative;
  border: 0;
  background: #141414;
  color: #f0f0f0;
  z-index: 30;
  font-weight: 800;
  outline: none;
  box-shadow: none;
}

.cps-ranking th[data-cps-col] {
  position: relative;
}

.cps-sticky-table-head {
  position: fixed;
  top: 0;
  z-index: 9999;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: #141414;
}

.cps-sticky-table-head.is-visible {
  display: block;
}

.cps-sticky-table-head .cps-ranking {
  width: var(--cps-sticky-table-width, 100%);
  margin: 0;
}

.cps-sticky-table-head th {
  pointer-events: auto;
}

.cps-th-label {
  display: inline-block;
  max-width: calc(100% - 8px);
  overflow: hidden;
  vertical-align: middle;
}

.cps-col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 35;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.cps-col-resizer::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 3px;
  width: 1px;
  background: transparent;
}

.cps-col-resizer:hover::before,
.cps-app.is-resizing-columns .cps-col-resizer::before {
  background: currentColor;
}

.cps-app.is-resizing-columns,
.cps-app.is-resizing-columns * {
  cursor: col-resize !important;
  user-select: none;
}

.cps-ranking .cps-name-col,
.cps-ranking .cps-competitor-cell {
  text-align: left;
}

.cps-ranking tr {
  background: #101010;
  outline: none;
}

.cps-ranking tbody tr {
  cursor: pointer;
}

.cps-ranking tbody tr:hover,
.cps-ranking tbody tr:focus {
  background: #1f1f1f;
  outline: none;
}

.cps-dropped-attempt {
  color: var(--cps-muted);
}

.cps-ranking tr.is-advancing .cps-rank-cell {
  background: #00e676;
  color: #082014;
  font-weight: 400;
}

.cps-ranking .cps-rank-cell {
  text-align: center;
  color: #f2f2f2;
  font-variant-numeric: tabular-nums;
}

.cps-ranking .cps-competitor-cell {
  min-width: 0;
  color: #fff;
  font-weight: 400;
  overflow: visible;
}

.cps-ranking .cps-competitor-cell a {
  color: #fff;
  text-decoration: none;
}

.cps-ranking .cps-competitor-cell a:hover,
.cps-ranking .cps-competitor-cell a:focus {
  color: #fff;
  outline: none;
  text-decoration: none;
}

.cps-competitor-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  white-space: nowrap;
}

.cps-competitor-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.cps-flag {
  flex: 0 0 auto;
  font-size: calc(19px * var(--cps-table-font-scale));
  line-height: 1;
}

.cps-ranking .cps-result-main,
.cps-ranking .cps-result-best {
  color: #fff;
  font-variant-numeric: tabular-nums;
  overflow: visible;
}

.cps-ranking .cps-result-main {
  font-weight: 900;
}

@container (max-width: 920px) {
  .cps-ranking .cps-col-attempt,
  .cps-ranking .cps-attempt-col {
    display: none;
  }

  .cps-ranking .cps-col-name {
    width: var(--cps-col-name, auto);
  }

  .cps-ranking .cps-col-average,
  .cps-ranking .cps-col-best {
    width: 18%;
  }
}

@container (max-width: 620px) {
  .cps-ranking .cps-col-best,
  .cps-ranking .cps-best-col,
  .cps-ranking .cps-result-best {
    display: none;
  }

  .cps-ranking .cps-col-average {
    width: 26%;
  }
}

.cps-result-value {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
}

.cps-xpr-badge,
.cps-sim-badge {
  position: absolute;
  top: -7px;
  left: calc(100% + 2px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 14px;
  padding: 1px 3px;
  border-radius: 4px;
  background: #e9eaec;
  color: #111820;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.cps-sim-badge {
  top: -6px;
}

.cps-ranking tr.is-user td {
  background: #3a3a3a;
  color: #fff;
  box-shadow: none;
}

.cps-ranking tr.is-user .cps-competitor-cell {
  color: #fff;
}

.cps-ranking tr.is-user.is-advancing .cps-rank-cell {
  background: #00e676;
  color: #082014;
  box-shadow: none;
}

.cps-result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.cps-next {
  margin: 0;
  flex: 0 0 auto;
}

.cps-next:not(:disabled),
[data-cps-start]:not(:disabled),
.cps-x-comp-schedule-button:not(:disabled) {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(210, 47, 39, 0.46);
}

[data-cps-start] {
  width: 100%;
}

.cps-next:not(:disabled):hover,
.cps-next:not(:disabled):focus,
[data-cps-start]:not(:disabled):hover,
[data-cps-start]:not(:disabled):focus,
.cps-x-comp-schedule-button:not(:disabled):hover,
.cps-x-comp-schedule-button:not(:disabled):focus {
  border-color: var(--cps-red);
  background: #151515;
  box-shadow: 0 0 0 1px rgba(210, 47, 39, 0.5), 0 0 30px rgba(210, 47, 39, 0.62);
}

.cps-floating-new {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cps-floating-new:hover,
.cps-floating-new:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.cps-app.is-light-mode .cps-floating-new {
  color: var(--cps-text);
}

.cps-app.is-light-mode .cps-floating-new:hover,
.cps-app.is-light-mode .cps-floating-new:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.cps-app.is-light-mode:has(.cps-entry.has-video) .cps-floating-new {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.cps-floating-new svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cps-history-view {
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  background: #050505;
  color: #f7f7f7;
  outline: none;
}

.cps-history-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 34px 38px 28px;
  background: #101010;
  border-bottom: 0;
}

.cps-history-top h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 500;
}

.cps-history-top p {
  margin: 10px 0 0;
  color: var(--cps-muted);
  font-size: 16px;
}

.cps-history-body {
  padding: 28px 38px 80px;
}

.cps-history-competition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: stretch;
  margin-bottom: 12px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #101010;
  box-shadow: none;
}

.cps-history-competition-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.cps-history-competition-main:hover,
.cps-history-competition-main:focus {
  outline: none;
  background: #171717;
}

.cps-history-competition-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  line-height: 1.2;
}

.cps-history-flag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45em;
  min-width: 1.45em;
  font-size: 0.95em;
  line-height: 1;
}

.cps-history-competition-meta {
  color: var(--cps-muted);
  font-size: 14px;
}

.cps-history-trash {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 56px;
  min-width: 56px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-left: 0;
  background: transparent;
  color: #d0d0d0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.cps-history-trash:hover,
.cps-history-trash:focus {
  outline: none;
  background: transparent;
  color: #fff;
}

.cps-history-empty {
  padding: 42px 0;
  color: var(--cps-muted);
}

.cps-history-empty h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
}

.cps-history-empty p {
  margin: 0;
}

.cps-history-back {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #0d0d0d;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.cps-history-back:hover,
.cps-history-back:focus {
  outline: none;
  border-color: var(--cps-red-2);
}

.cps-history-event {
  margin: 0 0 34px;
}

.cps-history-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cps-history-event h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 500;
}

.cps-history-event h3 .cubing-icon {
  flex: 0 0 28px;
  width: 28px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  text-align: center;
}

.cps-history-event-head .cps-history-trash {
  flex: 0 0 42px;
  width: 42px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
}

.cps-history-table-wrap {
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #090909;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.cps-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 20px;
  line-height: 1.25;
  background: #090909;
}

.cps-history-table th,
.cps-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #303030;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cps-history-table th {
  background: #141414;
  color: #f1f1f1;
  font-weight: 800;
}

.cps-history-table th:first-child,
.cps-history-table td:first-child {
  width: 72px;
  text-align: center;
}

.cps-history-table th:nth-child(2),
.cps-history-table td:nth-child(2) {
  width: 18%;
  text-align: left;
}

.cps-history-table th:nth-last-child(2),
.cps-history-table th:last-child,
.cps-history-table td:nth-last-child(2),
.cps-history-table td:last-child {
  width: 12%;
}

.cps-history-ranking th:first-child,
.cps-history-ranking td:first-child {
  width: var(--cps-col-rank, 64px);
  min-width: var(--cps-col-rank, 64px);
  max-width: var(--cps-col-rank, 64px);
}

.cps-history-ranking th:nth-child(2),
.cps-history-ranking td:nth-child(2) {
  width: auto;
  text-align: left;
}

.cps-history-attempt-col {
  width: 9%;
}

.cps-history-table tr {
  background: #101010;
}

.cps-history-table tbody tr {
  cursor: pointer;
}

.cps-history-table tbody tr:hover,
.cps-history-table tbody tr:focus {
  outline: none;
  background: #1f1f1f;
}

.cps-history-run {
  margin: 0 0 18px;
}

.cps-history-run:last-child {
  margin-bottom: 0;
}

.cps-history-run-head {
  margin: 0 0 8px;
  color: var(--cps-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cps-history-rank.is-advancing {
  background: #00e676;
  color: #082014;
}

.cps-history-round-name {
  color: #8cc9ff;
}

.cps-history-main-result {
  color: #fff;
  font-weight: 900;
}

@keyframes cps-next-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14);
    transform: scale(1.02);
  }
}

.cps-result-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.cps-result-modal-card {
  width: min(520px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  padding: 28px;
  border-radius: 4px;
  background: #373737;
  color: #f7f7f7;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.44);
  outline: none;
}

.cps-result-modal-card h3 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.2;
}

.cps-result-modal-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.cps-result-modal-title .cps-competitor-name {
  min-width: 0;
  white-space: normal;
}

.cps-result-modal-title .cps-competitor-label {
  white-space: normal;
}

.cps-result-modal-rank {
  flex: 0 0 auto;
  color: #d8d8d8;
}

.cps-result-modal-card dl {
  margin: 0;
}

.cps-result-modal-card dt {
  margin: 22px 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.cps-result-modal-card dd {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.cps-result-modal-card a {
  color: #9fd2ff;
  text-decoration: none;
}

.cps-result-modal-close {
  display: block;
  margin: 28px 0 0 auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #9fd2ff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .cps-grid {
    grid-template-columns: 1fr;
  }

  .cps-setup {
    border-right: 0;
    border-bottom: 1px solid var(--cps-line);
  }

  .cps-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cps-event-grid[data-cps-events] {
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  }


  .cps-challenge-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 3vw, 16px);
    width: 100%;
  }

  .cps-challenge-hub { grid-template-columns: minmax(0, 1fr); }

  .cps-challenge-hub .cps-challenge-grid {
    width: 100%;
    gap: clamp(4px, 2vw, 12px);
  }

  .cps-challenge-tile {
    padding: 10px;
  }

  .cps-challenge-tile .cubing-icon {
    font-size: clamp(30px, 9vw, 52px);
  }

  .cps-challenge-panel {
    padding: 38px 12px 16px;
  }

  .cps-challenge-match-head {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-items: stretch;
    gap: 6px;
  }

  .cps-challenge-person {
    grid-row: 1 / 5;
    grid-template-rows: subgrid;
    align-items: start;
    padding: 8px 4px;
    border-width: 3px;
  }

  .cps-challenge-person:first-child {
    grid-column: 1;
  }

  .cps-challenge-person:last-child {
    grid-column: 3;
  }

  .cps-challenge-vs {
    grid-column: 2;
    grid-row: 1 / 5;
    min-width: 0;
  }

  .cps-challenge-complete-actions {
    flex-direction: column;
    gap: 6px;
  }

  .cps-challenge-result-link {
    width: 44px;
    height: 44px;
  }

  .cps-challenge-photo {
    width: clamp(70px, 22vw, 104px);
    max-width: 100%;
  }

  .cps-challenge-name strong {
    font-size: 15px;
  }

  .cps-challenge-attempts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .cps-challenge-attempt-chip {
    flex: 0 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 30px;
    padding: 4px clamp(4px, 1vw, 8px);
    font-size: clamp(11px, 2vw, 16px);
    white-space: nowrap;
  }

  .cps-challenge-summary {
    flex-wrap: wrap;
    align-self: end;
    gap: 2px 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .cps-options-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cps-app.is-simulating .cps-time-row,
  .cps-time-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cps-time-row input,
  .cps-time-row .cps-primary {
    grid-column: 1 / -1;
  }

  .cps-app.is-simulating .cps-time-row input {
    min-width: 0;
  }

  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row input {
    grid-column: 1 / -1;
  }

  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-primary {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .cps-options-list {
    grid-template-columns: 1fr;
  }

  .cps-app {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .cps-help-modal {
    align-items: end;
    padding: 12px;
  }

  .cps-referral-modal {
    align-items: center;
  }

  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row {
    grid-template-columns: 1fr;
  }

  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row input,
  .cps-app.is-challenge-active .cps-challenge-panel .cps-time-row .cps-primary {
    grid-column: auto;
  }

  .cps-help-card {
    max-height: calc(100vh - 24px);
    padding: 22px 16px 16px;
  }

  .cps-help-head {
    padding-right: 42px;
  }

  .cps-help-head h2 {
    font-size: 25px;
  }

  .cps-help-steps {
    grid-template-columns: 1fr;
  }

  .cps-help-step {
    padding: 12px;
  }

  .cps-help-actions {
    justify-content: stretch;
  }

  .cps-help-actions .cps-primary {
    width: 100%;
  }

  .cps-premium-help::after,
.cps-tip::after {
    transform: translateX(-4px);
  }

  .cps-premium-help:hover::after,
.cps-premium-help:focus::after,
.cps-tip:hover::after,
  .cps-tip:focus::after {
    transform: translateX(0);
  }

  .cps-grid,
  .cps-stage,
  .cps-results-view,
  .cps-callup,
  .cps-entry {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cps-results-view {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .cps-panel,
  .cps-app.is-simulating .cps-callup,
  .cps-app.is-simulating .cps-entry {
    padding: 18px 16px;
  }

  .cps-app.is-simulating .cps-sim-header {
    font-size: inherit;
  }

  .cps-sim-header {
    width: 100%;
    max-width: 100%;
  }

  .cps-competition-bar,
  .cps-app.is-simulating .cps-competition-bar {
    flex-wrap: wrap;
    gap: 18px 16px;
    padding: 20px 16px;
  }

  .cps-competition-bar strong {
    flex: 1 1 calc(100% - 64px);
    font-size: 24px;
  }

  .cps-bar-round-title {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    flex: 1 1 100%;
    gap: 12px;
    margin-left: 0;
  }

  .cps-bar-round-title span {
    max-width: 100%;
    font-size: 20px;
    white-space: normal;
  }

  .cps-bar-round-title .cps-result-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cps-bar-round-title .cps-next {
    max-width: 100%;
    min-height: 44px;
    padding: 0 16px;
    white-space: normal;
  }

  .cps-round-title,
  .cps-app.is-simulating .cps-round-title {
    padding: 36px 20px 24px;
  }

  .cps-round-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .cps-round-title p {
    font-size: clamp(22px, 7vw, 32px);
  }

  .cps-app.is-simulating .cps-callup h3 {
    max-width: 100%;
    font-size: clamp(34px, 12vw, 52px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .cps-app.is-simulating .cps-callup-title {
    max-width: 100%;
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .cps-result-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }

  .cps-result-banner h3 {
    font-size: 24px;
  }

  .cps-result-actions,
  .cps-next {
    width: auto;
    max-width: 100%;
  }

  .cps-profile-results {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .cps-floating-new {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .cps-history-top {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 18px 22px;
  }

  .cps-history-top h2 {
    font-size: 32px;
  }

  .cps-history-body {
    padding: 22px 16px 72px;
  }

  .cps-history-competition-name {
    font-size: 20px;
  }

  .cps-history-event h3 {
    font-size: 24px;
  }

  .cps-history-table {
    font-size: 17px;
  }

  .cps-history-table th,
  .cps-history-table td {
    padding: 12px 10px;
  }

  .cps-history-attempt-col {
    display: none;
  }

  .cps-app.is-simulating .cps-scramble,
  .cps-app.is-simulating .cps-scramble.compact {
    max-width: 100%;
    padding: 16px;
    font-size: var(--cps-scramble-font, 46px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  .cps-app.is-simulating .cps-callup .cps-primary {
    max-width: 100%;
    min-height: 56px;
    padding: 0 18px;
    white-space: normal;
  }

  .cps-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .cps-ranking {
    min-width: 0;
    table-layout: fixed;
    font-size: calc(17px * var(--cps-table-font-scale));
  }

  .cps-ranking th,
  .cps-ranking td {
    padding: 14px 6px;
  }

  .cps-ranking .cps-attempt-col {
    display: none;
  }

  .cps-ranking .cps-rank-cell,
  .cps-ranking .cps-rank-head {
    width: var(--cps-col-rank, 48px);
    min-width: var(--cps-col-rank, 48px);
    max-width: var(--cps-col-rank, 48px);
  }

  .cps-ranking .cps-competitor-cell {
    min-width: 0;
    width: auto;
    overflow: visible;
  }

  .cps-xpr-badge {
    top: -8px;
  }

  .cps-result-modal {
    align-items: start;
    padding: 76px 20px 24px;
  }

  .cps-result-modal-card {
    padding: 28px;
  }

  .cps-result-modal-card h3 {
    font-size: 28px;
  }

  .cps-result-modal-card dd {
    font-size: 20px;
  }
}

.cps-app.is-light-mode {
  --cps-black: #ffffff;
  --cps-panel: #ffffff;
  --cps-panel-2: #f6f6f6;
  --cps-line: #d8d8d8;
  --cps-text: #050505;
  --cps-muted: #4c4c4c;
  color-scheme: light;
  background: #ffffff;
  color: #050505;
}

html:has(.cps-app.is-light-mode),
body.cps-light-mode,
body:has(.cps-app.is-light-mode),
body:has(.cps-app.is-light-mode.is-x-comp) {
  background: #ffffff;
}

.cps-app.is-light-mode .cps-faux-footer,
.cps-app.is-light-mode .cps-modal-panel,
.cps-app.is-light-mode .cps-modal-head,
.cps-app.is-light-mode .cps-setup,
.cps-app.is-light-mode .cps-stage,
.cps-app.is-light-mode .cps-sim-header,
.cps-app.is-light-mode .cps-competition-bar,
.cps-app.is-light-mode .cps-home-header .cps-competition-bar,
.cps-app.is-light-mode .cps-history-view,
.cps-app.is-light-mode .cps-history-top,
.cps-app.is-light-mode .cps-history-competition,
.cps-app.is-light-mode .cps-history-table-wrap,
.cps-app.is-light-mode .cps-history-table,
.cps-app.is-light-mode .cps-ranking,
.cps-app.is-light-mode .cps-ranking tr,
.cps-app.is-light-mode .cps-x-comp-preview-list,
.cps-app.is-light-mode .cps-x-comp-hub,
.cps-app.is-light-mode .cps-x-comp-card,
.cps-app.is-light-mode .cps-x-comp-form,
.cps-app.is-light-mode .cps-x-comp-joined-card,
.cps-app.is-light-mode .cps-x-comp-countdown-panel {
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-step-head h3,
.cps-app.is-light-mode .cps-modal-head h2,
.cps-app.is-light-mode .cps-history-top h2,
.cps-app.is-light-mode .cps-history-empty h3,
.cps-app.is-light-mode .cps-history-event h3,
.cps-app.is-light-mode .cps-history-main-result,
.cps-app.is-light-mode .cps-history-competition-main,
.cps-app.is-light-mode .cps-history-event h3 .cubing-icon,
.cps-app.is-light-mode .cps-competition-bar strong,
.cps-app.is-light-mode .cps-bar-round-title span,
.cps-app.is-light-mode .cps-round-title p,
.cps-app.is-light-mode .cps-callup-title,
.cps-app.is-light-mode .cps-mode-icon,
.cps-app.is-light-mode .cps-option-icon,
.cps-app.is-light-mode .cps-event-tile .cubing-icon,
.cps-app.is-light-mode .cps-ranking .cps-competitor-cell,
.cps-app.is-light-mode .cps-ranking .cps-competitor-cell a,
.cps-app.is-light-mode .cps-ranking .cps-result-main,
.cps-app.is-light-mode .cps-ranking .cps-result-best,
.cps-app.is-light-mode .cps-ranking .cps-rank-cell,
.cps-app.is-light-mode .cps-faux-footer a,
.cps-app.is-light-mode .cps-footer-version {
  color: #050505;
}

.cps-app.is-light-mode.is-simulating:has(.cps-entry.has-video) .cps-sim-header .cps-competition-bar strong,
.cps-app.is-light-mode.is-simulating:has(.cps-entry.has-video) .cps-sim-header .cps-bar-round-title span {
  color: #ffffff;
}

.cps-app.is-light-mode .cps-app input,
.cps-app.is-light-mode input,
.cps-app.is-light-mode select,
.cps-app.is-light-mode textarea,
.cps-app.is-light-mode .cps-x-comp-schedule-grid input,
.cps-app.is-light-mode .cps-x-comp-schedule-grid select,
.cps-app.is-light-mode .cps-x-comp-form input,
.cps-app.is-light-mode .cps-x-comp-form select,
.cps-app.is-light-mode .cps-x-comp-form textarea,
.cps-app.is-light-mode .cps-x-comp-card input {
  border-color: #cfcfcf;
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode input:focus,
.cps-app.is-light-mode select:focus,
.cps-app.is-light-mode textarea:focus {
  background: #ffffff;
  color: #050505;
  outline-color: var(--cps-red);
}

.cps-app.is-light-mode input:-webkit-autofill,
.cps-app.is-light-mode input:-webkit-autofill:hover,
.cps-app.is-light-mode input:-webkit-autofill:focus {
  -webkit-text-fill-color: #050505;
  box-shadow: 0 0 0 1000px #ffffff inset;
}

.cps-app.is-light-mode .cps-x-comp-schedule-grid input[type="date"],
.cps-app.is-light-mode .cps-x-comp-schedule-grid input[type="time"] {
  color-scheme: light;
}

.cps-app.is-light-mode .cps-x-comp-schedule-grid input[type="date"]::-webkit-calendar-picker-indicator,
.cps-app.is-light-mode .cps-x-comp-schedule-grid input[type="time"]::-webkit-calendar-picker-indicator {
  filter: none;
}

.cps-app.is-light-mode .cps-primary,
.cps-app.is-light-mode .cps-toggle,
.cps-app.is-light-mode .cps-history-back,
.cps-app.is-light-mode .cps-history-filter-button,
.cps-app.is-light-mode .cps-event-tile,
.cps-app.is-light-mode .cps-auth-link,
.cps-app.is-light-mode .cps-auth-chip,
.cps-app.is-light-mode .cps-auth-muted,
.cps-app.is-light-mode .cps-auth-signout,
.cps-app.is-light-mode .cps-auth-icon-button,
.cps-app.is-light-mode .cps-x-comp-selected-people > span,
.cps-app.is-light-mode .cps-x-comp-person-badge,
.cps-app.is-light-mode .cps-x-comp-public-badge {
  border-color: #d8d8d8;
  background: #ffffff;
  color: #050505 !important;
}

.cps-app.is-light-mode .cps-auth-overlay .cps-auth-link {
  border-color: rgba(225, 27, 26, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2), 0 0 16px rgba(225, 27, 26, 0.16), 0 0 0 1px rgba(225, 27, 26, 0.08);
}

.cps-app.is-light-mode .cps-auth-overlay .cps-auth-link:hover,
.cps-app.is-light-mode .cps-auth-overlay .cps-auth-link:focus {
  border-color: #ff3534;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25), 0 0 20px rgba(225, 27, 26, 0.22), 0 0 0 3px rgba(225, 27, 26, 0.28);
}

.cps-app.is-light-mode .cps-primary {
  border-color: var(--cps-red);
  background: var(--cps-red);
  color: #ffffff !important;
}

.cps-app.is-light-mode .cps-discord-live-button {
  border-color: #050505;
  background: #050505;
  color: #ffffff !important;
}

.cps-app.is-light-mode .cps-primary:hover,
.cps-app.is-light-mode .cps-primary:focus {
  border-color: var(--cps-red-2);
  background: var(--cps-red-2);
  color: #ffffff !important;
}

.cps-app.is-light-mode .cps-challenge-post-actions .cps-primary,
.cps-app.is-light-mode .cps-challenge-post-actions .cps-primary:hover,
.cps-app.is-light-mode .cps-challenge-post-actions .cps-primary:focus {
  border-color: #050505;
  background: #050505;
  color: #ffffff !important;
}

.cps-app.is-light-mode .cps-discord-live-button:hover,
.cps-app.is-light-mode .cps-discord-live-button:focus {
  border-color: #050505;
  background: #050505;
  color: #ffffff !important;
}

.cps-app.is-light-mode .cps-toggle:hover,
.cps-app.is-light-mode .cps-toggle:focus,
.cps-app.is-light-mode .cps-toggle.is-selected,
.cps-app.is-light-mode .cps-history-filter-button:hover,
.cps-app.is-light-mode .cps-history-filter-button:focus,
.cps-app.is-light-mode .cps-history-filter-button.is-selected,
.cps-app.is-light-mode .cps-event-tile:hover,
.cps-app.is-light-mode .cps-event-tile:focus,
.cps-app.is-light-mode .cps-event-tile.is-selected,
.cps-app.is-light-mode .cps-history-competition-main:hover,
.cps-app.is-light-mode .cps-history-competition-main:focus,
.cps-app.is-light-mode .cps-history-table tbody tr:hover,
.cps-app.is-light-mode .cps-history-table tbody tr:focus,
.cps-app.is-light-mode .cps-ranking tbody tr:hover,
.cps-app.is-light-mode .cps-ranking tbody tr:focus,
.cps-app.is-light-mode .cps-round-tab:hover,
.cps-app.is-light-mode .cps-round-tab:focus,
.cps-app.is-light-mode .cps-round-tab.is-selected {
  border-color: var(--cps-red-2);
  background: #fff0f0;
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking th,
.cps-app.is-light-mode .cps-sticky-table-head,
.cps-app.is-light-mode .cps-history-table th {
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking tbody td,
.cps-app.is-light-mode .cps-history-table th,
.cps-app.is-light-mode .cps-history-table td,
.cps-app.is-light-mode .cps-x-comp-preview-row {
  border-color: #d8d8d8;
}

.cps-app.is-light-mode .cps-tip,
.cps-app.is-light-mode .cps-premium-help::after,
.cps-tip::after {
  border-color: #cfcfcf;
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-login-overlay {
  background: rgba(255, 255, 255, 0.58);
}

.cps-app.is-light-mode .cps-event-status.is-error {
  background: #fff0f0;
  color: #050505;
}

.cps-app.is-light-mode .cps-trial-banner span,
.cps-app.is-light-mode .cps-trial-banner small {
  color: #555555;
}

.cps-app.is-light-mode .cps-upgrade-link,
.cps-app.is-light-mode .cps-upgrade-link:hover,
.cps-app.is-light-mode .cps-upgrade-link:focus {
  color: #050505;
}

.cps-app.is-light-mode .cps-share-button,
.cps-app.is-light-mode .cps-profile-results,
.cps-app.is-light-mode .cps-history-trash {
  color: #050505;
}

.cps-app.is-light-mode .cps-share-button:hover,
.cps-app.is-light-mode .cps-share-button:focus,
.cps-app.is-light-mode .cps-profile-results:hover,
.cps-app.is-light-mode .cps-profile-results:focus,
.cps-app.is-light-mode .cps-history-trash:hover,
.cps-app.is-light-mode .cps-history-trash:focus,
.cps-app.is-light-mode .cps-faux-footer a:hover,
.cps-app.is-light-mode .cps-faux-footer a:focus,
.cps-app.is-light-mode .cps-footer-version:hover,
.cps-app.is-light-mode .cps-footer-version:focus,
.cps-app.is-light-mode .cps-ranking .cps-competitor-cell a:hover,
.cps-app.is-light-mode .cps-ranking .cps-competitor-cell a:focus,
.cps-app.is-light-mode .cps-history-round-name {
  color: var(--cps-red-2);
}

.cps-app.is-light-mode .cps-step-status,
.cps-app.is-light-mode .cps-step-status[data-status="working"],
.cps-app.is-light-mode .cps-step-status[data-status="complete"] {
  border-color: #050505;
  color: #050505;
}

.cps-app.is-light-mode .cps-step-status[data-status="working"] {
  border-top-color: transparent;
}

.cps-app.is-light-mode .cps-modal-panel,
.cps-app.is-light-mode .cps-modal-head {
  border-color: #d8d8d8;
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-modal-head p,
.cps-app.is-light-mode .cps-changelog-version time,
.cps-app.is-light-mode .cps-changelog-empty {
  color: #555555;
}

.cps-app.is-light-mode .cps-modal-head h2,
.cps-app.is-light-mode .cps-modal-close,
.cps-app.is-light-mode .cps-changelog-version h3,
.cps-app.is-light-mode .cps-changelog-entry ul {
  color: #050505;
}

.cps-app.is-light-mode .cps-changelog-entry {
  border-color: #d8d8d8;
}

body.cps-light-mode .cps-results-menu {
  border-color: #d8d8d8;
  background: #ffffff;
  color: #050505;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.16);
}

body.cps-light-mode .cps-results-menu-head,
body.cps-light-mode .cps-results-menu-control {
  border-color: #d8d8d8;
}

body.cps-light-mode .cps-results-menu-home,
body.cps-light-mode .cps-theme-toggle,
body.cps-light-mode .cps-results-menu-text-size,
body.cps-light-mode .cps-results-menu-share,
body.cps-light-mode .cps-results-menu-refresh,
body.cps-light-mode .cps-results-menu-all,
body.cps-light-mode .cps-results-menu-event,
body.cps-light-mode .cps-results-menu-round,
body.cps-light-mode .cps-account-sidebar-row,
body.cps-light-mode .cps-results-menu-event .cubing-icon,
body.cps-light-mode .cps-results-menu-round strong {
  color: #050505 !important;
}

body.cps-light-mode .cps-results-menu-home:hover,
body.cps-light-mode .cps-results-menu-home:focus,
body.cps-light-mode .cps-theme-toggle:hover,
body.cps-light-mode .cps-theme-toggle:focus,
body.cps-light-mode .cps-theme-toggle.is-active,
body.cps-light-mode .cps-results-menu-text-size:hover,
body.cps-light-mode .cps-results-menu-text-size:focus,
body.cps-light-mode .cps-results-menu-text-size.is-active,
body.cps-light-mode .cps-results-menu-share:hover,
body.cps-light-mode .cps-results-menu-share:focus,
body.cps-light-mode .cps-results-menu-refresh:hover,
body.cps-light-mode .cps-results-menu-refresh:focus,
body.cps-light-mode .cps-results-menu-all:hover,
body.cps-light-mode .cps-results-menu-all:focus,
body.cps-light-mode .cps-results-menu-event:hover,
body.cps-light-mode .cps-results-menu-event:focus,
body.cps-light-mode .cps-results-menu-round:hover,
body.cps-light-mode .cps-results-menu-round:focus,
body.cps-light-mode .cps-account-sidebar-row:hover,
body.cps-light-mode .cps-account-sidebar-row:focus {
  background: #fff0f0;
  color: var(--cps-red-2) !important;
}

body.cps-light-mode .cps-results-menu-event-group.is-expanded > .cps-results-menu-event,
body.cps-light-mode .cps-results-menu-event-group.is-expanded > .cps-results-menu-event > span:last-child,
body.cps-light-mode .cps-results-menu-event-group.is-expanded .cps-results-menu-event .cubing-icon {
  color: var(--cps-red-2) !important;
}

body.cps-light-mode .cps-results-menu-event.is-unavailable,
body.cps-light-mode .cps-results-menu-round.is-disabled,
body.cps-light-mode .cps-results-menu-round.is-disabled strong {
  color: #8a8a8a !important;
}

body.cps-light-mode .cps-text-size-control {
  color: #050505;
}

body.cps-light-mode .cps-text-size-control input,
body.cps-light-mode .cps-text-size-control input:hover,
body.cps-light-mode .cps-text-size-control input:focus {
  color: #050505;
  accent-color: #050505;
  background: transparent;
}

body.cps-light-mode .cps-text-size-control input::-webkit-slider-runnable-track {
  background: #050505;
}

body.cps-light-mode .cps-text-size-control input::-webkit-slider-thumb {
  background: #050505;
}

body.cps-light-mode .cps-text-size-control input::-moz-range-track {
  background: #050505;
}

body.cps-light-mode .cps-text-size-control input::-moz-range-thumb {
  background: #050505;
}

.cps-app.is-light-mode .cps-table-wrap,
.cps-app.is-light-mode .cps-history-table-wrap,
.cps-app.is-light-mode .cps-ranking,
.cps-app.is-light-mode .cps-history-table {
  background: #ffffff;
  box-shadow: none;
}

.cps-app.is-light-mode .cps-ranking tr,
.cps-app.is-light-mode .cps-history-table tr,
.cps-app.is-light-mode .cps-ranking th,
.cps-app.is-light-mode .cps-history-table th {
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking tbody td,
.cps-app.is-light-mode .cps-history-table th,
.cps-app.is-light-mode .cps-history-table td {
  border-bottom-color: #d0d0d4;
}

.cps-app.is-light-mode .cps-ranking tbody tr:hover,
.cps-app.is-light-mode .cps-ranking tbody tr:focus,
.cps-app.is-light-mode .cps-history-table tbody tr:hover,
.cps-app.is-light-mode .cps-history-table tbody tr:focus {
  background: #ededf0;
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking tr.is-advancing .cps-rank-cell,
.cps-app.is-light-mode .cps-history-rank.is-advancing {
  background: #00e676;
  color: #082014;
}

.cps-app.is-light-mode .cps-ranking tr.is-user td {
  background: #ededf0;
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking tr.is-user .cps-competitor-cell {
  color: #050505;
}

.cps-app.is-light-mode .cps-ranking tr.is-user.is-advancing .cps-rank-cell {
  background: #00e676;
  color: #082014;
}

.cps-app.is-light-mode .cps-xpr-badge,
.cps-app.is-light-mode .cps-sim-badge {
  background: #050505;
  color: #ffffff;
  box-shadow: none;
}

.cps-app.is-light-mode .cps-step-head > span:first-child {
  color: #ffffff;
}

.cps-app.is-light-mode .cps-help-modal {
  background: rgba(255, 255, 255, 0.72);
}

.cps-app.is-light-mode .cps-help-card,
.cps-app.is-light-mode .cps-help-step,
.cps-app.is-light-mode .cps-referral-copy-row input,
.cps-app.is-light-mode .cps-referral-widget-stats span {
  border-color: #d8d8d8;
  background: #ffffff;
  color: #050505;
}

.cps-app.is-light-mode .cps-help-head h2,
.cps-app.is-light-mode .cps-help-close {
  color: #050505;
}

.cps-app.is-light-mode .cps-referral-copy-row button {
  background: var(--cps-red);
  color: #ffffff;
}

.cps-app.is-light-mode .cps-referral-copy-row button:hover,
.cps-app.is-light-mode .cps-referral-copy-row button:focus {
  background: var(--cps-red-2);
  color: #ffffff;
}

.cps-app.is-light-mode .cps-x-comp-section h3,
.cps-app.is-light-mode .cps-x-comp-upcoming summary,
.cps-app.is-light-mode .cps-x-comp-upcoming-title,
.cps-app.is-light-mode .cps-x-comp-card-title,
.cps-app.is-light-mode .cps-x-comp-card-title span,
.cps-app.is-light-mode .cps-x-comp-countdown-boxes strong,
.cps-app.is-light-mode .cps-x-comp-countdown-boxes.is-live > strong,
.cps-app.is-light-mode .cps-x-comp-person-label.is-organizer,
.cps-app.is-light-mode .cps-x-comp-person-label a:hover,
.cps-app.is-light-mode .cps-x-comp-person-label a:focus,
.cps-app.is-light-mode .cps-x-comp-register-button:hover,
.cps-app.is-light-mode .cps-x-comp-register-button:focus {
  color: #050505;
}

.cps-app.is-light-mode .cps-x-comp-card.is-selected,
.cps-app.is-light-mode .cps-x-comp-countdown-panel {
  border-color: #d8d8d8;
  background: #ffffff;
  box-shadow: none;
}

.cps-app.is-light-mode .cps-x-comp-card.is-selected {
  border-color: var(--cps-red-2);
  background: #fff0f0;
}

.cps-app.is-light-mode .cps-x-comp-countdown-boxes > span {
  border-color: #d8d8d8;
  background: #f6f6f6;
  color: #050505;
}

.cps-app.is-light-mode .cps-toast {
  border-color: #d8d8d8;
  background: #ffffff;
  color: #050505;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.cps-app.is-light-mode .cps-toast.is-error {
  border-color: var(--cps-red-2);
  background: #fff0f0;
  color: var(--cps-red);
  box-shadow: 0 0 0 1px rgba(191, 13, 12, 0.14), 0 14px 40px rgba(0, 0, 0, 0.16);
}

.cps-app.is-light-mode .cps-toast.is-success {
  border-color: #0d7a42;
  background: #effaf4;
  color: #075f31;
  box-shadow: 0 0 0 1px rgba(13, 122, 66, 0.14), 0 14px 40px rgba(0, 0, 0, 0.16);
}

.cps-announcement-entry p { white-space:pre-wrap; overflow-wrap:anywhere; }

.cps-announcement-body { padding: 20px; color: var(--cps-text); }
.cps-announcement-body h4, .cps-announcement-body p { color: inherit; }
.cps-announcement-body input,
.cps-announcement-body textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--cps-line); border-radius: 6px; background: transparent; color: var(--cps-text); font: inherit; resize: vertical; }
.cps-announcement-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.cps-announcement-reader-head { justify-content: flex-end; border-bottom: 0; padding-bottom: 0; }
.cps-announcement-entry { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--cps-line); }
.cps-announcement-entry p { flex: 1; min-width: 0; }
.cps-announcement-trash { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 6px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.cps-announcement-trash svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cps-announcement-trash:hover { color: var(--cps-red-2); }

.cps-announcement-body input { margin-bottom: 12px; }

.cps-scramble-map { display:block; width:min(320px,100%); margin:14px auto 0; position:relative; z-index:2; color:inherit; }
.cps-scramble-map-image { display:block; width:100%; aspect-ratio: 4 / 3; font:12px system-ui; }
.cps-scramble-map-image svg { display:block; width:100%; height:100%; }
.cps-scramble-map-image svg .hint-facelet { display:none; }
.cps-has-scramble-map { position:relative; padding-bottom:64px !important; }
.cps-has-scramble-map .cps-scramble-map.is-compact { position:absolute; right:6px; bottom:6px; width:64px; height:48px; min-height:0; margin:0; padding:0; border:0; border-radius:4px; background:transparent; cursor:zoom-in; }
.cps-scramble-map.is-compact .cps-scramble-map-image { width:64px; height:48px; font-size:9px; pointer-events:none; }
.cps-scramble-map.is-compact:focus-visible { outline:2px solid #e11b1a; outline-offset:3px; }
.cps-map-dialog { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(600px,92vw); max-height:90dvh; padding:42px 20px 20px; border:2px solid #333; border-radius:8px; background:#101010; color:#fff; overflow:auto; }
.cps-map-dialog.is-light-mode { background:#fff; color:#17191f; border-color:#ddd; }
.cps-map-dialog::backdrop { background:rgba(0,0,0,.72); }
.cps-map-dialog button.cps-modal-close { position:absolute; right:10px; top:8px; display:inline-grid; place-items:center; width:34px; height:34px; min-width:0; min-height:0; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:inherit; font:22px/1 system-ui; cursor:pointer; }
.cps-map-dialog button.cps-modal-close:hover,
.cps-map-dialog button.cps-modal-close:focus { background:transparent; color:var(--cps-red-2, #e11b1a); }
.cps-map-dialog .cps-scramble-map-image { max-height:70dvh; }

/* Premium markers describe access without disabling their help controls. */
.cps-premium-crown {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #c69a45;
}
.cps-option-toggle.is-disabled:has(.cps-premium-crown) { opacity: 1; }
.cps-option-toggle.is-disabled:has(.cps-premium-crown) > input,
.cps-option-toggle.is-disabled:has(.cps-premium-crown) > span { opacity: .45; }
.cps-premium-help { position: relative; }
.cps-premium-help:hover, .cps-premium-help:focus { z-index: 100000; }
.cps-mode-tile.cps-premium-help::after {
  top: var(--cps-tip-top, 16px);
  left: var(--cps-tip-left, 16px);
}

.cps-discord-live-button[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.cps-premium-action { display: inline-flex; align-items: center; gap: 6px; }
.cps-premium-action[hidden] { display: none; }
.cps-premium-action .cps-x-comp-schedule-button { margin: 0; }
.cps-premium-action:has(.cps-x-comp-schedule-button) { display: flex; width: 100%; margin-top: 22px; }
.cps-premium-action .cps-x-comp-schedule-button { flex: 1; width: auto; }
