﻿
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Body */
  body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    height: 100vh;
    padding-top: 70px;
  }

  body.loading {
    overflow: hidden;
  } 

  /* messaggi nel controllo inserimento info in regisrazione */

  small {
display: block;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    color: #ccc;
    transition: color 0.3s ease;
    margin-left: 8px;
}

.input-password-wrapper {
  position: relative;
  margin-bottom: 0px;
}

  /* Preloader */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937, #111827);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
  }

  #preloader.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .loader-bar-container {
    width: 200px;
    height: 15px;
    border: 1px solid #00baff;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2a2c3e;
  }

  .loader-bar {
    width: 50px;
    height: 100%;
    background-color: #00baff;
    animation: pingpong 1s ease-in-out infinite alternate;
  }

  #preloader_admin.fade-out {
    opacity: 0;
    pointer-events: none;
  }

  .loader-bar-container_admin {
    width: 200px;
    height: 15px;
    border: 1px solid #ff8c00;
    border-radius: 10px;
    overflow: hidden;
    background-color: #2a2c3e;
  }

  .loader-bar_admin {
    width: 50px;
    height: 100%;
    background-color: #ffd000;
    animation: pingpong 1s ease-in-out infinite alternate;
  }

  @keyframes pingpong {
    0%   { transform: translateX(-30px); }
    100% { transform: translateX(180px); }
  }

  /* Topbar */
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }

  /* Bottoni */
.btn-disabled {
  background-color: #333;
  color: #777;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  transition: all 0.2s ease;
}

/* Stato abilitato */
.btn-enabled {
  background-color: #00baff;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transition: all 0.25s ease;
}

.btn-enabled:hover {
  background-color: #00d5ff;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.5);
}




  .btn {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
  }

  .btn-login {
    background-color: #00baff;
    color: white;
  }

.btn-login:hover {
  background-color: #00d5ff;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.5);
}

  .btn-logout {
    background-color: #FF9800;
    color: white;
    text-decoration: none;
  }

  .btn-logout:hover {
  background-color: #FF9800;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(255, 191, 0, 0.5);
}

  .btn-register {
    background-color: #000000;
    color: #5c5c61;
  }

  /* Hero */
  .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
  }

  .hero h1 {
    font-size: 36px;
    font-weight: 800;
    color: #00baff;
    margin-bottom: 12px;
  }

  .hero p {
    position: absolute;
    font-size: 16px;
    color: #ccc;
    max-width: 400px;
    top: 90px;
    padding: 20px;
  }

  /* Area Search */
  .search-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    padding: 0 20px;
  }

  .search-wrapper {
    display: flex;
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    padding: 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  #search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 0 16px;
    outline: none;
  }

  .search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #00baff;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
  }

  .search-btn:hover {
    background-color: #00a0d6;
  }

  /* Azioni */
  .action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .btn-light {
    background: #00baff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .btn-light:hover {
  background-color: #00d5ff;
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.5);
}

  /* Suggerimenti */
  #suggestionsList {
    position: absolute;
    top: 115%;
    left: 0;
    right: 0;
    background: #232434fa;
    border-top: none;
    max-height: 250px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    font-size: 14px;
    text-align: left;
    border-radius: 10px;
  }

  #suggestionsList li {
    padding: 7px;
    cursor: pointer;
  }

  #suggestionsList li:hover {
    background-color: #f2f2f2;
  }

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Stato attivo */
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Finestra interna con effetto zoom */
.modal-box {
  background: #111;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Stato visibile */
.modal-overlay.active .modal-box {
  transform: scale(1);
  opacity: 1;
}


.modal-box {
	position:absolute;
  background: #1a1c2e;
  border-radius: 16px;
padding: 20px;
  width: 90%;
  max-width: 400px;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-box h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #00baff;
  text-align: center;
}

.modal-box form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 12px;
  color: white;
  font-size: 14px;
  width: 100%;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.modal-box form input:focus {
  border-color: #00baff;
}

.modal-box form button {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s;
}

.modal-close:hover {
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.input-password-wrapper {
  position: relative;
  width: 100%;
}

.input-password-wrapper input {
  width: 100%;
  padding-right: 40px; /* spazio per l'icona */
}

.toggle-password {
  position: absolute;
  top: 35%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #aaa;
  user-select: none;
}

.toggle-password:hover {
  color: #fff;
}

.modal-box select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.modal-box select:focus {
  border-color: #00baff;
  outline: none;
}

.modal-box .btn {
  background-color: #00baff;
  color: white;
  font-weight: bold;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.modal-box p {
	margin-top: -15px;
    font-size: 14px;
    color: #ccc;
    max-width: 400px;
    padding: 20px;
	text-align:center;
}

.modal-box .btn:hover {
  background-color: #009fd8;
}

.hidden {
  display: none;
}

.modal-box select option {
  background-color: #1a1c2e;
  color: white;
  font-size: 14px;
}

.modal-box select:focus option {
  background-color: #1a1c2e;
  color: white;
}

/* Dashboard: social visual theme */
body.ct-dashboard-page {
  min-height: 100vh;
  height: auto;
  padding-top: 86px;
  color: #172033;
  background:
    linear-gradient(180deg, rgba(0, 186, 255, 0.12), rgba(255, 255, 255, 0) 340px),
    linear-gradient(135deg, #f5f7fb 0%, #edf2f7 42%, #f8fafc 100%);
}

body.ct-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.ct-dashboard-page .ct-appbar {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.ct-dashboard-page .ct-appbar-brand {
  position: absolute;
  left: 28px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #101828;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.18);
  overflow: hidden;
}

.ct-dashboard-page .ct-appbar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

.ct-dashboard-page .ct-user-summary {
  justify-self: start;
  width: min(760px, calc(100vw - 300px));
  margin-left: max(24px, calc((100vw - 1040px) / 2));
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: grid-template-columns 260ms cubic-bezier(.2,.86,.24,1), gap 220ms ease;
}

.ct-dashboard-page .ct-user-summary.is-searching {
  grid-template-columns: 0fr minmax(300px, 1fr) auto;
  gap: 4px;
}

.ct-dashboard-page .ct-user-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 210ms ease, transform 260ms cubic-bezier(.2,.86,.24,1);
}

.ct-dashboard-page .ct-user-summary.is-searching .ct-user-identity {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px) scale(0.96);
}

.ct-dashboard-page .ct-topbar-search-stage {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(16px) scale(0.96);
  transition: opacity 210ms ease, transform 260ms cubic-bezier(.2,.86,.24,1);
}

.ct-dashboard-page .ct-user-summary.is-searching .ct-topbar-search-stage {
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.ct-dashboard-page .ct-profile-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(0, 186, 255, 0.28);
}

.ct-dashboard-page .ct-user-copy {
  min-width: 0;
}

.ct-dashboard-page .ct-user-summary strong {
  display: block;
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-summary span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-team-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-dashboard-page .ct-user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ct-dashboard-page .ct-user-actions button,
.ct-dashboard-page .ct-user-actions a {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #101828;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.ct-dashboard-page .ct-user-actions button:hover,
.ct-dashboard-page .ct-user-actions a:hover,
.ct-dashboard-page .ct-user-actions a.active {
  background: rgba(0, 186, 255, 0.12);
  color: #008ec2;
  transform: translateY(-1px);
}

.ct-dashboard-page .ct-user-actions .ct-user-logout:hover {
  background: rgba(16, 24, 40, 0.12);
  color: #101828;
}

.ct-dashboard-page .ct-user-actions .ct-user-logout {
  display: none;
}

.ct-dashboard-page .ct-user-actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ct-dashboard-page .ct-user-actions .ct-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dc2626;
  border-radius: 50%;
  background: #dc2626;
  color: #fff !important;
  font-size: 10px;
  font-weight: 900 !important;
  line-height: 1;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.25);
}

.ct-dashboard-page .ct-user-actions .ct-icon-badge.hidden {
  display: none;
}

.ct-dashboard-page .ct-appbar .btn-logout {
  position: absolute;
  right: 28px;
}

.ct-dashboard-page .btn {
  border-radius: 999px;
}

.ct-dashboard-page .btn-login {
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.28);
}

.ct-dashboard-page .btn-login:hover {
  background: linear-gradient(135deg, #00a8e8, #0fb181);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 186, 255, 0.3);
}

.ct-dashboard-page .btn-logout {
  background: #101828;
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.18);
}

.ct-dashboard-page .btn-logout:hover {
  background: #27364f;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.22);
}

.ct-dashboard-page .ct-dashboard-shell {
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: minmax(0, 660px) 320px;
  justify-content: center;
  gap: 20px;
  padding-bottom: 42px;
}

.ct-dashboard-page .ct-feed-column,
.ct-dashboard-page .ct-coupon-column {
  gap: 18px;
}

.ct-dashboard-page .ct-coupon-column {
  top: 92px;
}

.ct-dashboard-page .ct-dashboard-pull-refresh {
  --ct-pull-distance: 0px;
  --ct-pull-progress: 0;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  z-index: 20000;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.62);
  opacity: var(--ct-pull-progress);
  pointer-events: none;
  transform: translate(-50%, calc(-70px + var(--ct-pull-distance))) scale(calc(0.72 + (var(--ct-pull-progress) * 0.28)));
  backdrop-filter: blur(14px);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.2,.86,.22,1);
}

.ct-dashboard-page .ct-dashboard-pull-refresh .ct-app-loader-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
  opacity: 0.72;
  animation-play-state: paused;
  transform: rotate(calc(var(--ct-pull-progress) * 210deg));
}

.ct-dashboard-page .ct-dashboard-pull-refresh.ready .ct-app-loader-spinner,
.ct-dashboard-page .ct-dashboard-pull-refresh.refreshing .ct-app-loader-spinner {
  opacity: 1;
  animation-play-state: running;
}

.ct-dashboard-page .ct-dashboard-pull-refresh.refreshing {
  opacity: 1;
  transform: translate(-50%, 16px) scale(1);
}

.ct-dashboard-page .ct-results-ticker {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.ct-dashboard-page .ct-results-ticker-window {
  min-width: 0;
  overflow: hidden;
}

.ct-dashboard-page .ct-results-ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: ct-results-ticker-scroll 92s linear infinite;
}

.ct-dashboard-page .ct-results-ticker:hover .ct-results-ticker-track {
  animation-play-state: paused;
}

.ct-dashboard-page .ct-results-ticker-run {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
}

.ct-dashboard-page .ct-result-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #101828;
  text-decoration: none;
  white-space: nowrap;
}

.ct-dashboard-page .ct-result-ticker-league,
.ct-dashboard-page .ct-result-ticker-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ct-dashboard-page .ct-result-ticker-league {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.ct-dashboard-page .ct-result-ticker-league img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ct-dashboard-page .ct-result-ticker-match {
  font-size: 13px;
  font-weight: 900;
}

.ct-dashboard-page .ct-result-ticker-match .ct-team-name {
  max-width: 106px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-dashboard-page .ct-result-ticker-separator {
  width: 1px;
  height: 28px;
  margin: 0 18px;
  background: rgba(15, 23, 42, 0.12);
}

.ct-dashboard-page .ct-results-ticker-link {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(0, 186, 255, 0.18);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(.2,.86,.22,1),
    width 280ms cubic-bezier(.2,.86,.22,1),
    box-shadow 220ms ease;
}

.ct-dashboard-page .ct-results-ticker-link .ct-results-ticker-loader {
  position: absolute;
  width: 16px;
  height: 16px;
  display: none;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
}

.ct-dashboard-page .ct-results-ticker-link.is-loading {
  pointer-events: none;
  cursor: wait;
}

.ct-dashboard-page .ct-results-ticker-link.is-loading > span:not(.ct-results-ticker-loader),
.ct-dashboard-page .ct-results-ticker-link.is-loading > strong {
  visibility: hidden;
}

.ct-dashboard-page .ct-results-ticker-link.is-loading > .ct-results-ticker-loader {
  display: block;
}

.ct-dashboard-page .ct-results-ticker-link strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #e11d48;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.ct-dashboard-page .ct-results-ticker-dock,
.ct-dashboard-page .ct-results-ticker-fab {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
}

.ct-dashboard-page .ct-results-ticker-dock {
  left: var(--ct-results-dock-left, 0);
  top: var(--ct-results-dock-top, 78px);
  width: var(--ct-results-dock-width, 320px);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-12px) scale(0.96);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(.2,.86,.22,1),
    width 280ms cubic-bezier(.2,.86,.22,1),
    box-shadow 220ms ease;
}

.ct-dashboard-page .ct-results-ticker-dock .ct-results-ticker-link {
  width: 100%;
  min-height: 40px;
  border-radius: 11px;
}

.ct-dashboard-page .ct-results-ticker-dock.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ct-dashboard-page .ct-results-ticker-fab {
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.24), 0 10px 24px rgba(0, 186, 255, 0.22);
  transform: translateX(112%) scale(0.96);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(.2,.86,.22,1),
    bottom 220ms ease,
    box-shadow 220ms ease;
}

.ct-dashboard-page .ct-results-ticker-fab.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.ct-dashboard-page .ct-mobile-prediction-fab {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: none;
  border: 0;
  font-family: inherit;
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.24), 0 10px 24px rgba(0, 186, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(112%) scale(0.96);
  transition:
    opacity 220ms ease,
    transform 280ms cubic-bezier(.2,.86,.22,1),
    box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}

.ct-dashboard-page .ct-mobile-prediction-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

@keyframes ct-results-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

.ct-dashboard-page .ct-panel,
.ct-dashboard-page .ct-coupon-box,
.ct-dashboard-page .ct-post-card,
.ct-dashboard-page .ct-match-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  color: #172033;
}

.ct-dashboard-page .ct-panel,
.ct-dashboard-page .ct-coupon-box {
  padding: 20px;
}

.ct-dashboard-page .ct-welcome-panel {
  position: relative;
  overflow: visible;
  min-height: 188px;
  padding: 26px 24px 30px;
  border-bottom-right-radius: 7px;
  border-bottom-left-radius: 7px;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.9), rgba(0, 186, 255, 0.72)),
    linear-gradient(90deg, #101828, #0f766e);
  border: 0;
}

.ct-dashboard-page .ct-welcome-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: 7px;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 18px;
  background: linear-gradient(90deg, #00baff, #13c48f, #ffb020);
  pointer-events: none;
}

.ct-dashboard-page .ct-welcome-panel > * {
  position: relative;
  z-index: 1;
}

.ct-dashboard-page .ct-welcome-panel > div:not(.ct-feed-highlight-preferences) {
  padding-right: 50px;
}

.ct-dashboard-page .ct-kicker {
  color: #009fd8;
  letter-spacing: 0;
}

.ct-dashboard-page .ct-welcome-panel .ct-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.ct-dashboard-page .ct-panel h1,
.ct-dashboard-page .ct-panel h2,
.ct-dashboard-page .ct-coupon-box h2 {
  color: #101828;
}

.ct-dashboard-page .ct-welcome-panel h1,
.ct-dashboard-page .ct-welcome-panel p {
  color: #fff;
}

.ct-dashboard-page .ct-panel h1 {
  font-size: 32px;
}

.ct-dashboard-page .ct-panel h2,
.ct-dashboard-page .ct-coupon-box h2 {
  font-size: 20px;
}

.ct-dashboard-page .ct-panel p,
.ct-dashboard-page .ct-post-card p {
  color: #475467;
}

.ct-dashboard-page .ct-welcome-panel p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.8);
}

/* Versione 11: feed and builder refinement */
.ct-dashboard-page .ct-feed-title-row h2 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.ct-dashboard-page .ct-feed-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.ct-dashboard-page .ct-feed-title-row > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.ct-dashboard-page .ct-section-head {
  margin-bottom: 16px;
}

.ct-dashboard-page .ct-day-tabs,
.ct-dashboard-page .ct-country-tabs {
  gap: 10px;
  margin-bottom: 14px;
  scrollbar-color: rgba(0, 186, 255, 0.45) transparent;
}

.ct-dashboard-page .ct-tab-button,
.ct-dashboard-page .ct-chip-button {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #344054;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.ct-dashboard-page .ct-tab-button {
  min-width: 108px;
  padding: 12px 14px;
}

.ct-dashboard-page .ct-tab-button span {
  color: #344054;
  font-weight: 800;
}

.ct-dashboard-page .ct-tab-button strong {
  color: #008ec2;
}

.ct-dashboard-page .ct-chip-button {
  padding: 10px 14px;
}

.ct-dashboard-page .ct-tab-button.active,
.ct-dashboard-page .ct-chip-button.active,
.ct-dashboard-page .ct-match-select-card.active {
  border-color: rgba(0, 186, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.16), rgba(19, 196, 143, 0.13));
  color: #0f5b75;
  box-shadow: 0 12px 24px rgba(0, 186, 255, 0.14);
}

.ct-dashboard-page .ct-match-card {
  padding: 16px;
}

.ct-dashboard-page .ct-match-select-card:hover {
  border-color: rgba(0, 186, 255, 0.7);
  background: #f8fdff;
  transform: translateY(-2px);
}

.ct-dashboard-page .ct-match-meta {
  color: #667085;
}

.ct-dashboard-page .ct-match-title {
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #101828;
}

.ct-dashboard-page .ct-match-title strong {
  flex: 1;
  font-size: 16px;
}

.ct-dashboard-page .ct-match-title span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
}

.ct-dashboard-page .ct-flag-icon,
.ct-dashboard-page .ct-league-logo,
.ct-dashboard-page .ct-team-logo {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-market-block {
  border-color: rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-dashboard-page .ct-market-toggle {
  color: #101828;
}

.ct-dashboard-page .ct-market-toggle strong {
  background: #e6f8ff;
  color: #008ec2;
}

.ct-dashboard-page .ct-bookmaker-row {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-bookmaker-name {
  color: #008ec2;
}

.ct-dashboard-page .ct-odd-button {
  min-height: 54px;
  border-color: rgba(15, 23, 42, 0.09);
  background: #f8fafc;
  color: #101828;
}

.ct-dashboard-page .ct-odd-button span {
  color: #667085;
}

.ct-dashboard-page .ct-odd-button strong {
  color: #101828;
}

.ct-dashboard-page .ct-odd-button:hover,
.ct-dashboard-page .ct-odd-button.selected {
  border-color: rgba(19, 196, 143, 0.65);
  background: rgba(19, 196, 143, 0.12);
  box-shadow: inset 0 0 0 1px rgba(19, 196, 143, 0.08);
}

.ct-dashboard-page .ct-odd-button:disabled,
.ct-dashboard-page .ct-odd-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  box-shadow: none;
  transform: none;
}

.ct-dashboard-page .ct-empty-coupon {
  border-color: rgba(15, 23, 42, 0.13);
  background: #f8fafc;
  color: #667085;
}

.ct-dashboard-page .ct-coupon-box {
  overflow: hidden;
}

.ct-dashboard-page .ct-coupon-box .ct-section-head {
  margin: -20px -20px 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #101828, #243b53);
}

.ct-dashboard-page .ct-coupon-box .ct-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.ct-dashboard-page .ct-coupon-box h2 {
  color: #fff;
}

.ct-dashboard-page .ct-coupon-box .ct-section-head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.ct-dashboard-page .ct-coupon-line {
  align-items: flex-start;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-coupon-line strong {
  color: #101828;
}

.ct-dashboard-page .ct-coupon-line span {
  color: #667085;
}

.ct-dashboard-page .ct-coupon-line button {
  background: #13c48f;
  box-shadow: 0 8px 16px rgba(19, 196, 143, 0.22);
}

.ct-dashboard-page .ct-coupon-total {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.ct-dashboard-page .ct-coupon-total span {
  color: #667085;
}

.ct-dashboard-page .ct-coupon-total strong {
  color: #008ec2;
}

.ct-dashboard-page .ct-coupon-note {
  border-color: rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #101828;
}

.ct-dashboard-page .ct-coupon-note::placeholder {
  color: #98a2b3;
}

.ct-dashboard-page .ct-post-card {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.ct-dashboard-page .ct-post-card.comment-menu-open {
  z-index: 60;
  overflow: visible;
}

.ct-dashboard-page .ct-post-author {
  padding: 16px 18px 0;
  position: relative;
  padding-right: 122px;
}

.ct-dashboard-page .ct-post-author img {
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.ct-dashboard-page .ct-post-author strong {
  color: #101828;
}

.ct-dashboard-page .ct-post-author span {
  color: #667085;
}

.ct-dashboard-page .ct-post-card p {
  margin: 12px 18px 0;
  font-size: 15px;
}

.ct-dashboard-page .ct-feed-coupon {
  margin: 16px 18px 0;
  border-color: rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.ct-dashboard-page .ct-feed-coupon-head {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.12), rgba(19, 196, 143, 0.12));
}

.ct-dashboard-page .ct-feed-coupon-head span {
  color: #475467;
}

.ct-dashboard-page .ct-feed-coupon-head strong {
  color: #007aa8;
}

.ct-dashboard-page .ct-feed-selection {
  padding: 14px;
  border-top-color: rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-feed-selection-meta {
  color: #667085;
}

.ct-dashboard-page .ct-feed-selection-match {
  color: #101828;
  cursor: pointer;
  border-radius: 10px;
}

.ct-dashboard-page .ct-feed-selection strong {
  color: #101828;
}

.ct-dashboard-page .ct-feed-selection span {
  color: #667085;
}

.ct-dashboard-page .ct-post-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fbfcfe;
}

.ct-dashboard-page .ct-post-actions button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  background: transparent;
  color: #475467;
  font-weight: 800;
}

.ct-dashboard-page .ct-post-actions svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ct-dashboard-page .ct-post-actions strong {
  min-width: 1ch;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.ct-dashboard-page .ct-post-actions button:hover {
  background: #eef2f7;
  color: #101828;
}

.ct-dashboard-page .ct-post-action-btn.active {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
}

@media (max-width: 980px) {
  .ct-dashboard-page .ct-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .ct-dashboard-page .ct-coupon-column {
    position: static;
  }
}

@media (max-width: 560px) {
  body.ct-dashboard-page {
    padding-top: 118px;
  }

  .ct-dashboard-page .ct-appbar {
    padding: 10px 14px;
  }

  .ct-dashboard-page .ct-dashboard-shell {
    width: min(100% - 18px, 1180px);
    gap: 14px;
  }

  .ct-dashboard-page .ct-welcome-panel {
    align-items: stretch;
    min-height: 178px;
    padding-bottom: 28px;
  }

  .ct-dashboard-page .ct-panel,
  .ct-dashboard-page .ct-coupon-box {
    padding: 16px;
  }

  .ct-dashboard-page .ct-panel h1 {
    font-size: 27px;
  }

  .ct-dashboard-page .ct-feed-selection-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Dashboard base */
body.ct-dashboard-foundation {
  min-height: 100vh;
  height: auto;
  padding-top: 78px;
  background: linear-gradient(135deg, #172033, #0f121b);
}

.ct-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.ct-appbar-brand img {
  height: 34px;
  display: block;
}

.ct-user-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ct-user-summary img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.ct-user-summary strong,
.ct-user-summary span {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-user-summary strong {
  font-size: 14px;
  color: #fff;
}

.ct-user-summary span {
  margin-top: 2px;
  font-size: 12px;
  color: #aab4c3;
}

.ct-appbar .btn-logout {
  justify-self: end;
}

.ct-dashboard-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.ct-feed-column,
.ct-coupon-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-builder-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-dashboard-page .ct-builder-area .ct-panel {
  overflow: hidden;
}

.ct-builder-area.hidden,
.ct-coupon-column.hidden {
  display: none;
}

.ct-coupon-column {
  position: sticky;
  top: 82px;
}

.ct-panel,
.ct-coupon-box,
.ct-post-card,
.ct-match-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.ct-panel,
.ct-coupon-box {
  padding: 16px;
}

.ct-welcome-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.ct-kicker {
  display: block;
  margin-bottom: 5px;
  color: #00baff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ct-panel h1,
.ct-panel h2,
.ct-coupon-box h2 {
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

.ct-panel h1 {
  font-size: 26px;
}

.ct-panel h2,
.ct-coupon-box h2 {
  font-size: 18px;
}

.ct-panel p,
.ct-post-card p {
  margin-top: 8px;
  color: #c5ceda;
  line-height: 1.5;
}

.ct-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ct-filter-select {
  min-width: 160px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  padding: 9px 10px;
}

.ct-filter-select option {
  background: #1a1c2e;
  color: #fff;
}

.ct-match-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-day-tabs,
.ct-country-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.ct-tab-button,
.ct-chip-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.2s, background 0.2s;
}

.ct-tab-button {
  min-width: 94px;
  padding: 10px 12px;
}

.ct-tab-button span,
.ct-tab-button strong {
  display: block;
}

.ct-tab-button span {
  font-size: 13px;
}

.ct-tab-button strong {
  margin-top: 4px;
  color: #00baff;
  font-size: 12px;
}

.ct-chip-button {
  padding: 9px 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ct-flag-icon,
.ct-league-logo,
.ct-team-logo {
  display: inline-block !important;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.92);
}

.ct-flag-icon {
  width: 20px !important;
  height: 14px !important;
  max-width: 20px !important;
  max-height: 14px !important;
  border-radius: 3px;
  padding: 0;
}

.ct-league-logo {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  border-radius: 50%;
  padding: 2px;
}

.ct-team-logo {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  border-radius: 50%;
  padding: 2px;
}

.ct-tab-button.active,
.ct-chip-button.active,
.ct-match-select-card.active {
  border-color: #00baff;
  background: rgba(0, 186, 255, 0.16);
}

.ct-match-card {
  padding: 14px;
}

.ct-match-select-card {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ct-match-select-card:hover {
  border-color: rgba(0, 186, 255, 0.55);
  transform: translateY(-1px);
}

.ct-match-meta,
.ct-match-title,
.ct-odds-row,
.ct-post-author,
.ct-post-actions,
.ct-coupon-total,
.ct-coupon-line {
  display: flex;
  align-items: center;
}

.ct-match-meta {
  justify-content: space-between;
  gap: 10px;
  color: #9ca8b7;
  font-size: 12px;
}

.ct-match-league {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-bookmaker-meta {
  margin-top: 7px;
  color: #00baff;
}

.ct-match-title {
  gap: 9px;
  margin-top: 10px;
  font-size: 17px;
}

.ct-match-title strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.ct-match-title span {
  color: #8592a6;
  font-size: 12px;
}

.ct-odds-row {
  gap: 8px;
  margin-top: 12px;
}

.ct-odds-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-market-block {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.ct-market-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.ct-market-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ct-market-toggle strong {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 186, 255, 0.16);
  color: #00baff;
}

.ct-market-content {
  display: none;
  padding: 0 12px 12px;
}

.ct-market-block.open .ct-market-content {
  display: block;
}

.ct-bookmaker-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-bookmaker-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.ct-bookmaker-name {
  margin-bottom: 8px;
  color: #00baff;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ct-market-odds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.ct-odd-button {
  flex: 1;
  min-height: 48px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ct-odd-button span,
.ct-odd-button strong {
  display: block;
}

.ct-odd-button span {
  font-size: 12px;
  color: #aeb8c7;
  overflow-wrap: anywhere;
}

.ct-odd-button strong {
  margin-top: 3px;
  font-size: 16px;
}

.ct-odd-button:hover,
.ct-odd-button.selected {
  border-color: #00baff;
  background: rgba(0, 186, 255, 0.16);
  transform: translateY(-1px);
}

.ct-odd-button:disabled,
.ct-odd-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.ct-empty-coupon {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #aab4c3;
  text-align: center;
}

.ct-coupon-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-coupon-line {
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
}

.ct-coupon-line strong,
.ct-coupon-line span {
  display: block;
}

.ct-coupon-line strong {
  font-size: 13px;
}

.ct-coupon-line span {
  margin-top: 3px;
  color: #aab4c3;
  font-size: 12px;
}

.ct-coupon-line button {
  min-width: 54px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #00baff;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.ct-coupon-total {
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-coupon-total span {
  color: #aab4c3;
}

.ct-coupon-total strong {
  font-size: 24px;
  color: #00baff;
}

.ct-coupon-note {
  width: 100%;
  min-height: 86px;
  margin: 14px 0;
  padding: 11px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font: inherit;
}

.ct-publish-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.ct-publish-message.success {
  color: #56d68a;
}

.ct-publish-message.error {
  color: #ff8c8c;
}

.ct-publish-message.warning {
  color: #f4a340;
}

.ct-messages-page #messageFeedback {
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 0;
  margin: -2px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 10px;
  background: #fff4f4;
  color: #b42318;
  text-align: left;
  font-weight: 800;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.ct-messages-page #messageFeedback:empty {
  display: none;
}

.ct-messages-page #messageFeedback.is-hiding {
  opacity: 0;
  transform: translateY(4px);
}

.ct-post-card {
  padding: 14px;
}

.ct-post-author {
  gap: 10px;
}

.ct-post-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.ct-post-author span {
  display: block;
  margin-top: 2px;
  color: #9ca8b7;
  font-size: 12px;
}

.ct-post-author-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ct-post-author .ct-system-author-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 3px 7px;
  border: 1px solid rgba(0, 159, 216, 0.24);
  border-radius: 6px;
  background: rgba(0, 186, 255, 0.1);
  color: #007aa8;
  font-size: 10px;
  font-weight: 900;
}

.ct-data-lab-post {
  margin-top: 14px;
  padding: 0 0 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #172033;
}

.ct-data-lab-head {
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.13), rgba(19, 196, 143, 0.1));
}

.ct-data-lab-head > span {
  display: block;
  margin-bottom: 4px;
  color: #008ec2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-data-lab-head h2 {
  margin: 0;
  color: #101828;
  font-size: 18px;
  line-height: 1.25;
}

.ct-post-card .ct-data-lab-head p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.ct-data-lab-match {
  display: block;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}

.ct-data-lab-match:hover {
  background: #f7fcff;
}

.ct-data-lab-chart {
  width: auto;
  margin: 12px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 6px;
  background: #f7f9fc;
  aspect-ratio: 16 / 9;
}

.ct-data-lab-chart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ct-data-lab-league {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-data-lab-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 26px 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.ct-data-lab-teams strong {
  min-width: 0;
  color: #101828;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ct-data-lab-teams strong:first-child {
  text-align: right;
}

.ct-data-lab-teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ct-data-lab-teams b {
  color: #98a2b3;
  font-size: 10px;
  text-align: center;
}

.ct-data-lab-signal,
.ct-data-lab-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 18px 0;
}

.ct-data-lab-signal > span,
.ct-data-lab-evidence > span {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #fff;
}

.ct-data-lab-signal small,
.ct-data-lab-evidence small {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 10px;
  line-height: 1.2;
}

.ct-data-lab-signal strong,
.ct-data-lab-evidence strong {
  display: block;
  color: #101828;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ct-data-lab-reasons {
  padding: 14px 18px 0;
}

.ct-data-lab-reasons > strong {
  color: #101828;
  font-size: 12px;
}

.ct-data-lab-reasons ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.ct-data-lab-post footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 18px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #667085;
  font-size: 10px;
  line-height: 1.4;
}

.ct-data-lab-post footer span {
  min-width: 0;
}

.ct-data-lab-post footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid rgba(0, 135, 90, 0.28);
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.ct-data-lab-post footer a:hover {
  background: #d1fadf;
}

@media (max-width: 640px) {
  .ct-data-lab-head,
  .ct-data-lab-match {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ct-data-lab-chart {
    margin-right: 14px;
    margin-left: 14px;
  }

  .ct-data-lab-signal,
  .ct-data-lab-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 14px;
    padding-left: 14px;
  }

  .ct-data-lab-reasons {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ct-data-lab-post footer {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 14px;
    margin-left: 14px;
  }
}

.ct-post-actions {
  gap: 8px;
  margin-top: 12px;
}

.ct-post-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
}

.ct-feed-coupon {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.ct-feed-coupon-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 186, 255, 0.12);
}

.ct-feed-coupon-head span {
  color: #c5ceda;
}

.ct-feed-coupon-head strong {
  color: #00baff;
}

.ct-feed-selection {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ct-feed-selection strong,
.ct-feed-selection span,
.ct-feed-selection time {
  display: block;
}

.ct-feed-selection strong {
  font-size: 13px;
}

.ct-feed-selection span {
  margin-top: 4px;
  color: #aab4c3;
  font-size: 12px;
}

.ct-feed-selection-meta,
.ct-feed-selection-match {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-feed-selection-meta {
  justify-content: space-between;
  margin-bottom: 8px;
  color: #9ca8b7;
  font-size: 12px;
}

.ct-feed-selection-meta span,
.ct-feed-selection-meta time {
  margin: 0;
  color: inherit;
}

.ct-feed-selection-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-feed-selection-match {
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.ct-feed-selection-match span {
  margin: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
}

.ct-feed-selection-match em {
  color: #8592a6;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .ct-appbar {
    grid-template-columns: auto 1fr auto;
  }

  .ct-appbar-brand img {
    height: 28px;
  }

  .ct-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .ct-coupon-column {
    position: static;
  }

  .ct-user-summary strong,
  .ct-user-summary span {
    max-width: 130px;
  }
}

@media (max-width: 560px) {
  body.ct-dashboard-foundation {
    padding-top: 116px;
  }

  .ct-appbar {
    min-height: 100px;
    height: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .ct-user-summary {
    grid-column: 1 / -1;
    order: 3;
  }

  .ct-welcome-panel,
  .ct-section-head,
  .ct-odds-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-filter-select {
    width: 100%;
  }
}

/* Social interactions */
.ct-dashboard-page .ct-panel .ct-post-card + .ct-post-card {
  margin-top: 18px;
}

.ct-dashboard-page .ct-post-stats {
  display: none;
}

.ct-dashboard-page .ct-post-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
}

.ct-dashboard-page .ct-post-action-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.ct-dashboard-page .ct-post-action-btn.active {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
}

.ct-dashboard-page .ct-post-action-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ct-dashboard-page .ct-comments-panel {
  margin: 0 18px 16px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 0 16px 16px;
  background: #f8fafc;
  overflow: visible;
}

.ct-dashboard-page .ct-comments-panel.collapsed {
  display: none;
}

.ct-dashboard-page .ct-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-dashboard-page .ct-comment-composer {
  display: none;
  margin-bottom: 14px;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.ct-dashboard-page .ct-comments-panel.composer-open .ct-comment-composer {
  display: block;
}

.ct-dashboard-page .ct-comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  position: relative;
  padding: 10px 11px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 13px;
  background: #fff;
}

.ct-dashboard-page .ct-comment-body {
  min-width: 0;
}

.ct-dashboard-page .ct-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ct-dashboard-page .ct-comment-head strong {
  color: #101828;
  font-size: 13px;
}

.ct-dashboard-page .ct-comment-body > span {
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ct-dashboard-page .ct-comment-head time {
  color: #98a2b3;
  font-size: 11px;
  white-space: nowrap;
}

.ct-dashboard-page .ct-comment-owner-menu {
  position: relative;
  z-index: 20;
}

.ct-dashboard-page .ct-comment-menu-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  cursor: pointer;
}

.ct-dashboard-page .ct-comment-menu-button:hover {
  background: #e4e7ec;
}

.ct-dashboard-page .ct-comment-menu-button span {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #475467;
}

.ct-dashboard-page .ct-comment-menu-panel {
  position: absolute;
  top: 34px;
  right: 0;
  min-width: 128px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  z-index: 1000;
}

.ct-dashboard-page .ct-comment-menu-panel.open {
  display: grid;
  gap: 3px;
}

.ct-dashboard-page .ct-comment-menu-panel button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 8px 9px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.ct-dashboard-page .ct-comment-menu-panel button:hover {
  background: #f2f4f7;
}

.ct-dashboard-page .ct-comment-menu-panel button.danger {
  color: #b42318;
}

.ct-dashboard-page .ct-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
}

.ct-dashboard-page .ct-comment-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: #101828;
  outline: none;
}

.ct-dashboard-page .ct-comment-form input:focus {
  border-color: rgba(0, 186, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-dashboard-page .ct-comment-form button,
.ct-dashboard-page .ct-view-comments-btn {
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.ct-dashboard-page .ct-comment-form button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ct-dashboard-page .ct-comment-form button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ct-dashboard-page .ct-view-comments-btn {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #eef2f7;
  color: #475467;
}

.ct-dashboard-page .ct-shared-post-card {
  margin: 14px 18px 0;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fbfcfe;
}

.ct-dashboard-page .ct-shared-post-author {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 12px;
}

.ct-dashboard-page .ct-shared-post-author strong {
  color: #98a2b3;
  font-weight: 700;
}

.ct-dashboard-page .ct-shared-post-card p {
  margin: 10px 0 0;
}

.ct-dashboard-page .ct-shared-post-card .ct-feed-coupon {
  margin: 12px 0 0;
}

.ct-share-modal.hidden {
  display: none;
}

.ct-share-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ct-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.ct-share-modal-box {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.ct-share-modal-box h2 {
  margin: 0;
  color: #101828;
}

.ct-share-modal-box p {
  margin: 8px 0 14px;
  color: #667085;
  line-height: 1.45;
}

.ct-share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  color: #475467;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ct-share-modal-box textarea {
  width: 100%;
  min-height: 116px;
  padding: 12px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #f8fafc;
  color: #101828;
  font: inherit;
  outline: none;
}

.ct-share-modal-box textarea:focus {
  border-color: rgba(0, 186, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-share-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.ct-dashboard-page .ct-stories-strip {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  padding: 6px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ct-dashboard-page .ct-story-bubble {
  width: 74px;
  flex: 0 0 74px;
  border: 0;
  background: transparent;
  color: #172033;
  text-align: center;
  cursor: pointer;
}

.ct-dashboard-page .ct-story-bubble span {
  position: relative;
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 50%;
  background: #d0d5dd;
}

.ct-dashboard-page .ct-story-bubble.unseen span,
.ct-dashboard-page .ct-story-bubble.create span {
  background: linear-gradient(135deg, #00baff, #13c48f 50%, #ff4d6d);
}

.ct-dashboard-page .ct-story-bubble img {
  width: 55px;
  height: 55px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.ct-dashboard-page .ct-story-bubble strong {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #00a7d8;
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.ct-dashboard-page .ct-story-bubble em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #344054;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-story-editor-box {
  width: min(94vw, 430px);
  max-height: calc(100dvh - 28px);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
}

.ct-dashboard-page .ct-story-editor-modal {
  padding: 14px;
}

.ct-dashboard-page .ct-story-editor-head h2 {
  margin: 2px 0 4px;
}

.ct-dashboard-page .ct-story-editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.ct-dashboard-page .ct-story-preview {
  position: relative;
  --ct-story-zoom: 1;
  width: min(94vw, 430px);
  height: min(92dvh, 760px);
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 28px;
  background: #101828;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ct-dashboard-page #storyCameraPreview,
.ct-dashboard-page #storyImagePreview,
.ct-dashboard-page #storyVideoPreview {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: scale(var(--ct-story-zoom));
  transform-origin: center;
  transition: transform 0.16s ease;
}

.ct-dashboard-page .ct-story-canvas-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.62);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.ct-dashboard-page .ct-story-canvas-close:hover {
  background: rgba(16, 24, 40, 0.82);
}

.ct-dashboard-page .ct-story-canvas-tools {
  position: absolute;
  top: 18px;
  left: 14px;
  z-index: 8;
  display: grid;
  gap: 10px;
}

.ct-dashboard-page .ct-story-tool-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.64);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.ct-dashboard-page .ct-story-tool-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.ct-dashboard-page .ct-story-tool-button:hover {
  background: rgba(0, 186, 255, 0.82);
}

.ct-dashboard-page .ct-story-background-panel {
  position: absolute;
  top: 18px;
  left: 66px;
  z-index: 11;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(16, 24, 40, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.ct-dashboard-page .ct-story-background-panel.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-bg-option {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.18), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="ocean"] {
  background: linear-gradient(135deg, #033f63, #00baff);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="sunset"] {
  background: linear-gradient(135deg, #f97316, #db2777);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="lime"] {
  background: linear-gradient(135deg, #0f766e, #a3e635);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="violet"] {
  background: linear-gradient(135deg, #4c1d95, #c026d3);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="graphite"] {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.ct-dashboard-page .ct-story-bg-option[data-story-bg="paper"] {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
}

.ct-dashboard-page .ct-story-text-focus-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.ct-dashboard-page .ct-story-text-focus-overlay.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-camera-bar {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.62);
  backdrop-filter: blur(14px);
}

.ct-dashboard-page .ct-story-publish-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 8;
  display: grid;
  gap: 6px;
}

.ct-dashboard-page .ct-story-publish-bar .btn {
  width: 100%;
  min-height: 42px;
  box-shadow: 0 14px 30px rgba(0, 186, 255, 0.24);
}

.ct-dashboard-page .ct-story-publish-bar .ct-publish-message {
  min-height: 0;
  margin: 0;
  padding: 0 10px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.ct-dashboard-page .ct-story-publish-bar .ct-publish-message:empty {
  display: none;
}

.ct-dashboard-page .ct-story-editor-layout > #storySelectionStatus {
  display: none !important;
}

.ct-dashboard-page .ct-story-camera-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #172033;
  cursor: pointer;
}

.ct-dashboard-page .ct-story-camera-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.ct-dashboard-page .ct-story-camera-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ct-dashboard-page .ct-story-camera-button.muted::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 18px;
  height: 3px;
  border-radius: 999px;
  background: #ef4444;
  transform: rotate(-35deg);
}

.ct-dashboard-page .ct-story-camera-button.loading {
  opacity: 0.72;
}

.ct-dashboard-page .ct-story-camera-button.record {
  background: #ef4444;
}

.ct-dashboard-page .ct-story-camera-button.record span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
}

.ct-dashboard-page .ct-story-camera-button.stop {
  background: #ef4444;
}

.ct-dashboard-page .ct-story-camera-button.stop span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fff;
}

.ct-dashboard-page .ct-story-empty-preview {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 30px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 900;
}

.ct-dashboard-page .ct-story-text-preview,
.ct-dashboard-page .ct-story-viewer-text {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 3;
  width: min(84%, 320px);
  transform: translate(-50%, -50%);
  color: #fff;
  cursor: grab;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.55);
  touch-action: none;
  overflow-wrap: anywhere;
}

.ct-dashboard-page .ct-story-text-preview.editing {
  z-index: 7;
}

.ct-dashboard-page .ct-story-text-preview[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.72);
}

.ct-dashboard-page .ct-story-text-preview[contenteditable="true"] {
  min-height: 1.1em;
  outline: none;
}

.ct-dashboard-page .ct-story-text-preview.dragging {
  cursor: grabbing;
}

.ct-dashboard-page .ct-story-viewer-text {
  cursor: default;
  pointer-events: none;
}

.ct-dashboard-page .ct-story-prediction-preview {
  position: absolute;
  left: 50%;
  top: 64%;
  z-index: 4;
  width: min(84%, 330px);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  padding: 14px 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(16, 24, 40, 0.78);
  color: #fff;
  backdrop-filter: blur(12px);
  cursor: grab;
  touch-action: none;
}

.ct-dashboard-page .ct-story-prediction-preview.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-prediction-preview.dragging {
  cursor: grabbing;
}

.ct-dashboard-page .ct-story-prediction-preview time,
.ct-dashboard-page .ct-story-viewer-predictions time {
  display: block;
  justify-self: center;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-dashboard-page .ct-story-prediction-remove {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  line-height: 18px;
}

.ct-dashboard-page .ct-story-prediction-preview strong,
.ct-dashboard-page .ct-story-prediction-preview span,
.ct-dashboard-page .ct-story-prediction-preview em,
.ct-dashboard-page .ct-story-prediction-preview small {
  color: #fff;
  font-size: 13px;
}

.ct-dashboard-page .ct-story-prediction-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px auto 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.ct-dashboard-page .ct-story-prediction-teams img {
  width: 24px;
  height: 24px;
  min-height: 0;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.ct-dashboard-page .ct-story-prediction-teams strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-story-prediction-teams strong:first-child {
  text-align: right;
}

.ct-dashboard-page .ct-story-prediction-teams strong:last-child {
  text-align: left;
}

.ct-dashboard-page .ct-story-prediction-teams em {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ct-dashboard-page .ct-story-prediction-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ct-dashboard-page .ct-story-prediction-pick span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-story-prediction-pick strong {
  padding: 5px 8px;
  border-radius: 999px;
  background: #00baff;
  color: #fff;
}

.ct-dashboard-page .ct-story-text-editor {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 134px;
  z-index: 9;
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(14px);
}

.ct-dashboard-page .ct-story-font-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.ct-dashboard-page .ct-story-font-carousel::-webkit-scrollbar {
  display: none;
}

.ct-dashboard-page .ct-story-font-option {
  flex: 0 0 auto;
  min-width: 54px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.ct-dashboard-page .ct-story-font-option.active {
  border-color: #fff;
  background: rgba(0, 186, 255, 0.72);
  box-shadow: 0 8px 20px rgba(0, 186, 255, 0.26);
}

.ct-dashboard-page .ct-story-zoom-control {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: min(38%, 280px);
  transform: translateY(-50%);
  padding: 12px 0 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.ct-dashboard-page .ct-story-zoom-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ct-dashboard-page .ct-story-zoom-control span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.ct-dashboard-page .ct-story-zoom-rail {
  --ct-story-zoom-progress: 0;
  position: relative;
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: ns-resize;
  touch-action: none;
  outline: none;
}

.ct-dashboard-page .ct-story-zoom-rail::before {
  content: "";
  position: absolute;
  inset: -16px -13px;
}

.ct-dashboard-page .ct-story-zoom-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--ct-story-zoom-progress) * 100%);
  border-radius: 999px;
  background: linear-gradient(180deg, #00e0ff, #00baff);
}

.ct-dashboard-page .ct-story-zoom-thumb {
  position: absolute;
  left: 50%;
  bottom: calc(var(--ct-story-zoom-progress) * 100%);
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #00baff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, 50%);
}

.ct-dashboard-page .ct-story-zoom-rail.dragging .ct-story-zoom-thumb,
.ct-dashboard-page .ct-story-zoom-rail:focus-visible .ct-story-zoom-thumb {
  box-shadow: 0 0 0 5px rgba(0, 186, 255, 0.24), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.ct-dashboard-page .ct-story-text-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ct-dashboard-page .ct-story-text-actions .btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
}

.ct-dashboard-page .ct-story-text-editor.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-text-editor .ct-story-style-row label span {
  color: rgba(255, 255, 255, 0.82);
}

.ct-dashboard-page .ct-story-text-editor .ct-story-style-row {
  grid-template-columns: 1fr;
}

.ct-dashboard-page .ct-story-text-editor label {
  display: grid;
  gap: 4px;
}

.ct-dashboard-page .ct-story-text-editor input[type="range"] {
  width: 100%;
  accent-color: #00baff;
}

.ct-dashboard-page .ct-story-hue-slider {
  accent-color: #ff4d6d;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #ff3b30, #ffcc00, #34c759, #00baff, #5856d6, #ff2d55);
}

.ct-dashboard-page .ct-story-permission-box {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  z-index: 6;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(16, 24, 40, 0.82);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(14px);
}

.ct-dashboard-page .ct-story-permission-box.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-permission-box strong {
  color: #fff;
  font-size: 16px;
}

.ct-dashboard-page .ct-story-permission-box span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.ct-dashboard-page .ct-story-editor-controls {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ct-dashboard-page .ct-story-editor-controls .ct-share-modal-actions {
  justify-content: space-between;
  margin-top: 0;
}

.ct-dashboard-page .ct-story-editor-controls .ct-publish-message {
  margin-top: 0;
}

.ct-dashboard-page .ct-story-editor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-dashboard-page .ct-story-upload-button {
  position: relative;
  overflow: hidden;
}

.ct-dashboard-page .ct-story-upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ct-dashboard-page .ct-story-editor-controls label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.ct-dashboard-page .ct-story-editor-controls textarea {
  min-height: 92px;
  resize: vertical;
}

.ct-dashboard-page .ct-story-editor-controls textarea,
.ct-dashboard-page .ct-story-editor-controls input[type="range"] {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #101828;
}

.ct-dashboard-page .ct-story-style-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.ct-dashboard-page .ct-story-style-row input[type="color"] {
  width: 60px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
}

.ct-dashboard-page .ct-story-attach-button {
  min-height: 44px;
  border: 1px dashed rgba(0, 186, 255, 0.55);
  border-radius: 14px;
  background: rgba(0, 186, 255, 0.08);
  color: #0077a3;
  font-weight: 900;
  cursor: pointer;
}

.ct-dashboard-page #storySelectionStatus {
  color: #667085;
  font-weight: 800;
}

.ct-story-selection-box {
  width: min(780px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.ct-dashboard-page .ct-story-selection-modal {
  z-index: 4100 !important;
}

.ct-story-selection-builder {
  display: grid;
  gap: 12px;
}

.ct-story-selection-days,
.ct-story-selection-countries {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ct-story-selection-days button,
.ct-story-selection-countries button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0 12px;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.ct-story-selection-days button.active,
.ct-story-selection-countries button.active {
  border-color: rgba(0, 186, 255, 0.45);
  background: rgba(0, 186, 255, 0.1);
  color: #0077a3;
}

.ct-story-selection-days strong {
  min-width: 21px;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
}

.ct-story-selection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: min(34vh, 300px);
  overflow-y: auto;
  padding-right: 4px;
}

.ct-story-selection-match {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 11px;
  background: #fff;
  color: #101828;
  cursor: pointer;
  text-align: left;
}

.ct-story-selection-match.active {
  border-color: rgba(0, 186, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.1);
}

.ct-story-selection-league {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.ct-story-selection-league img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.ct-story-selection-match strong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px auto 22px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: #101828;
  font-size: 12px;
}

.ct-story-selection-match strong span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-story-selection-match strong img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.ct-story-selection-match strong em {
  border-radius: 999px;
  padding: 3px 6px;
  background: #eef2f7;
  color: #667085;
  font-size: 9px;
  font-style: normal;
}

.ct-story-selection-odds {
  display: grid;
  gap: 9px;
}

.ct-story-selection-market {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
}

.ct-story-selection-market > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  padding: 10px 12px;
  background: #f8fafc;
  color: #101828;
  cursor: pointer;
  font-weight: 900;
}

.ct-story-selection-market > div {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
}

.ct-story-selection-market.open > div {
  display: grid;
}

.ct-story-selection-odd {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  color: #101828;
  cursor: pointer;
  font-weight: 900;
}

.ct-story-selection-odd.selected {
  border-color: rgba(0, 186, 255, 0.65);
  background: rgba(0, 186, 255, 0.1);
  color: #0077a3;
}

.ct-story-selection-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.ct-story-selection-option input {
  margin-top: 2px;
  accent-color: #00a7d8;
}

.ct-story-selection-option span {
  display: grid;
  gap: 3px;
}

.ct-story-selection-option strong {
  color: #101828;
  font-size: 13px;
}

.ct-story-selection-option em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ct-dashboard-page .ct-story-viewer-modal {
  background: rgba(0, 0, 0, 0.86);
}

.ct-dashboard-page .ct-story-viewer-box {
  position: relative;
  z-index: 2;
  width: min(94vw, 430px);
  height: min(92vh, 760px);
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 186, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #101828, #111827 58%, #070b14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.ct-dashboard-page .ct-story-viewer-box .ct-share-modal-close {
  top: 13px;
  right: 13px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.ct-dashboard-page .ct-story-progress {
  position: absolute;
  top: 9px;
  left: 12px;
  right: 52px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.ct-dashboard-page .ct-story-progress span {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.ct-dashboard-page .ct-story-progress span.done,
.ct-dashboard-page .ct-story-progress span.active {
  background: #fff;
}

.ct-dashboard-page .ct-story-viewer-head {
  position: absolute;
  top: 22px;
  left: 14px;
  right: 58px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.ct-dashboard-page .ct-story-viewer-head img {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.ct-dashboard-page .ct-story-viewer-head strong {
  color: #fff;
  font-size: 13px;
}

.ct-dashboard-page .ct-story-viewer-head span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.ct-dashboard-page .ct-story-viewer-stage,
.ct-dashboard-page .ct-story-viewer-stage > img,
.ct-dashboard-page .ct-story-viewer-stage > video {
  width: 100%;
  height: 100%;
}

.ct-dashboard-page .ct-story-viewer-stage {
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 186, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #101828, #111827 58%, #070b14);
}

.ct-dashboard-page .ct-story-viewer-stage > img,
.ct-dashboard-page .ct-story-viewer-stage > video {
  object-fit: cover;
  background: transparent;
}

.ct-dashboard-page #storyCameraPreview,
.ct-dashboard-page #storyVideoPreview,
.ct-dashboard-page #storyViewerVideo {
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.ct-dashboard-page #storyCameraPreview::-webkit-media-controls,
.ct-dashboard-page #storyVideoPreview::-webkit-media-controls,
.ct-dashboard-page #storyViewerVideo::-webkit-media-controls,
.ct-dashboard-page #storyCameraPreview::-webkit-media-controls-panel,
.ct-dashboard-page #storyVideoPreview::-webkit-media-controls-panel,
.ct-dashboard-page #storyViewerVideo::-webkit-media-controls-panel,
.ct-dashboard-page #storyCameraPreview::-webkit-media-controls-start-playback-button,
.ct-dashboard-page #storyVideoPreview::-webkit-media-controls-start-playback-button,
.ct-dashboard-page #storyViewerVideo::-webkit-media-controls-start-playback-button,
.ct-dashboard-page #storyCameraPreview::-webkit-media-controls-overlay-play-button,
.ct-dashboard-page #storyVideoPreview::-webkit-media-controls-overlay-play-button,
.ct-dashboard-page #storyViewerVideo::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
  -webkit-appearance: none;
}

.ct-dashboard-page .ct-story-viewer-predictions {
  position: absolute;
  left: 50%;
  top: 64%;
  z-index: 3;
  width: min(84%, 330px);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(16, 24, 40, 0.72);
  color: #fff;
  backdrop-filter: blur(12px);
}

.ct-dashboard-page .ct-story-viewer-predictions.hidden {
  display: none;
}

.ct-dashboard-page .ct-story-viewer-predictions strong,
.ct-dashboard-page .ct-story-viewer-predictions span,
.ct-dashboard-page .ct-story-viewer-predictions em,
.ct-dashboard-page .ct-story-viewer-predictions small {
  color: #fff;
}

.ct-dashboard-page .ct-story-viewer-prediction-card {
  display: grid;
  gap: 9px;
}

.ct-dashboard-page .ct-story-viewer-predictions small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.ct-dashboard-page .ct-story-nav {
  position: absolute;
  top: 76px;
  bottom: 0;
  z-index: 2;
  width: 42%;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.ct-dashboard-page .ct-story-nav:hover,
.ct-dashboard-page .ct-story-nav:focus,
.ct-dashboard-page .ct-story-nav:focus-visible,
.ct-dashboard-page .ct-story-nav:active {
  background: transparent;
  outline: none;
  box-shadow: none;
}

.ct-dashboard-page .ct-story-nav.prev {
  left: 0;
}

.ct-dashboard-page .ct-story-nav.next {
  right: 0;
}

.ct-dashboard-page .ct-odds-history-button {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 186, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 186, 255, 0.1);
  color: #007aa8;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.ct-dashboard-page .ct-odds-history-button:hover {
  border-color: rgba(0, 186, 255, 0.62);
  background: rgba(0, 186, 255, 0.18);
  transform: translateY(-1px);
}

.ct-dashboard-page .ct-odds-history-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ct-dashboard-page .ct-match-select-card {
  position: relative;
  padding-right: 48px;
}

.ct-dashboard-page .ct-match-history-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ct-dashboard-page .ct-match-history-button:hover {
  transform: translateY(calc(-50% - 1px));
}

.ct-dashboard-page .ct-selection-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ct-dashboard-page .ct-fixture-date-short {
  display: none;
}

.ct-odds-history-box {
  width: min(760px, 100%);
}

.ct-odds-history-select-wrap {
  display: block;
  margin: 14px 0;
}

.ct-odds-history-select-wrap span {
  display: block;
  margin-bottom: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ct-odds-history-select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  color: #101828;
  font: inherit;
}

.ct-odds-history-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-odds-history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ct-odds-history-summary > div,
.ct-odds-history-latest > div {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.ct-odds-history-summary > div {
  padding: 12px;
}

.ct-odds-history-summary span,
.ct-odds-history-latest span,
.ct-odds-history-summary small {
  color: #667085;
}

.ct-odds-history-summary span,
.ct-odds-history-latest span {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.ct-odds-history-summary strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 22px;
}

.ct-odds-history-summary small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.ct-odds-history-summary em,
.ct-odds-history-latest em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
}

.ct-odds-history-summary em.up,
.ct-odds-history-latest em.up {
  background: rgba(19, 196, 143, 0.14);
  color: #0f9f6e;
}

.ct-odds-history-summary em.down,
.ct-odds-history-latest em.down {
  background: rgba(240, 68, 56, 0.13);
  color: #d92d20;
}

.ct-odds-history-summary em.same,
.ct-odds-history-latest em.same {
  background: rgba(102, 112, 133, 0.13);
  color: #667085;
}

.ct-odds-history-svg {
  width: 100%;
  min-height: 240px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.ct-odds-history-svg line {
  stroke: rgba(15, 23, 42, 0.18);
  stroke-width: 1.5;
}

.ct-odds-history-svg polyline {
  fill: none;
  stroke: #00baff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-odds-history-svg circle {
  fill: #13c48f;
  stroke: #fff;
  stroke-width: 2;
}

.ct-odds-history-svg text {
  fill: #667085;
  font-size: 12px;
  font-weight: 700;
}

.ct-odds-history-latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ct-odds-history-latest > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.ct-odds-history-latest strong {
  color: #101828;
}

@media (max-width: 560px) {
  .ct-dashboard-page .ct-stories-strip {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 6px 10px 8px;
  }

  .ct-dashboard-page .ct-story-bubble {
    width: 69px;
    flex-basis: 69px;
  }

  .ct-dashboard-page .ct-story-bubble span {
    width: 60px;
    height: 60px;
  }

  .ct-dashboard-page .ct-story-bubble img {
    width: 53px;
    height: 53px;
  }

  .ct-dashboard-page .ct-story-editor-modal {
    align-items: stretch;
    padding: 0;
  }

  .ct-dashboard-page .ct-story-editor-box {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    border-radius: 0;
    overflow: hidden;
  }

  .ct-dashboard-page .ct-story-editor-layout {
    grid-template-columns: 1fr;
  }

  .ct-dashboard-page .ct-story-preview {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
  }

  .ct-dashboard-page #storyCameraPreview,
  .ct-dashboard-page #storyImagePreview,
  .ct-dashboard-page #storyVideoPreview {
    min-height: 0;
  }

  .ct-dashboard-page .ct-story-canvas-tools {
    top: 14px;
    left: 12px;
    gap: 8px;
  }

  .ct-dashboard-page .ct-story-background-panel {
    top: 14px;
    left: 62px;
  }

  .ct-dashboard-page .ct-story-tool-button {
    width: 40px;
    height: 40px;
  }

  .ct-dashboard-page .ct-story-camera-bar {
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    gap: 8px;
    border-radius: 999px;
  }

  .ct-dashboard-page .ct-story-publish-bar {
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .ct-dashboard-page .ct-story-camera-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .ct-dashboard-page .ct-story-style-row {
    grid-template-columns: 82px 1fr;
  }

  .ct-dashboard-page .ct-story-text-editor .ct-story-style-row {
    grid-template-columns: 1fr;
  }

  .ct-dashboard-page .ct-story-text-editor {
    left: 8%;
    right: 8%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 128px);
  }

  .ct-dashboard-page .ct-story-zoom-control {
    right: 10px;
    top: 47%;
    width: 32px;
    height: min(36%, 250px);
    padding: 12px 0 32px;
  }

  .ct-story-selection-box {
    max-height: calc(100vh - 24px);
  }

  .ct-story-selection-list {
    grid-template-columns: 1fr;
    max-height: 260px;
  }

  .ct-story-selection-market > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-dashboard-page .ct-story-viewer-modal {
    padding: 0;
  }

  .ct-dashboard-page .ct-story-viewer-box {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .ct-odds-history-box {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    border-radius: 16px;
  }

  .ct-odds-history-summary,
  .ct-odds-history-latest {
    grid-template-columns: 1fr;
  }

  .ct-odds-history-svg {
    min-height: 210px;
  }

  .ct-dashboard-page .ct-selection-meta-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .ct-dashboard-page .ct-match-select-card {
    padding-right: 42px;
  }

  .ct-dashboard-page .ct-match-history-button {
    right: 8px;
  }

  .ct-dashboard-page .ct-post-stats {
    flex-wrap: wrap;
  }

  .ct-dashboard-page .ct-comment-form {
    grid-template-columns: 1fr;
  }
}

.ct-dashboard-page .ct-post-ribbon {
  position: absolute;
  top: 14px;
  right: -45px;
  z-index: 4;
  width: 156px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.ct-dashboard-page .ct-post-ribbon span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.ct-dashboard-page .ct-post-ribbon::before,
.ct-dashboard-page .ct-post-ribbon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  border-top: 5px solid rgba(15, 23, 42, 0.32);
}

.ct-dashboard-page .ct-post-ribbon::before {
  left: 0;
  border-left: 5px solid transparent;
}

.ct-dashboard-page .ct-post-ribbon::after {
  right: 0;
  border-right: 5px solid transparent;
}

.ct-dashboard-page .ct-post-state-won .ct-post-ribbon {
  background: linear-gradient(135deg, #0f9f6e, #13c48f);
}

.ct-dashboard-page .ct-post-state-lost .ct-post-ribbon {
  background: linear-gradient(135deg, #9f2a1d, #f04438);
}

.ct-dashboard-page .ct-post-state-open .ct-post-ribbon {
  background: linear-gradient(135deg, #667085, #98a2b3);
}

.ct-dashboard-page .ct-post-state-void .ct-post-ribbon {
  background: linear-gradient(135deg, #475467, #667085);
}

.ct-dashboard-page .ct-post-owner-menu {
  position: absolute;
  top: 16px;
  right: 70px;
  z-index: 6;
}

.ct-dashboard-page .ct-post-menu-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #475467;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.ct-dashboard-page .ct-post-menu-button span {
  width: 4px;
  height: 4px;
  display: block;
  margin: 0;
  border-radius: 50%;
  background: currentColor;
}

.ct-dashboard-page .ct-post-menu-button:hover {
  color: #101828;
  border-color: rgba(0, 186, 255, 0.28);
}

.ct-dashboard-page .ct-post-menu-panel {
  position: absolute;
  top: 40px;
  right: 0;
  min-width: 178px;
  display: none;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.ct-dashboard-page .ct-post-menu-panel.open {
  display: block;
}

.ct-dashboard-page .ct-post-menu-panel button {
  width: 100%;
  display: block;
  padding: 10px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.ct-dashboard-page .ct-post-menu-panel button:hover {
  background: #f2f4f7;
}

.ct-dashboard-page .ct-post-menu-panel button.danger {
  color: #b42318;
}

.ct-dashboard-page .ct-post-menu-panel button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
  background: transparent;
}

.ct-dashboard-page .ct-post-content.hidden {
  display: none;
}

/* Final body overrides for dashboard bis */
body.ct-dashboard-foundation.ct-dashboard-page {
  min-height: 100vh;
  height: auto;
  padding-top: 86px;
  overflow-x: hidden;
  color: #172033;
  background:
    linear-gradient(180deg, rgba(0, 186, 255, 0.12), rgba(255, 255, 255, 0) 340px),
    linear-gradient(135deg, #f5f7fb 0%, #edf2f7 42%, #f8fafc 100%);
}

.ct-dashboard-page,
.ct-dashboard-page * {
  box-sizing: border-box;
}

@media (max-width: 560px) {
  body.ct-dashboard-foundation.ct-dashboard-page {
    padding-top: 118px;
  }
}

/* Mobile polish for dashboard bis */
@media (max-width: 980px) {
  .ct-dashboard-page .ct-dashboard-shell {
    width: min(720px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
  }

  .ct-dashboard-page .ct-coupon-column {
    position: static;
  }

  .ct-dashboard-page .ct-dashboard-shell > .ct-coupon-column {
    display: none;
  }

  .ct-dashboard-page .ct-feed-column,
  .ct-dashboard-page .ct-coupon-column,
  .ct-dashboard-page .ct-builder-area,
  .ct-dashboard-page .ct-builder-area .ct-panel,
  .ct-dashboard-page .ct-panel,
  .ct-dashboard-page .ct-coupon-box,
  .ct-dashboard-page .ct-match-list,
  .ct-dashboard-page .ct-match-card,
  .ct-dashboard-page .ct-odds-panel,
  .ct-dashboard-page .ct-market-block,
  .ct-dashboard-page .ct-market-content {
    min-width: 0;
    max-width: 100%;
  }

  .ct-dashboard-page .ct-feed-column,
  .ct-dashboard-page .ct-feed-column > .ct-coupon-column {
    width: 100%;
    overflow: hidden;
  }

  .ct-dashboard-page .ct-day-tabs,
  .ct-dashboard-page .ct-country-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (max-width: 640px) {
  body.ct-dashboard-foundation.ct-dashboard-page {
    padding-top: 112px;
  }

  .ct-dashboard-page .ct-appbar {
    min-height: 94px;
    height: auto;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .ct-dashboard-page .ct-appbar-brand img {
    height: 30px;
  }

  .ct-dashboard-page .ct-user-summary {
    grid-column: 1 / -1;
    order: 3;
    justify-self: stretch;
    min-height: 42px;
  }

  .ct-dashboard-page .ct-user-summary img {
    width: 34px;
    height: 34px;
  }

  .ct-dashboard-page .ct-user-summary strong,
  .ct-dashboard-page .ct-user-summary span {
    max-width: calc(100vw - 118px);
  }

  .ct-dashboard-page .ct-appbar .btn-logout {
    padding: 8px 11px;
    font-size: 12px;
  }

  .ct-dashboard-page .ct-dashboard-shell {
    width: min(100% - 14px, 720px);
    gap: 12px;
    overflow: hidden;
  }

  .ct-dashboard-page .ct-panel,
  .ct-dashboard-page .ct-coupon-box,
  .ct-dashboard-page .ct-post-card,
  .ct-dashboard-page .ct-match-card {
    border-radius: 14px;
  }

  .ct-dashboard-page .ct-panel,
  .ct-dashboard-page .ct-coupon-box {
    padding: 14px;
  }

  .ct-dashboard-page .ct-welcome-panel {
    min-height: 0;
    align-items: stretch;
    padding: 18px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
  }

  .ct-dashboard-page .ct-welcome-panel::after {
    border-bottom-right-radius: 14px;
    border-bottom-left-radius: 14px;
  }

  .ct-dashboard-page .ct-panel h1 {
    font-size: 24px;
  }

  .ct-dashboard-page .ct-panel h2,
  .ct-dashboard-page .ct-coupon-box h2 {
    font-size: 17px;
  }

  .ct-dashboard-page .ct-panel p,
  .ct-dashboard-page .ct-post-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .ct-dashboard-page .ct-post-author {
    padding: 14px 72px 0 14px;
    gap: 9px;
  }

  .ct-dashboard-page .ct-post-author img {
    width: 38px;
    height: 38px;
  }

  .ct-dashboard-page .ct-post-owner-menu {
    top: 13px;
    right: 66px;
    margin-right: 0;
  }

  .ct-dashboard-page .ct-post-menu-button {
    width: 32px;
    height: 32px;
  }

  .ct-dashboard-page .ct-post-menu-panel {
    right: -38px;
    min-width: 166px;
  }

  .ct-dashboard-page .ct-post-ribbon {
    top: 10px;
    right: -48px;
    width: 144px;
    height: 26px;
  }

  .ct-dashboard-page .ct-post-ribbon span {
    font-size: 10px;
  }

  .ct-dashboard-page .ct-post-card p {
    margin: 12px 14px 0;
  }

  .ct-dashboard-page .ct-feed-coupon,
  .ct-dashboard-page .ct-shared-post-card {
    margin: 13px 12px 0;
  }

  .ct-dashboard-page .ct-feed-coupon-head,
  .ct-dashboard-page .ct-feed-selection {
    padding: 11px;
  }

  .ct-dashboard-page .ct-feed-selection-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ct-dashboard-page .ct-feed-selection-match {
    gap: 7px;
    font-size: 13px;
  }

  .ct-dashboard-page .ct-post-stats {
    margin: 12px 14px 0;
    gap: 8px;
    flex-wrap: wrap;
  }

  .ct-dashboard-page .ct-post-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 14px;
  }

  .ct-dashboard-page .ct-post-action-btn {
    min-width: 58px;
    min-height: 38px;
    gap: 7px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .ct-dashboard-page .ct-post-action-btn svg {
    width: 17px;
    height: 17px;
  }

  .ct-dashboard-page .ct-comments-panel {
    margin: 0 12px 13px;
    padding: 11px;
  }

  .ct-dashboard-page .ct-comment-composer {
    padding: 9px;
  }

  .ct-dashboard-page .ct-comment-item {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 9px;
  }

  .ct-dashboard-page .ct-comment-head {
    flex-wrap: wrap;
  }

  .ct-dashboard-page.prediction-open .ct-feed-column {
    gap: 12px;
  }

  .ct-dashboard-page.prediction-open .ct-coupon-column {
    order: 2;
    margin-top: -2px;
  }

  .ct-dashboard-page .ct-builder-area {
    width: 100%;
    gap: 11px;
  }

  .ct-dashboard-page .ct-builder-area .ct-panel {
    width: 100%;
    padding: 12px;
  }

  .ct-dashboard-page .ct-builder-area .ct-section-head {
    margin-bottom: 10px;
  }

  .ct-dashboard-page .ct-day-tabs,
  .ct-dashboard-page .ct-country-tabs {
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .ct-dashboard-page .ct-tab-button {
    min-width: 84px;
    padding: 9px 10px;
    scroll-snap-align: start;
  }

  .ct-dashboard-page .ct-chip-button {
    max-width: 78vw;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
    scroll-snap-align: start;
  }

  .ct-dashboard-page .ct-chip-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ct-dashboard-page .ct-match-list {
    width: 100%;
    gap: 8px;
  }

  .ct-dashboard-page .ct-match-card {
    width: 100%;
    padding: 11px;
  }

  .ct-dashboard-page .ct-match-meta {
    align-items: flex-start;
    gap: 8px;
  }

  .ct-dashboard-page .ct-match-league {
    max-width: calc(100% - 54px);
    white-space: normal;
  }

  .ct-dashboard-page .ct-match-title strong {
    width: 100%;
    white-space: normal;
  }

  .ct-dashboard-page .ct-match-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 9px;
    font-size: 15px;
  }

  .ct-dashboard-page .ct-match-title span {
    align-self: flex-start;
    padding-left: 30px;
  }

  .ct-dashboard-page .ct-odds-panel {
    width: 100%;
    gap: 9px;
  }

  .ct-dashboard-page .ct-market-toggle {
    min-height: 44px;
    padding: 10px;
  }

  .ct-dashboard-page .ct-market-toggle strong {
    flex: 0 0 auto;
  }

  .ct-dashboard-page .ct-market-content {
    padding: 0 10px 10px;
  }

  .ct-dashboard-page .ct-bookmaker-row {
    padding: 9px 0;
  }

  .ct-dashboard-page .ct-market-odds {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .ct-dashboard-page .ct-odd-button {
    min-height: 46px;
    padding: 8px 6px;
  }

  .ct-dashboard-page .ct-coupon-line {
    min-width: 0;
    align-items: flex-start;
  }

  .ct-dashboard-page .ct-coupon-line button {
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .ct-dashboard-page .ct-post-action-btn span {
    display: none;
  }

  .ct-dashboard-page .ct-builder-area .ct-panel,
  .ct-dashboard-page .ct-coupon-box {
    padding: 11px;
  }

  .ct-dashboard-page .ct-tab-button {
    min-width: 78px;
  }

  .ct-dashboard-page .ct-match-title {
    font-size: 14px;
  }

  .ct-dashboard-page .ct-market-odds {
    grid-template-columns: 1fr;
  }

  .ct-dashboard-page .ct-coupon-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Public auth/admin pages using the official CommuniTime theme */
body.ct-auth-page {
  min-height: 100vh;
  height: auto;
  padding-top: 86px;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: #172033;
  background:
    linear-gradient(180deg, rgba(0, 186, 255, 0.12), rgba(255, 255, 255, 0) 340px),
    linear-gradient(135deg, #f5f7fb 0%, #edf2f7 42%, #f8fafc 100%);
}

.ct-auth-page,
.ct-auth-page * {
  box-sizing: border-box;
}

.ct-auth-page .topbar {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.ct-auth-page .topbar-left,
.ct-auth-page .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-auth-page .topbar-left img {
  height: 34px !important;
  width: auto;
}

.ct-auth-page .hero {
  width: min(900px, calc(100% - 32px));
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  margin: 0 auto 28px;
  padding: 34px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.92), rgba(0, 186, 255, 0.72)),
    linear-gradient(90deg, #101828, #0f766e);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ct-auth-page .hero p {
  width: min(620px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.55;
}

.ct-auth-page .search-area {
  width: min(900px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 0 auto;
}

.ct-auth-page .search-wrapper {
  position: relative;
  min-width: 0;
}

.ct-auth-page input,
.ct-auth-page select,
.ct-auth-page textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #101828;
  font: inherit;
  outline: none;
}

.ct-auth-page input:focus,
.ct-auth-page select:focus,
.ct-auth-page textarea:focus {
  border-color: rgba(0, 186, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-auth-page .search-wrapper svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  color: #98a2b3;
  transform: translateY(-50%);
  pointer-events: none;
}

.ct-auth-page .action-buttons {
  display: flex;
  gap: 10px;
}

.ct-auth-page .btn,
.ct-auth-page .btn-light,
.ct-auth-page .btn-secondary,
.ct-auth-page button {
  border-radius: 999px;
}

.ct-auth-page .btn-login,
.ct-auth-page .btn-light,
.ct-auth-page .container form button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.28);
  cursor: pointer;
  font-weight: 800;
}

.ct-auth-page .btn-secondary {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #344054;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.ct-auth-page .btn-logout {
  background: #101828;
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.18);
}

.ct-auth-page .modal-overlay {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 24, 40, 0.52);
  backdrop-filter: blur(10px);
}

.ct-auth-page .modal-overlay.active {
  display: flex;
}

.ct-auth-page .modal-box {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.ct-auth-page .modal-box h2 {
  margin: 0 0 12px;
  color: #101828;
}

.ct-auth-page .modal-box p {
  color: #475467;
  line-height: 1.5;
}

.ct-auth-page .modal-box form {
  display: grid;
  gap: 12px;
}

.ct-auth-page .modal-close {
  float: right;
  color: #667085;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.ct-auth-page .input-password-wrapper {
  position: relative;
}

.ct-auth-page .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
}

.ct-auth-page .docs-panel {
  background: #fff;
  color: #172033;
}

.ct-auth-page .container {
  width: 100%;
  max-width: 100%;
}

.ct-admin-page .hero {
  min-height: 260px;
}

@media (max-width: 640px) {
  body.ct-auth-page {
    padding-top: 112px;
  }

  .ct-auth-page .topbar {
    min-height: 94px;
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
  }

  .ct-auth-page .topbar-left,
  .ct-auth-page .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .ct-auth-page .hero {
    width: min(100% - 14px, 720px);
    min-height: 310px;
    padding: 22px;
    border-radius: 14px;
  }

  .ct-auth-page .hero p {
    font-size: 17px;
  }

  .ct-auth-page .search-area {
    width: min(100% - 14px, 720px);
    grid-template-columns: 1fr;
  }

  .ct-auth-page .action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ct-auth-page .modal-box {
    padding: 18px;
    border-radius: 14px;
  }
}

/* Dashboard topbar/action refinements */
@media (max-width: 640px) {
  body.ct-dashboard-page {
    padding-top: 88px;
  }

  .ct-dashboard-page .ct-appbar {
    min-height: 76px;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }

  .ct-dashboard-page .ct-appbar-brand,
  .ct-dashboard-page .ct-appbar .btn-logout {
    display: none;
  }

  .ct-dashboard-page .ct-user-summary {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
    grid-template-columns: minmax(0, 1fr) 0fr auto;
    gap: 8px;
    min-height: 60px;
    padding: 7px 8px;
    border-radius: 18px;
  }

  .ct-dashboard-page .ct-user-summary.is-searching {
    grid-template-columns: 0fr minmax(116px, 1fr) auto;
    gap: 4px;
  }

  .ct-dashboard-page .ct-user-identity {
    gap: 8px;
  }

  .ct-dashboard-page .ct-topbar-fixture-search .search-wrapper {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
  }

  .ct-dashboard-page .ct-user-summary.is-searching .ct-topbar-fixture-search .search-wrapper {
    width: calc(100% + 33px);
    padding-right: 43px;
  }

  .ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-input] {
    font-size: 13px;
  }

  .ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] {
    left: -4px;
    right: -92px;
    max-height: min(360px, calc(100vh - 96px));
    border-radius: 13px;
  }

  .ct-dashboard-page .ct-profile-avatar {
    width: 42px;
    height: 42px;
  }

  .ct-dashboard-page .ct-user-actions {
    gap: 5px;
  }

  .ct-dashboard-page .ct-user-actions .ct-user-logout {
    display: inline-flex;
  }

  .ct-dashboard-page .ct-user-actions button,
  .ct-dashboard-page .ct-user-actions a {
    width: 36px;
    height: 36px;
  }

  .ct-dashboard-page .ct-user-actions svg {
    width: 18px;
    height: 18px;
  }

  .ct-dashboard-page .ct-user-team-logo {
    display: none;
  }

  .ct-dashboard-page .ct-user-summary strong,
  .ct-dashboard-page .ct-user-summary span {
    max-width: none;
  }

  .ct-dashboard-page .ct-post-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .ct-dashboard-page .ct-post-action-btn {
    min-width: 58px;
    min-height: 38px;
  }

  .ct-dashboard-page .ct-comment-form {
    grid-template-columns: minmax(0, 1fr) 38px;
  }
}

/* Coupon match readability */
.ct-dashboard-page .ct-feed-selection-meta .ct-flag-icon {
  display: none;
}

.ct-dashboard-page .ct-match-title,
.ct-dashboard-page .ct-feed-selection-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ct-dashboard-page .ct-match-title {
  justify-content: normal;
}

.ct-dashboard-page .ct-feed-selection-match {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.ct-dashboard-page .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.ct-dashboard-page .ct-team-home {
  justify-content: flex-end;
  text-align: right;
}

.ct-dashboard-page .ct-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ct-dashboard-page .ct-team-name {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  align-self: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-match-title .ct-team-logo,
.ct-dashboard-page .ct-feed-selection-match .ct-team-logo {
  flex: 0 0 auto;
}

.ct-dashboard-page .ct-team-goal {
  min-width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 7px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.ct-dashboard-page .ct-team-goal.ct-team-goal-live {
  min-width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #e11d48;
  box-shadow: none;
  font-size: 15px;
}

.ct-dashboard-page .ct-match-title .ct-vs-pill,
.ct-dashboard-page .ct-feed-selection-match .ct-vs-pill,
.ct-dashboard-page .ct-result-ticker-match .ct-vs-pill {
  justify-self: center;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ct-dashboard-page .ct-feed-selection-match .ct-coupon-live-status-pill {
  min-width: 42px;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: rgba(225, 29, 72, 0.82);
  color: #fff;
  border: 1px solid rgba(225, 29, 72, 0.18);
  line-height: 1;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.18);
  animation: ct-coupon-live-pulse 1.45s ease-in-out infinite;
}

.ct-dashboard-page .ct-live-score,
.ct-dashboard-page .ct-coupon-live-score {
  min-width: 48px;
  justify-content: center;
  background: #eefcf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.ct-dashboard-page .ct-live-score--live {
  background: #fff1f2;
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.12);
}

@keyframes ct-coupon-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.34), 0 8px 18px rgba(225, 29, 72, 0.18);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(225, 29, 72, 0), 0 10px 26px rgba(225, 29, 72, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-dashboard-page .ct-feed-selection-match .ct-coupon-live-status-pill {
    animation: none;
  }
}

.ct-dashboard-page .ct-live-minute,
.ct-dashboard-page .ct-live-status {
  display: block;
  width: fit-content;
  margin: -4px auto 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.ct-dashboard-page .ct-live-status[hidden] {
  display: none;
}

.ct-dashboard-page .ct-feed-selection-pick {
  display: flex;
  align-items: center;
  column-gap: 7px;
  flex-wrap: wrap;
  row-gap: 4px;
  line-height: 1;
}

.ct-dashboard-page .ct-feed-selection-pick strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: #101828;
  font-size: 13px;
  line-height: 1.15;
}

.ct-dashboard-page .ct-feed-selection-pick span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(19, 196, 143, 0.14);
  color: #087f5b;
  font-size: 13px;
  font-weight: 900;
  transform: translateY(-1px);
}

.ct-dashboard-page .ct-feed-selection-pick .ct-selection-odd-stack {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  align-self: center;
  gap: 2px;
  min-height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  transform: none;
  white-space: nowrap;
}

.ct-dashboard-page .ct-selection-odd-stack b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(19, 196, 143, 0.14);
  color: #087f5b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.ct-dashboard-page .ct-selection-result {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-left: -1px;
  transform: translateY(0);
  color: #667085;
  font-style: normal;
  line-height: 1;
  box-shadow: none;
}

.ct-dashboard-page .ct-selection-result svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.ct-dashboard-page .ct-selection-result-won {
  color: #079455;
}

.ct-dashboard-page .ct-selection-result-lost {
  color: #c01048;
}

.ct-dashboard-page .ct-selection-result-waiting_recovery {
  width: auto;
  height: 22px;
  flex-basis: auto;
  gap: 4px;
  padding: 0 7px 0 5px;
  border: 1px solid #f4b740;
  border-radius: 999px;
  color: #9a6700;
  background: #fff7dc;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ct-dashboard-page .ct-selection-result-waiting_recovery svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.ct-dashboard-page .ct-current-odd-note {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #667085;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: none;
  margin-top: 0;
}

.ct-dashboard-page .ct-feed-selection-pick .ct-selection-odd-stack,
.ct-dashboard-page .ct-feed-selection-pick .ct-selection-odd-stack b,
.ct-dashboard-page .ct-feed-selection-pick .ct-current-odd-note {
  vertical-align: middle;
  margin-bottom: 2px;
}

.ct-dashboard-page .ct-bookmaker-row {
  padding-top: 0;
}

/* User profiles */
.ct-dashboard-page .ct-profile-link {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.ct-dashboard-page .ct-profile-link:hover {
  color: #008ec2;
}

.ct-dashboard-page .ct-topbar-profile-link {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-post-author-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ct-dashboard-page .ct-follow-inline,
.ct-dashboard-page .ct-profile-main-action {
  border: 0;
  border-radius: 999px;
  background: #00baff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ct-dashboard-page .ct-follow-inline {
  min-height: 24px;
  padding: 4px 10px;
  font-size: 12px;
}

.ct-dashboard-page .ct-follow-inline.following,
.ct-dashboard-page .ct-profile-main-action.following {
  background: #eef2f7;
  color: #475467;
}

.ct-dashboard-page .ct-follow-inline:hover,
.ct-dashboard-page .ct-profile-main-action:hover {
  transform: translateY(-1px);
}

.ct-dashboard-page .ct-user-suggestions {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgb(255 255 255 / 0%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-post-card + .ct-user-suggestions,
.ct-dashboard-page .ct-user-suggestions + .ct-post-card {
  margin-top: 18px;
}

.ct-dashboard-page .ct-user-suggestions-head {
  margin-bottom: 14px;
}

.ct-dashboard-page .ct-user-suggestions-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ct-dashboard-page .ct-user-suggestion-card {
  position: relative;
  min-width: 0;
  min-height: 282px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 18px 10px 12px;
  border: 1px solid rgba(0, 186, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 186, 255, 0.08), rgba(255, 255, 255, 0) 38%),
    #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.ct-dashboard-page .ct-user-suggestion-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #00baff, #13c48f);
}

.ct-dashboard-page .ct-user-suggestion-avatar-link {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.ct-dashboard-page .ct-user-suggestion-avatar {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid #ffffff;
}

.ct-dashboard-page .ct-user-suggestion-card h3 {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-suggestion-teams {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.ct-dashboard-page .ct-user-suggestion-team {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.ct-dashboard-page .ct-user-suggestion-team img,
.ct-dashboard-page .ct-user-suggestion-team i {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: contain;
  background: #f8fafc;
  color: #008cc4;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ct-dashboard-page .ct-user-suggestion-team b {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-suggestion-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.ct-dashboard-page .ct-user-suggestion-metrics span {
  min-width: 0;
  min-height: 54px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 8px;
  background: #f8fafc;
}

.ct-dashboard-page .ct-user-suggestion-metrics small {
  color: #667085;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-dashboard-page .ct-user-suggestion-metrics strong {
  max-width: 100%;
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-suggestion-metrics strong.is-positive {
  color: #047857;
}

.ct-dashboard-page .ct-user-suggestion-metrics strong.is-negative {
  color: #d92d20;
}

.ct-dashboard-page .ct-user-suggestion-metrics strong.is-neutral {
  color: #667085;
}

.ct-dashboard-page .ct-user-suggestion-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.ct-dashboard-page .ct-user-suggestion-follow,
.ct-dashboard-page .ct-user-suggestion-profile-button {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.ct-dashboard-page .ct-user-suggestion-follow {
  padding: 0 10px;
  background: #00baff;
  color: #fff;
}

.ct-dashboard-page .ct-user-suggestion-profile-button {
  border: 1px solid rgba(0, 186, 255, 0.24);
  background: #eaf8ff;
  color: #007ead;
}

.ct-dashboard-page .ct-user-suggestion-follow.following {
  background: #eef2f7;
  color: #475467;
}

.ct-dashboard-page .ct-profile-main-action.disabled {
  background: #eef2f7;
  color: #475467;
  cursor: default;
}

.ct-dashboard-page .ct-profile-main-action.disabled:hover {
  transform: none;
}

.ct-dashboard-page .ct-user-icon-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: #101828;
}

.ct-dashboard-page .ct-user-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ct-profile-page .ct-profile-shell {
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: minmax(0, 660px) 320px;
  justify-content: center;
}

.ct-profile-page .ct-profile-hero {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ct-profile-page .ct-profile-photo-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  align-self: start;
  display: inline-grid;
  place-items: center;
}

.ct-profile-page .ct-profile-hero-avatar {
  grid-area: 1 / 1;
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.ct-profile-page .ct-profile-photo-wrap.can-edit .ct-profile-hero-avatar {
  cursor: default;
}

.ct-profile-page .ct-profile-photo-wrap.is-editing .ct-profile-hero-avatar {
  opacity: 0.24;
}

.ct-profile-page .ct-profile-photo-wrap.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.ct-profile-page .ct-profile-photo-edit {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 3;
}

.ct-profile-page .ct-profile-photo-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-profile-page .ct-profile-photo-edit[hidden],
.ct-profile-page .ct-profile-photo-picker[hidden] {
  display: none;
}

.ct-profile-page .ct-profile-photo-picker {
  position: absolute;
  inset: 0;
  width: 104px;
  height: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(15, 23, 42, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  cursor: pointer;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

.ct-profile-page .ct-profile-photo-source-menu {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  min-width: 134px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transform: translateY(-50%);
  z-index: 8;
}

.ct-profile-page .ct-profile-photo-source-menu.hidden {
  display: none;
}

.ct-profile-page .ct-profile-photo-source-menu button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f2f4f7;
  color: #101828;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.ct-profile-page .ct-profile-photo-source-menu button:hover {
  background: #e6f7ff;
  color: #0077a3;
}

.ct-profile-page .ct-profile-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ct-profile-page .ct-profile-photo-feedback {
  min-height: 18px;
  margin-top: 8px;
}

.ct-profile-page .ct-image-crop-box.ct-message-modal-shell {
  padding: 0;
  border: 0;
}

.ct-profile-page .ct-image-crop-head.ct-message-modal-header {
  padding: 14px 52px 13px 16px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 116, 144, 0.38), transparent 34%),
    linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.ct-profile-page .ct-image-crop-head.ct-message-modal-header h2,
.ct-profile-page .ct-image-crop-head.ct-message-modal-header p {
  color: #ffffff;
}

.ct-profile-page .ct-image-crop-head.ct-message-modal-header .ct-kicker {
  color: rgba(255, 255, 255, 0.74);
}

.ct-profile-page .ct-image-crop-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-modal-actions) {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-profile-page .ct-image-crop-actions.ct-message-modal-actions {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 22px 16px;
}

.ct-profile-page .ct-image-crop-actions.ct-message-modal-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
}

.ct-profile-page .ct-image-crop-actions.ct-message-modal-actions button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-profile-page .ct-image-crop-actions.ct-message-modal-actions button:last-child {
  background: #101828;
  color: #ffffff;
}

.ct-profile-page .ct-profile-hero-main {
  min-width: 0;
}

.ct-profile-page .ct-profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ct-profile-page .ct-profile-title-row h1 {
  margin: 0;
  color: #101828;
  font-size: 28px;
  line-height: 1.1;
}

.ct-profile-page .ct-profile-main-action {
  min-height: 34px;
  padding: 8px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ct-profile-page .ct-profile-real-name {
  margin: 2px 0 0;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.ct-profile-page .ct-profile-bio {
  max-width: 560px;
  margin: 9px 0 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Settings */
.ct-settings-page {
  background: #eef2f7;
  color: #101828;
}

.ct-settings-page *,
.ct-settings-page *::before,
.ct-settings-page *::after {
  box-sizing: border-box;
}

.ct-settings-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.ct-settings-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.ct-settings-heading h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.ct-settings-back {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
  color: #101828;
}

.ct-settings-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-settings-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ct-settings-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
}

.ct-settings-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-left: 3px solid transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ct-settings-nav a:hover,
.ct-settings-nav a.active {
  border-left-color: #00aee8;
  background: #e6f7fd;
  color: #075f7d;
}

.ct-settings-nav svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-settings-content {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.ct-settings-section {
  scroll-margin-top: 90px;
  padding: 28px;
  border-bottom: 1px solid #e4e7ec;
}

.ct-settings-section-head,
.ct-settings-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-settings-section-head {
  margin-bottom: 22px;
}

.ct-settings-section-head h2,
.ct-settings-subsection-head h3 {
  margin: 2px 0 0;
  color: #101828;
  letter-spacing: 0;
}

.ct-settings-section-head h2 {
  font-size: 20px;
}

.ct-settings-subsection-head h3 {
  font-size: 15px;
}

.ct-settings-progress {
  min-width: 48px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a5dff2;
  border-radius: 999px;
  background: #e6f7fd;
  color: #075f7d;
  font-size: 13px;
  font-weight: 900;
}

.ct-settings-form-grid,
.ct-settings-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ct-settings-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.ct-settings-field-wide {
  grid-column: 1 / -1;
}

.ct-settings-field input,
.ct-settings-field textarea,
.ct-settings-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #101828;
  font: 500 14px/1.4 Inter, sans-serif;
  letter-spacing: 0;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ct-settings-field input,
.ct-settings-field select {
  padding: 10px 12px;
}

.ct-settings-field textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

.ct-settings-field input:focus,
.ct-settings-field textarea:focus,
.ct-settings-field select:focus {
  border-color: #00aee8;
  box-shadow: 0 0 0 3px rgba(0, 174, 232, 0.14);
}

.ct-settings-field select:disabled {
  background: #f2f4f7;
  color: #667085;
  cursor: not-allowed;
}

.ct-settings-field.has-error input,
.ct-settings-field.has-error textarea,
.ct-settings-field.has-error select {
  border-color: #d92d20;
}

.ct-settings-field small,
.ct-settings-field-meta {
  min-height: 17px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.ct-settings-field.has-error small {
  color: #b42318;
}

.ct-settings-field-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ct-settings-field-meta > span {
  flex: 0 0 auto;
}

.ct-settings-field-meta > span.is-short {
  color: #c96a00;
}

.ct-settings-subsection {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e4e7ec;
}

.ct-settings-subsection-head {
  margin-bottom: 16px;
}

[data-team-options-status] {
  color: #c96a00;
  font-size: 11px;
  font-weight: 800;
}

.ct-settings-facts,
.ct-settings-status-list {
  margin: 0;
}

.ct-settings-facts > div,
.ct-settings-status-list > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #eaecf0;
}

.ct-settings-facts > div:first-child,
.ct-settings-status-list > div:first-child {
  border-top: 0;
}

.ct-settings-facts dt,
.ct-settings-status-list dt {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.ct-settings-facts dd,
.ct-settings-status-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 14px;
  font-weight: 800;
}

.ct-settings-status-list dd {
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  font-size: 11px;
}

.ct-settings-status-list dd.is-ready {
  border-color: #a6e3bd;
  background: #ecfdf3;
  color: #067647;
}

.ct-settings-status-list dd.is-pending {
  background: #f2f4f7;
  color: #667085;
}

.ct-settings-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
}

.ct-settings-toggle-row > span:first-child {
  display: grid;
  gap: 5px;
}

.ct-settings-toggle-row strong {
  font-size: 14px;
}

.ct-settings-toggle-row small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.ct-settings-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-settings-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid #98a2b3;
  border-radius: 999px;
  background: #d0d5dd;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ct-settings-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.3);
  transition: transform 0.16s ease;
}

.ct-settings-toggle-row input:checked + .ct-settings-toggle {
  border-color: #00875a;
  background: #12b76a;
}

.ct-settings-toggle-row input:checked + .ct-settings-toggle::after {
  transform: translateX(20px);
}

.ct-settings-toggle-row input:focus-visible + .ct-settings-toggle {
  box-shadow: 0 0 0 3px rgba(0, 174, 232, 0.2);
}

.ct-settings-inline-status {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-settings-inline-status.is-success {
  color: #067647;
}

.ct-settings-inline-status.is-error {
  color: #b42318;
}

.ct-settings-notification-list {
  display: grid;
  gap: 0;
}

.ct-settings-notification-category {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid #eaecf0;
}

.ct-settings-notification-category > div:first-child {
  display: grid;
  gap: 5px;
}

.ct-settings-notification-category strong {
  color: #101828;
  font-size: 14px;
}

.ct-settings-notification-category small,
.ct-settings-quiet-hours small,
.ct-settings-notification-actions small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.ct-settings-notification-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, auto));
  gap: 16px;
}

.ct-settings-notification-switches label {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ct-settings-notification-switches input,
.ct-settings-quiet-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-settings-notification-switches input:checked + .ct-settings-toggle,
.ct-settings-quiet-toggle input:checked + .ct-settings-toggle {
  border-color: #00875a;
  background: #12b76a;
}

.ct-settings-notification-switches input:checked + .ct-settings-toggle::after,
.ct-settings-quiet-toggle input:checked + .ct-settings-toggle::after {
  transform: translateX(20px);
}

.ct-settings-notification-switches input:focus-visible + .ct-settings-toggle,
.ct-settings-quiet-toggle input:focus-visible + .ct-settings-toggle {
  box-shadow: 0 0 0 3px rgba(0, 174, 232, 0.2);
}

.ct-settings-notification-switches input:disabled + .ct-settings-toggle,
.ct-settings-quiet-toggle input:disabled + .ct-settings-toggle {
  opacity: 0.48;
  cursor: wait;
}

.ct-settings-quiet-toggle {
  display: inline-flex;
  cursor: pointer;
}

.ct-settings-quiet-grid {
  grid-template-columns: repeat(2, minmax(0, 170px));
  gap: 14px;
}

.ct-settings-quiet-grid:not([hidden]) {
  display: grid;
}

.ct-settings-notification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.ct-settings-notification-actions .ct-settings-save {
  flex: 0 0 auto;
}

.ct-settings-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e4e7ec;
}

.ct-settings-actions p {
  min-width: 0;
  margin: 0 auto 0 0;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.ct-settings-actions p.is-success {
  color: #067647;
}

.ct-settings-actions p.is-error {
  color: #b42318;
}

.ct-settings-save {
  min-width: 150px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #00875a;
  color: #fff;
  font: 800 13px/1 Inter, sans-serif;
  cursor: pointer;
}

.ct-settings-save:hover:not(:disabled) {
  background: #067647;
}

.ct-settings-save:disabled {
  background: #d0d5dd;
  color: #667085;
  cursor: not-allowed;
}

.ct-settings-save .ct-app-loader-spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

@media (max-width: 760px) {
  .ct-settings-shell {
    width: 100%;
    padding: 18px 12px 40px;
  }

  .ct-settings-heading {
    margin-bottom: 14px;
  }

  .ct-settings-heading h1 {
    font-size: 24px;
  }

  .ct-settings-layout {
    display: block;
  }

  .ct-settings-nav {
    position: static;
    display: flex;
    gap: 4px;
    margin: 0 -12px 12px;
    padding: 0 12px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ct-settings-nav::-webkit-scrollbar {
    display: none;
  }

  .ct-settings-nav a {
    min-width: max-content;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .ct-settings-nav a:hover,
  .ct-settings-nav a.active {
    border-left-color: transparent;
    border-bottom-color: #00aee8;
  }

  .ct-settings-content {
    border-radius: 8px;
  }

  .ct-settings-section {
    scroll-margin-top: 18px;
    padding: 20px 16px;
  }

  .ct-settings-form-grid,
  .ct-settings-team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .ct-settings-notification-category {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .ct-settings-notification-switches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ct-settings-notification-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-settings-notification-actions .ct-settings-save {
    width: 100%;
  }

  .ct-settings-field-wide {
    grid-column: auto;
  }

  .ct-settings-field input,
  .ct-settings-field select {
    min-height: 46px;
  }

  .ct-settings-facts > div,
  .ct-settings-status-list > div {
    grid-template-columns: minmax(100px, 0.44fr) minmax(0, 1fr);
    gap: 12px;
  }

  .ct-settings-actions {
    min-height: 74px;
    gap: 10px;
    padding: 12px 16px;
  }

  .ct-settings-actions p {
    font-size: 11px;
  }

  .ct-settings-save {
    min-width: 136px;
  }
}

@media (max-width: 390px) {
  .ct-settings-section-head {
    align-items: flex-start;
  }

  .ct-settings-toggle-row {
    gap: 12px;
  }

  .ct-settings-actions {
    flex-wrap: wrap;
  }

  .ct-settings-actions p:empty {
    display: none;
  }

  .ct-settings-save {
    width: 100%;
  }
}

.ct-profile-page .ct-profile-message-action {
  background: #101828;
}

.ct-profile-page .ct-profile-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: #475467;
  font-size: 14px;
}

.ct-profile-page .ct-profile-stats strong {
  color: #101828;
  font-size: 17px;
}

.ct-profile-page .ct-profile-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 0;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-weight: 800;
}

.ct-dashboard-page .ct-feed-selection-has-highlight {
  position: relative;
  overflow: visible;
}

.ct-dashboard-page .ct-feed-selection-has-highlight.highlight-active {
  padding-bottom: 0;
}

.ct-dashboard-page .ct-feed-coupon {
  overflow: visible;
}

.ct-dashboard-page .ct-feed-highlight-preferences {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 8px;
  padding: 0 2px;
}

.ct-dashboard-page .ct-feed-highlight-preferences label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.ct-dashboard-page .ct-feed-highlight-preferences input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #13c48f;
}

.ct-dashboard-page .ct-feed-settings {
  position: relative;
  align-items: flex-start;
}

.ct-dashboard-page .ct-welcome-panel .ct-feed-settings {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  margin: 0;
  padding: 0;
}

.ct-dashboard-page .ct-feed-settings-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #344054;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ct-dashboard-page .ct-feed-settings-button:hover,
.ct-dashboard-page .ct-feed-settings-button.open {
  border-color: rgba(0, 186, 255, 0.28);
  color: #101828;
}

.ct-dashboard-page .ct-feed-settings-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.ct-dashboard-page .ct-feed-settings-dots {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.ct-dashboard-page .ct-feed-settings-dots i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-gear {
  opacity: 0;
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots {
  display: flex;
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots i:nth-child(1) {
  transform: translate(-6px, -6px);
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots i:nth-child(2) {
  transform: translate(0, 0);
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots i:nth-child(3) {
  transform: translate(6px, 6px);
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots i:nth-child(4) {
  transform: translate(6px, -6px);
}

.ct-dashboard-page .ct-feed-settings-button.open .ct-feed-settings-dots i:nth-child(5) {
  transform: translate(-6px, 6px);
}

.ct-dashboard-page .ct-feed-settings-menu {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 12;
  min-width: 238px;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.ct-dashboard-page .ct-feed-settings-menu[hidden] {
  display: none;
}

.ct-dashboard-page .ct-feed-settings-menu label {
  width: 100%;
  justify-content: flex-start;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #344054;
  line-height: 1.2;
}

.ct-dashboard-page .ct-feed-settings-menu label:hover,
.ct-dashboard-page .ct-feed-settings-menu label:has(input:checked) {
  background: #f2f4f7;
  color: #101828;
}

.ct-dashboard-page .ct-feed-settings-menu label[hidden] {
  display: none;
}

.ct-dashboard-page .ct-feed-filter-empty {
  margin: 0;
}

.ct-dashboard-page .ct-post-card.ct-feed-filter-hidden {
  display: none !important;
}

.ct-dashboard-page .ct-highlights-carousel {
  margin: 10px 0 6px;
}

.ct-dashboard-page .ct-highlights-rail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 4px;
  scroll-padding-left: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ct-dashboard-page .ct-highlights-rail.is-programmatic-scroll {
  scroll-snap-type: none;
}

.ct-dashboard-page .ct-highlights-rail::-webkit-scrollbar {
  display: none;
}

.ct-dashboard-page .ct-highlight-card {
  --ct-highlight-home-color: #0066b3;
  --ct-highlight-mid-color: #00baff;
  --ct-highlight-away-color: #12d6c5;
  position: relative;
  flex: 0 0 132px;
  width: 132px;
  height: 198px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--ct-highlight-home-color), var(--ct-highlight-mid-color) 52%, var(--ct-highlight-away-color));
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  box-shadow: none;
  transition:
    flex-basis 620ms cubic-bezier(.2,.86,.22,1),
    width 620ms cubic-bezier(.2,.86,.22,1),
    height 620ms cubic-bezier(.2,.86,.22,1),
    border-radius 520ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.ct-dashboard-page .ct-highlight-card.active {
  flex-basis: 352px;
  width: 352px;
  box-shadow: none;
}

.ct-dashboard-page .ct-highlight-card.active.expanded {
  flex-basis: 100%;
  width: 100%;
  height: min(371px, calc((100vw - 48px) * 0.5625));
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.ct-dashboard-page .ct-highlight-card:focus-visible {
  outline: 3px solid rgba(0, 186, 255, 0.55);
  outline-offset: 3px;
}

.ct-dashboard-page .ct-highlight-card-cyan {
  --ct-highlight-home-color: #0066b3;
  --ct-highlight-mid-color: #00baff;
  --ct-highlight-away-color: #12d6c5;
}

.ct-dashboard-page .ct-highlight-card-green {
  --ct-highlight-home-color: #075e54;
  --ct-highlight-mid-color: #13c48f;
  --ct-highlight-away-color: #a3e635;
}

.ct-dashboard-page .ct-highlight-card-rose {
  --ct-highlight-home-color: #9f1239;
  --ct-highlight-mid-color: #f43f5e;
  --ct-highlight-away-color: #fb7185;
}

.ct-dashboard-page .ct-highlight-card-violet {
  --ct-highlight-home-color: #4c1d95;
  --ct-highlight-mid-color: #7c3aed;
  --ct-highlight-away-color: #c084fc;
}

.ct-dashboard-page .ct-highlight-card-amber {
  --ct-highlight-home-color: #92400e;
  --ct-highlight-mid-color: #f59e0b;
  --ct-highlight-away-color: #fde047;
}

.ct-dashboard-page .ct-highlight-card-slate {
  --ct-highlight-home-color: #0f172a;
  --ct-highlight-mid-color: #334155;
  --ct-highlight-away-color: #64748b;
}

.ct-dashboard-page .ct-highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.28), transparent 30%), linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72));
}

.ct-dashboard-page .ct-highlight-card-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ct-dashboard-page .ct-highlight-card-art img {
  position: absolute;
  width: 108px;
  height: 108px;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.24));
  transition: opacity 260ms ease, transform 520ms cubic-bezier(.2,.86,.22,1);
}

.ct-dashboard-page .ct-highlight-card-art img.home {
  left: -18px;
  top: 30px;
  transform: rotate(-10deg) scale(1.12);
}

.ct-dashboard-page .ct-highlight-card-art img.away {
  right: -20px;
  top: 72px;
  transform: rotate(10deg) scale(1.16);
}

.ct-dashboard-page .ct-highlight-card.active .ct-highlight-card-art img {
  opacity: 0.18;
  transform: scale(1.42);
}

.ct-dashboard-page .ct-highlight-card.active.awaiting-play .ct-highlight-card-art img {
  opacity: 0.72;
}

.ct-dashboard-page .ct-highlight-card-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  background: #05070b;
  transition: opacity 260ms ease;
}

.ct-dashboard-page .ct-highlight-card.active .ct-highlight-card-video {
  opacity: 1;
}

.ct-dashboard-page .ct-highlight-card.active.awaiting-play .ct-highlight-card-video {
  opacity: 0;
  pointer-events: none;
}

.ct-dashboard-page .ct-highlight-card-video iframe {
  display: block;
  width: calc(100% + 2px);
  height: 100%;
  margin-left: -1px;
  border: 0;
}

.ct-dashboard-page .ct-highlight-card.active.is-loading .ct-highlight-card-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 186, 255, 0.14), transparent 34%),
    #05070b;
}

.ct-dashboard-page .ct-highlight-card.active.is-loading .ct-highlight-card-video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 4px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-dashboard-page .ct-highlight-match-link,
.ct-dashboard-page .ct-highlight-rotate-button,
.ct-dashboard-page .ct-highlight-expand-button,
.ct-dashboard-page .ct-highlight-play-button {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.54);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: none;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
}

.ct-dashboard-page .ct-highlight-match-link,
.ct-dashboard-page .ct-highlight-rotate-button,
.ct-dashboard-page .ct-highlight-expand-button {
  top: 10px;
  width: 34px;
  height: 34px;
}

.ct-dashboard-page .ct-highlight-match-link {
  right: 10px;
}

.ct-dashboard-page .ct-highlight-rotate-button {
  right: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0;
  cursor: pointer;
}

.ct-dashboard-page .ct-highlight-expand-button {
  right: 94px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 0;
  cursor: pointer;
}

.ct-dashboard-page .ct-highlight-card.active .ct-highlight-match-link,
.ct-dashboard-page .ct-highlight-card.active .ct-highlight-rotate-button,
.ct-dashboard-page .ct-highlight-card.active .ct-highlight-expand-button {
  opacity: 1;
  pointer-events: auto;
}

.ct-dashboard-page .ct-highlight-match-link:hover,
.ct-dashboard-page .ct-highlight-rotate-button:hover,
.ct-dashboard-page .ct-highlight-expand-button:hover,
.ct-dashboard-page .ct-highlight-play-button:hover {
  background: rgba(0, 186, 255, 0.82);
  transform: translateY(-1px);
}

.ct-dashboard-page .ct-highlight-rotate-button:focus,
.ct-dashboard-page .ct-highlight-rotate-button:active,
.ct-dashboard-page .ct-highlight-expand-button:focus,
.ct-dashboard-page .ct-highlight-expand-button:active,
.ct-dashboard-page .ct-highlight-play-button:focus,
.ct-dashboard-page .ct-highlight-play-button:active {
  background: rgba(15, 23, 42, 0.54);
  transform: none;
}

.ct-dashboard-page .ct-highlight-match-link svg,
.ct-dashboard-page .ct-highlight-rotate-button svg,
.ct-dashboard-page .ct-highlight-expand-button svg,
.ct-dashboard-page .ct-highlight-play-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.ct-highlight-orientation-lock {
  overflow: hidden;
}

.ct-dashboard-page .ct-highlight-card.orientation-forced {
  position: fixed;
  inset: 0;
  z-index: 9000;
  flex-basis: auto;
  width: 100dvw;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #05070b;
  cursor: default;
}

.ct-dashboard-page .ct-highlight-card.active.expanded.orientation-forced {
  flex-basis: auto;
  width: 100dvw;
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
}

.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-card-art,
.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-card-copy,
.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-play-button {
  display: none;
}

.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-card-video {
  opacity: 1;
  pointer-events: auto;
}

.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-match-link,
.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-rotate-button,
.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-expand-button {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  opacity: 1;
  pointer-events: auto;
}

.ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-rotate-button {
  background: rgba(0, 186, 255, 0.86);
}

@media (orientation: portrait) {
  .ct-dashboard-page .ct-highlight-card.orientation-forced .ct-highlight-card-video {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 100dvh;
    height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
  }
}

.ct-dashboard-page .ct-highlight-play-button {
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  cursor: pointer;
}

.ct-dashboard-page .ct-highlight-play-button svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.ct-dashboard-page .ct-highlight-card.active.awaiting-play .ct-highlight-play-button {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.ct-dashboard-page .ct-highlight-card.active.awaiting-play .ct-highlight-play-button:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.ct-dashboard-page .ct-highlight-expand-button .ct-highlight-collapse-icon {
  display: none;
}

.ct-dashboard-page .ct-highlight-card.expanded .ct-highlight-expand-button .ct-highlight-expand-icon {
  display: none;
}

.ct-dashboard-page .ct-highlight-card.expanded .ct-highlight-expand-button .ct-highlight-collapse-icon {
  display: block;
}

.ct-dashboard-page .ct-highlight-card-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  gap: 4px;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
  transition: opacity 480ms ease, transform 480ms ease;
}

.ct-dashboard-page .ct-highlight-card.active .ct-highlight-card-copy {
  left: 14px;
  right: 14px;
  bottom: 12px;
  opacity: 1;
  padding: 9px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72));
  backdrop-filter: blur(8px);
}

.ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy {
  left: 10px;
  right: auto;
  bottom: 8px;
  max-width: calc(100% - 64px);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.82;
  transform: translateY(0);
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy span {
  display: none;
}

.ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

.ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy em {
  flex: 0 0 auto;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.ct-dashboard-page .ct-highlight-card-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ct-dashboard-page .ct-highlight-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ct-dashboard-page .ct-highlight-card-copy em {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.ct-dashboard-page .ct-highlight-drop {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 640ms cubic-bezier(.22,.8,.24,1), opacity 240ms ease;
}

.ct-dashboard-page .ct-feed-selection.highlight-active + .ct-highlight-drop {
  grid-template-rows: 1fr;
  opacity: 1;
}

.ct-dashboard-page .ct-highlight-drop > * {
  min-height: 0;
  overflow: hidden;
}

.ct-dashboard-page .ct-highlight-stage {
  position: relative;
  width: calc(100% + 42px);
  margin-left: -21px;
  margin-top: 10px;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0;
  background: #05070b;
}

.ct-dashboard-page .ct-highlight-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070b;
}

.ct-dashboard-page .ct-highlight-stage.is-loading .ct-highlight-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 186, 255, 0.12), transparent 34%),
    #05070b;
}

.ct-dashboard-page .ct-highlight-stage.is-loading .ct-highlight-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 4px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-dashboard-page .ct-highlight-frame iframe {
  display: block;
  width: calc(100% + 2px);
  max-width: none;
  height: 100%;
  margin-left: -1px;
  border: 0;
}

@media (max-width: 720px) {
  .ct-dashboard-page .ct-highlights-carousel {
    margin: 6px 0 4px;
  }

  .ct-dashboard-page .ct-highlights-rail {
    gap: 10px;
    padding: 0 0 4px;
    margin-left: 0;
    margin-right: 0;
    scroll-padding-left: 0;
  }

  .ct-dashboard-page .ct-highlight-card {
    flex-basis: 112px;
    width: 112px;
    height: 176px;
    border-radius: 16px;
  }

  .ct-dashboard-page .ct-highlight-card.active {
    flex-basis: min(82vw, 313px);
    width: min(82vw, 313px);
  }

  .ct-dashboard-page .ct-highlight-card.active.expanded {
    flex-basis: 100%;
    width: 100%;
    height: calc((100vw - 18px) * 0.5625);
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .ct-dashboard-page .ct-highlight-card.active.expanded.orientation-forced {
    flex-basis: auto;
    width: 100dvw;
    height: 100dvh;
    aspect-ratio: auto;
  }

  .ct-dashboard-page .ct-highlight-card-art img {
    width: 96px;
    height: 96px;
  }

  .ct-dashboard-page .ct-highlight-card-copy strong {
    font-size: 12px;
  }

  .ct-dashboard-page .ct-highlight-card-copy em {
    font-size: 18px;
  }

  .ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy strong {
    max-width: 164px;
    font-size: 9px;
  }

  .ct-dashboard-page .ct-highlight-card.active.copy-faded .ct-highlight-card-copy em {
    font-size: 10px;
  }

  .ct-dashboard-page .ct-feed-highlight-preferences {
    margin: -4px 0 6px;
    padding: 0 10px;
  }

  .ct-dashboard-page .ct-highlight-stage {
    width: calc(100vw + 4px);
    margin-left: calc(50% - 50vw - 2px);
    margin-right: calc(50% - 50vw - 2px);
    border-radius: 0;
  }
}

.ct-admin-highlights-table td:first-child strong,
.ct-admin-highlights-table td:first-child small {
  display: block;
}

.ct-admin-highlights-table td:first-child small {
  margin-top: 4px;
  color: #667085;
}

.ct-admin-analytics-shell {
  padding-bottom: 54px;
}

.ct-admin-analytics-overview {
  display: grid;
  gap: 18px;
}

.ct-admin-analytics-range {
  min-width: min(240px, 100%);
}

.ct-admin-analytics-range label {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-analytics-range select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-weight: 800;
}

.ct-admin-analytics-stats {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.ct-admin-analytics-stats article {
  min-height: 104px;
}

.ct-admin-analytics-stats article strong {
  font-size: clamp(22px, 2.5vw, 31px);
}

.ct-admin-mini-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ct-admin-mini-metrics article {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.ct-admin-mini-metrics span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-mini-metrics strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 22px;
  font-weight: 900;
}

.ct-analytics-object-modal[hidden] {
  display: none;
}

.ct-analytics-object-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.48);
}

.ct-analytics-object-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.ct-analytics-object-dialog > button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ct-analytics-object-dialog h2 {
  margin: 8px 42px 8px 0;
  color: #101828;
  font-size: 24px;
  line-height: 1.15;
}

.ct-analytics-object-dialog p,
.ct-analytics-object-dialog div {
  margin: 0;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.ct-analytics-bars {
  display: grid;
  gap: 10px;
}

.ct-analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.8fr) minmax(120px, 1.5fr) auto;
  align-items: center;
  gap: 10px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.ct-analytics-bar-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-analytics-bar-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.ct-analytics-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00baff, #13c48f);
}

.ct-analytics-bar-row strong {
  color: #101828;
}

@media (max-width: 640px) {
  .ct-analytics-bar-row {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .ct-analytics-bar-row > div {
    grid-column: 1 / -1;
    order: 3;
  }
}

.ct-admin-highlights-table input[type="url"] {
  width: 100%;
  border-color: #f04438;
  box-shadow: 0 0 0 1px rgba(240, 68, 56, 0.14);
}

.ct-admin-highlights-table input[type="url"].has-youtube-link {
  border-color: #12b76a;
  box-shadow: 0 0 0 1px rgba(18, 183, 106, 0.16);
}

.ct-admin-highlights-table input[type="url"]:focus {
  border-color: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.18);
}

.ct-admin-highlights-table input[type="url"].has-youtube-link:focus {
  border-color: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.2);
}

.ct-admin-highlight-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 14px;
}

.ct-admin-highlight-tools span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.ct-admin-highlight-url-cell {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ct-admin-highlight-preview-btn {
  min-height: 42px;
  white-space: nowrap;
}

.ct-admin-highlight-check-status {
  grid-column: 1 / -1;
  min-height: 17px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-highlight-check-status.is-ok {
  color: #047857;
}

.ct-admin-highlight-check-status.is-error {
  color: #b42318;
}

.ct-admin-highlight-check-status.is-warning {
  color: #b54708;
}

.ct-admin-youtube-preview-modal[hidden] {
  display: none;
}

.ct-admin-youtube-preview-modal {
  position: fixed;
  z-index: 7000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ct-admin-youtube-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.ct-admin-youtube-preview-box {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.ct-admin-youtube-preview-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #101828;
  color: #fff;
}

.ct-admin-youtube-preview-head h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 19px;
}

.ct-admin-youtube-preview-head .ct-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.ct-admin-youtube-preview-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ct-admin-youtube-preview-status {
  margin: 16px 18px 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.ct-admin-youtube-preview-status.is-ok {
  background: #ecfdf3;
  color: #047857;
}

.ct-admin-youtube-preview-status.is-error {
  background: #fef3f2;
  color: #b42318;
}

.ct-admin-youtube-preview-frame {
  aspect-ratio: 16 / 9;
  margin: 16px 18px 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #101828;
}

.ct-admin-youtube-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ct-admin-youtube-check-probe {
  position: fixed;
  left: -120px;
  top: -120px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ct-admin-youtube-check-probe iframe {
  width: 1px;
  height: 1px;
  border: 0;
}

body.ct-admin-notification-delivery-open {
  overflow: hidden;
}

.ct-admin-notification-detail-button {
  width: 100%;
  margin-bottom: 8px;
}

.ct-admin-notification-delivery-modal[hidden] {
  display: none;
}

.ct-admin-notification-delivery-modal {
  position: fixed;
  z-index: 7100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ct-admin-notification-delivery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
}

.ct-admin-notification-delivery-dialog {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}

.ct-admin-notification-delivery-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #172033 62%, #0f766e 150%);
  color: #fff;
}

.ct-admin-notification-delivery-head h2,
.ct-admin-notification-delivery-head p {
  margin: 0;
  color: #fff;
}

.ct-admin-notification-delivery-head h2 {
  margin-top: 2px;
  font-size: 20px;
}

.ct-admin-notification-delivery-head p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.ct-admin-notification-delivery-head .ct-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.ct-admin-notification-delivery-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.ct-admin-notification-delivery-body {
  min-height: 0;
  padding: 16px 18px 18px;
  overflow-y: auto;
}

.ct-admin-notification-delivery-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid #eaecf0;
  border-radius: 7px;
  background: #f2f4f7;
}

.ct-admin-notification-delivery-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ct-admin-notification-delivery-tabs button.is-active {
  background: #fff;
  color: #101828;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.ct-admin-notification-delivery-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ct-admin-notification-delivery-modal.is-inbox .ct-admin-notification-delivery-filters {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}

.ct-admin-notification-delivery-filters [hidden] {
  display: none;
}

.ct-admin-notification-delivery-filters label {
  display: grid;
  gap: 5px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-notification-delivery-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: #101828;
  font: inherit;
}

.ct-admin-notification-delivery-filters button {
  min-height: 42px;
}

.ct-admin-notification-delivery-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ct-admin-notification-delivery-summary.is-inbox {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ct-admin-notification-delivery-summary > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #f8fafc;
}

.ct-admin-notification-delivery-summary strong,
.ct-admin-notification-delivery-summary span {
  display: block;
}

.ct-admin-notification-delivery-summary strong {
  color: #101828;
  font-size: 18px;
}

.ct-admin-notification-delivery-summary span {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-admin-notification-delivery-status {
  min-height: 18px;
  margin: 11px 0;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ct-admin-notification-delivery-status.is-error {
  color: #b42318;
}

.ct-admin-notification-delivery-list {
  display: grid;
  gap: 8px;
}

.ct-admin-notification-delivery-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #fff;
}

.ct-admin-notification-delivery-item > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ct-admin-notification-delivery-item > header > div {
  min-width: 0;
}

.ct-admin-notification-delivery-item > header strong,
.ct-admin-notification-delivery-item > header span {
  display: block;
  overflow-wrap: anywhere;
}

.ct-admin-notification-delivery-item > header strong {
  color: #101828;
  font-size: 13px;
}

.ct-admin-notification-delivery-item > header div span {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

.ct-admin-notification-delivery-state {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}

.ct-admin-notification-delivery-state.is-sent {
  background: #ecfdf3;
  color: #047857;
}

.ct-admin-notification-delivery-state.is-failed {
  background: #fef3f2;
  color: #b42318;
}

.ct-admin-notification-delivery-state.is-retry {
  background: #fff7ed;
  color: #b54708;
}

.ct-admin-notification-delivery-state.is-processing,
.ct-admin-notification-delivery-state.is-pending {
  background: #eff8ff;
  color: #026aa2;
}

.ct-admin-notification-delivery-state.is-unseen {
  background: #fef3f2;
  color: #b42318;
}

.ct-admin-notification-delivery-state.is-unread {
  background: #fff7ed;
  color: #b54708;
}

.ct-admin-notification-delivery-state.is-read {
  background: #ecfdf3;
  color: #047857;
}

.ct-admin-notification-delivery-state.is-archived {
  background: #f2f4f7;
  color: #667085;
}

.ct-admin-notification-delivery-content {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #12b76a;
  background: #f8fafc;
}

.ct-admin-notification-delivery-content strong,
.ct-admin-notification-delivery-content p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.ct-admin-notification-delivery-content strong {
  color: #101828;
  font-size: 13px;
}

.ct-admin-notification-delivery-content p {
  margin-top: 3px;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
}

.ct-admin-notification-delivery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 9px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.ct-admin-notification-delivery-error {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px 9px;
  align-items: start;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fef3f2;
  color: #b42318;
  font-size: 11px;
}

.ct-admin-notification-delivery-error span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ct-admin-notification-delivery-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid #d1e9ff;
  border-radius: 6px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 11px;
}

.ct-admin-notification-delivery-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ct-admin-notification-delivery-more {
  width: 100%;
  margin-top: 10px;
}

.ct-admin-notification-delivery-privacy {
  margin: 12px 0 0;
  color: #667085;
  font-size: 11px;
  text-align: center;
}

.ct-admin-notification-delivery-modal.is-loading .ct-admin-notification-delivery-status::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid #d0d5dd;
  border-top-color: #12b76a;
  border-radius: 50%;
  vertical-align: -2px;
  animation: ct-spin 0.8s linear infinite;
}

@media (max-width: 720px) {
  .ct-admin-notification-delivery-modal {
    padding: 0;
  }

  .ct-admin-notification-delivery-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ct-admin-notification-delivery-head {
    min-height: 82px;
    padding: 14px 15px;
  }

  .ct-admin-notification-delivery-head h2 {
    font-size: 18px;
  }

  .ct-admin-notification-delivery-head p {
    max-width: 270px;
  }

  .ct-admin-notification-delivery-body {
    padding: 13px 12px 18px;
  }

  .ct-admin-notification-delivery-filters {
    grid-template-columns: 1fr 1fr;
  }

  .ct-admin-notification-delivery-modal.is-inbox .ct-admin-notification-delivery-filters {
    grid-template-columns: 1fr 1fr;
  }

  .ct-admin-notification-delivery-modal.is-inbox [data-notification-delivery-status-wrap] {
    grid-column: 1 / -1;
  }

  .ct-admin-notification-delivery-filters button {
    grid-column: 1 / -1;
  }

  .ct-admin-notification-delivery-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-admin-notification-delivery-summary.is-inbox {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-admin-notification-delivery-summary.is-inbox > div:last-child {
    grid-column: 1 / -1;
  }

  .ct-admin-notification-delivery-error {
    grid-template-columns: 1fr;
  }

  .ct-admin-notification-delivery-link {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .ct-admin-highlight-url-cell {
    grid-template-columns: 1fr;
  }
}

.ct-profile-page .ct-profile-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff;
}

.ct-profile-page .ct-profile-hero p {
  margin: 0;
  color: #667085;
}

.ct-profile-page .ct-profile-feed-head {
  margin-top: 4px;
}

.ct-dashboard-page .ct-post-action-btn.static {
  cursor: default;
}

.ct-dashboard-page .ct-post-action-btn.static:hover {
  transform: none;
}

.ct-message-post-modal-box {
  width: min(420px, calc(100vw - 28px));
}

.ct-message-post-contacts {
  display: grid;
  gap: 8px;
  max-height: min(420px, 58vh);
  overflow-y: auto;
}

.ct-message-post-contacts button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
  color: #101828;
  text-align: left;
  cursor: pointer;
}

.ct-message-post-contacts button:disabled {
  opacity: 0.58;
  cursor: progress;
}

.ct-message-post-contacts img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f6;
}

.ct-message-post-contacts span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-message-post-contacts strong,
.ct-message-post-contacts em,
.ct-message-post-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ct-message-post-contacts strong,
.ct-message-post-empty {
  font-weight: 900;
}

.ct-message-post-contacts em,
.ct-message-post-empty {
  color: #667085;
  font-style: normal;
}

/* Messaging */
body.ct-dashboard-foundation.ct-dashboard-page.ct-messages-page {
  --ct-messages-appbar-offset: 85px;
  height: 100dvh;
  padding-top: var(--ct-messages-appbar-offset);
  overflow: hidden;
}

.ct-messages-page .ct-messages-shell {
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: 1fr;
  height: calc(100dvh - var(--ct-messages-appbar-offset));
  padding-bottom: 0;
}

.ct-messages-page .ct-messages-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.ct-messages-page .ct-conversation-list,
.ct-messages-page .ct-chat-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.ct-messages-page .ct-chat-panel > [data-conversation-part] {
  display: contents;
}

.ct-messages-page .ct-conversation-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.ct-messages-page .ct-messages-head {
  flex: 0 0 auto;
  padding: 14px 14px 10px;
  background: #fff;
}

.ct-messages-page .ct-message-list-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px 18px 0 0;
  background: #fff;
  overflow: hidden;
}

.ct-messages-page .ct-message-list-tabs button {
  position: relative;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.ct-messages-page .ct-message-list-tabs button.has-unread::after {
  content: "";
  position: absolute;
  top: 10px;
  right: calc(50% - 34px);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff;
}

.ct-messages-page .ct-message-list-tabs button:first-child {
  border-top-left-radius: 18px;
}

.ct-messages-page .ct-message-list-tabs button:last-child {
  border-top-right-radius: 18px;
}

.ct-messages-page .ct-message-list-tabs button:focus,
.ct-messages-page .ct-message-list-tabs button:focus-visible,
.ct-messages-page .ct-message-list-tabs button:active {
  outline: 0;
  box-shadow: none;
}

.ct-messages-page .ct-message-list-tabs button.active {
  color: #101828;
  background: #fff;
  box-shadow: inset 0 -2px 0 #101828;
}

.ct-messages-page .ct-message-list-tab-panel[hidden] {
  display: none;
}

.ct-messages-page .ct-message-list-tab-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 14px;
}

.ct-messages-page .ct-empty-coupon.hidden {
  display: none;
}

.ct-messages-page .ct-message-list-search-row {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-messages-page .ct-create-group-button {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 132, 61, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #087443;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(12, 118, 72, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ct-messages-page .ct-create-group-button:hover {
  border-color: rgba(18, 132, 61, 0.38);
  color: #05603a;
  box-shadow: 0 12px 24px rgba(12, 118, 72, 0.15);
  transform: translateY(-1px);
}

.ct-messages-page .ct-create-group-button.hidden {
  display: none;
}

.ct-message-group-create-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 5400;
}

.ct-message-group-create-modal.hidden {
  display: none;
}

.ct-message-group-create-box {
  position: relative;
  width: min(720px, calc(100dvw - 36px));
  max-height: calc(100dvh - 42px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  z-index: 2;
}

.ct-message-group-create-head {
  padding-right: 42px;
}

.ct-message-group-create-head h2 {
  margin: 5px 0 4px;
  color: #101828;
  font-size: 24px;
  line-height: 1.08;
}

.ct-message-group-create-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ct-message-group-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.ct-message-group-steps span {
  min-width: 0;
  padding: 7px 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.ct-message-group-steps span.active {
  background: #101828;
  color: #fff;
}

.ct-message-group-step {
  min-height: 0;
  display: none;
  overflow: auto;
}

.ct-message-group-step.active {
  display: grid;
  gap: 13px;
  align-content: start;
}

.ct-message-group-step[data-group-step="1"].active {
  padding-top: 12px;
}

.ct-message-group-identity-step.active {
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: start;
  grid-auto-rows: max-content;
}

.ct-message-group-step[data-group-step="3"].active {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  overflow: hidden;
}

.ct-message-group-icon-field {
  display: grid;
  gap: 6px;
}

.ct-message-group-icon-field > span:first-child {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ct-message-group-icon-picker {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #101828;
  cursor: pointer;
}

.ct-message-group-icon-picker input {
  display: none;
}

.ct-message-group-icon-preview {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #101828;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.ct-message-group-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-image-crop-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 5500;
}

.ct-image-crop-box {
  position: relative;
  width: min(460px, calc(100dvw - 36px));
  max-height: calc(100dvh - 36px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  z-index: 2;
}

.ct-image-crop-modal.is-feedback-only .ct-image-crop-box {
  grid-template-rows: auto auto auto;
}

.ct-image-crop-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 18px 0 4px;
}

.ct-image-crop-modal.is-feedback-only .ct-image-crop-body {
  display: none;
}

.ct-image-crop-stage {
  position: relative;
  justify-self: center;
  width: min(330px, calc(100dvw - 80px));
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 26px;
  background: #101828;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ct-image-crop-stage:active {
  cursor: grabbing;
}

.ct-image-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}

.ct-image-crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 72px rgba(0, 0, 0, 0.32);
}

.ct-image-crop-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.ct-image-crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ct-image-crop-zoom span {
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.ct-image-crop-zoom input[type="range"] {
  width: 100%;
  accent-color: #00baff;
}

.ct-image-crop-modal.is-feedback-only .ct-publish-message {
  margin: 18px 18px 2px;
  padding: 14px 16px;
  border: 1px solid rgba(190, 18, 60, 0.18);
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.ct-image-crop-modal.is-feedback-only .ct-image-crop-actions {
  justify-content: center;
}

.ct-message-group-field {
  display: grid;
  gap: 6px;
}

.ct-message-group-field span {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ct-message-group-field input,
.ct-message-group-search input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 13px;
  padding: 0 12px;
  outline: 0;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
}

.ct-message-group-field input:focus,
.ct-message-group-search input:focus {
  border-color: rgba(0, 186, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-message-group-name-counter {
  justify-self: end;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.ct-message-group-name-counter.is-low {
  color: #b54708;
}

.ct-message-group-name-counter.is-ok {
  color: #667085;
}

.ct-message-group-name-counter.is-over {
  color: #b42318;
}

.ct-message-group-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ct-message-group-choice {
  position: relative;
  min-height: 196px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 9px;
  padding: 16px 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.ct-message-group-choice::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: #00baff;
  opacity: 0.55;
}

.ct-message-group-choice:has(input:checked) {
  border-color: rgba(0, 186, 255, 0.5);
  box-shadow: 0 12px 26px rgba(0, 186, 255, 0.12);
  transform: translateY(-1px);
}

.ct-message-group-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.ct-message-group-choice strong {
  color: #101828;
  font-size: 14px;
}

.ct-message-group-choice span {
  color: #667085;
  font-size: 12px;
  line-height: 1.42;
}

.ct-message-group-choice select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(0, 186, 255, 0.24);
  border-radius: 12px;
  padding: 0 10px;
  outline: 0;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ct-message-group-choice select:focus {
  border-color: rgba(0, 186, 255, 0.64);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-message-group-suboptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ct-message-group-suboptions.hidden {
  display: none;
}

.ct-message-group-suboptions label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 13px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.ct-message-group-suboptions input {
  accent-color: #00baff;
}

.ct-message-group-member-list {
  min-height: 0;
  max-height: min(360px, 42dvh);
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.ct-message-group-step[data-group-step="3"].active .ct-message-group-member-list {
  height: 100%;
  max-height: none;
}

.ct-message-group-member {
  display: grid;
  grid-template-columns: auto 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
}

.ct-message-group-member.is-selected {
  border-color: rgba(0, 186, 255, 0.36);
  background: #f5fcff;
}

.ct-message-group-member.hidden-by-search {
  display: none;
}

.ct-message-group-member > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00baff;
}

.ct-message-group-member img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-group-member span {
  min-width: 0;
}

.ct-message-group-member strong,
.ct-message-group-member em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-message-group-member strong {
  color: #101828;
  font-size: 13px;
}

.ct-message-group-member em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
}

.ct-message-group-admin-toggle {
  min-height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  background: #f8fafc;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.ct-message-group-admin-toggle[hidden],
.ct-message-group-admin-toggle.hidden {
  display: none;
}

.ct-message-group-admin-toggle[aria-pressed="true"] {
  border-color: rgba(0, 186, 255, 0.44);
  background: #e7f8ff;
  color: #0076a3;
}

.ct-message-group-admin-toggle:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.ct-message-group-hint,
.ct-message-group-empty {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.ct-message-group-summary {
  display: grid;
  gap: 10px;
}

.ct-message-group-summary-card {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-message-group-summary-card strong {
  color: #101828;
  font-size: 13px;
}

.ct-message-group-summary-card span {
  color: #667085;
  font-size: 12px;
}

.ct-message-group-actions {
  box-sizing: border-box;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ct-message-group-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.ct-message-group-actions button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-message-group-actions button:nth-child(2),
.ct-message-group-actions button[type="submit"] {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-message-group-actions #messageGroupNextButton {
  background: #167348;
  color: #fff;
}

.ct-message-group-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ct-message-group-actions button.hidden {
  display: none;
}

.ct-message-group-create-box.is-busy .ct-message-group-actions button[type="submit"] span {
  opacity: 0;
}

.ct-message-group-create-box.is-busy .ct-message-group-actions button[type="submit"] i {
  display: block;
}

.ct-messages-page .ct-chat-list-search {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  color: #667085;
}

.ct-messages-page .ct-chat-list-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-chat-list-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font: inherit;
  font-size: 13px;
}

.ct-messages-page .ct-chat-list-search input::placeholder {
  color: #98a2b3;
}

.ct-messages-page .ct-chat-list-no-results {
  padding: 16px 10px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.ct-messages-page .ct-chat-list-no-results.hidden {
  display: none;
}

.ct-messages-page .ct-sidebar-search-extra {
  margin-top: 10px;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-sidebar-search-extra.hidden {
  display: none;
}

.ct-messages-page .ct-sidebar-search-extra h3 {
  margin: 0 0 8px;
  padding: 0 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.ct-messages-page .ct-sidebar-search-result {
  width: 100%;
  min-height: 56px;
  margin: 0 0 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 13px;
  background: #fff;
  color: #101828;
  font: inherit;
  text-align: left;
}

.ct-messages-page button.ct-sidebar-search-result {
  cursor: pointer;
}

.ct-messages-page button.ct-sidebar-search-result:hover {
  border-color: rgba(18, 132, 61, 0.24);
  background: #f8fbfa;
}

.ct-messages-page .ct-sidebar-search-result.is-static {
  background: #f9fafb;
}

.ct-messages-page .ct-sidebar-search-result img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-sidebar-search-result span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-messages-page .ct-sidebar-search-result strong,
.ct-messages-page .ct-sidebar-search-result em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-sidebar-search-result strong {
  font-size: 13px;
  font-weight: 900;
}

.ct-messages-page .ct-sidebar-search-result em,
.ct-messages-page .ct-sidebar-search-result small,
.ct-messages-page .ct-sidebar-search-empty {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.ct-messages-page .ct-sidebar-search-result small {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2f6;
  white-space: nowrap;
}

.ct-messages-page .ct-sidebar-search-empty {
  padding: 10px 2px 4px;
  text-align: center;
}

.ct-messages-page .ct-sidebar-search-empty.hidden {
  display: none;
}

.ct-messages-page .ct-conversation-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 64px;
  padding: 10px 52px 16px 8px;
  border-radius: 14px;
  color: #101828;
  text-decoration: none;
}

.ct-messages-page .ct-conversation-row {
  position: relative;
  border-radius: 14px;
}

.ct-messages-page .ct-conversation-row.hidden-by-search {
  display: none;
}

.ct-messages-page .ct-conversation-row.active {
  background: #f2f8fb;
}

.ct-messages-page .ct-group-conversation-row.is-invited .ct-conversation-item {
  background: #fffaf0;
}

.ct-messages-page .ct-conversation-item:hover,
.ct-messages-page .ct-conversation-item.active,
.ct-messages-page .ct-conversation-row.active > .ct-conversation-item,
.ct-messages-page .ct-conversation-row.is-pending > .ct-conversation-item {
  background: #e9eef2;
}

.ct-messages-page .ct-conversation-item img {
  width: 42px;
  height: 42px;
  min-width: 42px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2f6, #f8fafc);
  flex: 0 0 42px;
}

.ct-messages-page .ct-conversation-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: block;
}

.ct-messages-page .ct-conversation-avatar-wrap img {
  width: 100%;
  height: 100%;
}

.ct-messages-page .ct-group-admin-badge {
  position: absolute;
  right: -3px;
  top: -4px;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.18);
}

.ct-messages-page .ct-group-admin-badge svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-conversation-item span {
  min-width: 0;
}

.ct-messages-page .ct-conversation-item strong,
.ct-messages-page .ct-conversation-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-conversation-item strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.ct-messages-page .ct-conversation-item em {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.ct-messages-page .ct-conversation-pills {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  max-width: 128px;
  overflow: hidden;
}

.ct-messages-page .ct-conversation-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: auto;
  height: 20px;
  max-width: 58px;
  justify-content: center;
  padding: 2px 6px 2px 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-conversation-pill svg {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  fill: currentColor;
}

.ct-messages-page .ct-conversation-pill span {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-conversation-pill.pinned {
  background: #ecfeff;
  color: #027a90;
}

.ct-messages-page .ct-conversation-pill.muted {
  background: #f9fafb;
  color: #475467;
}

.ct-messages-page .ct-conversation-pill.blocked {
  background: #fff1f3;
  color: #c01048;
}

.ct-messages-page .ct-conversation-pill.ct-group-invite-pill {
  width: auto;
  max-width: none;
  background: #fff3cd;
  color: #9a6700;
}

.ct-messages-page .ct-conversation-pill.ct-group-invite-pill span {
  display: inline;
}

.ct-messages-page .ct-conversation-avatar-wrap .ct-conversation-pills {
  position: absolute;
  left: -3px;
  bottom: -5px;
  z-index: 2;
  max-width: none;
  gap: 2px;
  overflow: visible;
}

.ct-messages-page .ct-conversation-avatar-wrap .ct-conversation-pill {
  width: 18px;
  height: 18px;
  max-width: none;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff, 0 7px 14px rgba(15, 23, 42, 0.16);
}

.ct-messages-page .ct-conversation-avatar-wrap .ct-conversation-pill svg {
  width: 9px;
  height: 9px;
  flex-basis: 9px;
}

.ct-messages-page .ct-conversation-avatar-wrap .ct-conversation-pill span {
  display: none;
}

.ct-messages-page .ct-user-presence {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.ct-messages-page .ct-user-presence i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.14);
}

.ct-messages-page .ct-conversation-row[data-conversation-type="direct"] .ct-user-presence i {
  margin-left: 3px;
}

.ct-messages-page .ct-user-presence.online i {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.16);
}

.ct-messages-page .ct-user-presence em {
  display: none;
}

.ct-messages-page .ct-chat-name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.ct-messages-page .ct-chat-name-row .ct-user-presence {
  flex: 0 0 auto;
}

.ct-messages-page .ct-chat-name-row [data-group-header-name] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-chat-name-row .ct-conversation-pills {
  flex: 0 0 auto;
  max-width: none;
  overflow: visible;
}

.ct-messages-page .ct-chat-name-row .ct-conversation-pill:not(.ct-group-invite-pill) {
  width: 20px;
  height: 20px;
  max-width: none;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 0 0 2px #fff, 0 5px 12px rgba(15, 23, 42, 0.12);
}

.ct-messages-page .ct-chat-name-row .ct-conversation-pill:not(.ct-group-invite-pill) svg {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

.ct-messages-page .ct-chat-name-row .ct-conversation-pill:not(.ct-group-invite-pill) span {
  display: none;
}

.ct-messages-page .ct-conversation-item b {
  position: absolute;
  right: 42px;
  top: 11px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page .ct-conversation-time {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.ct-messages-page .ct-conversation-row-loader {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  min-width: 54px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.94);
  color: #0277a8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  pointer-events: none;
}

.ct-messages-page .ct-conversation-row-loader i {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 999px;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-messages-page .ct-conversation-row.is-loading-conversation .ct-conversation-item {
  background: #eff8ff;
}

.ct-messages-page .ct-conversation-row.is-loading-conversation .ct-conversation-time,
.ct-messages-page .ct-conversation-row.is-loading-conversation .ct-conversation-item > b,
.ct-messages-page .ct-conversation-row.is-loading-conversation > .ct-conversation-menu-button {
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-conversation-menu-button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  z-index: 2;
}

.ct-messages-page .ct-conversation-menu-button:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #101828;
}

.ct-messages-page .ct-conversation-menu-button span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.ct-messages-page .ct-conversation-menu-button span:nth-child(1) {
  transform: translateX(-7px);
}

.ct-messages-page .ct-conversation-menu-button span:nth-child(3) {
  transform: translateX(7px);
}

.ct-messages-page .ct-conversation-menu-button span:nth-child(4),
.ct-messages-page .ct-conversation-menu-button span:nth-child(5) {
  opacity: 0;
}

.ct-messages-page .ct-conversation-menu-button.open {
  color: #ef4444;
}

.ct-messages-page .ct-conversation-menu-button.open span:nth-child(1) {
  transform: translate(-6px, -6px);
}

.ct-messages-page .ct-conversation-menu-button.open span:nth-child(2) {
  transform: translate(0, 0);
  opacity: 1;
}

.ct-messages-page .ct-conversation-menu-button.open span:nth-child(3) {
  transform: translate(6px, 6px);
}

.ct-messages-page .ct-conversation-menu-button.open span:nth-child(4) {
  transform: translate(6px, -6px);
  opacity: 1;
}

.ct-messages-page .ct-conversation-menu-button.open span:nth-child(5) {
  transform: translate(-6px, 6px);
  opacity: 1;
}

.ct-messages-page .ct-conversation-menu-panel {
  position: absolute;
  right: 8px;
  top: 38px;
  display: grid;
  min-width: 188px;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0 0 100% 0 round 12px);
  transform: translateY(-10px) scaleY(0.72);
  transform-origin: top center;
  transition:
    opacity 170ms ease,
    clip-path 210ms cubic-bezier(.2,.86,.24,1),
    transform 210ms cubic-bezier(.2,.86,.24,1);
  z-index: 80;
}

.ct-messages-page .ct-conversation-menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 12px);
  transform: translateY(0) scale(1);
}

.ct-messages-page .ct-conversation-menu-panel button {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ct-messages-page .ct-conversation-menu-panel button:hover {
  transform: translateX(1px);
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-conversation-menu-panel button.is-active {
  background: #edf8ff;
  border-color: rgba(14, 165, 233, 0.18);
  color: #0277a8;
}

.ct-messages-page .ct-conversation-menu-panel button.is-danger-active {
  background: #fff;
  border-color: transparent;
  color: #d92d20;
}

.ct-messages-page .ct-conversation-menu-panel button.is-danger-active.is-active {
  background: #fff5f5;
  border-color: rgba(239, 68, 68, 0.16);
}

.ct-messages-page .ct-conversation-menu-panel button.is-danger-active:hover {
  transform: translateX(1px);
  background: #fee4e2;
  border-color: rgba(217, 45, 32, 0.24);
  color: #b42318;
}

.ct-messages-page .ct-conversation-menu-panel button.is-danger-active:active {
  transform: translateX(1px) scale(0.98);
  background: #fecdca;
  border-color: rgba(180, 35, 24, 0.3);
  color: #912018;
}

.ct-messages-page .ct-conversation-menu-panel svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-conversation-menu-panel button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-chat-panel {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}

.ct-messages-page .ct-chat-back {
  display: none;
}

.ct-messages-page .ct-chat-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  background: #fff;
}

.ct-messages-page .ct-chat-header img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 999px;
}

.ct-messages-page .ct-chat-identity {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}

.ct-messages-page .ct-chat-header .ct-profile-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.ct-messages-page .ct-chat-header .ct-chat-team {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
}

.ct-messages-page .ct-group-info-trigger {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ct-messages-page .ct-group-info-trigger > img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 999px;
}

.ct-messages-page .ct-group-info-trigger:hover .ct-chat-name-row {
  color: #0277a8;
}

.ct-messages-page .ct-group-nature-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  margin-right: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: -4px;
}

.ct-messages-page .ct-group-nature-icon svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-group-nature-icon.free {
  background: #eff8ff;
  color: #175cd3;
  border-color: #b2ddff;
}

.ct-messages-page .ct-group-nature-icon.prediction {
  background: #fffaeb;
  color: #b54708;
  border-color: #fedf89;
}

.ct-messages-page .ct-group-nature-icon.prediction.moderated {
  background: #fff4ed;
  color: #c4320a;
  border-color: #ff9c66;
  box-shadow: none;
}

.ct-messages-page .ct-group-nature-icon.channel.public {
  background: #eef2ff;
  color: #3538cd;
  border-color: #c7d7fe;
}

.ct-messages-page .ct-group-nature-icon.channel.private {
  background: #fdf2fa;
  color: #c11574;
  border-color: #fcceee;
}

.ct-messages-page .ct-chat-state-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ct-messages-page .ct-chat-header > .ct-conversation-menu-button {
  position: relative;
  top: auto;
  right: auto;
  flex: 0 0 32px;
  margin-left: auto;
  background: #f8fafc;
}

.ct-messages-page .ct-chat-header > .ct-conversation-menu-panel {
  right: 12px;
  top: 56px;
  z-index: 90;
}

.ct-messages-page .ct-chat-messages-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.ct-messages-page .ct-chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  font-size: 13px;
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-padding-bottom: 14px;
  background: #f8fafc;
}

.ct-messages-page .ct-chat-hydration-loader {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  background: #f8fafc;
  color: #344054;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition: opacity 0.12s ease;
}

.ct-messages-page .ct-chat-hydration-loader.hidden {
  display: none;
}

.ct-messages-page .ct-chat-hydration-loader.is-ready {
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-chat-switch-skeleton {
  display: grid;
  gap: 12px;
  padding: 8px 0;
}

.ct-messages-page .ct-chat-switch-skeleton span {
  display: block;
  width: min(72%, 520px);
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%);
  background-size: 180% 100%;
  animation: ct-message-skeleton-shimmer 0.95s ease-in-out infinite;
}

.ct-messages-page .ct-chat-switch-skeleton span:nth-child(even) {
  justify-self: end;
  width: min(58%, 430px);
}

body.ct-chat-is-switching .ct-messages-page .ct-chat-messages,
.ct-messages-page.ct-chat-is-switching .ct-chat-messages {
  background: #f8fafc;
  overflow-anchor: none;
}

body.ct-chat-prepositioning .ct-messages-page .ct-chat-messages,
body.ct-conversation-reveal-pending .ct-messages-page .ct-chat-messages,
.ct-messages-page.ct-chat-prepositioning .ct-chat-messages,
.ct-messages-page.ct-conversation-reveal-pending .ct-chat-messages {
  visibility: hidden;
}

.ct-messages-page .ct-chat-empty-state {
  align-self: center;
  justify-self: center;
  margin: auto;
  max-width: min(320px, 82%);
  padding: 13px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

@keyframes ct-message-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ct-messages-page .ct-chat-hydration-loader .ct-app-loader-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-messages-page .ct-chat-hydration-loader strong {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ct-messages-page .ct-chat-hydration-loader {
    transition: none;
  }

  .ct-messages-page .ct-chat-hydration-loader .ct-app-loader-spinner,
  .ct-messages-page .ct-chat-switch-skeleton span {
    animation: none;
  }
}

.ct-messages-page .ct-message-date-pill,
.ct-messages-page .ct-message-date-separator {
  align-self: center;
  pointer-events: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(16, 24, 40, 0.7);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ct-messages-page .ct-message-date-pill {
  position: sticky;
  top: -10px;
  z-index: 10;
  margin-top: -10px;
}

.ct-messages-page .ct-message-date-pill.is-reading-history {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #344054;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.ct-messages-page .ct-message-date-separator {
  position: relative;
  z-index: 1;
  margin: 2px 0;
}

.ct-messages-page .ct-message-date-pill.hidden {
  display: none;
}

.ct-messages-page .ct-message-unread-jump {
  position: absolute;
  top: 84px;
  right: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #101828;
  cursor: pointer;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.16));
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.ct-messages-page .ct-message-unread-jump:hover {
  transform: translateY(1px);
}

.ct-messages-page .ct-message-unread-jump span {
  min-width: 27px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ct-messages-page .ct-message-unread-jump b {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #00a8e8;
}

.ct-messages-page .ct-message-unread-jump svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ct-messages-page .ct-message-unread-jump.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
}

.ct-messages-page .ct-message-bubble {
  position: relative;
  box-sizing: border-box;
  max-width: min(72%, 520px);
  padding: 8px 10px;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ct-messages-page .ct-message-system-event {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
  padding: 0 14px;
  box-sizing: border-box;
}

.ct-messages-page .ct-message-system-event-card {
  position: relative;
  width: min(100%, 560px);
  padding: 9px 12px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-message-system-event-title,
.ct-messages-page .ct-message-system-event-subtitle,
.ct-messages-page .ct-message-system-event-line,
.ct-messages-page .ct-message-system-event time {
  display: block;
}

.ct-messages-page .ct-message-system-event-title {
  margin-bottom: 4px;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.ct-messages-page .ct-message-system-event-subtitle {
  margin-bottom: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ct-messages-page .ct-message-system-event-line {
  margin-top: 3px;
  color: #344054;
  overflow-wrap: anywhere;
}

.ct-messages-page .ct-message-system-event-line strong {
  color: #101828;
  font-weight: 950;
}

.ct-messages-page .ct-message-system-event time {
  margin-top: 7px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

.ct-messages-page .ct-message-system-event.is-prediction-event {
  margin: 5px 0;
  padding-inline: 10px;
}

.ct-messages-page .ct-message-system-event.is-prediction-event .ct-message-system-event-card {
  width: min(100%, 480px);
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.88);
  box-shadow: none;
}

.ct-messages-page .ct-message-system-event.is-prediction-event .ct-message-system-event-card > time {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
}

.ct-messages-page .ct-message-system-prediction {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-align: left;
}

.ct-messages-page .ct-message-system-prediction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.ct-messages-page .ct-message-system-prediction-icon.created {
  background: #ecfdf3;
  color: #067647;
}

.ct-messages-page .ct-message-system-prediction-icon.updated {
  background: #dcfae6;
  color: #085d3a;
}

.ct-messages-page .ct-message-system-prediction-icon.assigned {
  background: #eff8ff;
  color: #026aa2;
}

.ct-messages-page .ct-message-system-prediction-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.ct-messages-page .ct-message-system-prediction-action {
  padding-right: 40px;
  color: #344054;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
}

.ct-messages-page .ct-message-system-prediction-user {
  color: #101828;
  font-weight: 950;
  text-decoration: none;
}

.ct-messages-page .ct-message-system-prediction-user:hover {
  text-decoration: underline;
}

.ct-messages-page .ct-message-system-prediction-verb {
  font-size: inherit;
  font-weight: 950;
}

.ct-messages-page .ct-message-system-prediction-verb.created {
  color: #067647;
}

.ct-messages-page .ct-message-system-prediction-verb.updated {
  color: #085d3a;
}

/* Schedina gruppo - builder refresh rollbackabile disattivato
.ct-messages-page .ct-slip-builder-shell.ct-message-modal-shell {
  width: min(960px, calc(100dvw - 36px));
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-head {
  background: linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  padding: 18px 60px 17px 22px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-head h2 {
  font-size: 22px;
  line-height: 1.16;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-head p {
  max-width: 560px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper span {
  min-height: 32px;
  gap: 7px;
  border-radius: 10px;
  background: #fff;
  color: #667085;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper span b {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: inherit;
  font-size: 10px;
  line-height: 1;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper span.active {
  background: #101828;
  color: #fff;
  border-color: #101828;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper span.active b {
  background: rgba(255, 255, 255, 0.16);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stage {
  margin: 0;
  min-height: 0;
  padding: 16px 20px 0;
  overflow: auto;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stage.hidden {
  display: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head span,
.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head strong {
  color: #344054;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head p {
  margin: 0;
  color: #667085;
  font-size: 12.5px;
  font-weight: 650;
}

.ct-messages-page .ct-slip-builder-shell #messageGroupPredictionSlipSelectedCount {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #167348;
  white-space: nowrap;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-pick-list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card:hover,
.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card:focus-within {
  border-color: rgba(22, 115, 72, 0.34);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card:has(input:checked) {
  border-color: rgba(22, 115, 72, 0.46);
  background: linear-gradient(135deg, #ffffff 0%, #f0fbf5 100%);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-composer-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
  border-radius: 7px;
  border: 2px solid rgba(16, 24, 40, 0.16);
  background: #fff;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card input:checked + .ct-slip-composer-check {
  border-color: #167348;
  background: #167348;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card input:checked + .ct-slip-composer-check::after {
  width: 9px;
  height: 5px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card.is-readonly .ct-slip-composer-check {
  display: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card.is-readonly {
  grid-template-columns: minmax(0, 1fr);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-main strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.2;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-main small {
  color: #667085;
  font-size: 11.5px;
  font-weight: 750;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-main > em,
.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-main > em {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 900;
  white-space: normal;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-side {
  min-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-side em {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-side b,
.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side b {
  min-width: 52px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #167348;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.ct-messages-page .ct-slip-builder-shell .ct-gp-tab-teams {
  gap: 6px;
}

.ct-messages-page .ct-slip-builder-shell .ct-gp-tab-teams img,
.ct-messages-page .ct-slip-builder-shell .ct-gp-tab-teams i {
  width: 22px;
  height: 22px;
}

.ct-messages-page .ct-slip-builder-shell .ct-gp-tab-teams em {
  max-width: 150px;
  color: #101828;
  font-size: 11px;
  text-transform: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-review {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-review.hidden {
  display: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-builder-copy {
  align-self: start;
  display: grid;
  gap: 12px;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-title,
.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-description {
  margin: 0;
  display: grid;
  gap: 7px;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-title input,
.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-description textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
  outline: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-title input:focus,
.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-description textarea:focus {
  border-color: rgba(22, 115, 72, 0.42);
  box-shadow: 0 0 0 3px rgba(22, 115, 72, 0.1);
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-description textarea {
  min-height: 128px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-preview {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #101828;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper {
  position: relative;
  min-height: 100%;
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(138, 97, 12, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::before,
.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::after {
  content: "";
  position: absolute;
  top: 92px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(138, 97, 12, 0.12);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::before {
  left: -10px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::after {
  right: -10px;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-badge {
  justify-self: start;
  background: #101828;
  color: #fde68a;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview h3 {
  margin: 0;
  color: #101828;
  font-size: 22px;
  line-height: 1.12;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview p.is-empty {
  color: #98a2b3;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-list {
  display: grid;
  gap: 9px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #101828;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-main strong {
  color: #101828;
  font-size: 13.5px;
  line-height: 1.2;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-main small {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side {
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side button {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: #fff1f3;
  color: #c01048;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side button:hover,
.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side button:focus-visible {
  background: #ffe4e8;
  outline: none;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-empty {
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview footer {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed rgba(138, 97, 12, 0.26);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #101828;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview footer span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-preview footer strong {
  color: #101828;
  font-size: 16px;
  font-weight: 950;
}

.ct-messages-page .ct-slip-builder-shell > .ct-publish-message {
  min-height: 18px;
  margin: 8px 20px 0;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions {
  margin: 0;
  padding: 13px 20px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions button {
  min-height: 40px;
  border-radius: 999px;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions [data-group-prediction-slip-back] {
  background: #eef4ff;
  color: #175cd3;
}

.ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions #messageGroupPredictionSlipSave {
  background: #167348;
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-stepper,
.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-copy {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-review {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 700px) {
  .ct-messages-page .ct-slip-builder-shell.ct-message-modal-shell {
    width: 100dvw;
    max-width: 100dvw;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-head {
    padding: 14px 50px 13px 14px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-head h2 {
    font-size: 18px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper {
    padding: 10px 12px;
    gap: 7px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stepper span {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-stage {
    padding: 12px 12px 0;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-panel-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .ct-messages-page .ct-slip-builder-shell #messageGroupPredictionSlipSelectedCount {
    align-self: start;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-side {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-pick-card-side em {
    max-width: 160px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-gp-tab-teams em {
    max-width: 84px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-builder-review {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-group-prediction-slip-description textarea {
    min-height: 92px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper {
    padding: 13px;
    border-radius: 14px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::before,
  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-paper::after {
    display: none;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-ticket-row-side span {
    max-width: 132px;
  }

  .ct-messages-page .ct-slip-builder-shell > .ct-publish-message {
    margin: 7px 12px 0;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions {
    gap: 8px;
    padding: 11px 12px max(16px, calc(12px + env(safe-area-inset-bottom)));
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions button {
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    line-height: 1.1;
    white-space: normal;
  }

  .ct-messages-page .ct-slip-builder-shell .ct-slip-composer-actions #messageGroupPredictionSlipSave {
    flex: 1.25 1 0;
  }
}
*/

.ct-messages-page .ct-message-system-prediction-verb.assigned {
  color: #026aa2;
}

.ct-messages-page .ct-message-system-prediction-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  width: 100%;
}

.ct-messages-page .ct-message-system-prediction-match .ct-team-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #101828;
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page .ct-message-system-prediction-match .ct-team-home {
  justify-content: flex-end;
  text-align: right;
}

.ct-messages-page .ct-message-system-prediction-match .ct-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ct-messages-page .ct-message-system-prediction-match .ct-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-system-prediction-match .ct-team-logo {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.ct-messages-page .ct-message-system-prediction-match .ct-vs-pill {
  color: #98a2b3;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
}

.ct-messages-page .ct-message-system-prediction-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.ct-messages-page .ct-message-system-prediction-market {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-system-prediction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 7px;
  border: 1px solid rgba(21, 112, 239, 0.16);
  border-radius: 999px;
  background: #f5fbff;
  color: #1849a9;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.15;
}

.ct-messages-page .ct-message-system-prediction-odd {
  background: #ecfdf3;
  border-color: rgba(7, 148, 85, 0.2);
  color: #067647;
  font-weight: 950;
}

.ct-messages-page .ct-message-system-event.is-unread .ct-message-system-event-card {
  border-color: rgba(21, 112, 239, 0.22);
  background: #eff8ff;
}

.ct-messages-page .ct-message-system-event.is-unread::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1570ef;
  box-shadow: 0 0 0 4px rgba(21, 112, 239, 0.13);
  transform: translateY(-50%);
}

.ct-messages-page .ct-message-bubble.has-attachments,
.ct-messages-page .ct-message-bubble.has-match-card,
.ct-messages-page .ct-message-bubble.has-shared-post,
.ct-messages-page .ct-message-bubble.has-link-preview,
.ct-messages-page .ct-message-bubble:has(> .ct-message-link-preview) {
  padding: 4px;
}

.ct-messages-page .ct-message-bubble.has-link-preview,
.ct-messages-page .ct-message-bubble:has(> .ct-message-link-preview) {
  width: fit-content;
  max-width: min(86%, 344px);
}

.ct-messages-page .ct-message-bubble.has-menu {
  padding-right: 12px;
}

.ct-messages-page .ct-message-bubble.has-menu.has-attachments,
.ct-messages-page .ct-message-bubble.has-menu.has-match-card,
.ct-messages-page .ct-message-bubble.has-menu.has-shared-post,
.ct-messages-page .ct-message-bubble.has-menu.has-link-preview {
  padding-right: 4px;
}

.ct-messages-page .ct-message-bubble.has-attachments {
  width: fit-content;
}

.ct-messages-page .ct-message-bubble.has-match-card {
  width: min(90%, 560px);
  max-width: min(90%, 560px);
  box-sizing: border-box;
}

.ct-messages-page .ct-message-bubble.has-shared-post {
  width: min(92%, 496px);
  max-width: min(92%, 496px);
  box-sizing: border-box;
}

.ct-messages-page .ct-message-shared-post {
  width: 100%;
}

.ct-messages-page .ct-message-shared-post .ct-post-card {
  margin: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.ct-messages-page .ct-message-shared-post .ct-post-actions {
  display: none;
}

.ct-messages-page .ct-message-shared-post .ct-post-author,
.ct-messages-page .ct-message-shared-post .ct-post-content {
  padding-left: 7px;
  padding-right: 7px;
}

.ct-messages-page .ct-message-post-original {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: default;
}

.ct-messages-page .ct-message-bubble.has-match-card > p:not(.ct-message-empty-content) {
  width: 100%;
  max-width: 100%;
  margin: 5px 0 0;
  padding: 0 2px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #101828;
}

.ct-messages-page .ct-message-bubble.has-match-card.mine > p:not(.ct-message-empty-content) {
  margin-left: 0;
  text-align: left;
  color: #fff;
}

.ct-messages-page .ct-message-bubble.has-match-card.theirs > p:not(.ct-message-empty-content) {
  text-align: left;
}

.ct-messages-page .ct-message-feed-selection {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-message-feed-selection strong {
  font-size: 12px;
}

.ct-messages-page .ct-message-feed-selection .ct-feed-selection-pick > strong,
.ct-messages-page .ct-message-feed-selection .ct-selection-odd-stack b {
  font-weight: 500;
}

.ct-messages-page .ct-message-feed-selection span,
.ct-messages-page .ct-message-feed-selection time {
  font-size: 11px;
}

.ct-messages-page .ct-message-feed-selection .ct-feed-selection-match {
  gap: 7px;
  margin-bottom: 6px;
  font-size: 13px;
}

.ct-messages-page .ct-message-feed-selection .ct-feed-selection-meta {
  margin-bottom: 6px;
  font-size: 11px;
}

.ct-messages-page .ct-message-feed-selection .ct-feed-selection-match em {
  font-size: 10px;
}

.ct-messages-page .ct-message-feed-selection .ct-feed-selection-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.ct-messages-page .ct-message-match-snapshot {
  width: 100%;
  margin-top: 4px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  color: #667085;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-match-snapshot {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.ct-messages-page .ct-message-match-inline-date {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.ct-messages-page .ct-message-bubble.has-attachments p:not(.ct-message-empty-content) {
  max-width: min(340px, calc(100vw - 96px));
  margin-top: 5px;
  padding: 0 2px;
}

.ct-messages-page .ct-message-bubble.mine {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: #00baff;
  color: #fff;
}

.ct-messages-page .ct-message-bubble.pending {
  opacity: 0.78;
}

.ct-messages-page .ct-message-bubble.has-reactions {
  margin-bottom: 16px;
}

.ct-messages-page .ct-message-bubble.is-unread {
  box-shadow: 0 0 0 2px rgba(0, 186, 255, 0.2), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-message-bubble.is-unread-pulsing {
  animation: ct-message-unread-pulse 1.15s ease-in-out 2;
}

.ct-messages-page .ct-message-bubble.is-unread-seen {
  box-shadow: 0 0 0 1px rgba(0, 186, 255, 0.12), 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ct-messages-page .ct-message-bubble.is-unread::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: #00baff;
}

.ct-messages-page .ct-message-bubble.theirs.is-unread::before {
  left: -7px;
}

.ct-messages-page .ct-message-bubble.mine.is-unread::before {
  right: -7px;
}

@keyframes ct-message-unread-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(0, 186, 255, 0.12), 0 10px 24px rgba(15, 23, 42, 0.07);
  }

  45% {
    box-shadow: 0 0 0 4px rgba(0, 186, 255, 0.24), 0 14px 30px rgba(0, 186, 255, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-messages-page .ct-message-bubble.is-unread-pulsing {
    animation: none;
  }
}

.ct-messages-page .ct-message-bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
  color: #101828;
}

.ct-messages-page .ct-message-bubble.has-match-card.mine,
.ct-messages-page .ct-message-bubble.has-match-card.theirs {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ct-messages-page .ct-message-bubble.deleted {
  background: #eef2f7;
  color: #667085;
  font-style: italic;
}

.ct-messages-page .ct-message-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -1px 0 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475467;
}

.ct-messages-page .ct-message-author img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs .ct-message-author {
  gap: 8px;
  margin-bottom: 6px;
}

.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs.has-attachments .ct-message-author,
.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs.has-match-card .ct-message-author,
.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs.has-shared-post .ct-message-author,
.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs.has-link-preview .ct-message-author {
  margin-left: 6px;
}

.ct-messages-page .ct-group-chat-messages .ct-message-bubble.theirs .ct-message-author img {
  width: 32px;
  height: 32px;
}

.ct-messages-page .ct-message-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-height: 1.36;
  white-space: normal;
}

.ct-messages-page .ct-message-bubble p.ct-message-empty-content,
.ct-messages-page .ct-message-bubble p:empty {
  display: none;
}

.ct-messages-page .ct-message-text-link {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.ct-messages-page .ct-message-link-preview {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(320px, 100%);
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ct-messages-page .ct-message-link-preview:hover {
  transform: translateY(-1px);
}

.ct-messages-page .ct-message-bubble > p.ct-message-empty-content + .ct-message-link-preview,
.ct-messages-page .ct-message-bubble > p:empty + .ct-message-link-preview {
  margin-top: 0;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-link-preview,
.ct-messages-page .ct-message-bubble.deleted .ct-message-link-preview {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #101828;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-link-preview {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ct-messages-page .ct-message-link-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 6px;
  overflow: hidden;
  background: #101828;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-link-thumb {
  background: rgba(16, 24, 40, 0.28);
}

.ct-messages-page .ct-message-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-messages-page .ct-message-link-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  line-height: 1.2;
}

.ct-messages-page .ct-message-link-body strong,
.ct-messages-page .ct-message-link-body em,
.ct-messages-page .ct-message-link-body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-messages-page .ct-message-link-body strong {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.ct-messages-page .ct-message-link-body em {
  display: block;
  max-height: 31px;
  color: currentColor;
  font-style: normal;
  font-size: 11px;
  line-height: 1.32;
  opacity: 0.78;
}

.ct-messages-page .ct-message-link-body small {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.62;
  white-space: nowrap;
}

.ct-messages-page .ct-message-forwarded-label {
  display: inline-flex;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.74;
}

.ct-messages-page .ct-message-reply-preview {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px;
  margin: 0 0 5px;
  padding: 6px 7px;
  border: 0;
  border-left: 3px solid currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ct-messages-page .ct-message-reply-preview img {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-reply-preview,
.ct-messages-page .ct-message-bubble.deleted .ct-message-reply-preview {
  background: #f2f4f7;
}

.ct-messages-page .ct-message-reply-preview strong,
.ct-messages-page .ct-message-reply-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-reply-preview strong {
  font-size: 10px;
  font-weight: 900;
}

.ct-messages-page .ct-message-reply-preview span {
  font-size: 10px;
  opacity: 0.82;
}

@media (min-width: 761px) {
  .ct-messages-page .ct-message-reply-preview {
    align-items: baseline;
    column-gap: 6px;
  }

  .ct-messages-page .ct-message-reply-preview img {
    align-self: start;
  }

  .ct-messages-page .ct-message-reply-preview strong,
  .ct-messages-page .ct-message-reply-preview span {
    line-height: 1.2;
  }
}

.ct-messages-page .ct-message-attachments {
  display: grid;
  gap: 5px;
  max-width: 100%;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-attachments {
  justify-items: end;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-attachments {
  justify-items: start;
}

.ct-messages-page .ct-message-bubble p:not(.ct-message-empty-content) + .ct-message-attachments {
  margin-top: 5px;
}

.ct-messages-page .ct-message-bubble.has-match-card .ct-message-attachments {
  margin-top: 5px;
}

.ct-messages-page .ct-message-bubble > .ct-message-link-preview + p:not(.ct-message-empty-content),
.ct-messages-page .ct-message-bubble > .ct-message-shared-post + p:not(.ct-message-empty-content),
.ct-messages-page .ct-message-bubble > .ct-message-attachments + p:not(.ct-message-empty-content),
.ct-messages-page .ct-message-bubble > .ct-message-match-snapshot + p:not(.ct-message-empty-content) {
  margin-top: 5px;
}

.ct-messages-page .ct-message-attachment {
  color: inherit;
  text-decoration: none;
}

.ct-messages-page .ct-message-attachment-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 156px;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  cursor: pointer;
}

.ct-messages-page .ct-message-attachment-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.42), rgba(255,255,255,0)),
    rgba(226, 232, 240, 0.72);
  background-size: 220% 100%;
  animation: ct-message-image-placeholder 1.25s ease-in-out infinite;
  transition: opacity 0.18s ease;
}

.ct-messages-page .ct-message-attachment-image.is-loaded::before {
  opacity: 0;
  animation: none;
}

.ct-messages-page .ct-message-attachment-image.is-error::before {
  background: rgba(226, 232, 240, 0.9);
  animation: none;
}

.ct-messages-page .ct-message-attachment-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.ct-messages-page .ct-message-image-grid {
  position: relative;
  width: min(340px, calc(100vw - 96px));
  max-width: 100%;
  height: clamp(190px, 38vw, 300px);
  min-height: 190px;
  aspect-ratio: 4 / 3;
  display: grid;
  gap: 3px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(226, 232, 240, 0.72);
}

.ct-messages-page .ct-message-image-grid .ct-message-attachment-image {
  min-height: 0;
  aspect-ratio: auto;
}

.ct-messages-page .ct-message-image-grid.count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.ct-messages-page .ct-message-image-grid.count-1.single-full {
  height: auto;
  min-height: 220px;
  aspect-ratio: var(--ct-message-image-ratio, 3 / 4);
  background: #f2f4f7;
}

@keyframes ct-message-image-placeholder {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.ct-messages-page .ct-message-image-grid.count-1.single-full .ct-message-attachment-image img {
  object-fit: contain;
}

.ct-messages-page .ct-message-image-grid.count-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.ct-messages-page .ct-message-image-grid.count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ct-messages-page .ct-message-image-grid.count-3 .ct-message-attachment-image:first-child {
  grid-row: 1 / 3;
}

.ct-messages-page .ct-message-image-grid.count-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.ct-messages-page .ct-message-image-bundle {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 0;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.ct-messages-page .ct-message-image-bundle strong {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 22px;
  font-weight: 900;
}

.ct-messages-page .ct-message-image-bundle span,
.ct-messages-page .ct-message-image-bundle em {
  max-width: 86%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-image-bundle span {
  font-size: 11px;
  font-weight: 800;
}

.ct-messages-page .ct-message-image-bundle em {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ct-messages-page .ct-message-image-grid.is-loading,
.ct-messages-page .ct-message-image-grid.is-loading .ct-message-image-bundle {
  cursor: wait;
}

.ct-messages-page .ct-message-image-grid.is-loading .ct-message-image-bundle em {
  color: #00baff;
}

.ct-messages-page .ct-message-attachment-audio {
  min-width: min(300px, 66vw);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.ct-messages-page .ct-message-attachment-video {
  width: min(340px, calc(100vw - 96px));
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 6px;
  background: #101828;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-attachment-audio,
.ct-messages-page .ct-message-bubble.deleted .ct-message-attachment-audio {
  background: #f2f4f7;
}

.ct-messages-page .ct-message-attachment-audio audio {
  display: none;
}

.ct-messages-page .ct-audio-play {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  cursor: pointer;
}

.ct-messages-page .ct-message-bubble.theirs .ct-audio-play {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-audio-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ct-messages-page .ct-audio-pause-icon {
  display: none;
}

.ct-messages-page .ct-message-attachment-audio.is-playing .ct-audio-play-icon {
  display: none;
}

.ct-messages-page .ct-message-attachment-audio.is-playing .ct-audio-pause-icon {
  display: block;
}

.ct-messages-page .ct-audio-track {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}

.ct-messages-page .ct-audio-track span {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.74;
}

.ct-messages-page .ct-audio-track input,
.ct-messages-page .ct-audio-volume {
  width: 100%;
  accent-color: currentColor;
}

.ct-messages-page .ct-audio-volume {
  min-width: 0;
}

.ct-messages-page .ct-message-attachment-file {
  min-width: min(260px, 64vw);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-attachment-file,
.ct-messages-page .ct-message-bubble.deleted .ct-message-attachment-file {
  background: #f2f4f7;
}

.ct-messages-page .ct-message-attachment-file svg {
  width: 24px;
  height: 24px;
  grid-row: span 2;
  fill: currentColor;
}

.ct-messages-page .ct-message-attachment-file strong,
.ct-messages-page .ct-message-attachment-file em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-attachment-file strong {
  font-size: 12px;
}

.ct-messages-page .ct-message-attachment-file em {
  margin-top: 2px;
  font-size: 10px;
  font-style: normal;
  opacity: 0.72;
}

.ct-messages-page .ct-message-meta {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.ct-messages-page .ct-message-meta-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ct-messages-page .ct-message-bubble time,
.ct-messages-page .ct-message-edited {
  display: block;
  color: inherit;
  font-size: 9px;
  font-style: normal;
  opacity: 0.82;
}

.ct-messages-page .ct-message-read-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ct-messages-page .ct-message-read-state span {
  color: rgba(255, 255, 255, 0.82);
}

.ct-messages-page .ct-message-read-state b {
  font-size: 13px;
  line-height: 1;
}

.ct-messages-page .ct-message-read-state.sent {
  color: rgba(255, 255, 255, 0.82);
}

.ct-messages-page .ct-message-read-state.read {
  color: #fff;
}

.ct-messages-page .ct-message-edit-alert {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.ct-messages-page .ct-message-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 4;
}

.ct-messages-page .ct-message-menu-button {
  width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  cursor: pointer;
}

.ct-messages-page .ct-message-menu-button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.ct-messages-page .ct-message-menu-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ct-messages-page .ct-message-menu-panel {
  position: absolute;
  left: 0;
  bottom: 22px;
  min-width: 128px;
  display: none;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  z-index: 50;
}

.ct-messages-page .ct-message-menu-panel.open {
  display: block;
}

.ct-messages-page .ct-message-menu-panel button {
  width: 100%;
  display: block;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.ct-messages-page .ct-message-menu-panel button:hover {
  background: #f2f8fb;
}

.ct-messages-page .ct-message-menu-panel button[data-delete-message] {
  color: #b42318;
}

.ct-messages-page .ct-message-reactions {
  position: absolute;
  bottom: -13px;
  z-index: 2;
  display: flex;
  margin-top: 0;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-reactions {
  right: 42px;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-reactions {
  left: 12px;
}

.ct-messages-page .ct-message-reactions button {
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-reactions button {
  background: #fff;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-reactions button {
  background: #fff;
  color: #101828;
}

.ct-messages-page .ct-message-reactions button.mine {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.ct-messages-page .ct-message-reaction-icons {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 13px;
  line-height: 1;
}

.ct-messages-page .ct-message-reactions em {
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  color: inherit;
}

.ct-messages-page .ct-message-bubble.mine .ct-message-reactions em {
  color: #101828;
}

.ct-messages-page .ct-message-quick-actions {
  position: relative;
  flex: 0 0 auto;
}

.ct-messages-page .ct-message-quick-toggle,
.ct-messages-page .ct-message-quick-panel button,
.ct-messages-page .ct-message-reaction-palette button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  cursor: pointer;
}

.ct-messages-page .ct-message-quick-toggle {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-quick-toggle {
  background: #f2f4f7;
}

.ct-messages-page .ct-message-quick-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ct-messages-page .ct-message-quick-panel,
.ct-messages-page .ct-message-reaction-palette {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 55;
  display: flex;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ct-messages-page .ct-message-bubble.theirs .ct-message-quick-panel,
.ct-messages-page .ct-message-bubble.theirs .ct-message-reaction-palette,
.ct-messages-page .ct-message-quick-actions.palette-left .ct-message-reaction-palette {
  right: auto;
  left: 0;
}

.ct-messages-page .ct-message-quick-actions.open .ct-message-quick-panel,
.ct-messages-page .ct-message-quick-actions.palette-open .ct-message-reaction-palette {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ct-messages-page .ct-message-reaction-palette {
  top: 58px;
  grid-template-columns: repeat(6, 36px) 36px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 5px;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.ct-messages-page .ct-message-quick-panel button,
.ct-messages-page .ct-message-reaction-palette button {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #101828;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.ct-messages-page .ct-message-quick-panel button {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-message-quick-panel button:hover {
  background: #00baff;
  transform: translateY(-1px);
}

.ct-messages-page .ct-message-quick-panel svg,
.ct-message-image-modal .ct-message-image-actions svg,
.ct-message-image-modal .ct-message-image-composer svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ct-messages-page .ct-message-reaction-palette button {
  box-shadow: none;
  background: #f8fafc;
  font-size: 20px;
}

.ct-messages-page .ct-message-reaction-palette button:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}

.ct-messages-page .ct-message-reaction-palette button:nth-child(n + 7):not(.ct-message-reaction-more) {
  display: none;
}

.ct-messages-page .ct-message-quick-actions.palette-expanded .ct-message-reaction-palette {
  display: grid;
}

.ct-messages-page .ct-message-quick-actions.palette-open:not(.palette-expanded) .ct-message-reaction-palette {
  display: grid;
}

.ct-messages-page .ct-message-quick-actions.palette-expanded .ct-message-reaction-palette button:nth-child(n + 7) {
  display: inline-flex;
}

.ct-messages-page .ct-message-reaction-palette .ct-message-reaction-more {
  background: #101828;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ct-messages-page,
.ct-message-image-modal {
  max-width: 100vw;
  overflow-x: clip;
}

.ct-messages-page .ct-messages-layout,
.ct-messages-page .ct-conversations-sidebar,
.ct-messages-page .ct-chat-panel,
.ct-messages-page .ct-chat-header,
.ct-messages-page .ct-chat-messages,
.ct-messages-page .ct-message-form {
  min-width: 0;
  max-width: 100%;
}

.ct-messages-page .ct-message-focus-pulse {
  animation: ct-message-focus-pulse 2.1s ease;
}

@keyframes ct-message-focus-pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }

  45% {
    box-shadow: 0 0 0 4px rgba(0, 186, 255, 0.22), 0 10px 24px rgba(15, 23, 42, 0.07);
  }
}

.ct-messages-page .ct-message-edit-bar,
.ct-messages-page .ct-message-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #eff8ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 800;
}

.ct-messages-page .ct-message-reply-bar {
  background: #f0fdf4;
  color: #027a48;
}

.ct-messages-page .ct-message-reply-bar span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-messages-page .ct-message-reply-bar img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: cover;
  border-radius: 8px;
}

.ct-messages-page .ct-message-reply-bar img.hidden {
  display: none;
}

.ct-messages-page .ct-message-reply-bar strong,
.ct-messages-page .ct-message-reply-bar em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-reply-bar em {
  color: #344054;
  font-style: normal;
  font-size: 12px;
}

.ct-messages-page .ct-message-edit-bar.hidden,
.ct-messages-page .ct-message-reply-bar.hidden {
  display: none;
}

.ct-messages-page .ct-message-edit-bar button,
.ct-messages-page .ct-message-reply-bar button {
  border: 0;
  background: transparent;
  color: #101828;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ct-messages-page .ct-message-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-messages-page .ct-message-system-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 12px;
  background: #fff4f4;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
}

.ct-messages-page .ct-message-system-alert::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.ct-messages-page .ct-message-system-alert.hidden {
  display: none;
}

.ct-messages-page .ct-message-group-readonly-alert {
  margin: 10px 16px 16px;
}

.ct-messages-page .ct-message-match-alert {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  border-color: rgba(247, 144, 9, 0.26);
  background: #fff7ed;
  color: #b54708;
  box-shadow: 0 10px 24px rgba(181, 71, 8, 0.08);
}

.ct-messages-page .ct-message-match-alert::before {
  background: #f79009;
  box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.15);
}

.ct-messages-page .ct-message-match-alert.pulse {
  animation: ct-message-alert-pulse 0.38s ease;
}

@keyframes ct-message-alert-pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(181, 71, 8, 0.08);
  }
  45% {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(181, 71, 8, 0.16);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(181, 71, 8, 0.08);
  }
}

.ct-messages-page .ct-message-match-preview,
.ct-messages-page .ct-message-post-preview,
.ct-messages-page .ct-message-fixture-suggestions {
  grid-column: 1 / -1;
}

.ct-messages-page .ct-message-match-preview.hidden,
.ct-messages-page .ct-message-post-preview.hidden,
.ct-messages-page .ct-message-fixture-suggestions.hidden {
  display: none;
}

.ct-messages-page .ct-message-post-preview {
  position: relative;
  width: min(100%, 496px);
  border-radius: 12px;
}

.ct-messages-page .ct-message-form.has-shared-post {
  z-index: 11;
}

.ct-messages-page .ct-chat-panel {
  isolation: isolate;
}

.ct-messages-page .ct-chat-header {
  position: relative;
  z-index: 32;
}

.ct-messages-page .ct-group-prediction-dock {
  position: relative;
  z-index: 31;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px 8px;
  min-height: 56px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-group-prediction-lane,
.ct-messages-page .ct-group-prediction-tabs {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.ct-messages-page .ct-group-prediction-lane {
  position: relative;
  max-width: 50%;
}

.ct-messages-page .ct-group-prediction-lane-slips {
  justify-content: flex-start;
}

.ct-messages-page .ct-group-prediction-lane-picks {
  justify-content: flex-end;
  margin-left: auto;
}

.ct-messages-page .ct-group-prediction-tabs {
  max-width: min(46vw, 530px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.ct-messages-page .ct-group-prediction-tabs::-webkit-scrollbar {
  display: none;
}

.ct-messages-page .ct-group-prediction-tab {
  appearance: none;
  border: 1px solid rgba(174, 124, 22, 0.3);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #fff6cf 0%, #f6d36b 100%);
  color: #3d2b05;
  box-shadow: 0 10px 22px rgba(120, 82, 7, 0.16);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 4px;
  justify-content: center;
  min-height: 66px;
  width: 164px;
  max-width: 164px;
  padding: 8px 10px 9px;
  font-size: 11px;
  line-height: 1.12;
  text-align: left;
  white-space: nowrap;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ct-messages-page .ct-group-prediction-tab:hover,
.ct-messages-page .ct-group-prediction-tab:focus-visible {
  border-color: rgba(120, 82, 7, 0.45);
  box-shadow: 0 14px 28px rgba(120, 82, 7, 0.2);
  outline: none;
  transform: translateY(1px);
}

.ct-messages-page .ct-group-prediction-tab strong,
.ct-messages-page .ct-group-prediction-tab span,
.ct-messages-page .ct-group-prediction-tab small,
.ct-messages-page .ct-group-prediction-tab em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-messages-page .ct-group-prediction-tab strong {
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-tab span {
  color: rgba(81, 61, 8, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-tab small {
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(61, 43, 5, 0.1);
  color: rgba(61, 43, 5, 0.72);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ct-messages-page .ct-gp-slip-head {
  align-items: center;
  display: flex;
  gap: 5px;
  max-width: 100%;
}

.ct-messages-page .ct-gp-slip-head i {
  align-items: center;
  background: rgba(61, 43, 5, 0.16);
  border-radius: 7px;
  color: #3d2b05;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.ct-messages-page .ct-gp-slip-head em {
  color: rgba(61, 43, 5, 0.7);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-tab.is-pick {
  border-color: rgba(29, 125, 75, 0.24);
  background: linear-gradient(180deg, #f2fff6 0%, #d8f1df 100%);
  color: #11472b;
  box-shadow: 0 10px 22px rgba(22, 101, 52, 0.14);
}

.ct-messages-page .ct-group-prediction-tab.is-pick:hover,
.ct-messages-page .ct-group-prediction-tab.is-pick:focus-visible {
  border-color: rgba(29, 125, 75, 0.46);
  box-shadow: 0 14px 28px rgba(22, 101, 52, 0.18);
}

.ct-messages-page .ct-group-prediction-tab.is-pick span {
  color: rgba(20, 83, 45, 0.72);
}

.ct-messages-page .ct-group-prediction-tab.is-pick.is-pending {
  background: linear-gradient(180deg, #f6fff1 0%, #e3f5d2 100%);
}

.ct-messages-page .ct-group-prediction-tab.is-pick.is-locked {
  background: linear-gradient(180deg, #f7faf7 0%, #e7efe9 100%);
  color: #647067;
  cursor: default;
}

.ct-messages-page .ct-group-prediction-tab.is-pick small {
  background: rgba(20, 83, 45, 0.1);
  color: rgba(20, 83, 45, 0.78);
}

.ct-messages-page .ct-gp-tab-teams {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 4px;
  max-width: 100%;
}

.ct-messages-page .ct-gp-tab-teams > span {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.ct-messages-page .ct-gp-tab-teams img,
.ct-messages-page .ct-gp-tab-teams i {
  border: 1px solid rgba(17, 71, 43, 0.12);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 18px;
  object-fit: cover;
  width: 18px;
}

.ct-messages-page .ct-gp-tab-teams i {
  align-items: center;
  background: #fff;
  color: #14532d;
  display: inline-flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  justify-content: center;
}

.ct-messages-page .ct-gp-tab-teams em {
  color: rgba(17, 71, 43, 0.78);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ct-messages-page .ct-gp-tab-teams b {
  color: rgba(17, 71, 43, 0.46);
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-tab.is-add {
  align-items: center;
  gap: 5px;
  justify-content: center;
  min-width: 136px;
  width: 150px;
  text-align: center;
  white-space: normal;
}

.ct-messages-page .ct-group-prediction-tab.is-add > span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 25px;
  justify-content: center;
  line-height: 1;
  width: 25px;
}

.ct-messages-page .ct-group-prediction-tab.is-add > strong {
  font-size: 10px;
  line-height: 1.05;
  max-width: 100%;
  white-space: normal;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-slip {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-color: rgba(245, 197, 83, 0.62);
  color: #ffe08a;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-slip > span {
  background: #ffe08a;
  color: #1f2937;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-slip > strong {
  color: #fff7d0;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-pick {
  background: linear-gradient(180deg, #167348 0%, #0f5b36 100%);
  border-color: rgba(154, 230, 180, 0.48);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-pick > span {
  background: rgba(255, 255, 255, 0.96);
  color: #0f5b36;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-pick > strong {
  color: #fff;
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-pick.is-assign {
  background: linear-gradient(180deg, #0f766e 0%, #0b5f59 100%);
  border-color: rgba(94, 234, 212, 0.5);
}

.ct-messages-page .ct-group-prediction-tab.is-add.is-pick.is-assign > span {
  color: #0b5f59;
}

.ct-messages-page .ct-group-prediction-tab.is-overflow {
  align-items: center;
  font-size: 13px;
  font-weight: 950;
  justify-content: center;
  min-width: 44px;
  width: 48px;
}

.ct-messages-page .ct-group-prediction-tab.is-overflow.is-open {
  transform: translateY(1px);
}

.ct-messages-page .ct-group-prediction-empty {
  align-items: center;
  color: #94a3b8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  min-height: 34px;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-overflow-popover {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.22);
  box-sizing: border-box;
  max-height: min(420px, 58vh);
  overflow: auto;
  padding: 10px;
  position: absolute;
  top: calc(100% + 7px);
  width: min(360px, calc(100vw - 28px));
  z-index: 80;
}

.ct-messages-page .ct-group-prediction-lane-slips .ct-group-prediction-overflow-popover {
  left: 0;
}

.ct-messages-page .ct-group-prediction-lane-picks .ct-group-prediction-overflow-popover {
  right: 0;
}

.ct-messages-page .ct-group-prediction-overflow-popover header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 9px;
}

.ct-messages-page .ct-group-prediction-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: #f2f4f7;
}

.ct-messages-page .ct-group-prediction-filter-pills button {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  padding: 0 9px;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-filter-pills button.active {
  background: #101828;
  color: #fff;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.14);
}

.ct-messages-page .ct-group-prediction-overflow-popover header strong {
  color: #101828;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-overflow-popover header > button {
  align-items: center;
  background: #f2f4f7;
  border: 0;
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.ct-messages-page .ct-group-prediction-overflow-popover > div {
  display: grid;
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab {
  border-radius: 12px;
  border-top: 1px solid rgba(174, 124, 22, 0.3);
  max-width: 100%;
  width: 100%;
}

.ct-messages-page .ct-group-prediction-assign-row {
  padding: 0 22px 14px;
}

.ct-messages-page .ct-group-prediction-assignment-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #f8fafc;
  color: #101828;
  font: inherit;
  padding: 0 12px;
}

.ct-messages-page .ct-group-prediction-assignment-list {
  display: grid;
  gap: 10px;
  max-height: min(42vh, 420px);
  overflow: auto;
}

.ct-messages-page .ct-group-prediction-assignment-card {
  display: grid;
  gap: 10px;
  border: 2px solid rgba(22, 115, 72, 0.36);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ct-messages-page .ct-group-prediction-assignment-card:hover,
.ct-messages-page .ct-group-prediction-assignment-card:focus-within {
  border-color: rgba(22, 115, 72, 0.48);
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.12);
  transform: translateY(-1px);
}

.ct-messages-page .ct-group-prediction-assignment-card.is-selected {
  border-color: rgba(22, 115, 72, 0.68);
  box-shadow: 0 16px 34px rgba(22, 101, 52, 0.18);
}

.ct-messages-page .ct-group-prediction-assignment-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ct-messages-page .ct-group-prediction-assignment-card header button {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #101828;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.ct-messages-page .ct-group-prediction-assignment-card header img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-group-prediction-assignment-person {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-messages-page .ct-group-prediction-assignment-person strong,
.ct-messages-page .ct-group-prediction-assignment-person em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assignment-person strong {
  font-size: 13px;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-assignment-person em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip {
  flex: 0 1 132px;
  width: auto;
  max-width: 132px;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong {
  align-self: center;
  line-height: 1.1;
}

.ct-messages-page .ct-group-prediction-assignment-expertise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.ct-messages-page .ct-group-prediction-assignment-chip.is-empty {
  display: flex;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-assignment-chip img,
.ct-messages-page .ct-group-prediction-assignment-chip i {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-group-prediction-assignment-chip i {
  align-items: center;
  background: #fff;
  color: #14532d;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  justify-content: center;
}

.ct-messages-page .ct-group-prediction-assignment-chip em,
.ct-messages-page .ct-group-prediction-assignment-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assignment-chip em {
  color: #667085;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assignment-chip strong {
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-assignment-matches {
  display: grid;
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-matches > strong {
  color: #344054;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assignment-matches > p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.ct-messages-page .ct-group-prediction-assignment-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(22, 101, 52, 0.12);
  border-radius: 14px;
  background: #f7fff9;
  padding: 9px;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams img,
.ct-messages-page .ct-group-prediction-assignment-match-teams i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams i {
  align-items: center;
  background: #fff;
  color: #14532d;
  display: inline-flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  justify-content: center;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-match-teams b {
  color: #98a2b3;
  font-size: 9px;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta {
  grid-column: 1 / 2;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta > span {
  min-width: 0;
  flex: 1 1 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta em,
.ct-messages-page .ct-group-prediction-assignment-match-meta small {
  flex: 0 0 auto;
  border-radius: 999px;
  font-style: normal;
  padding: 3px 7px;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta em {
  background: #e7f8ee;
  color: #167348;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta small {
  background: #fff4c2;
  color: #8a610c;
}

.ct-messages-page .ct-group-prediction-assignment-match > button {
  grid-row: span 2;
  align-self: center;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #167348;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assign-row label,
.ct-messages-page .ct-group-prediction-slip-title,
.ct-messages-page .ct-group-prediction-slip-description {
  display: grid;
  gap: 6px;
}

.ct-messages-page .ct-group-prediction-assign-row label > span,
.ct-messages-page .ct-group-prediction-slip-title span,
.ct-messages-page .ct-group-prediction-slip-description span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assign-row select,
.ct-messages-page .ct-group-prediction-slip-title input,
.ct-messages-page .ct-group-prediction-slip-description textarea {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
}

.ct-messages-page .ct-group-prediction-slip-description textarea {
  min-height: 92px;
  resize: vertical;
}

.ct-messages-page .ct-group-prediction-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 22px 18px;
}

.ct-messages-page .ct-group-prediction-modal-actions button,
.ct-messages-page .ct-group-prediction-slip-box .ct-message-clear-conversation-actions button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.ct-messages-page .ct-group-prediction-modal-actions button:last-child,
.ct-messages-page .ct-group-prediction-slip-box .ct-message-clear-conversation-actions button:last-child {
  background: #1f7a4d;
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-box {
  max-width: 560px;
}

.ct-messages-page .ct-group-prediction-slip-picks {
  display: grid;
  gap: 8px;
  margin: 0;
  max-height: min(48vh, 420px);
  overflow: auto;
}

.ct-messages-page .ct-group-prediction-slip-pick {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.ct-messages-page .ct-group-prediction-slip-pick span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ct-messages-page .ct-group-prediction-slip-pick strong,
.ct-messages-page .ct-group-prediction-slip-pick em,
.ct-messages-page .ct-group-prediction-slip-pick small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-pick em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.ct-messages-page .ct-group-prediction-slip-pick small {
  color: #8a610c;
  font-size: 12px;
  font-weight: 850;
}

.ct-messages-page .ct-group-prediction-slip-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.ct-messages-page .ct-group-prediction-slip-picker,
.ct-messages-page .ct-group-prediction-slip-preview {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
  min-width: 0;
  padding: 12px;
}

.ct-messages-page .ct-group-prediction-slip-picker > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ct-messages-page .ct-group-prediction-slip-picker > header span,
.ct-messages-page .ct-group-prediction-slip-picker > header strong {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-preview {
  background: linear-gradient(180deg, #fff8df 0%, #ffffff 100%);
  border-color: rgba(174, 124, 22, 0.22);
  display: grid;
  gap: 10px;
}

.ct-messages-page .ct-group-prediction-slip-badge {
  align-self: start;
  background: #111827;
  border-radius: 999px;
  color: #ffe08a;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-self: start;
  padding: 6px 9px;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-preview h3,
.ct-messages-page .ct-group-prediction-slip-preview p {
  margin: 0;
}

.ct-messages-page .ct-group-prediction-slip-preview h3 {
  color: #3d2b05;
  font-size: 18px;
  line-height: 1.15;
}

.ct-messages-page .ct-group-prediction-slip-preview p {
  color: #475467;
  font-size: 13px;
  line-height: 1.42;
  white-space: pre-line;
}

.ct-messages-page .ct-group-prediction-slip-preview p.is-empty {
  color: #98a2b3;
  font-style: italic;
}

.ct-messages-page .ct-group-prediction-slip-preview-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article {
  background: #fff;
  border: 1px solid rgba(174, 124, 22, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 3px;
  padding: 10px;
  position: relative;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article strong,
.ct-messages-page .ct-group-prediction-slip-preview-list article span,
.ct-messages-page .ct-group-prediction-slip-preview-list article em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article strong {
  color: #101828;
  font-size: 13px;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article em {
  color: #8a610c;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding-right: 54px;
}

.ct-messages-page .ct-group-prediction-slip-preview-list article b {
  background: #fff4c2;
  border-radius: 999px;
  color: #5f4104;
  font-size: 12px;
  padding: 5px 8px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.ct-messages-page .ct-group-prediction-slip-preview footer {
  align-items: center;
  border-top: 1px solid rgba(174, 124, 22, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
}

.ct-messages-page .ct-group-prediction-slip-preview footer span {
  color: #5f4104;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-dock {
  align-items: center;
  min-height: 46px;
  padding: 6px 18px 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-group-prediction-lane,
.ct-messages-page .ct-group-prediction-tabs {
  align-items: center;
}

.ct-messages-page .ct-group-prediction-lane {
  max-width: none;
}

.ct-messages-page .ct-group-prediction-tabs {
  max-width: none;
  overflow: visible;
  padding-bottom: 0;
}

.ct-messages-page .ct-group-prediction-summary-trigger,
.ct-messages-page .ct-group-prediction-tab.is-add {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  gap: 7px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
  width: auto;
}

.ct-messages-page .ct-group-prediction-summary-trigger {
  background: #fff;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
  position: relative;
}

.ct-messages-page .ct-gp-summary-alert,
.ct-messages-page .ct-gp-card-alert {
  align-items: center;
  background: #dc2626;
  border: 2px solid #dc2626;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.25);
  color: #fff !important;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900 !important;
  justify-content: center;
  line-height: 1;
}

.ct-messages-page .ct-gp-summary-alert {
  height: 20px;
  min-width: 20px;
  padding: 0 5px;
}

.ct-messages-page .ct-group-prediction-summary-trigger:hover,
.ct-messages-page .ct-group-prediction-summary-trigger:focus-visible,
.ct-messages-page .ct-group-prediction-tab.is-add:hover,
.ct-messages-page .ct-group-prediction-tab.is-add:focus-visible {
  border-color: rgba(0, 186, 255, 0.32);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.ct-messages-page .ct-group-prediction-summary-trigger span {
  color: #00baff;
  font-size: 11px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-tab.is-add {
  min-width: 34px;
  padding: 0 12px 0 7px;
}

.ct-messages-page .ct-group-prediction-tab.is-add > span {
  height: 24px;
  width: 24px;
}

.ct-messages-page .ct-group-prediction-tab.is-add > strong {
  font-size: 11px;
  line-height: 1;
}

.ct-messages-page .ct-group-prediction-overflow-popover {
  max-height: min(520px, calc(100dvh - 150px));
  padding: 12px;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card {
  align-items: stretch;
  border-radius: 14px;
  border-top: 1px solid rgba(174, 124, 22, 0.3);
  gap: 6px;
  min-height: 0;
  max-width: 100%;
  padding: 10px 12px;
  position: relative;
  width: 100%;
  white-space: normal;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick {
  min-height: 74px;
  padding-right: 88px;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card .ct-gp-card-status {
  position: absolute;
  top: 9px;
  right: 9px;
  max-width: 72px;
  margin: 0;
  text-align: center;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card .ct-gp-card-alert {
  height: 20px;
  left: 9px;
  min-width: 20px;
  padding: 0;
  position: absolute;
  top: 9px;
  z-index: 2;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-menu-card span,
.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-menu-card strong,
.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-menu-card small,
.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-menu-card em {
  white-space: normal;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-tab-teams {
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assign-row {
  padding: 0 22px 18px;
}

.ct-messages-page .ct-group-prediction-assign-row.has-selected-user > label,
.ct-messages-page .ct-group-prediction-assignment-picker.is-hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card {
  position: relative;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  padding: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header > img,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-person {
  grid-column: 1;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header > img {
  grid-row: 1;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-person {
  grid-row: 1;
  margin-left: 48px;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card header [data-assignment-show-picker] {
  cursor: pointer;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card .ct-group-prediction-assignment-person strong {
  color: #101828;
  font-size: 14px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card .ct-group-prediction-assignment-person em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card > .ct-group-prediction-assignment-selected-match {
  grid-column: 1 / -1;
}

.ct-messages-page .ct-group-prediction-assignment-match.is-selected {
  border-color: rgba(0, 186, 255, 0.46);
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.12);
}

.ct-messages-page .ct-group-prediction-assignment-choice {
  display: grid;
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-choice:empty {
  display: none;
}

.ct-messages-page .ct-group-prediction-assignment-status {
  border-radius: 12px;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
  padding: 10px 12px;
  background: #f8fafc;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-ok {
  background: #ecfdf3;
  color: #167348;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-error {
  background: #fff1f3;
  color: #b42318;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-checking {
  align-items: center;
  display: flex;
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-checking span {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 999px;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-layout {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-pick-box.ct-message-modal-shell {
  max-width: min(720px, calc(100vw - 28px));
}

.ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell {
  max-height: calc(100dvh - 48px);
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell .ct-message-modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: inherit;
}

.ct-messages-page .ct-group-prediction-slip-composer {
  min-height: 0;
}

.ct-messages-page .ct-group-prediction-slip-picks,
.ct-messages-page .ct-group-prediction-slip-preview-list {
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  .ct-messages-page .ct-group-prediction-dock {
    gap: 8px;
    padding: 6px 10px;
  }

  .ct-messages-page .ct-group-prediction-lane {
    gap: 6px;
    min-width: 0;
  }

  .ct-messages-page .ct-group-prediction-tab.is-add {
    padding: 0 8px 0 5px;
  }

  .ct-messages-page .ct-group-prediction-tab.is-add > strong {
    display: none;
  }

  .ct-messages-page .ct-group-prediction-summary-trigger {
    max-width: 34vw;
    padding: 0 9px;
  }

  .ct-messages-page .ct-group-prediction-summary-trigger strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ct-messages-page .ct-group-prediction-overflow-popover {
    left: 10px !important;
    right: 10px !important;
    width: auto;
    max-height: min(68dvh, 520px);
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-pick-box.ct-message-modal-shell,
  .ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell {
    width: min(100%, calc(100vw - 14px));
    min-height: 0;
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head,
  .ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell .ct-message-modal-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: inherit;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assign-row {
    overflow-y: auto;
    padding: 0 14px 12px;
  }

  .ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell {
    overflow-y: auto;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .ct-messages-page .ct-group-prediction-slip-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-slip-picks {
    max-height: 32dvh;
    overflow-y: auto;
  }

  .ct-messages-page .ct-group-prediction-slip-preview {
    max-height: 38dvh;
  }

  .ct-messages-page .ct-group-prediction-modal-actions,
  .ct-messages-page .ct-group-prediction-slip-box .ct-message-clear-conversation-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    background: inherit;
    padding-top: 10px;
  }
}

.ct-dashboard-page .ct-builder-match-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ct-dashboard-page .ct-builder-match-row.is-disabled:hover {
  transform: none;
}

.ct-dashboard-page .ct-builder-match-disabled-reason {
  color: #64748b;
  display: block;
  font-size: 10px;
  font-weight: 800;
  max-width: 96px;
  text-align: right;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .ct-messages-page .ct-group-prediction-dock {
    gap: 7px;
    min-height: 50px;
    padding-inline: 9px;
  }

  .ct-messages-page .ct-group-prediction-lane {
    max-width: calc(50% - 4px);
  }

  .ct-messages-page .ct-group-prediction-tabs {
    max-width: 42vw;
  }

  .ct-messages-page .ct-group-prediction-tab {
    max-width: 138px;
    min-height: 58px;
    padding: 7px 8px 8px;
    width: 138px;
  }

  .ct-messages-page .ct-group-prediction-tab.is-add {
    min-width: 42px;
    width: 42px;
  }

  .ct-messages-page .ct-group-prediction-tab.is-add > strong {
    display: none;
  }

  .ct-messages-page .ct-group-prediction-tab.is-add > span {
    height: 24px;
    width: 24px;
  }

  .ct-messages-page .ct-group-prediction-tab.is-overflow {
    min-width: 42px;
    width: 42px;
  }

  .ct-messages-page .ct-gp-tab-teams em {
    max-width: 38px;
  }

  .ct-messages-page .ct-group-prediction-overflow-popover {
    max-height: min(390px, 60vh);
    width: min(310px, calc(100vw - 18px));
  }

  .ct-messages-page .ct-group-prediction-lane-slips .ct-group-prediction-overflow-popover {
    left: -1px;
  }

  .ct-messages-page .ct-group-prediction-lane-picks .ct-group-prediction-overflow-popover {
    right: -1px;
  }
}

@media (max-width: 760px) {
  .ct-messages-page .ct-group-prediction-lane {
    max-width: none;
  }

  .ct-messages-page .ct-group-prediction-tabs {
    max-width: none;
    overflow: visible;
  }

  .ct-messages-page .ct-group-prediction-summary-trigger,
  .ct-messages-page .ct-group-prediction-tab.is-add {
    min-height: 34px;
    width: auto;
  }

  .ct-messages-page .ct-group-prediction-overflow-popover {
    max-height: min(68dvh, 520px);
    width: min(390px, calc(100vw - 14px));
  }

  .ct-messages-page .ct-group-prediction-lane-slips .ct-group-prediction-overflow-popover {
    left: 0 !important;
    right: auto !important;
  }

  .ct-messages-page .ct-group-prediction-lane-picks .ct-group-prediction-overflow-popover {
    left: auto !important;
    right: 0 !important;
  }
}

@media (max-width: 640px) {
  .ct-messages-page .ct-conversation-avatar-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

.ct-messages-page .ct-message-form.has-shared-post .ct-message-post-preview {
  position: absolute;
  left: 12px;
  right: 66px;
  bottom: calc(100% - 10px);
  width: auto;
  max-width: 496px;
  overflow: visible;
  transform-origin: bottom left;
  filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.16));
}

.ct-messages-page .ct-message-post-preview .ct-message-shared-post {
  padding-right: 20px;
}

.ct-messages-page .ct-message-post-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.84);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ct-messages-page .ct-message-fixture-suggestions {
  position: absolute;
  left: 12px;
  right: 66px;
  bottom: calc(100% + 8px);
  z-index: 45;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.ct-messages-page .ct-message-fixture-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  color: #101828;
  text-align: left;
  cursor: pointer;
}

.ct-messages-page .ct-message-fixture-option:hover {
  border-color: rgba(0, 186, 255, 0.28);
  background: #eff8ff;
}

.ct-messages-page .ct-message-fixture-option .ct-message-fixture-league,
.ct-messages-page .ct-message-fixture-option time,
.ct-messages-page .ct-message-fixture-empty {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-messages-page .ct-message-fixture-option strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}

.ct-messages-page .ct-message-fixture-option img,
.ct-messages-page .ct-message-match-card img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.ct-messages-page .ct-message-fixture-option em {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.ct-messages-page .ct-message-match-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(0, 186, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
  color: #101828;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.ct-messages-page .ct-message-match-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.ct-messages-page .ct-message-match-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fff1f3;
  color: #c01048;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ct-messages-page .ct-message-match-top,
.ct-messages-page .ct-message-match-market {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-messages-page .ct-message-match-top strong,
.ct-messages-page .ct-message-match-market span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.ct-messages-page .ct-message-match-top time {
  flex: 0 0 auto;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-messages-page .ct-message-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.ct-messages-page .ct-message-match-teams span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ct-messages-page .ct-message-match-teams b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.ct-messages-page .ct-message-match-teams em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ct-messages-page .ct-message-match-market strong {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #00baff;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page .ct-message-match-market strong b {
  color: #fff;
}

.ct-messages-page .ct-message-match-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ct-messages-page .ct-message-match-odds button,
.ct-messages-page .ct-message-match-odds span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #101828;
  text-align: center;
}

.ct-messages-page .ct-message-match-odds > span:only-child {
  grid-column: 1 / -1;
}

.ct-messages-page .ct-message-match-odds button {
  cursor: pointer;
}

.ct-messages-page .ct-message-match-odds button.selected,
.ct-messages-page .ct-message-match-odds span.selected {
  border-color: rgba(0, 186, 255, 0.45);
  background: #e0f7ff;
}

.ct-messages-page .ct-message-match-odds em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #667085;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.ct-messages-page .ct-message-match-odds b {
  font-size: 12px;
  font-weight: 900;
}

.ct-messages-page .ct-message-match-markets {
  position: relative;
  flex: 1 0 100%;
  width: 100%;
}

.ct-messages-page .ct-message-match-markets > button {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.ct-messages-page .ct-message-match-markets > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 20;
  display: none;
  max-height: 180px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.ct-messages-page .ct-message-match-markets:hover > div,
.ct-messages-page .ct-message-match-markets:focus-within > div {
  display: grid;
  gap: 4px;
}

.ct-messages-page .ct-message-match-markets > div button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #101828;
  padding: 7px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ct-messages-page .ct-message-match-markets > div button:hover {
  background: #eff8ff;
}

.ct-messages-page .ct-message-file-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.ct-messages-page .ct-message-composer {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 34px 34px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 23px;
  background: #f8fafc;
  transition: grid-template-columns 0.22s ease, gap 0.22s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ct-messages-page .ct-message-form.has-match-card .ct-message-composer {
  grid-template-columns: 0 0 34px minmax(0, 1fr);
  gap: 0 4px;
}

.ct-messages-page .ct-message-fixture-button {
  font-size: 18px;
  font-weight: 900;
}

.ct-messages-page .ct-message-composer:focus-within {
  border-color: rgba(0, 186, 255, 0.7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-messages-page .ct-message-form textarea {
  min-width: 0;
  min-height: 34px;
  max-height: 118px;
  padding: 7px 8px;
  resize: none;
  overflow-y: hidden;
  border: 0;
  border-radius: 18px;
  outline: none;
  background: transparent;
  color: #101828;
  font: inherit;
  line-height: 20px;
}

.ct-messages-page .ct-message-form textarea:focus {
  box-shadow: none;
}

.ct-messages-page .ct-message-enter-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 0 12px 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  user-select: none;
}

.ct-messages-page .ct-message-enter-option.hidden {
  display: none;
}

.ct-messages-page .ct-message-enter-option input {
  width: 14px;
  height: 14px;
  accent-color: #00baff;
}

.ct-messages-page .ct-message-form.editing .ct-message-composer {
  border-color: rgba(0, 186, 255, 0.7);
  background: #fff;
}

.ct-messages-page .ct-message-composer-action,
.ct-messages-page .ct-message-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.22s ease, opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ct-messages-page .ct-message-composer-action {
  align-self: start;
  width: 34px;
  height: 34px;
  background: transparent;
  color: #667085;
}

.ct-messages-page .ct-message-form.has-match-card #messageAttachButton,
.ct-messages-page .ct-message-form.has-match-card #messageCameraMenu {
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px) scale(0.78);
}

.ct-messages-page .ct-message-form.has-match-card #messageAttachButton *,
.ct-messages-page .ct-message-form.has-match-card #messageCameraMenu *,
.ct-messages-page .ct-message-form.has-shared-post #messageAttachButton *,
.ct-messages-page .ct-message-form.has-shared-post #messageCameraMenu * {
  pointer-events: none;
}

.ct-messages-page .ct-message-composer-action:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #101828;
}

.ct-messages-page .ct-message-camera-menu {
  position: relative;
  align-self: start;
  width: 34px;
  height: 34px;
  z-index: 12;
  transition: width 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
}

.ct-messages-page .ct-message-camera-toggle {
  position: relative;
  z-index: 3;
}

.ct-messages-page .ct-message-camera-option {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: #fff;
  color: #101828;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(0.72);
}

.ct-messages-page .ct-message-camera-menu.open .ct-message-camera-toggle {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-message-camera-menu.open .ct-message-camera-option {
  opacity: 1;
  pointer-events: auto;
}

.ct-messages-page .ct-message-camera-menu.open .ct-message-camera-gallery {
  transform: translate(-38px, -42px) scale(1);
}

.ct-messages-page .ct-message-camera-menu.open .ct-message-camera-shoot {
  transform: translate(38px, -42px) scale(1);
}

.ct-messages-page .ct-message-send-button {
  width: 46px;
  height: 46px;
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-message-send-button.record-mode {
  background: #00baff;
}

.ct-messages-page .ct-message-send-button.is-recording {
  background: #ef4444;
  transform: scale(1.04);
}

.ct-messages-page .ct-message-send-button.is-uploading {
  background: #101828;
  opacity: 1;
}

.ct-messages-page .ct-message-send-button:disabled,
.ct-messages-page .ct-message-composer-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ct-messages-page .ct-message-send-button.is-uploading:disabled {
  opacity: 1;
}

.ct-messages-page .ct-message-form button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ct-messages-page .ct-message-primary-icon {
  display: none;
}

.ct-messages-page .ct-message-send-button.send-mode .ct-message-primary-icon-send,
.ct-messages-page .ct-message-send-button.record-mode .ct-message-primary-icon-mic {
  display: block;
}

.ct-messages-page .ct-message-send-button.is-uploading .ct-message-primary-icon {
  display: none;
}

.ct-messages-page .ct-message-send-button .ct-message-primary-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-width: 3px;
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-messages-page .ct-message-send-button.is-uploading .ct-message-primary-loader {
  display: block;
}

.ct-messages-page .ct-message-attachment-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: start;
  gap: 6px 8px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.ct-messages-page .ct-message-attachment-preview.hidden {
  display: none;
}

.ct-messages-page .ct-message-attachment-preview.has-image-only {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: minmax(0, auto) 30px;
  padding: 4px;
  background: transparent;
}

.ct-messages-page .ct-message-attachment-preview.has-image-only:not(.has-multiple-attachments) {
  justify-self: start;
}

.ct-messages-page .ct-message-attachment-preview.has-image-only.has-multiple-attachments {
  width: min(100%, 680px);
}

.ct-messages-page .ct-message-attachment-preview-media {
  grid-column: 1 / 2;
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ct-messages-page .ct-message-attachment-preview-media::-webkit-scrollbar {
  display: none;
}

.ct-messages-page .ct-message-attachment-preview-media.hidden {
  display: none;
}

.ct-messages-page .ct-message-attachment-preview-thumb {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-message-attachment-preview.has-image-only .ct-message-attachment-preview-thumb {
  width: min(296px, calc(100vw - 104px));
  height: min(296px, 48dvh);
  flex-basis: min(296px, calc(100vw - 104px));
}

.ct-messages-page .ct-message-attachment-preview.has-image-only.has-multiple-attachments .ct-message-attachment-preview-media {
  width: min(100%, calc(100vw - 104px));
  scroll-snap-type: x proximity;
}

.ct-messages-page .ct-message-attachment-preview.has-image-only.has-multiple-attachments .ct-message-attachment-preview-thumb {
  width: min(142px, 38vw);
  height: min(142px, 28dvh);
  flex-basis: min(142px, 38vw);
  scroll-snap-align: start;
}

.ct-messages-page .ct-message-attachment-preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ct-messages-page .ct-message-attachment-preview-file {
  min-width: 112px;
  max-width: 180px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-message-attachment-preview-file b,
.ct-messages-page .ct-message-attachment-preview-file em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-attachment-preview-file b {
  color: #00a8e8;
  font-size: 10px;
  font-weight: 900;
}

.ct-messages-page .ct-message-attachment-preview-file em {
  color: #344054;
  font-style: normal;
  font-size: 11px;
}

.ct-messages-page #messageAttachmentPreviewText {
  grid-column: 1 / 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-message-attachment-preview.has-image-only #messageAttachmentPreviewText,
.ct-messages-page #messageAttachmentPreviewText:empty {
  display: none;
}

.ct-messages-page .ct-message-attachment-preview > button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #101828;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ct-messages-page .ct-message-recording-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid rgba(239, 68, 68, 0.18);
  background: #fff1f3;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.ct-messages-page .ct-message-recording-bar button {
  margin-left: auto;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ct-messages-page .ct-message-recording-bar.hidden {
  display: none;
}

.ct-messages-page .ct-message-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ef4444;
  animation: ct-recording-pulse 0.8s ease-in-out infinite;
}

.ct-messages-page .ct-message-recording-bar strong {
  color: #101828;
  font-size: 13px;
}

.ct-message-image-modal.hidden {
  display: none;
}

.ct-message-image-modal {
  z-index: 5200;
}

.ct-message-image-modal,
.ct-message-chat-tools-modal {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

.ct-message-camera-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.ct-message-camera-modal.hidden {
  display: none;
}

.ct-message-camera-modal .ct-message-camera-box {
  position: relative;
  box-sizing: border-box;
  width: min(1040px, calc(100dvw - 48px));
  max-width: min(1040px, calc(100dvw - 48px));
  height: min(760px, calc(100dvh - 56px));
  max-height: calc(100dvh - 56px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #05070d;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
  z-index: 2;
}

.ct-message-camera-modal .ct-share-modal-close {
  z-index: 12;
  background: rgba(255, 255, 255, 0.92);
  color: #101828;
}

.ct-message-camera-modal .ct-message-camera-head {
  padding-right: 42px;
  color: #fff;
}

.ct-message-camera-modal .ct-message-camera-head h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 22px;
}

.ct-message-camera-modal .ct-message-camera-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  aspect-ratio: 9 / 14;
  height: min(650px, calc(100dvh - 152px));
  max-width: 100%;
  justify-self: center;
  align-self: center;
  min-height: 0;
}

.ct-message-camera-modal .ct-message-camera-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.16s ease;
}

.ct-message-camera-modal.is-loading .ct-message-camera-stage video {
  visibility: hidden;
  opacity: 0;
}

.ct-message-camera-modal .ct-message-camera-stage video::-webkit-media-controls,
.ct-message-camera-modal .ct-message-camera-stage video::-webkit-media-controls-panel,
.ct-message-camera-modal .ct-message-camera-stage video::-webkit-media-controls-start-playback-button,
.ct-message-camera-modal .ct-message-camera-stage video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
}

.ct-message-camera-modal .ct-message-camera-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #fff;
  z-index: 6;
}

.ct-message-camera-modal .ct-message-camera-loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.84);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.ct-message-camera-modal .ct-message-camera-loader .ct-app-loader-spinner {
  position: relative;
  z-index: 1;
}

.ct-message-camera-modal.is-loading .ct-message-camera-loader {
  display: grid;
}

.ct-message-camera-modal .ct-message-camera-permission {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  background: #101828;
  color: #fff;
  text-align: center;
}

.ct-message-camera-modal .ct-message-camera-permission.hidden {
  display: none;
}

.ct-message-camera-modal .ct-message-camera-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.ct-message-camera-modal .ct-message-camera-controls button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  cursor: pointer;
}

.ct-message-camera-modal .ct-message-camera-controls button:nth-child(2) {
  width: 62px;
  height: 62px;
  background: #00baff;
}

.ct-message-camera-modal .ct-message-camera-controls button:nth-child(3) {
  background: #f04438;
}

.ct-message-camera-modal.is-recording .ct-message-camera-controls button:nth-child(3) {
  box-shadow: 0 0 0 6px rgba(240, 68, 56, 0.24);
  animation: ct-message-record-pulse 1s ease-in-out infinite;
}

.ct-message-camera-modal .ct-message-camera-controls svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

@keyframes ct-message-record-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ct-message-image-modal .ct-message-image-modal-box {
  position: relative;
  box-sizing: border-box;
  width: 100dvw;
  max-width: 100dvw;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 6px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 56px rgba(15, 23, 42, 0.26);
  z-index: 2;
}

.ct-message-image-modal .ct-share-modal-close {
  top: 14px;
  right: 14px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.ct-message-image-modal .ct-message-image-stage {
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}

.ct-message-image-modal .ct-message-image-stage img {
  max-width: 100%;
  max-height: calc(100vh - 118px);
  display: block;
  object-fit: contain;
}

.ct-message-image-modal .ct-message-image-error {
  padding: 16px 18px;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fff1f3;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.ct-message-image-modal .ct-message-image-error.hidden {
  display: none;
}

.ct-message-image-modal .ct-message-image-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #101828;
  cursor: pointer;
  transform: translateY(-50%);
}

.ct-message-image-modal .ct-message-image-nav.hidden {
  display: none;
}

.ct-message-image-modal .ct-message-image-nav.prev {
  left: 12px;
}

.ct-message-image-modal .ct-message-image-nav.next {
  right: 12px;
}

.ct-message-image-modal .ct-message-image-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ct-message-image-modal .ct-message-image-counter {
  min-height: 14px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ct-message-image-modal .ct-message-image-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ct-message-image-modal .ct-message-image-actions > button,
.ct-message-image-modal .ct-message-image-actions > a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #101828;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.ct-message-image-modal .ct-message-image-actions > button:hover,
.ct-message-image-modal .ct-message-image-actions > a:hover {
  background: #e4e7ec;
}

.ct-message-image-modal .ct-message-image-actions > button.is-active {
  background: #e0f7ff;
  color: #027a90;
}

.ct-message-image-modal .ct-message-image-download {
  margin-right: auto;
}

.ct-message-image-modal .ct-message-image-reaction-current {
  font-size: 20px;
  line-height: 1;
}

.ct-message-image-modal .ct-message-image-reaction-palette {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: none;
  grid-template-columns: repeat(6, 32px);
  gap: 5px;
  padding: 7px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.ct-message-image-modal .ct-message-image-reaction-palette.open {
  display: grid;
}

.ct-message-image-modal .ct-message-image-reaction-palette button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.ct-message-image-modal .ct-message-image-reaction-palette button:hover {
  background: #f2f4f7;
}

.ct-message-image-modal .ct-message-image-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 7px;
  padding: 8px;
  border-radius: 18px;
  background: #f8fafc;
}

.ct-message-image-modal .ct-message-image-composer button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  cursor: pointer;
}

.ct-message-image-modal .ct-message-image-composer button[type="submit"] {
  width: 42px;
  height: 42px;
  background: #00baff;
  color: #fff;
}

.ct-message-image-modal .ct-message-image-composer textarea {
  min-width: 0;
  min-height: 38px;
  max-height: 94px;
  padding: 9px 10px;
  border: 0;
  border-radius: 18px;
  outline: none;
  resize: none;
  background: #fff;
  color: #101828;
  font: inherit;
  line-height: 20px;
}

.ct-message-forward-modal.hidden {
  display: none;
}

.ct-message-forward-modal.over-image {
  z-index: 5600;
}

.ct-message-forward-modal .ct-message-forward-box {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  z-index: 2;
}

.ct-message-reaction-users-modal .ct-message-reaction-users-box {
  position: relative;
  z-index: 2;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ct-message-clear-conversation-modal .ct-message-clear-conversation-box {
  position: relative;
  z-index: 2;
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ct-messages-page .ct-message-clear-conversation-modal .ct-message-clear-conversation-box.ct-message-modal-shell {
  border: 0;
}

.ct-messages-page .ct-message-clear-conversation-box .ct-message-modal-header {
  border-bottom: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 116, 144, 0.38), transparent 34%),
    linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.ct-message-clear-conversation-box p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.45;
}

.ct-message-clear-block-option {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 22px;
  margin-right: 22px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 12px;
  background: #fff8f8;
  color: #101828;
  font-size: 13px;
  font-weight: 850;
}

.ct-message-clear-block-option.hidden,
.ct-message-clear-block-option[hidden],
.ct-message-clear-owner-transfer.hidden,
.ct-message-clear-owner-transfer[hidden] {
  display: none !important;
}

.ct-message-clear-block-option input {
  width: 16px;
  height: 16px;
  accent-color: #ef4444;
}

.ct-message-clear-block-note {
  margin-left: 22px !important;
  margin-right: 22px !important;
  margin-top: -6px !important;
  color: #b42318 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.ct-message-clear-block-note.hidden,
.ct-message-clear-block-note[hidden] {
  display: none !important;
}

.ct-message-clear-owner-transfer {
  display: grid;
  gap: 10px;
  margin-left: 22px;
  margin-right: 22px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.ct-message-clear-owner-transfer h3 {
  margin: 0;
  color: #101828;
  font-size: 13px;
  line-height: 1.2;
}

.ct-message-clear-owner-transfer p {
  font-size: 12px;
  line-height: 1.35;
}

.ct-message-clear-owner-transfer input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
}

.ct-message-clear-owner-list {
  max-height: 190px;
  display: grid;
  gap: 6px;
  overflow: auto;
}

.ct-message-clear-owner-list button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 11px;
  background: #fff;
  color: #101828;
  text-align: left;
  cursor: pointer;
}

.ct-message-clear-owner-list button.selected {
  border-color: rgba(18, 183, 106, 0.42);
  background: #ecfdf3;
  box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.12);
}

.ct-message-clear-owner-list img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-clear-owner-list span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-message-clear-owner-list strong,
.ct-message-clear-owner-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-message-clear-owner-list strong {
  font-size: 13px;
  line-height: 1.15;
}

.ct-message-clear-owner-list em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ct-message-clear-owner-empty {
  color: #667085 !important;
  font-size: 12px !important;
}

.ct-message-clear-conversation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ct-message-clear-conversation-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.ct-message-clear-conversation-actions button:first-child {
  background: #f2f4f7;
  color: #101828;
}

.ct-message-clear-conversation-actions button:last-child {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.ct-message-clear-conversation-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.ct-message-group-info-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 5450;
}

.ct-message-group-info-modal.hidden {
  display: none;
}

.ct-message-group-icon-view-modal {
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 5560;
}

.ct-message-group-icon-view-modal.hidden {
  display: none;
}

.ct-message-group-icon-view-box {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100dvw - 36px), calc(100dvh - 36px));
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.36);
}

.ct-message-group-icon-view-box > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ct-message-group-icon-view-box > .ct-share-modal-close {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.ct-message-group-icon-view-change {
  position: absolute;
  left: 50%;
  bottom: 15px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-weight: 850;
}

.ct-message-group-icon-view-change[hidden] {
  display: none;
}

.ct-message-group-icon-view-change svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-message-group-info-box {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100dvw - 36px));
  max-height: calc(100dvh - 42px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  color: #101828;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.ct-message-group-info-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 42px;
}

.ct-message-group-info-head img {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  object-fit: cover;
}

.ct-message-group-info-head h2 {
  margin: 5px 0 4px;
  font-size: 24px;
  line-height: 1.08;
}

.ct-message-group-info-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ct-message-group-info-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-message-group-info-tools button,
.ct-message-group-info-footer button,
.ct-message-group-info-member button,
.ct-message-group-info-invite-list button {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.ct-message-group-info-tools button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eff8ff;
  color: #026aa2;
}

.ct-message-group-info-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow: auto;
}

.ct-message-group-info-section {
  display: grid;
  gap: 9px;
}

.ct-message-group-info-section h3 {
  margin: 0;
  font-size: 14px;
}

.ct-message-group-info-section input {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
}

.ct-message-group-info-members,
.ct-message-group-info-invite-list {
  display: grid;
  gap: 7px;
}

.ct-message-group-info-member,
.ct-message-group-info-invite-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 14px;
  background: #f8fafc;
  color: #101828;
  text-align: left;
}

.ct-message-group-info-member img,
.ct-message-group-info-invite-list img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-group-info-member span,
.ct-message-group-info-invite-list span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-message-group-info-member strong,
.ct-message-group-info-invite-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-message-group-info-member em,
.ct-message-group-info-invite-list em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.ct-message-group-info-member button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf8ff;
  color: #0277a8;
}

.ct-message-group-info-footer {
  display: flex;
  justify-content: flex-end;
}

.ct-message-group-info-footer button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
}

@media (max-width: 640px) {
  .ct-message-group-info-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .ct-message-group-info-box {
    width: 100dvw;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .ct-message-group-info-member,
  .ct-message-group-info-invite-list button {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .ct-message-group-info-member button {
    grid-column: 2;
    justify-self: start;
  }
}

.ct-message-reaction-users-modal h2 {
  margin: 0 42px 0 0;
  font-size: 20px;
}

.ct-message-reaction-users-box > div:last-child {
  display: grid;
  gap: 8px;
  max-height: min(380px, 60vh);
  overflow-y: auto;
}

.ct-message-reaction-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}

.ct-message-reaction-group {
  display: grid;
  gap: 6px;
}

.ct-message-reaction-group header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 2px 0;
  color: #101828;
}

.ct-message-reaction-group header span {
  font-size: 19px;
  line-height: 1;
}

.ct-message-reaction-group header strong {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 10px;
  font-weight: 900;
}

.ct-message-reaction-back,
.ct-message-reaction-remove {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.ct-message-reaction-user em {
  justify-self: start;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e6f7ff;
  color: #0077a3;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-message-reaction-user em {
  margin-left: auto;
}

.ct-message-reaction-user em + .ct-message-reaction-remove {
  margin-left: 0;
}

.ct-message-reaction-remove,
.ct-message-reaction-back {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
}

.ct-message-reaction-remove {
  background: #fff1f3;
  color: #c01048;
}

.ct-message-reaction-remove.is-wide {
  justify-self: stretch;
  width: 100%;
}

.ct-message-reaction-back {
  justify-self: start;
  background: #f2f4f7;
  color: #344054;
}

.ct-message-reaction-user img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-reaction-user strong,
.ct-message-reaction-users-empty {
  font-size: 13px;
  font-weight: 800;
}

.ct-message-reaction-users-empty {
  color: #667085;
}

.ct-message-chat-tools-modal .ct-message-chat-tools-box {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(680px, calc(100vw - 28px));
  max-width: calc(100dvw - 28px);
  max-height: calc(100vh - 44px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ct-message-chat-tools-modal h2 {
  margin: 0 42px 0 0;
  font-size: 20px;
}

.ct-messages-page .ct-message-modal-shell {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: #101828;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.ct-messages-page .ct-message-forward-modal .ct-message-forward-box,
.ct-messages-page .ct-message-reaction-users-modal .ct-message-reaction-users-box,
.ct-messages-page .ct-message-clear-conversation-modal .ct-message-clear-conversation-box,
.ct-messages-page .ct-message-group-info-box.ct-message-modal-shell,
.ct-messages-page .ct-message-group-create-box.ct-message-modal-shell,
.ct-messages-page .ct-image-crop-box.ct-message-modal-shell,
.ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell {
  padding: 0;
}

.ct-messages-page .ct-message-modal-header {
  background: linear-gradient(135deg, #101828 0%, #111827 100%);
  color: #fff;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 18px 64px 18px 22px;
  position: relative;
}

.ct-messages-page .ct-message-modal-header .ct-kicker,
.ct-messages-page .ct-message-modal-header > span {
  color: rgba(255, 255, 255, 0.68);
}

.ct-messages-page .ct-message-modal-header h2,
.ct-messages-page .ct-message-modal-header p {
  color: #fff;
}

.ct-messages-page .ct-message-modal-header h2 {
  margin: 0;
}

.ct-messages-page .ct-message-modal-header p {
  margin: 0;
  opacity: 0.72;
}

.ct-messages-page .ct-message-group-info-head.ct-message-modal-header {
  align-items: center;
  display: flex;
  gap: 14px;
}

.ct-messages-page .ct-message-group-info-head.ct-message-modal-header img {
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.ct-messages-page .ct-message-modal-shell > .ct-share-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  z-index: 5;
}

.ct-messages-page .ct-message-modal-shell > .ct-share-modal-close:hover,
.ct-messages-page .ct-message-modal-shell > .ct-share-modal-close:focus-visible,
.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-close:hover,
.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.ct-messages-page .ct-message-modal-actions {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px 20px;
}

.ct-messages-page .ct-message-modal-actions button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 0 16px;
}

.ct-messages-page .ct-message-modal-actions button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-messages-page .ct-message-modal-actions button:last-child {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-message-modal-actions.is-prediction button:last-child {
  background: #167348;
}

.ct-messages-page .ct-message-modal-actions.is-slip button:last-child {
  background: #8a610c;
}

.ct-messages-page .ct-message-modal-actions.is-danger button:last-child {
  background: #d92d20;
}

.ct-messages-page .ct-message-forward-modal form,
.ct-messages-page .ct-message-reaction-users-body,
.ct-messages-page .ct-message-clear-conversation-box > p,
.ct-messages-page .ct-group-prediction-slip-title,
.ct-messages-page .ct-group-prediction-slip-description,
.ct-messages-page .ct-group-prediction-slip-composer,
.ct-messages-page .ct-group-prediction-slip-box > .ct-publish-message {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-messages-page .ct-message-forward-modal form,
.ct-messages-page .ct-message-reaction-users-body {
  padding-top: 18px;
  padding-bottom: 20px;
}

.ct-messages-page .ct-message-clear-conversation-box > p {
  padding-top: 18px;
}

.ct-messages-page .ct-message-group-create-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-group-actions) {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-messages-page .ct-message-group-create-box.ct-message-modal-shell .ct-message-group-actions {
  margin: 0;
}

.ct-messages-page .ct-image-crop-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-modal-actions) {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-messages-page .ct-message-group-info-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-group-info-footer) {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-messages-page .ct-message-group-info-box.ct-message-modal-shell .ct-message-group-info-footer {
  margin: 0;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell {
  max-width: 920px;
}

.ct-messages-page .ct-group-prediction-slip-box.ct-message-modal-shell > .ct-publish-message {
  margin-bottom: 10px;
}

.ct-messages-page .ct-group-prediction-pick-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 5450;
}

.ct-messages-page .ct-group-prediction-pick-modal.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal .ct-prediction-backdrop {
  background: rgba(15, 23, 42, 0.55);
  inset: 0;
  position: absolute;
}

.ct-messages-page .ct-group-prediction-pick-box.ct-message-modal-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  max-height: calc(100dvh - 44px);
  max-width: calc(100dvw - 36px);
  padding: 0;
  position: relative;
  width: min(1040px, calc(100dvw - 36px));
  z-index: 2;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-right: 22px;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-head-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-group-prediction-assign-row,
.ct-messages-page .ct-group-prediction-pick-box .ct-publish-message {
  margin-left: 22px;
  margin-right: 22px;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-layout {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 0;
}

.ct-messages-page .ct-group-prediction-pick-box .ct-prediction-main {
  display: grid;
  gap: 16px;
  min-height: 0;
}

@media (max-width: 640px) {
  .ct-messages-page .ct-message-modal-header {
    padding: 16px 58px 16px 18px;
  }

  .ct-messages-page .ct-message-modal-actions {
    padding: 14px 18px 18px;
  }

  .ct-messages-page .ct-message-group-info-box.ct-message-modal-shell,
  .ct-messages-page .ct-message-group-create-box.ct-message-modal-shell,
  .ct-messages-page .ct-image-crop-box.ct-message-modal-shell,
  .ct-messages-page .ct-group-prediction-pick-box.ct-message-modal-shell {
    border-radius: 0;
    max-height: 100dvh;
    max-width: 100dvw;
    min-height: 100dvh;
    width: 100dvw;
  }

  .ct-messages-page .ct-group-prediction-pick-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .ct-messages-page .ct-group-prediction-pick-box .ct-prediction-head {
    padding-right: 18px;
  }

  .ct-messages-page .ct-message-group-info-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-group-info-footer),
  .ct-messages-page .ct-message-group-create-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-group-actions),
  .ct-messages-page .ct-image-crop-box.ct-message-modal-shell > :not(.ct-share-modal-close):not(.ct-message-modal-header):not(.ct-message-modal-actions),
  .ct-messages-page .ct-group-prediction-pick-box .ct-group-prediction-assign-row,
  .ct-messages-page .ct-group-prediction-pick-box .ct-publish-message {
    margin-left: 18px;
    margin-right: 18px;
  }

  .ct-messages-page .ct-group-prediction-pick-box .ct-prediction-layout {
    padding: 16px 18px 0;
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-group-prediction-pick-box.ct-message-modal-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-prediction-head,
  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-group-prediction-modal-actions {
    flex: 0 0 auto;
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-prediction-layout {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 12px;
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-publish-message:empty {
    display: none;
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-group-prediction-modal-actions {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
    margin: 0;
    padding: 12px 14px max(18px, calc(14px + env(safe-area-inset-bottom)));
  }

  .ct-messages-page .ct-group-prediction-pick-modal:not(.is-assign-mode) .ct-group-prediction-modal-actions button {
    white-space: nowrap;
  }

  .ct-messages-page .ct-group-prediction-assignment-expertise,
  .ct-messages-page .ct-group-prediction-assignment-match {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-assignment-match > button {
    grid-row: auto;
    justify-self: stretch;
  }

  .ct-messages-page .ct-group-prediction-slip-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-slip-preview-list {
    max-height: 220px;
  }
}

.ct-message-chat-tools-body {
  max-height: min(620px, 72vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.ct-message-chat-tools-grid.media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.ct-message-chat-tools-grid .ct-message-date-separator {
  grid-column: 1 / -1;
  margin: 6px auto 2px;
}

.ct-message-chat-tool-media {
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f2f4f7;
  aspect-ratio: 1;
  cursor: pointer;
}

.ct-message-chat-tool-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ct-message-chat-tool-video {
  width: 100%;
  max-width: 360px;
  border-radius: 10px;
  background: #101828;
}

.ct-message-chat-tool-file,
.ct-message-chat-tools-empty {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ct-message-chat-tools-grid.matches {
  display: grid;
  gap: 10px;
}

.ct-message-chat-tools-grid.matches.as-chat {
  justify-items: stretch;
  overflow-x: hidden;
}

.ct-message-chat-tool-match-message {
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.ct-message-chat-tool-match-message:hover .ct-message-bubble {
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12), 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ct-message-chat-tool-match-message > strong,
.ct-message-chat-tool-match-message > .ct-message-chat-tool-author {
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  text-align: left;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

.ct-message-chat-tool-match-message > .ct-message-chat-tool-author img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-chat-tool-match-message > .ct-message-chat-tool-author span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-message-chat-tool-match-message.mine > strong,
.ct-message-chat-tool-match-message.mine > .ct-message-chat-tool-author {
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}

.ct-message-chat-tool-match-message .ct-message-bubble {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  padding: 4px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.ct-message-chat-tool-match-message .ct-message-bubble.mine {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: #00baff;
  color: #fff;
}

.ct-message-chat-tool-match-message .ct-message-bubble.theirs {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: #fff;
  color: #101828;
}

.ct-message-chat-tool-match-message .ct-message-bubble.has-match-card > p:not(.ct-message-empty-content) {
  margin: 0 0 5px;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
}

.ct-message-chat-tool-match-message .ct-message-feed-selection {
  min-width: 0;
  max-width: 100%;
}

.ct-message-chat-tool-match [data-message-match-card] {
  width: 100%;
  max-width: none;
}

@media (min-width: 641px) {
  .ct-message-image-modal,
  .ct-message-chat-tools-modal {
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .ct-message-image-modal .ct-message-image-modal-box,
  .ct-message-chat-tools-modal .ct-message-chat-tools-box {
    width: min(1040px, calc(100dvw - 48px));
    max-width: min(1040px, calc(100dvw - 48px));
  }

  .ct-message-image-modal .ct-message-image-modal-box {
    height: min(760px, calc(100dvh - 56px));
    max-height: calc(100dvh - 56px);
    padding: 12px;
    border-radius: 18px;
  }

  .ct-message-image-modal .ct-message-image-stage img {
    max-height: calc(100dvh - 220px);
  }

  .ct-message-chat-tools-modal .ct-message-chat-tools-box {
    max-height: calc(100dvh - 56px);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ct-message-chat-tools-body {
    min-height: 0;
    max-height: none;
  }
}

.ct-messages-page .ct-message-chat-search-inline {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-messages-page .ct-message-chat-search-inline.hidden {
  display: none;
}

.ct-message-chat-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px 48px;
  align-items: center;
  gap: 8px;
}

.ct-message-chat-search-row input {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0 11px;
  outline: none;
  background: #f8fafc;
  color: #101828;
  font: inherit;
}

.ct-message-chat-search-row input:focus {
  border-color: rgba(0, 186, 255, 0.7);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-message-chat-search-row strong {
  color: #667085;
  font-size: 12px;
}

.ct-message-chat-search-row button {
  width: 48px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  cursor: pointer;
}

.ct-messages-page .ct-message-bubble mark {
  border-radius: 4px;
  background: #fff6a3;
  color: #101828;
  padding: 0 2px;
}

.ct-messages-page .ct-message-bubble.ct-message-search-current {
  outline: 3px solid rgba(0, 186, 255, 0.28);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .ct-message-group-create-modal,
  .ct-image-crop-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .ct-message-group-create-box,
  .ct-image-crop-box {
    width: 100dvw;
    max-height: 100dvh;
    border-radius: 0;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .ct-image-crop-body {
    align-content: start;
    padding-top: 16px;
  }

  .ct-image-crop-stage {
    width: min(82dvw, 340px);
  }

  .ct-message-group-choice-grid,
  .ct-message-group-suboptions {
    grid-template-columns: 1fr;
  }

  .ct-message-group-choice {
    min-height: 154px;
  }

  .ct-message-group-member-list {
    max-height: none;
  }

  .ct-message-group-steps span {
    font-size: 10px;
  }

  .ct-message-camera-modal,
  .ct-message-chat-tools-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .ct-message-camera-modal .ct-message-camera-box,
  .ct-message-chat-tools-modal .ct-message-chat-tools-box {
    box-sizing: border-box;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ct-message-camera-modal .ct-message-camera-box {
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .ct-message-camera-modal .ct-message-camera-stage {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
  }

  .ct-message-chat-tools-body {
    max-height: none;
    min-height: 0;
  }

  .ct-message-chat-search-row {
    grid-template-columns: minmax(0, 1fr) auto 44px 44px;
    gap: 6px;
  }

  .ct-message-chat-search-row button {
    width: 44px;
    height: 38px;
  }

  .ct-message-image-modal .ct-message-image-actions > button,
  .ct-message-image-modal .ct-message-image-actions > a {
    width: 36px;
    height: 36px;
  }
}

.ct-message-forward-modal h2 {
  margin: 2px 0 0;
  color: #101828;
  font-size: 22px;
}

.ct-message-forward-modal form {
  display: grid;
  gap: 12px;
}

.ct-message-forward-list {
  max-height: min(360px, 48vh);
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

.ct-message-forward-item {
  display: grid;
  grid-template-columns: 22px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  cursor: pointer;
}

.ct-message-forward-item:has(input:checked) {
  border-color: rgba(0, 186, 255, 0.52);
  background: #eff8ff;
}

.ct-message-forward-item img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-message-forward-item span {
  min-width: 0;
  display: grid;
}

.ct-message-forward-item strong,
.ct-message-forward-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-message-forward-item strong {
  color: #101828;
  font-size: 13px;
}

.ct-message-forward-item em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.ct-message-forward-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ct-message-forward-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.ct-message-forward-actions button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-message-forward-actions button:last-child {
  background: #00baff;
  color: #fff;
}

.ct-message-forward-actions button[type="submit"] {
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ct-message-forward-actions button[type="submit"] i {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-message-forward-modal form.is-busy .ct-message-forward-actions button[type="submit"] span {
  display: none;
}

.ct-message-forward-modal form.is-busy .ct-message-forward-actions button[type="submit"] i {
  display: block;
}

.ct-message-forward-modal form.is-busy .ct-message-forward-item,
.ct-message-forward-modal form.is-busy .ct-message-forward-actions button {
  cursor: wait;
  opacity: 0.72;
}

@keyframes ct-recording-pulse {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.55;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.ct-messages-page .ct-chat-empty {
  margin: auto;
  padding: 30px;
  text-align: center;
}

.ct-messages-page .ct-chat-empty h2 {
  margin: 0 0 8px;
  color: #101828;
}

.ct-messages-page .ct-chat-empty p {
  margin: 0;
  color: #667085;
}

.ct-messages-page .ct-group-invite-bubble {
  width: min(440px, 100%);
  max-width: min(440px, 100%);
  justify-self: center;
  align-self: center;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #101828;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-group-invite-bubble > strong {
  display: block;
  margin-bottom: 7px;
  color: #101828;
  font-size: 15px;
}

.ct-messages-page .ct-group-invite-bubble p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.ct-messages-page .ct-group-invite-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.ct-messages-page .ct-group-invite-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.ct-messages-page .ct-group-invite-actions button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-messages-page .ct-group-invite-actions button:last-child {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-group-invite-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ct-messages-page .ct-group-invite-bubble .ct-publish-message {
  margin-top: 10px;
  display: block;
}

@media (max-width: 980px) {
  .ct-profile-page .ct-profile-shell {
    width: min(720px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ct-messages-page .ct-messages-shell {
    width: min(720px, calc(100% - 28px));
  }

  .ct-messages-page .ct-messages-layout {
    grid-template-columns: 1fr;
  }

  .ct-messages-page .ct-conversation-list {
    max-height: 280px;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  body.ct-dashboard-foundation.ct-dashboard-page.ct-messages-page:not(.ct-mobile-chat-open) {
    --ct-messages-appbar-offset: 76px;
  }

  .ct-dashboard-page .ct-feed-selection-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .ct-dashboard-page .ct-feed-selection-meta > span:first-child {
    min-width: 0;
  }

  .ct-dashboard-page .ct-selection-meta-actions {
    width: auto;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: 0;
    white-space: nowrap;
  }

  .ct-dashboard-page .ct-selection-meta-actions time {
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
  }

  .ct-dashboard-page .ct-fixture-date-full {
    display: none;
  }

  .ct-dashboard-page .ct-fixture-date-short {
    display: inline;
  }

  .ct-dashboard-page .ct-match-title,
  .ct-dashboard-page .ct-feed-selection-match {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    flex-direction: initial;
  }

  .ct-dashboard-page .ct-match-title strong {
    width: auto;
    white-space: nowrap;
  }

  .ct-dashboard-page .ct-match-title .ct-vs-pill {
    align-self: center;
    padding: 3px 7px;
  }

  .ct-dashboard-page .ct-feed-selection-pick {
    gap: 6px;
  }

  .ct-dashboard-page .ct-post-author-name {
    gap: 6px;
    flex-wrap: wrap;
  }

  .ct-profile-page .ct-profile-shell {
    display: block;
  }

  .ct-profile-page .ct-profile-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
  }

  .ct-profile-page .ct-profile-photo-wrap {
    width: 72px;
    height: 72px;
  }

  .ct-profile-page .ct-profile-hero-avatar {
    width: 72px;
    height: 72px;
  }

  .ct-profile-page .ct-profile-photo-edit {
    right: -5px;
    bottom: -4px;
    width: 28px;
    height: 28px;
  }

  .ct-profile-page .ct-profile-photo-edit svg {
    width: 15px;
    height: 15px;
  }

  .ct-profile-page .ct-profile-photo-picker {
    width: 72px;
    height: 72px;
    font-size: 36px;
  }

  .ct-profile-page .ct-profile-photo-source-menu {
    left: 0;
    top: calc(100% + 8px);
    min-width: 132px;
    transform: none;
  }

  .ct-profile-page .ct-profile-title-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .ct-profile-page .ct-profile-title-row h1 {
    font-size: 21px;
  }

  .ct-profile-page .ct-profile-stats {
    gap: 10px;
    font-size: 12px;
  }

  .ct-profile-page .ct-profile-stats strong {
    font-size: 14px;
  }

  .ct-profile-page .ct-profile-team {
    max-width: 100%;
    font-size: 12px;
  }

  .ct-messages-page .ct-messages-shell {
    width: min(100% - 14px, 720px);
    height: calc(100dvh - var(--ct-messages-appbar-offset));
  }

  .ct-messages-page .ct-messages-layout {
    min-height: 0;
    height: 100%;
    display: block;
  }

  .ct-messages-page .ct-conversation-list,
  .ct-messages-page .ct-chat-panel {
    border-radius: 14px;
  }

  .ct-messages-page:not(.ct-mobile-chat-open) .ct-chat-panel {
    display: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-messages-shell {
    width: 100%;
    margin-top: 0;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-messages-layout {
    min-height: calc(100dvh - 88px);
    height: calc(100dvh - 88px);
  }

  .ct-messages-page.ct-mobile-chat-open .ct-conversation-list {
    display: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-chat-panel {
    min-height: 0;
    height: calc(100dvh - 88px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ct-messages-page .ct-conversation-list {
    max-height: none;
    padding: 0;
  }

  .ct-messages-page:not(.ct-mobile-chat-open) .ct-messages-shell {
    width: 100%;
    max-width: 100%;
    position: fixed;
    top: var(--ct-messages-appbar-offset);
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
    margin-top: 0;
    z-index: 1;
  }

  .ct-messages-page:not(.ct-mobile-chat-open) .ct-messages-layout {
    height: 100%;
  }

  .ct-messages-page:not(.ct-mobile-chat-open) .ct-conversation-list {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.ct-dashboard-foundation.ct-dashboard-page.ct-messages-page:not(.ct-mobile-chat-open) {
    padding-top: var(--ct-messages-appbar-offset);
  }

  .ct-messages-page .ct-message-list-tabs,
  .ct-messages-page .ct-message-list-tabs button:first-child,
  .ct-messages-page .ct-message-list-tabs button:last-child {
    border-radius: 0;
  }

  .ct-messages-page .ct-conversation-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 10px 12px 8px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-conversation-item img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-basis: 48px;
  }

  .ct-messages-page .ct-chat-header {
    min-height: 62px;
    flex: 0 0 auto;
    position: relative;
    top: auto;
    z-index: 12;
    gap: 10px;
    padding: 9px 12px;
    background: #fff;
  }

  .ct-messages-page .ct-chat-back {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #101828;
    text-decoration: none;
  }

  .ct-messages-page .ct-chat-back svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .ct-messages-page .ct-chat-header img {
    width: 40px;
    height: 40px;
  }

  .ct-messages-page .ct-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 12px;
  }

  .ct-messages-page .ct-message-unread-jump {
    top: 68px;
    right: 12px;
  }

  .ct-messages-page .ct-message-bubble {
    max-width: 86%;
  }

  .ct-messages-page .ct-message-form {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    padding: 10px;
    position: relative;
    bottom: auto;
    z-index: 10;
  }

  .ct-messages-page .ct-message-form.has-shared-post .ct-message-post-preview {
    left: 10px;
    right: 64px;
    bottom: calc(100% - 8px);
    max-height: none;
    overflow: visible;
    transform-origin: bottom left;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-publish-message:empty {
    display: none;
  }

  .ct-messages-page .ct-message-composer-action {
    width: 34px;
    height: 34px;
  }

  .ct-messages-page .ct-message-send-button {
    width: 46px;
    height: 46px;
  }
}

body.ct-dashboard-foundation.ct-dashboard-page {
  padding-top: 85px;
}

@media (min-width: 981px) {
  .ct-dashboard-page .ct-coupon-column {
    position: fixed;
    top: 85px;
    right: max(24px, calc((100vw - 1040px) / 2));
    width: 320px;
    max-height: calc(100vh - 105px);
    margin: 0;
    overflow-y: auto;
    z-index: 30;
  }

  .ct-dashboard-page .ct-results-ticker ~ .ct-coupon-column {
    top: 163px;
    max-height: calc(100vh - 183px);
  }
}

.ct-dashboard-page .ct-feed-panel {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 640px) {
  .ct-dashboard-page .ct-dashboard-shell,
  .ct-dashboard-page .ct-feed-column {
    overflow: visible;
  }

  .ct-dashboard-page .ct-feed-column .ct-feed-panel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .ct-dashboard-page .ct-feed-panel > .ct-post-card {
    border-radius: 0;
  }

  .ct-dashboard-page .ct-feed-panel > .ct-user-suggestions {
    margin-top: 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ct-dashboard-page .ct-post-card + .ct-user-suggestions,
  .ct-dashboard-page .ct-user-suggestions + .ct-post-card {
    margin-top: 14px;
  }

  .ct-dashboard-page .ct-user-suggestions-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .ct-dashboard-page .ct-user-suggestion-card {
    width: 246px;
    min-width: 246px;
    scroll-snap-align: start;
  }

  .ct-dashboard-page .ct-feed-panel > .ct-post-card .ct-post-ribbon {
    top: 12px;
    right: -48px;
    width: 174px;
    height: 28px;
  }

  .ct-dashboard-page .ct-feed-panel > .ct-post-card .ct-post-ribbon span {
    width: 100%;
    max-width: none;
    padding: 0 28px;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    font-size: 10px;
    line-height: 28px;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  body.ct-dashboard-foundation.ct-dashboard-page.ct-messages-page.ct-mobile-chat-open {
    height: var(--ct-messages-visual-height, 100dvh);
    overflow: hidden;
    padding-top: 0;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-appbar {
    display: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-messages-shell {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: var(--ct-messages-visual-height, 100dvh);
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-messages-layout,
  .ct-messages-page.ct-mobile-chat-open .ct-chat-panel {
    width: 100%;
    height: var(--ct-messages-visual-height, 100dvh);
    min-height: var(--ct-messages-visual-height, 100dvh);
    max-height: var(--ct-messages-visual-height, 100dvh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f2f4f7;
    box-shadow: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-conversation-list {
    display: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-chat-header {
    min-height: 62px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-chat-header img {
    width: 38px;
    height: 38px;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 12px 10px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-edit-bar {
    flex: 0 0 auto;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-form {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-form textarea {
    min-height: 34px;
    max-height: 104px;
    border-radius: 18px;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-composer-action {
    width: 34px;
    height: 34px;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-send-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-enter-option {
    display: none;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-message-attachment-preview,
  .ct-messages-page.ct-mobile-chat-open .ct-message-recording-bar {
    flex: 0 0 auto;
  }

  .ct-message-image-modal .ct-message-image-modal-box {
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-width: none;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: #05070d;
    box-shadow: none;
  }

  .ct-message-image-modal .ct-message-image-stage {
    border-radius: 0;
    background: #05070d;
  }

  .ct-message-image-modal .ct-message-image-stage img {
    max-height: calc(100dvh - 126px);
  }

  .ct-message-image-modal .ct-message-image-actions {
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 10px;
    background: #05070d;
  }

  .ct-message-image-modal .ct-message-image-actions > button,
  .ct-message-image-modal .ct-message-image-actions > a {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .ct-message-image-modal .ct-message-image-composer {
    border-radius: 0;
    padding: 8px 10px;
    background: #05070d;
  }

  .ct-message-image-modal .ct-message-image-counter {
    min-height: 0;
    padding: 0 0 6px;
    background: #05070d;
    color: rgba(255, 255, 255, 0.72);
  }

  .ct-message-image-modal .ct-share-modal-close {
    top: 10px;
    right: 10px;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-publish-message {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 10px;
    background: #fff;
  }

  .ct-messages-page.ct-mobile-chat-open .ct-publish-message:empty {
    display: none;
  }
}

.ct-messages-page .ct-typing-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 16px 10px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.ct-messages-page .ct-typing-indicator.hidden {
  display: none;
}

.ct-messages-page .ct-typing-indicator .ct-typing-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: #00baff;
}

.ct-messages-page .ct-typing-indicator .ct-typing-icon-pencil {
  transform-origin: 20% 80%;
  animation: ct-writing-pen 0.8s ease-in-out infinite alternate;
}

.ct-messages-page .ct-typing-indicator .ct-typing-icon-mic {
  display: none;
}

.ct-messages-page .ct-typing-indicator.is-recording {
  border-color: rgba(239, 68, 68, 0.22);
  background: transparent;
  color: #b42318;
}

.ct-messages-page .ct-typing-indicator.is-recording .ct-typing-icon-pencil {
  display: none;
}

.ct-messages-page .ct-typing-indicator.is-recording .ct-typing-icon-mic {
  display: block;
  fill: #ef4444;
  animation: ct-recording-mic 0.75s ease-in-out infinite alternate;
}

@keyframes ct-writing-pen {
  from {
    transform: rotate(-8deg) translateY(0);
  }

  to {
    transform: rotate(8deg) translateY(-1px);
  }
}

@keyframes ct-recording-mic {
  from {
    transform: translateY(1px) scale(0.9);
  }

  to {
    transform: translateY(-1px) scale(1.08);
  }
}

@media (max-width: 640px) {
  .ct-messages-page.ct-mobile-chat-open .ct-typing-indicator {
    margin: 0 10px 8px;
  }
}

/* Versione 5: prediction builder modal */
.ct-dashboard-page.prediction-modal-open {
  overflow-x: hidden;
}

.ct-dashboard-page .ct-prediction-modal {
  position: fixed;
  inset: 84px 0 18px;
  z-index: 180;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 18px;
  pointer-events: none;
}

.ct-dashboard-page .ct-prediction-modal.hidden {
  display: none;
}

.ct-dashboard-page .ct-prediction-backdrop {
  display: none;
}

.ct-dashboard-page .ct-prediction-box {
  width: min(780px, calc(100vw - 380px));
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  pointer-events: auto;
}

.ct-dashboard-page .ct-prediction-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #101828, #243b53);
}

.ct-dashboard-page .ct-prediction-head .ct-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.ct-dashboard-page .ct-prediction-head h2 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 21px;
}

.ct-dashboard-page .ct-prediction-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ct-dashboard-page .ct-builder-live-summary {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 118px 150px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-dashboard-page .ct-builder-live-summary span,
.ct-dashboard-page .ct-builder-live-summary strong,
.ct-dashboard-page .ct-builder-live-summary em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-builder-live-summary span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ct-dashboard-page .ct-builder-live-summary strong {
  color: #101828;
  font-size: 13px;
}

.ct-dashboard-page .ct-builder-live-summary em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ct-dashboard-page .ct-prediction-layout {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-color: rgba(0, 186, 255, 0.45) transparent;
}

.ct-dashboard-page .ct-prediction-main {
  display: grid;
  gap: 12px;
}

.ct-dashboard-page .ct-builder-card {
  padding: 15px;
  border-radius: 16px;
  box-shadow: none;
}

.ct-dashboard-page .ct-builder-card .ct-section-head {
  margin-bottom: 10px;
}

.ct-dashboard-page .ct-builder-card h2 {
  font-size: 17px;
}

.ct-dashboard-page .ct-builder-card .ct-section-head p {
  max-width: 520px;
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.ct-dashboard-page .ct-builder-coupon-slot {
  display: none;
}

.ct-dashboard-page .ct-prediction-modal .ct-day-tabs,
.ct-dashboard-page .ct-prediction-modal .ct-country-tabs {
  gap: 7px;
  margin-bottom: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-tab-button {
  min-width: 92px;
  padding: 9px 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-chip-button {
  padding: 8px 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-list {
  display: grid;
  gap: 8px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card {
  padding: 11px;
  border-radius: 14px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title {
  margin-top: 8px;
  gap: 8px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title strong {
  font-size: 14px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-block {
  border-radius: 13px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-toggle {
  min-height: 42px;
  padding: 10px 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-content {
  padding: 8px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-odds {
  gap: 7px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button {
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button span {
  font-size: 11px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button strong {
  font-size: 15px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button small {
  grid-column: 1 / -1;
  color: #b54708;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .ct-dashboard-page.prediction-modal-open {
    overflow: hidden;
  }

  .ct-dashboard-page .ct-prediction-modal {
    inset: 0;
    padding: 0;
    pointer-events: auto;
  }

  .ct-dashboard-page .ct-prediction-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, 0.46);
  }

  .ct-dashboard-page .ct-prediction-box {
    position: relative;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .ct-dashboard-page .ct-prediction-head {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  }

  .ct-dashboard-page .ct-prediction-head h2 {
    font-size: 18px;
  }

  .ct-dashboard-page .ct-builder-live-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ct-dashboard-page .ct-builder-live-summary em {
    grid-column: 1 / -1;
  }

  .ct-dashboard-page .ct-prediction-layout {
    padding: 10px;
  }

  .ct-dashboard-page .ct-builder-card {
    padding: 11px;
    border-radius: 12px;
  }

  .ct-dashboard-page .ct-builder-coupon-slot {
    display: block;
    margin-top: 10px;
  }

  .ct-dashboard-page .ct-builder-coupon-slot .ct-coupon-column {
    display: block;
  }

  .ct-dashboard-page .ct-builder-coupon-slot .ct-coupon-box {
    padding: 12px;
    border-radius: 14px;
    box-shadow: none;
  }

  .ct-dashboard-page .ct-builder-coupon-slot .ct-coupon-box .ct-section-head {
    margin: -12px -12px 10px;
    padding: 12px;
  }

  .ct-dashboard-page .ct-builder-coupon-slot .ct-coupon-note {
    min-height: 76px;
  }
}

@media (max-width: 640px) {
  .ct-dashboard-page .ct-feed-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-tab-button {
    min-width: 78px;
    padding: 8px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-chip-button {
    padding: 7px 9px;
    font-size: 12px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-match-meta {
    font-size: 11px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-match-title {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  }

  .ct-dashboard-page .ct-prediction-modal .ct-match-title strong {
    font-size: 12px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-vs-pill {
    padding: 3px 6px;
    font-size: 10px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-market-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-dashboard-page .ct-prediction-modal .ct-odd-button {
    min-height: 40px;
    padding: 7px 6px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-odd-button span {
    font-size: 10px;
  }
}

/* Versione 5 refinement: compact modal builder and mobile publish sheet */
.ct-dashboard-page .ct-prediction-modal {
  inset: 0;
  z-index: 4000;
  align-items: center;
  padding: 18px;
  pointer-events: auto;
}

.ct-dashboard-page .ct-prediction-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.ct-dashboard-page .ct-prediction-box {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  border-radius: 22px;
}

.ct-dashboard-page .ct-prediction-head {
  padding: 13px 14px;
}

.ct-dashboard-page .ct-prediction-head h2 {
  font-size: 19px;
}

.ct-dashboard-page .ct-prediction-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-dashboard-page .ct-prediction-done {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.26);
}

.ct-dashboard-page .ct-match-page-modal {
  padding: 18px;
}

.ct-dashboard-page .ct-match-page-modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 36px));
  height: min(840px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #f4f7fb;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.ct-dashboard-page .ct-match-page-loader {
  position: absolute;
  inset: 57px 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #05070b;
  transition: opacity 0.18s ease;
}

.ct-dashboard-page .ct-match-page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.ct-dashboard-page .ct-app-loader-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0, 186, 255, 0.18);
  border-top-color: #00baff;
  border-radius: 50%;
  animation: ct-app-loader-spin 0.82s linear infinite;
}

.ct-dashboard-page .ct-match-page-loader strong {
  margin-top: 22px;
  color: #05070b;
  font-size: 22px;
  font-weight: 900;
}

.ct-dashboard-page .ct-match-page-loader span {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

@keyframes ct-app-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Results page */
.ct-results-page .ct-results-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto 54px;
  display: grid;
  gap: 16px;
}

.ct-results-page .ct-results-hero,
.ct-results-page .ct-matches-filters,
.ct-results-page .ct-results-day,
.ct-results-page .ct-results-empty {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ct-results-page .ct-results-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.ct-results-page .ct-results-hero h1 {
  margin: 4px 0 6px;
  color: #101828;
  font-size: 30px;
  line-height: 1;
}

.ct-results-page .ct-results-hero p {
  margin: 0;
  color: #667085;
  font-weight: 700;
}

.ct-results-page .ct-matches-filters {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.ct-results-page .ct-matches-day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ct-results-page .ct-matches-day-strip a {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  color: #344054;
  text-decoration: none;
}

.ct-results-page .ct-matches-day-strip a.is-active {
  border-color: rgba(14, 165, 233, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(20, 184, 166, 0.12));
  color: #0f172a;
}

.ct-results-page .ct-matches-day-strip strong,
.ct-results-page .ct-matches-day-strip span {
  display: block;
}

.ct-results-page .ct-matches-day-strip strong {
  font-size: 13px;
  font-weight: 900;
}

.ct-results-page .ct-matches-day-strip span {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-results-page .ct-matches-filter-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr) minmax(220px, 1.35fr) auto;
  gap: 10px;
  align-items: end;
}

.ct-results-page .ct-matches-filter-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ct-results-page .ct-matches-filter-form label span {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-results-page .ct-matches-filter-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
  padding: 0 12px;
}

.ct-results-page .ct-matches-filter-form .btn {
  min-height: 42px;
  white-space: nowrap;
}

.ct-results-page .ct-matches-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-results-page .ct-matches-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.ct-results-page .ct-matches-summary .is-live {
  background: rgba(239, 68, 68, 0.1);
  color: #b42318;
}

.ct-results-page .ct-results-day {
  overflow: hidden;
}

.ct-results-page .ct-results-day > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #101828;
  font-size: 18px;
}

.ct-results-page .ct-results-day > h2 small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-results-page .ct-results-country {
  padding: 14px 18px 18px;
}

.ct-results-page .ct-results-country + .ct-results-country {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-results-page .ct-results-country > header,
.ct-results-page .ct-results-league-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-results-page .ct-results-country > header {
  margin-bottom: 12px;
}

.ct-results-page .ct-results-country > header img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
}

.ct-results-page .ct-results-country > header strong {
  color: #101828;
  font-size: 15px;
}

.ct-results-page .ct-results-league {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.ct-results-page .ct-results-league + .ct-results-league {
  margin-top: 12px;
}

.ct-results-page .ct-results-league-head {
  padding: 10px 12px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.ct-results-page .ct-results-league-head img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ct-results-page .ct-results-match-list {
  display: grid;
}

.ct-results-page .ct-results-match {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #101828;
  text-decoration: none;
}

.ct-results-page .ct-results-match:hover {
  background: #fff;
}

.ct-results-page .ct-results-match.is-live {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(255, 255, 255, 0));
}

.ct-results-page .ct-results-match time,
.ct-results-page .ct-results-match small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-results-page .ct-result-match-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  grid-template-areas:
    "home score"
    "away score";
  align-items: center;
  column-gap: 12px;
  row-gap: 7px;
}

.ct-results-page .ct-result-match-line .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ct-results-page .ct-result-match-line .ct-team-home {
  grid-area: home;
  justify-content: flex-start;
  text-align: left;
}

.ct-results-page .ct-result-match-line .ct-team-away {
  grid-area: away;
  justify-content: flex-start;
  text-align: left;
}

.ct-results-page .ct-result-match-line .ct-team-name {
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-results-page .ct-match-score {
  grid-area: score;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 56px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ct-results-page .ct-match-status-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.ct-results-page .ct-match-status-badge.is-live {
  background: #ef4444;
  color: #fff;
}

.ct-results-page .ct-match-status-badge.is-finished {
  background: #101828;
  color: #fff;
}

.ct-results-page .ct-match-status-badge.is-upcoming {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.ct-results-page .ct-match-status-badge.is-other {
  background: rgba(148, 163, 184, 0.16);
  color: #475467;
}

.ct-results-page .ct-results-empty {
  padding: 18px;
  color: #667085;
  font-weight: 800;
}

@media (max-width: 760px) {
  .ct-dashboard-page .ct-results-ticker-dock {
    display: none;
  }

  .ct-dashboard-page .ct-results-ticker-fab {
    display: inline-flex;
  }

  .ct-dashboard-page .ct-mobile-prediction-fab {
    display: inline-flex;
  }

  .ct-dashboard-page.ct-mobile-prediction-fab-visible .ct-results-ticker-fab {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .ct-dashboard-page .ct-results-ticker {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .ct-dashboard-page .ct-result-ticker-league {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ct-dashboard-page .ct-result-ticker-match .ct-team-name {
    max-width: 82px;
  }

  .ct-dashboard-page .ct-results-ticker-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .ct-dashboard-page .ct-results-ticker-fab,
  .ct-dashboard-page .ct-mobile-prediction-fab {
    min-height: 40px;
    padding: 0 11px;
    border-radius: 13px;
    font-size: 13px;
  }

  .ct-results-page .ct-results-shell {
    width: 100%;
    margin-bottom: 36px;
    gap: 10px;
  }

  .ct-results-page .ct-results-hero,
  .ct-results-page .ct-matches-filters,
  .ct-results-page .ct-results-day,
  .ct-results-page .ct-results-empty {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ct-results-page .ct-results-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 14px;
  }

  .ct-results-page .ct-results-hero h1 {
    font-size: 26px;
  }

  .ct-results-page .ct-matches-filters {
    padding: 12px 10px;
  }

  .ct-results-page .ct-matches-day-strip a {
    min-width: 92px;
    padding: 9px 10px;
  }

  .ct-results-page .ct-matches-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .ct-results-page .ct-matches-filter-form label:nth-child(4),
  .ct-results-page .ct-matches-filter-form .btn {
    grid-column: 1 / -1;
  }

  .ct-results-page .ct-results-country {
    padding: 12px 10px 14px;
  }

  .ct-results-page .ct-results-match {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 8px;
  }

  .ct-results-page .ct-results-match small {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .ct-results-page .ct-result-match-line {
    grid-template-columns: minmax(0, 1fr) 54px;
    column-gap: 8px;
    row-gap: 6px;
  }

  .ct-results-page .ct-result-match-line .ct-team-name {
    font-size: 12px;
  }

  .ct-results-page .ct-match-score {
    min-height: 52px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ct-results-page .ct-match-status-badge {
    min-width: 0;
    min-height: 25px;
    padding: 0 8px;
  }
}

/* Matches page, CommuniTime light redesign */
.ct-matches-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(20, 184, 166, 0.12), transparent 34%),
    #f4f7fb;
}

.ct-matches-page.ct-dashboard-page {
  color: #101828;
}

.ct-matches-page .ct-results-shell {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto 42px;
  gap: 14px;
  padding-top: 0;
}

.ct-matches-page .ct-matches-filters,
.ct-matches-page .ct-results-day,
.ct-matches-page .ct-results-empty {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.ct-matches-page .ct-matches-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  padding: 12px 12px 18px;
  backdrop-filter: blur(16px);
}

.ct-matches-page .ct-matches-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #0369a1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.1);
}

.ct-matches-page .ct-matches-filter-toggle svg {
  width: 21px;
  height: 21px;
}

.ct-matches-page .ct-matches-filter-dock {
  position: absolute;
  right: 18px;
  bottom: 0;
  z-index: 2;
  transform: translateY(50%);
}

.ct-matches-page .ct-matches-day-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}

.ct-matches-page .ct-matches-day-strip a {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  color: #344054;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
}

.ct-matches-page .ct-matches-day-strip a.is-active {
  border-color: rgba(14, 165, 233, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(20, 184, 166, 0.1));
  color: #075985;
}

.ct-matches-page .ct-matches-day-strip strong {
  display: block;
  font-size: 13px;
  font-weight: 950;
}

.ct-matches-page .ct-matches-day-strip span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
}

.ct-matches-page .ct-results-day {
  overflow: hidden;
  margin-top: -73px;
}

.ct-matches-page .ct-results-day > h2 {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #101828;
}

.ct-matches-page .ct-results-day > h2 small {
  color: #667085;
}

.ct-matches-page .ct-results-country {
  display: block;
  padding: 0;
}

.ct-matches-page .ct-results-country + .ct-results-country {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-matches-page .ct-results-country > summary,
.ct-matches-page .ct-results-league > summary {
  list-style: none;
  cursor: pointer;
}

.ct-matches-page .ct-results-country > summary::-webkit-details-marker,
.ct-matches-page .ct-results-league > summary::-webkit-details-marker {
  display: none;
}

.ct-matches-page .ct-results-country > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 16px;
  background: rgba(248, 250, 252, 0.72);
}

.ct-matches-page .ct-results-country > summary::after,
.ct-matches-page .ct-results-league > summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.ct-matches-page .ct-results-country[open] > summary::after,
.ct-matches-page .ct-results-league[open] > summary::after {
  transform: rotate(225deg);
}

.ct-matches-page .ct-results-country > summary img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.ct-matches-page .ct-country-flag-placeholder {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(20, 184, 166, 0.14));
}

.ct-matches-page .ct-results-country > summary strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-matches-page .ct-results-country > summary span,
.ct-matches-page .ct-results-league > summary small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
}

.ct-matches-page .ct-results-country > summary em,
.ct-matches-page .ct-results-league > summary em {
  color: #ef4444;
  font-style: normal;
}

.ct-matches-page .ct-results-country > summary .ct-country-flag-placeholder {
  display: block;
  gap: 0;
  color: transparent;
}

.ct-matches-page .ct-results-league {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.ct-matches-page .ct-results-league + .ct-results-league {
  margin-top: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-matches-page .ct-results-league-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 16px 0 28px;
  background: #fff;
  color: #344054;
}

.ct-matches-page .ct-results-league-head img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.ct-matches-page .ct-results-league-head span {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-matches-page .ct-results-match-list {
  display: grid;
  background: #fbfcfe;
}

.ct-matches-page .ct-results-match {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 16px 10px 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  color: #101828;
}

.ct-matches-page .ct-results-match:hover {
  background: #fff;
}

.ct-matches-page .ct-results-match.is-live {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.07), rgba(255, 255, 255, 0));
}

.ct-matches-page .ct-results-match time {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  color: #667085;
  font-size: 13px;
  font-weight: 950;
}

.ct-matches-page .ct-result-match-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  grid-template-areas:
    "home score"
    "away score";
  align-items: center;
  column-gap: 10px;
  row-gap: 7px;
  min-width: 0;
}

.ct-matches-page .ct-result-match-line .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-matches-page .ct-result-match-line .ct-team-home {
  grid-area: home;
}

.ct-matches-page .ct-result-match-line .ct-team-away {
  grid-area: away;
}

.ct-matches-page .ct-result-match-line .ct-team-name {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-matches-page .ct-results-match.is-finished .ct-result-match-line .ct-team-name {
  color: #475467;
}

.ct-matches-page .ct-team-logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ct-matches-page .ct-match-score {
  grid-area: score;
  align-self: stretch;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #101828;
  font-size: 14px;
  font-weight: 950;
  box-shadow: none;
}

.ct-matches-page .ct-match-score span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 22px;
}

.ct-matches-page .ct-match-score .ct-score-empty {
  grid-row: 1 / -1;
  align-items: center;
  color: #98a2b3;
}

.ct-matches-page .ct-match-status-badge {
  grid-column: auto;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 950;
}

.ct-matches-page .ct-match-status-badge.is-live {
  background: transparent;
  color: #ef4444;
}

.ct-matches-page .ct-match-status-badge.is-finished {
  background: transparent;
  color: #475467;
}

.ct-matches-page .ct-match-status-badge.is-upcoming {
  background: transparent;
  color: #0369a1;
}

.ct-matches-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.ct-matches-filter-modal[aria-hidden="false"] {
  display: flex;
}

.ct-matches-filter-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.ct-matches-filter-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
  max-height: calc(100dvh - 34px);
  padding: 0 24px 24px;
  overflow-y: auto;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.ct-matches-filter-panel header {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.ct-matches-filter-panel h2 {
  width: calc(100% + 48px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -24px 18px;
  padding: 0 62px;
  border-radius: 10px 10px 0 0;
  background: #101828;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.ct-matches-filter-panel p {
  width: min(100%, 440px);
  margin: 0 auto 18px;
  color: #475467;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.ct-matches-filter-panel .ct-kicker {
  display: none;
}

.ct-matches-filter-panel header button {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ct-matches-page .ct-matches-filter-panel .ct-matches-filter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
  padding: 4px 0 0;
  text-align: left;
}

.ct-matches-page .ct-matches-filter-panel .ct-matches-filter-form label {
  display: grid;
  gap: 6px;
}

.ct-matches-page .ct-matches-filter-panel .ct-matches-filter-form label span {
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-matches-page .ct-matches-filter-panel .ct-matches-filter-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #f8fafc;
  color: #101828;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 850;
}

.ct-matches-filter-actions {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.ct-matches-filter-actions a {
  justify-self: center;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ct-matches-filter-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

body.ct-matches-filters-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .ct-matches-page .ct-results-shell {
    width: 100%;
    gap: 10px;
    padding-top: 0;
  }

  .ct-matches-page .ct-matches-filters {
    top: 62px;
    border-radius: 0 0 18px 18px;
    padding: 11px 10px 20px;
  }

  .ct-matches-page .ct-matches-filter-dock {
    right: 16px;
  }

  .ct-matches-page .ct-matches-filter-toggle {
    width: 40px;
    height: 40px;
  }

  .ct-matches-page .ct-matches-day-strip {
    grid-auto-columns: minmax(94px, 1fr);
  }

  .ct-matches-page .ct-matches-day-strip a {
    padding: 9px 10px;
  }

  .ct-matches-page .ct-results-day {
    margin: -65px 8px;
    border-radius: 18px;
  }

  .ct-matches-page .ct-results-country > summary {
    min-height: 58px;
    padding: 0 12px;
  }

  .ct-matches-page .ct-results-country > summary strong {
    font-size: 16px;
  }

  .ct-matches-page .ct-results-league-head {
    grid-template-columns: 25px minmax(0, 1fr) auto auto;
    min-height: 50px;
    padding: 0 12px 0 20px;
  }

  .ct-matches-page .ct-results-league-head span {
    font-size: 13px;
  }

  .ct-matches-page .ct-results-match {
    grid-template-columns: 48px minmax(0, 1fr) 58px;
    gap: 8px;
    min-height: 66px;
    padding: 8px 10px 9px 20px;
  }

  .ct-matches-page .ct-results-match time {
    font-size: 12px;
  }

  .ct-matches-page .ct-result-match-line {
    grid-template-columns: minmax(0, 1fr) 26px;
    column-gap: 6px;
    row-gap: 6px;
  }

  .ct-matches-page .ct-result-match-line .ct-team-name {
    font-size: 13px;
  }

  .ct-matches-page .ct-team-logo {
    width: 19px;
    height: 19px;
  }

  .ct-matches-page .ct-match-score {
    gap: 6px;
    font-size: 13px;
  }

  .ct-matches-page .ct-match-status-badge {
    min-height: 34px;
    padding: 0 0 0 6px;
    font-size: 10px;
  }
}

/* Matches page refinements: compact top spacing and social inline match rows */
.ct-matches-page .ct-results-shell {
  padding-top: 0;
  margin: 0 auto 42px;
}

.ct-matches-page .ct-matches-filters {
  top: 0;
}

.ct-matches-page .ct-results-match {
  grid-template-columns: 66px minmax(0, 1fr) 34px;
  grid-template-areas:
    "time main cue"
    ". details details";
  gap: 10px;
  min-height: 74px;
  padding: 10px 14px 9px 16px;
}

.ct-matches-page .ct-match-time-status {
  grid-area: time;
  align-self: stretch;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-right: 9px;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
}

.ct-matches-page .ct-match-time-status time {
  display: block;
  align-self: auto;
  border-right: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.ct-matches-page .ct-results-match .ct-feed-selection-match {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.ct-matches-page .ct-match-mainline {
  grid-area: main;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ct-matches-page .ct-results-scoreboard {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.ct-matches-page .ct-results-teams,
.ct-matches-page .ct-results-score {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.ct-matches-page .ct-results-score {
  justify-items: center;
}

.ct-matches-page .ct-results-score strong {
  width: 26px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.045);
  color: #101828;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.ct-matches-page .ct-match-details {
  grid-area: details;
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-top: 1px;
  opacity: 0.78;
}

.ct-matches-page .ct-match-context-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ct-matches-page .ct-match-odds-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-matches-page .ct-match-social-picks {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ct-matches-page .ct-match-winning-odd {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 3px 2px 7px;
  border-radius: 10px;
  background: rgba(19, 196, 143, 0.055);
  font-size: 11px;
  font-weight: 650;
  flex: 0 1 auto;
  max-width: 100%;
}

.ct-matches-page .ct-match-winning-odd strong {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-matches-page .ct-match-winning-odd span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  min-width: 38px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(19, 196, 143, 0.14);
  color: #087f5b;
  font-size: 11px;
  font-weight: 800;
}

.ct-matches-page .ct-match-context-social > strong {
  flex: 0 0 auto;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

.ct-matches-page .ct-match-social-picks em {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
}

.ct-matches-page .ct-match-social-picks em {
  padding: 3px 8px;
  background: rgba(14, 165, 233, 0.11);
  color: #075985;
}

.ct-matches-page .ct-match-social-picks b {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0369a1;
  font-size: 10px;
  padding: 0 6px;
}

.ct-matches-page .ct-results-match .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.ct-matches-page .ct-results-match .ct-team-home {
  justify-content: flex-start;
  text-align: left;
}

.ct-matches-page .ct-results-match .ct-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ct-matches-page .ct-results-match .ct-team-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 13.5px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-matches-page .ct-results-match .ct-team-logo {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ct-matches-page .ct-results-match .ct-team-goal {
  min-width: 18px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 7px;
  background: #fff;
  color: #101828;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ct-matches-page .ct-results-match .ct-vs-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.ct-matches-page .ct-results-match .ct-match-time-status > .ct-match-status-badge {
  display: block;
  min-width: 42px;
  max-width: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #667085;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.ct-matches-page .ct-results-match .ct-match-time-status > .ct-match-status-badge.is-live {
  color: #ef4444;
}

.ct-matches-page .ct-results-match .ct-match-time-status > .ct-match-status-badge.is-finished {
  color: #667085;
}

.ct-matches-page .ct-results-match .ct-match-time-status > .ct-match-status-badge.is-upcoming {
  color: #0369a1;
}

.ct-matches-page .ct-match-highlight-cue,
.ct-matches-page .ct-match-highlight-space {
  grid-area: cue;
  justify-self: center;
  align-self: center;
}

.ct-matches-page .ct-match-highlight-space {
  width: 24px;
  height: 24px;
}

.ct-matches-page .ct-match-highlight-cue {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 196, 143, 0.14);
  box-shadow: inset 0 0 0 1px rgba(19, 196, 143, 0.22);
}

.ct-matches-page .ct-match-highlight-cue::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #101828;
}

@media (max-width: 760px) {
  .ct-matches-page .ct-results-shell {
    padding-top: 0;
    margin: 0 auto 36px;
  }

  .ct-matches-page .ct-matches-filters {
    top: 0;
  }

  .ct-matches-page .ct-results-match {
    grid-template-columns: 50px minmax(0, 1fr) 26px;
    grid-template-areas:
      "time main cue"
      ". details details";
    gap: 7px;
    min-height: 70px;
    padding: 8px 8px 8px 10px;
  }

  .ct-matches-page .ct-results-scoreboard {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 7px;
  }

  .ct-matches-page .ct-results-teams,
  .ct-matches-page .ct-results-score {
    gap: 6px;
  }

  .ct-matches-page .ct-results-score strong {
    width: 24px;
    min-height: 20px;
    border-radius: 7px;
    font-size: 13px;
  }

  .ct-matches-page .ct-results-match .ct-team-side {
    gap: 5px;
  }

  .ct-matches-page .ct-results-match .ct-team-name {
    font-size: 12px;
  }

  .ct-matches-page .ct-results-match .ct-team-logo {
    width: 17px;
    height: 17px;
  }

  .ct-matches-page .ct-results-match .ct-match-time-status > .ct-match-status-badge {
    grid-column: auto;
    justify-self: center;
    display: block;
    min-width: 38px;
    max-width: 44px;
    min-height: 0;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
  }

  .ct-matches-page .ct-match-time-status {
    grid-area: time;
    gap: 2px;
    min-width: 0;
    padding-right: 7px;
  }

  .ct-matches-page .ct-match-time-status time {
    display: block;
    border-right: 0;
    font-size: 12px;
    line-height: 1.1;
  }

  .ct-matches-page .ct-match-context-row {
    gap: 5px;
  }

  .ct-matches-page .ct-match-context-odds {
    display: none;
  }

  .ct-matches-page .ct-match-odds-row {
    gap: 5px;
  }

  .ct-matches-page .ct-match-winning-odd,
  .ct-matches-page .ct-match-social-picks em {
    min-height: 23px;
    font-size: 10px;
  }

  .ct-matches-page .ct-match-winning-odd {
    width: 100%;
    min-height: 28px;
    padding: 3px 4px 3px 7px;
  }

  .ct-matches-page .ct-match-winning-odd strong,
  .ct-matches-page .ct-match-context-social > strong {
    font-size: 10px;
  }

  .ct-matches-page .ct-match-winning-odd span {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .ct-matches-page .ct-match-highlight-cue {
    width: 24px;
    height: 24px;
  }

  .ct-matches-page .ct-match-highlight-cue::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
  }
}

.ct-dashboard-page .ct-match-page-modal-head {
  flex: 0 0 auto;
  padding: 13px 56px 13px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-dashboard-page .ct-match-page-modal-head h2 {
  margin: 2px 0 0;
  color: #101828;
  font-size: 19px;
  line-height: 1.1;
}

.ct-dashboard-page .ct-match-page-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #f4f7fb;
}

.ct-dashboard-page .ct-match-page-modal .ct-share-modal-close {
  top: 12px;
  right: 12px;
  z-index: 3;
}

.ct-dashboard-page .ct-prediction-close {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 24px;
}

.ct-dashboard-page .ct-prediction-layout {
  padding: 10px;
}

.ct-dashboard-page .ct-prediction-main {
  gap: 9px;
}

.ct-dashboard-page .ct-builder-card {
  padding: 10px;
  border-radius: 13px;
}

.ct-dashboard-page .ct-builder-card .ct-section-head {
  margin-bottom: 8px;
}

.ct-dashboard-page .ct-builder-card h2 {
  font-size: 15px;
}

.ct-dashboard-page .ct-prediction-modal .ct-day-tabs,
.ct-dashboard-page .ct-prediction-modal .ct-country-tabs {
  gap: 5px;
  margin-bottom: 8px;
}

.ct-dashboard-page .ct-prediction-modal .ct-tab-button {
  min-width: 72px;
  padding: 6px 7px;
  border-radius: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-tab-button span {
  font-size: 11px;
}

.ct-dashboard-page .ct-prediction-modal .ct-tab-button strong {
  margin-top: 1px;
  font-size: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-chip-button {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.ct-dashboard-page .ct-prediction-modal .ct-flag-icon,
.ct-dashboard-page .ct-prediction-modal .ct-league-logo {
  width: 16px;
  height: 16px;
}

.ct-dashboard-page .ct-prediction-modal .ct-team-logo {
  width: 20px;
  height: 20px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-list {
  gap: 6px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card {
  padding: 8px;
  border-radius: 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-meta {
  font-size: 10.5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title {
  margin-top: 6px;
  gap: 6px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title strong {
  font-size: 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-vs-pill {
  padding: 2px 6px;
  font-size: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-history-button {
  width: 26px;
  height: 26px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-block {
  border-radius: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-toggle {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-toggle strong {
  width: 21px;
  height: 21px;
  font-size: 13px;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-content {
  padding: 6px;
}

.ct-dashboard-page .ct-prediction-modal .ct-bookmaker-row {
  padding: 4px 0;
}

.ct-dashboard-page .ct-prediction-modal .ct-market-odds {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button {
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 9px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button span {
  font-size: 9.5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odd-button strong {
  margin-top: 1px;
  font-size: 13px;
}

.ct-dashboard-page .ct-mobile-coupon-slot .ct-coupon-column {
  display: block;
  width: 100%;
}

.ct-dashboard-page .ct-mobile-coupon-box {
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding-top: 0;
}

.ct-dashboard-page .ct-mobile-coupon-box > p {
  margin: 0 -22px 12px;
  padding: 0 22px 18px;
  background: #101828;
  color: rgba(255, 255, 255, 0.68);
}

.ct-dashboard-page .ct-mobile-coupon-box > .ct-kicker,
.ct-dashboard-page .ct-mobile-coupon-box > h2 {
  display: block;
  margin: 0 -22px;
  padding: 0 58px 0 22px;
  background: #101828;
}

.ct-dashboard-page .ct-mobile-coupon-box > .ct-kicker {
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
}

.ct-dashboard-page .ct-mobile-coupon-box > h2 {
  padding-top: 4px;
  padding-bottom: 6px;
  color: #fff;
}

.ct-dashboard-page .ct-mobile-coupon-box > .ct-share-modal-close {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ct-dashboard-page .ct-mobile-coupon-slot .ct-coupon-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ct-dashboard-page .ct-mobile-coupon-slot .ct-coupon-box .ct-section-head {
  display: none;
}

@media (max-width: 980px) {
  .ct-dashboard-page .ct-prediction-box {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ct-dashboard-page .ct-match-page-modal {
    padding: 0;
  }

  .ct-dashboard-page .ct-match-page-modal-box {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ct-dashboard-page .ct-match-page-modal-head {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 52px 10px 14px;
  }

  .ct-dashboard-page .ct-prediction-layout {
    padding: 8px;
  }

  .ct-dashboard-page .ct-builder-coupon-slot {
    display: none;
  }

  .ct-dashboard-page .ct-builder-coupon-slot .ct-coupon-column {
    display: none;
  }
}

@media (max-width: 640px) {
  .ct-dashboard-page .ct-prediction-head {
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
  }

  .ct-dashboard-page .ct-prediction-head h2 {
    font-size: 16px;
  }

  .ct-dashboard-page .ct-prediction-done {
    min-height: 31px;
    padding: 0 11px;
    font-size: 11px;
  }

  .ct-dashboard-page .ct-prediction-close {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-market-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-dashboard-page .ct-mobile-coupon-modal {
    align-items: flex-end;
    padding: 0;
  }

  .ct-dashboard-page .ct-mobile-coupon-box {
    width: 100%;
    max-height: 86dvh;
    border-radius: 22px 22px 0 0;
    padding: 0 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
    border: none;
  }
}

/* Admin control center */
.ct-admin-page .ct-admin-topbar strong {
  color: #101828;
  font-size: 15px;
  font-weight: 900;
}

.ct-admin-page .topbar a,
.ct-admin-page .topbar a:hover,
.ct-admin-page .topbar a:focus,
.ct-admin-page .btn,
.ct-admin-page .btn:hover,
.ct-admin-page .btn:focus,
.ct-admin-page .ct-admin-actions a {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.ct-admin-page a.btn,
.ct-admin-page a.btn:visited,
.ct-admin-page a.btn:hover,
.ct-admin-page a.btn:focus,
.ct-admin-page button.btn,
.ct-admin-page button.btn:hover,
.ct-admin-page button.btn:focus {
  text-decoration: none !important;
}

.ct-admin-page .ct-admin-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.ct-admin-page .ct-admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.94), rgba(0, 186, 255, 0.7)),
    linear-gradient(90deg, #101828, #0f766e);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13);
}

.ct-admin-page .ct-admin-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.ct-admin-page .ct-admin-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ct-admin-page .ct-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ct-admin-page .ct-admin-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.ct-match-page {
  min-height: 100vh;
  margin: 0;
  padding: 92px 16px 48px;
  background: #f4f7fb;
  color: #101828;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.ct-match-page.ct-match-embed {
  padding: 12px 12px 30px;
}

.ct-match-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(244, 247, 251, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.ct-match-brand,
.ct-match-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #101828;
  text-decoration: none;
  font-weight: 800;
}

.ct-match-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ct-match-back {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #00baff, #10b981);
}

.ct-match-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.ct-match-hero,
.ct-match-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.ct-match-hero {
  padding: 22px;
  margin-bottom: 16px;
}

.ct-match-league {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.ct-match-league img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.ct-match-league em {
  font-style: normal;
  color: #98a2b3;
}

.ct-match-page .ct-match-league-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -3px -5px;
  padding: 3px 5px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ct-match-page .ct-match-league-link:hover {
  color: #0284c7;
  background: #f2f4f7;
}

.ct-match-page .ct-match-league-link:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.ct-match-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.ct-match-scoreboard article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.ct-match-scoreboard article img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.ct-match-scoreboard article strong {
  font-size: 24px;
  line-height: 1.05;
}

.ct-match-scoreboard article small,
.ct-match-score span,
.ct-match-score time,
.ct-match-muted,
.ct-match-empty {
  color: #667085;
}

.ct-match-score {
  min-width: 160px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.ct-match-score strong {
  font-size: 42px;
  line-height: 1;
}

.ct-match-score span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
}

.ct-match-hero-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 118px));
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.ct-match-hero-odd {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #101828;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ct-match-hero-odd:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 186, 255, 0.34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.ct-match-hero-odd span {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 900;
}

.ct-match-hero-odd strong {
  font-size: 19px;
  line-height: 1;
}

.ct-match-hero-odd em {
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.ct-match-hero-odd .move-up {
  color: #079455;
}

.ct-match-hero-odd .move-down {
  color: #d92d20;
}

.ct-match-hero-odd .move-same {
  color: #98a2b3;
}

.ct-match-hero-odd.is-winning {
  border-color: rgba(7, 148, 85, 0.34);
  background: linear-gradient(135deg, rgba(7, 148, 85, 0.12), rgba(19, 196, 143, 0.18));
  box-shadow: 0 14px 30px rgba(7, 148, 85, 0.16);
}

.ct-match-hero-odd.is-winning strong {
  color: #047857;
}

.ct-match-hero-odd.is-winning span {
  background: #079455;
  color: #fff;
}

.ct-match-quickfacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.ct-match-quickfacts span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.ct-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ct-match-panel {
  padding: 18px;
  overflow: hidden;
}

.ct-match-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.ct-match-highlights {
  margin-bottom: 16px;
}

.ct-match-highlight-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #101828;
  aspect-ratio: 16 / 9;
}

.ct-match-highlight-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ct-match-odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
}

.ct-match-odds-markets {
  display: grid;
  gap: 8px;
}

.ct-match-market,
.ct-match-more-markets {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  overflow: hidden;
}

.ct-match-market summary,
.ct-match-more-markets > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

.ct-match-market summary::-webkit-details-marker,
.ct-match-more-markets > summary::-webkit-details-marker {
  display: none;
}

.ct-match-market summary em,
.ct-match-more-markets > summary {
  color: #667085;
  font-style: normal;
  font-size: 12px;
}

.ct-match-market[open] summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-match-market .ct-match-odds-grid {
  padding: 8px;
}

.ct-match-more-markets-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.ct-match-odd,
.ct-match-popular div,
.ct-match-events div,
.ct-match-lineup-list span {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.ct-match-odd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 8px;
  color: #101828;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ct-match-odd:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 186, 255, 0.36);
  background: #fafdff;
}

.ct-match-odd span {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-match-odd strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.ct-match-odd em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.ct-match-odd .move-up {
  color: #079455;
}

.ct-match-odd .move-down {
  color: #d92d20;
}

.ct-match-odd .move-same {
  color: #98a2b3;
}

.ct-match-page .ct-empty-coupon {
  border-color: rgba(15, 23, 42, 0.13);
  background: #f8fafc;
  color: #667085;
}

.ct-match-popular,
.ct-match-events,
.ct-match-lineup-list {
  display: grid;
  gap: 8px;
}

.ct-match-popular div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}

.ct-match-popular strong,
.ct-match-popular span {
  font-size: 13px;
}

.ct-match-popular span {
  color: #667085;
  white-space: nowrap;
}

.ct-match-compare-table {
  display: grid;
  gap: 6px;
}

.ct-match-compare-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.ct-match-compare-table span {
  font-weight: 800;
}

.ct-match-compare-table span:first-child {
  text-align: right;
}

.ct-match-compare-table strong {
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.ct-match-standings {
  display: grid;
  gap: 5px;
}

.ct-match-standings-table {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.ct-match-standings-table > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px 28px 28px 28px 38px 38px;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 9px;
}

.ct-match-standings-head {
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-match-standings-table .is-match-team {
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.14), rgba(16, 185, 129, 0.14));
}

.ct-match-standings-table strong {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-match-standings-table img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.ct-match-standings-table em {
  color: #101828;
  font-style: normal;
  font-weight: 900;
}

.ct-match-standings div {
  display: grid;
  grid-template-columns: 30px 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
}

.ct-match-standings .is-match-team {
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.14), rgba(16, 185, 129, 0.14));
}

.ct-match-standings img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ct-match-standings strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-match-standings em {
  color: #475467;
  font-style: normal;
  font-weight: 800;
}

.ct-match-events div {
  display: grid;
  grid-template-columns: 46px 76px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
}

.ct-match-stat-stack {
  display: grid;
  gap: 10px;
}

.ct-match-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ct-match-stat-row strong {
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.ct-match-stat-row div {
  display: grid;
  gap: 4px;
}

.ct-match-stat-row div:first-child span {
  text-align: right;
}

.ct-match-stat-row span {
  font-size: 12px;
  font-weight: 900;
}

.ct-match-stat-row i {
  display: block;
  height: 7px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #00baff, #10b981);
}

.ct-match-stat-row div:first-child i {
  justify-self: end;
}

.ct-match-stat-row div:last-child i {
  background: linear-gradient(135deg, #ff8a3d, #ff4d6d);
}

.ct-match-events small {
  grid-column: 3;
  color: #667085;
}

.ct-match-lineup-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ct-match-lineup-list span {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.ct-match-muted,
.ct-match-empty {
  margin: 0;
  font-size: 13px;
}

.ct-match-link {
  color: inherit;
  text-decoration: none;
}

.ct-match-link:hover .ct-team-name {
  text-decoration: underline;
}

.ct-admin-page .ct-admin-message {
  width: min(1180px, 100%);
  margin: 0 auto 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-message.success {
  border: 1px solid rgba(19, 196, 143, 0.24);
  background: rgba(19, 196, 143, 0.11);
  color: #047857;
}

.ct-admin-page .ct-admin-message.error {
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.1);
  color: #b42318;
}

.ct-admin-page .ct-admin-stats-panel {
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 16px;
  overflow: visible;
}

.ct-admin-page .ct-admin-stats {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ct-admin-page .ct-admin-stats-panel .ct-admin-stats {
  margin-bottom: 0;
}

.ct-admin-page .ct-admin-stats-panel,
.ct-admin-page .ct-admin-stats article,
.ct-admin-page .ct-admin-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.ct-admin-page .ct-admin-stats article {
  position: relative;
  min-width: 0;
  min-height: 88px;
  padding: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.ct-admin-page .ct-admin-stats article::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00baff, #13c48f);
  box-shadow: 0 8px 18px rgba(0, 186, 255, 0.2);
}

.ct-admin-page .ct-admin-stats span,
.ct-admin-page .ct-admin-muted,
.ct-admin-page .ct-admin-card-head p,
.ct-admin-page .ct-admin-table small,
.ct-admin-page .ct-admin-team-card small {
  color: #667085;
}

.ct-admin-page .ct-admin-stats span {
  display: block;
  padding-right: 10px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ct-admin-page .ct-admin-stats strong {
  display: block;
  margin-top: 7px;
  color: #101828;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ct-admin-page .ct-admin-stats small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 10px;
  line-height: 1.2;
}

.ct-admin-page .ct-admin-stats em {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ct-admin-page .ct-admin-cron-section,
.ct-admin-page .ct-admin-filter-section {
  width: 100%;
}

.ct-admin-page .ct-admin-cron-section .ct-admin-table-wrap {
  overflow-x: visible;
}

.ct-admin-page .ct-admin-cron-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ct-admin-page .ct-admin-cron-table th:nth-child(1),
.ct-admin-page .ct-admin-cron-table td:nth-child(1) {
  width: 16%;
}

.ct-admin-page .ct-admin-cron-table th:nth-child(2),
.ct-admin-page .ct-admin-cron-table td:nth-child(2) {
  width: 13%;
}

.ct-admin-page .ct-admin-cron-table th:nth-child(3),
.ct-admin-page .ct-admin-cron-table td:nth-child(3) {
  width: 15%;
}

.ct-admin-page .ct-admin-cron-table th:nth-child(4),
.ct-admin-page .ct-admin-cron-table td:nth-child(4) {
  width: 20%;
}

.ct-admin-page .ct-admin-cron-table td {
  vertical-align: top;
}

.ct-admin-page .ct-admin-cron-table td strong,
.ct-admin-page .ct-admin-cron-table td small {
  display: block;
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ct-admin-page .ct-admin-cron-table td strong + small,
.ct-admin-page .ct-admin-cron-table .ct-admin-status + small {
  margin-top: 5px;
}

.ct-admin-page .ct-admin-cron-attention {
  margin-top: 8px;
  color: #b42318;
  font-weight: 800;
}

.ct-admin-page .ct-admin-vps-cron-head {
  margin-top: 24px;
}

.ct-admin-page .ct-admin-vps-cron-table code {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.45;
}

.ct-admin-page .ct-admin-write-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-bottom: 6px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.ct-admin-page .ct-admin-write-status.wrote {
  background: rgba(19, 196, 143, 0.13);
  color: #047857;
}

.ct-admin-page .ct-admin-write-status.no-change {
  background: rgba(5, 150, 105, 0.48);
  color: #065f46;
}

.ct-admin-page .ct-admin-write-status.no-write {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.ct-admin-page .ct-admin-write-status.error {
  background: rgba(239, 68, 68, 0.14);
  color: #b42318;
}

.ct-admin-page .ct-admin-write-status.never {
  background: #eef2f6;
  color: #475467;
}

.ct-admin-page .ct-admin-write-status.legacy {
  background: rgba(99, 102, 241, 0.13);
  color: #4338ca;
}

.ct-admin-page .ct-admin-write-status.neutral {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}

.ct-admin-page .ct-admin-league-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.ct-admin-page .ct-admin-info-button {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 78, 166, 0.24);
  border-radius: 999px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  z-index: 200;
}

.ct-admin-page .ct-admin-info-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 5000;
  width: 280px;
  max-width: min(72vw, 320px);
  padding: 10px 11px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ct-admin-page .ct-admin-info-button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 5001;
  border: 5px solid transparent;
  border-top-color: #101828;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.14s ease;
}

.ct-admin-page .ct-admin-info-button:hover::after,
.ct-admin-page .ct-admin-info-button:focus::after,
.ct-admin-page .ct-admin-info-button:hover::before,
.ct-admin-page .ct-admin-info-button:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ct-admin-page .ct-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.ct-admin-page .ct-admin-card {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 18px;
}

.ct-admin-page #admin-panel-leagues,
.ct-admin-page #admin-panel-leagues .ct-admin-accordion-body,
.ct-admin-page #admin-panel-leagues .ct-admin-table-wrap,
.ct-admin-page #admin-panel-leagues .ct-admin-table,
.ct-admin-page #admin-panel-leagues td {
  overflow: visible;
}

.ct-admin-page #admin-panel-leagues tr,
.ct-admin-page #admin-panel-leagues td {
  position: relative;
}

.ct-admin-page #admin-panel-leagues tr:has(.ct-admin-info-button:hover),
.ct-admin-page #admin-panel-leagues tr:has(.ct-admin-info-button:focus),
.ct-admin-page #admin-panel-leagues td:has(.ct-admin-info-button:hover),
.ct-admin-page #admin-panel-leagues td:has(.ct-admin-info-button:focus) {
  z-index: 4000;
}

.ct-admin-page .ct-admin-accordion .ct-admin-card-head {
  align-items: center;
}

.ct-admin-page .ct-admin-accordion-toggle {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
}

.ct-admin-page .ct-admin-accordion-toggle strong {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef4f7;
  color: #00a7d8;
  font-size: 16px;
}

.ct-admin-page .ct-admin-accordion:not(.open) .ct-admin-accordion-body {
  display: none;
}

.ct-admin-page .ct-admin-user-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-user-search label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-user-search input[type="search"] {
  min-height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #101828;
}

.ct-admin-page .ct-admin-user-admin-filter {
  display: inline-flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.ct-admin-page .ct-admin-user-admin-filter input {
  width: 16px;
  height: 16px;
  accent-color: #13c48f;
}

.ct-admin-page .ct-admin-user-search small {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-cron-launch {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(110px, 0.7fr);
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-cron-launch label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-cron-launch select,
.ct-admin-page .ct-admin-cron-launch input[type="number"] {
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
  color: #101828;
}

.ct-admin-page .ct-admin-cron-check {
  grid-column: 1 / -1;
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #475467 !important;
}

.ct-admin-page .ct-admin-cron-check input {
  width: 16px;
  height: 16px;
  accent-color: #13c48f;
}

.ct-admin-page .ct-admin-cron-launch button {
  grid-column: 1 / -1;
}

.ct-admin-page .ct-admin-translations-form {
  display: grid;
  grid-template-columns: minmax(140px, 220px) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-translations-form label,
.ct-admin-page .ct-admin-translation-row {
  display: grid;
  gap: 6px;
}

.ct-admin-page .ct-admin-translations-form span {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.ct-admin-page .ct-admin-translations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ct-admin-page .ct-admin-translations-grid-single {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
}

.ct-admin-page .ct-admin-translations-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-translations-grid header {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.ct-admin-page .ct-admin-translations-grid header strong {
  color: #101828;
  font-size: 15px;
}

.ct-admin-page .ct-admin-translations-grid header span {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.ct-admin-page .ct-admin-translation-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.ct-admin-page .ct-admin-translation-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.ct-admin-page .ct-admin-translation-row > span {
  min-width: 0;
}

.ct-admin-page .ct-admin-translation-row strong {
  display: block;
  overflow: hidden;
  color: #101828;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-admin-page .ct-admin-translation-row small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-translations-form input,
.ct-admin-page .ct-admin-translation-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
  color: #101828;
  font-size: 13px;
}

.ct-admin-page .ct-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ct-admin-page .ct-admin-card-head h2 {
  margin: 3px 0 0;
  color: #101828;
  font-size: 20px;
}

.ct-admin-page .ct-admin-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}

.ct-admin-page .ct-admin-filter label {
  display: grid;
  gap: 5px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.ct-admin-page .ct-admin-filter small {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.ct-admin-page .ct-admin-highlights-filter {
  margin-bottom: 20px;
}

.ct-admin-page .ct-admin-country-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-country-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ct-admin-page .ct-admin-country-filter-head span {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.ct-admin-page .ct-admin-country-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 138px;
  overflow: auto;
  padding-right: 4px;
}

.ct-admin-page .ct-admin-country-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  cursor: pointer;
}

.ct-admin-page .ct-admin-country-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-admin-page .ct-admin-country-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  transition: 0.16s ease;
}

.ct-admin-page .ct-admin-country-chip input:checked + span {
  border-color: rgba(0, 186, 255, 0.42);
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.16), rgba(19, 196, 143, 0.16));
  color: #067647;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.ct-admin-page .ct-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

.ct-admin-page .ct-admin-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.ct-admin-page .ct-admin-table th,
.ct-admin-page .ct-admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
  vertical-align: middle;
}

.ct-admin-page .ct-admin-table th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.ct-admin-page .ct-admin-table td {
  color: #172033;
  font-size: 13px;
}

.ct-admin-page .ct-admin-table tr:last-child td {
  border-bottom: 0;
}

.ct-admin-page .ct-admin-league-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.ct-admin-page .ct-admin-league-cell > img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ct-admin-page .ct-admin-league-cell strong {
  display: block;
  color: #101828;
  font-size: 13px;
}

.ct-admin-page .ct-admin-league-cell span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085;
  font-size: 11px;
}

.ct-admin-page .ct-admin-league-cell span img {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 50%;
}

.ct-admin-page .ct-admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.ct-admin-page .ct-admin-pill.on {
  background: rgba(19, 196, 143, 0.12);
  color: #047857;
}

.ct-admin-page .ct-admin-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
}

.ct-admin-page .ct-admin-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-admin-page .ct-admin-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d0d5dd;
  cursor: pointer;
  transition: 0.18s ease;
}

.ct-admin-page .ct-admin-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
  transition: 0.18s ease;
}

.ct-admin-page .ct-admin-switch input:checked + span {
  background: linear-gradient(135deg, #00baff, #13c48f);
}

.ct-admin-page .ct-admin-switch input:checked + span::after {
  transform: translateX(20px);
}

.ct-admin-page .ct-admin-savebar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.ct-admin-page .ct-admin-services-panel {
  padding: 14px;
}

.ct-admin-page .ct-admin-services-panel .ct-admin-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ct-admin-page .ct-admin-service-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.ct-admin-page .ct-admin-service-summary span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-service-summary span.attention {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
}

.ct-admin-page .ct-admin-service-summary strong {
  color: #101828;
  font-size: 13px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.ct-admin-page .ct-admin-service-summary small {
  color: #667085;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ct-admin-page .ct-admin-schema-warning {
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.ct-admin-page .ct-admin-service-form,
.ct-admin-page .ct-admin-service-list {
  display: grid;
  gap: 8px;
}

.ct-admin-page .ct-admin-service-row {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.ct-admin-page .ct-admin-service-row.is-disabled {
  background: #f8fafc;
}

.ct-admin-page .ct-admin-service-row-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(470px, 2fr) 48px;
  gap: 8px;
  align-items: end;
}

.ct-admin-page .ct-admin-service-identity,
.ct-admin-page .ct-admin-service-controls,
.ct-admin-page .ct-admin-service-details-grid,
.ct-admin-page .ct-admin-service-add-grid {
  display: grid;
  gap: 6px;
}

.ct-admin-page .ct-admin-service-identity {
  grid-template-columns: 1fr 1fr;
}

.ct-admin-page .ct-admin-service-identity .ct-admin-service-status {
  grid-column: 1 / -1;
}

.ct-admin-page .ct-admin-service-controls {
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(126px, 0.9fr) minmax(110px, 0.8fr);
  align-items: end;
}

.ct-admin-page .ct-admin-service-row label,
.ct-admin-page .ct-admin-service-add-grid label {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #344054;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.ct-admin-page .ct-admin-service-row label > span,
.ct-admin-page .ct-admin-service-add-grid label > span {
  text-transform: uppercase;
  letter-spacing: 0;
}

.ct-admin-page .ct-admin-service-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

.ct-admin-page .ct-admin-service-status small {
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.ct-admin-page .ct-admin-service-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.16);
}

.ct-admin-page .ct-admin-service-dot.green {
  background: #13c48f;
  box-shadow: 0 0 0 3px rgba(19, 196, 143, 0.16);
}

.ct-admin-page .ct-admin-service-dot.yellow {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.ct-admin-page .ct-admin-service-dot.red {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.ct-admin-page .ct-admin-service-dot.neutral {
  background: #98a2b3;
}

.ct-admin-page .ct-admin-service-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  outline: none;
}

.ct-admin-page textarea.ct-admin-service-input {
  height: auto;
  min-height: 38px;
  resize: vertical;
}

.ct-admin-page .ct-admin-service-input:focus {
  border-color: rgba(0, 186, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-admin-page .ct-admin-service-input.service-name {
  color: #101828;
  font-weight: 900;
}

.ct-admin-page .ct-admin-service-money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 5px;
}

.ct-admin-page .ct-admin-service-input.currency {
  text-transform: uppercase;
  text-align: center;
}

.ct-admin-page .ct-admin-service-row .ct-admin-switch {
  align-self: center;
  justify-self: end;
  width: 44px;
  height: 24px;
}

.ct-admin-page .ct-admin-service-row .ct-admin-switch span::after {
  width: 18px;
  height: 18px;
}

.ct-admin-page .ct-admin-service-row .ct-admin-switch input:checked + span::after {
  transform: translateX(20px);
}

.ct-admin-page .ct-admin-service-details {
  margin-top: 6px;
}

.ct-admin-page .ct-admin-service-details summary,
.ct-admin-page .ct-admin-service-add summary {
  width: max-content;
  max-width: 100%;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ct-admin-page .ct-admin-service-details-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  margin-top: 8px;
}

.ct-admin-page .ct-admin-service-details-grid small {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ct-admin-page .ct-admin-service-add {
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-service-add-grid {
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.9fr) 130px 130px minmax(130px, 0.8fr) 120px minmax(160px, 1fr) minmax(160px, 1fr);
  align-items: end;
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .ct-admin-page .ct-admin-service-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-admin-page .ct-admin-service-row-main {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .ct-admin-page .ct-admin-service-identity,
  .ct-admin-page .ct-admin-service-controls {
    grid-column: 1 / 2;
  }

  .ct-admin-page .ct-admin-service-row-main > .ct-admin-switch {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
  }

  .ct-admin-page .ct-admin-service-details-grid,
  .ct-admin-page .ct-admin-service-add-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ct-admin-page .ct-admin-service-summary,
  .ct-admin-page .ct-admin-service-identity,
  .ct-admin-page .ct-admin-service-controls,
  .ct-admin-page .ct-admin-service-details-grid,
  .ct-admin-page .ct-admin-service-add-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-admin-page .ct-admin-service-row-main {
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: start;
  }
}

.ct-admin-data-engine-settings {
  display: grid;
  gap: 14px;
}

.ct-admin-data-engine-switch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.ct-admin-data-engine-setting {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
}

.ct-admin-data-engine-setting > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.ct-admin-data-engine-setting p {
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.ct-admin-data-engine-switch-select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 9px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.ct-admin-data-engine-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(102, 112, 133, 0.12);
}

.ct-admin-data-engine-status-dot.vps,
.ct-admin-data-engine-status-dot.enabled {
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.15);
}

.ct-admin-data-engine-status-dot.mysql {
  background: #f79009;
  box-shadow: 0 0 0 3px rgba(247, 144, 9, 0.17);
}

.ct-admin-data-engine-status-dot.disabled {
  background: #f04438;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.15);
}

.ct-admin-data-engine-settings-note {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.ct-admin-data-engine-table-wrap {
  overflow-x: visible;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

.ct-admin-data-engine-bookmaker-wrap {
  overflow-x: hidden;
}

.ct-admin-data-engine-table {
  width: 96%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0 auto;
}

.ct-admin-data-engine-table th,
.ct-admin-data-engine-table td {
  padding: 9px 7px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: center;
  vertical-align: middle;
}

.ct-admin-data-engine-table th {
  position: relative;
  background: #f8fafc;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.18;
}

.ct-admin-data-engine-table td {
  color: #172033;
  font-size: 12px;
  font-weight: 750;
}

.ct-admin-data-engine-table tr:last-child td {
  border-bottom: 0;
}

.ct-admin-data-engine-table td:first-child,
.ct-admin-data-engine-table th:first-child {
  text-align: left;
}

.ct-admin-data-engine-bookmaker-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 11px;
}

.ct-admin-data-engine-bookmaker-table .ct-bookmaker-col-name {
  width: 17%;
}

.ct-admin-data-engine-bookmaker-table .ct-bookmaker-col-flag {
  width: 8.75%;
}

.ct-admin-data-engine-bookmaker-table .ct-bookmaker-col-priority {
  width: 8%;
}

.ct-admin-data-engine-bookmaker-table .ct-bookmaker-col-count {
  width: 11%;
}

.ct-admin-data-engine-bookmaker-table th,
.ct-admin-data-engine-bookmaker-table td {
  padding: 7px 4px;
}

.ct-admin-data-engine-bookmaker-table th {
  overflow: visible;
  font-size: 9px;
  line-height: 1.1;
}

.ct-admin-data-engine-bookmaker-table td {
  overflow-wrap: anywhere;
}

.ct-admin-data-engine-bookmaker-table td:first-child strong,
.ct-admin-data-engine-bookmaker-table td:first-child span {
  display: block;
}

.ct-admin-data-engine-bookmaker-table td:first-child strong {
  color: #101828;
  font-size: 11px;
  line-height: 1.25;
}

.ct-admin-data-engine-bookmaker-table td:first-child span {
  margin-top: 3px;
  color: #667085;
  font-size: 9px;
  font-weight: 800;
}

.ct-admin-data-engine-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #12b76a;
  cursor: pointer;
}

.ct-admin-data-engine-table input[type="number"] {
  width: 44px;
  min-height: 27px;
  padding: 0 3px;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.ct-admin-data-engine-bookmaker-table .ct-admin-data-engine-info {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  font-size: 8px;
  vertical-align: middle;
}

.ct-admin-data-engine-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border: 1px solid rgba(23, 78, 166, 0.24);
  border-radius: 999px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  z-index: 10;
}

.ct-admin-data-engine-info::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 2000;
  width: 280px;
  max-width: min(72vw, 320px);
  padding: 10px 11px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ct-admin-data-engine-info:hover::after,
.ct-admin-data-engine-info:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1180px) {
  .ct-admin-data-engine-switch-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .ct-admin-data-engine-switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ct-admin-data-engine-switch-grid {
    grid-template-columns: 1fr;
  }
}

.ct-admin-page .ct-admin-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-weight: 800;
}

.ct-admin-page .ct-admin-lazy-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  color: #667085;
  font-weight: 800;
}

.ct-admin-page .ct-admin-lazy-loader i {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: #174ea6;
  border-radius: 50%;
  animation: ct-admin-spin .75s linear infinite;
}

.ct-admin-page .ct-admin-accordion:not(.is-loading) .ct-admin-lazy-loader i {
  animation-play-state: paused;
}

@keyframes ct-admin-spin {
  to {
    transform: rotate(360deg);
  }
}

.ct-admin-page .ct-admin-cron-list {
  display: grid;
  gap: 10px;
}

.ct-admin-page .ct-admin-cron-list > div {
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-cron-list strong {
  color: #101828;
}

.ct-admin-page .ct-admin-cron-list small {
  display: block;
  margin-top: 5px;
  color: #667085;
  line-height: 1.35;
}

.ct-admin-page .ct-admin-cron-list p {
  margin: 8px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
}

.ct-admin-page .ct-admin-status {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
}

.ct-admin-page .ct-admin-status.success {
  background: rgba(19, 196, 143, 0.12);
  color: #047857;
}

.ct-admin-page .ct-admin-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
}

.ct-admin-page .ct-admin-team-grid,
.ct-admin-page .ct-admin-team-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ct-admin-page .ct-admin-team-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
}

.ct-admin-page .ct-admin-team-group header {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-admin-page .ct-admin-team-group header span {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-admin-page .ct-admin-team-group header strong {
  display: block;
  margin-top: 2px;
  color: #101828;
  font-size: 14px;
  line-height: 1.25;
}

.ct-admin-page .ct-admin-team-list {
  display: grid;
  gap: 8px;
}

.ct-admin-page .ct-admin-team-card {
  display: grid;
  grid-template-columns: auto 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
}

.ct-admin-page .ct-admin-team-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ct-admin-page .ct-admin-team-card strong {
  display: block;
  overflow: hidden;
  color: #101828;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-admin-page .ct-admin-team-card span {
  min-width: 0;
  display: block;
}

.ct-admin-page .ct-admin-team-card small {
  display: block;
  color: #667085;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
}

.ct-admin-page .ct-admin-team-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #13c48f;
}

@media (max-width: 980px) {
  .ct-admin-page .ct-admin-hero,
  .ct-admin-page .ct-admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-admin-page .ct-admin-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ct-admin-page .ct-admin-grid,
  .ct-admin-page .ct-admin-filter,
  .ct-admin-page .ct-admin-cron-launch,
  .ct-admin-page .ct-admin-user-search,
  .ct-admin-page .ct-admin-translations-form,
  .ct-admin-page .ct-admin-translations-grid,
  .ct-admin-page .ct-admin-team-groups {
    grid-template-columns: 1fr;
  }

  .ct-admin-page .ct-admin-cron-section .ct-admin-table-wrap {
    overflow-x: auto;
  }

  .ct-admin-page .ct-admin-cron-table {
    min-width: 820px;
  }

  .ct-admin-page .ct-admin-accordion-toggle {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .ct-admin-page .ct-admin-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ct-admin-page .ct-admin-shell {
    width: min(100% - 20px, 1180px);
  }

  .ct-admin-page .ct-admin-hero {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .ct-admin-page .ct-admin-actions {
    justify-content: stretch;
  }

  .ct-admin-page .ct-admin-actions form,
  .ct-admin-page .ct-admin-actions > a,
  .ct-admin-page .ct-admin-actions button {
    width: 100%;
  }

  .ct-admin-page .ct-admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-admin-page .ct-admin-card,
  .ct-admin-page .ct-admin-stats-panel {
    padding: 12px;
    border-radius: 14px;
  }

  body.ct-match-page {
    padding: 76px 0 28px;
  }

  body.ct-match-page.ct-match-embed {
    padding: 0 0 28px;
  }

  .ct-match-topbar {
    padding: 10px 12px;
  }

  .ct-match-brand img {
    width: 38px;
    height: 38px;
  }

  .ct-match-back {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .ct-match-hero,
  .ct-match-panel {
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .ct-match-hero {
    padding: 16px 12px;
  }

  .ct-match-scoreboard {
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    gap: 8px;
  }

  .ct-match-scoreboard article img {
    width: 58px;
    height: 58px;
  }

  .ct-match-scoreboard article strong {
    font-size: 15px;
  }

  .ct-match-score {
    min-width: 0;
  }

  .ct-match-score strong {
    font-size: 26px;
  }

  .ct-match-hero-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .ct-match-hero-odd {
    min-height: 40px;
    padding: 6px 7px;
    border-radius: 11px;
  }

  .ct-match-hero-odd span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .ct-match-hero-odd strong {
    font-size: 16px;
  }

  .ct-match-hero-odd em {
    font-size: 11px;
  }

  .ct-match-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ct-match-panel {
    padding: 14px 12px;
  }

  .ct-match-highlight-frame {
    border-radius: 0;
  }

  .ct-match-odds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .ct-match-market .ct-match-odds-grid {
    padding: 6px;
  }

  .ct-match-odd {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 6px;
  }

  .ct-match-odd span {
    font-size: 10px;
  }

  .ct-match-odd strong {
    font-size: 13px;
  }

  .ct-match-odd em {
    display: none;
  }

  .ct-match-popular div,
  .ct-match-events div {
    align-items: flex-start;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ct-match-popular div {
    display: grid;
  }

  .ct-match-popular span {
    white-space: normal;
  }

  .ct-match-events span {
    grid-column: 2;
  }

  .ct-match-events strong,
  .ct-match-events small {
    grid-column: 2;
  }

  .ct-match-compare-table div {
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    gap: 7px;
  }

  .ct-match-standings-table {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .ct-match-standings-table > div {
    min-width: 540px;
  }

  .ct-match-stat-row {
    grid-template-columns: minmax(0, 1fr) 98px minmax(0, 1fr);
    gap: 7px;
  }

  .ct-match-market summary,
  .ct-match-more-markets > summary {
    padding: 11px;
  }
}

/* Search-first public homepage */
body.ct-auth-page:not(.ct-admin-page) {
  min-height: 100vh;
  height: auto;
  padding-top: 82px;
  overflow-x: hidden;
  color: #101828;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 186, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f7 48%, #f8fafc 100%);
}

.ct-auth-page:not(.ct-admin-page) .topbar {
  height: 70px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ct-auth-page:not(.ct-admin-page) .topbar-left img,
.ct-search-brand-mark img {
  border-radius: 50%;
  object-fit: cover;
}

.ct-auth-page:not(.ct-admin-page) .topbar-left img {
  width: 46px !important;
  height: 46px !important;
  padding: 6px;
  background: #101828;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.18);
  object-fit: contain;
}

.ct-search-home {
  width: min(1240px, calc(100% - 28px));
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 0 0 72px;
}

.ct-search-hero {
  width: min(1080px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: 88px;
}

.ct-search-brand-mark {
  display: none;
}

.ct-search-brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

.ct-search-hero h1 {
  margin: -22px 0 0;
  color: #101828;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.ct-search-hero p {
  width: min(760px, 100%);
  margin: 18px 0 34px;
  color: #475467;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.ct-search-hero p strong {
  color: #101828;
  font-weight: 900;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 186, 255, 0.2) 58%);
}

.ct-auth-page:not(.ct-admin-page) .search-area {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.ct-auth-page:not(.ct-admin-page) .search-wrapper {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 8px 0 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.ct-auth-page:not(.ct-admin-page) #search-input {
  flex: 1;
  min-width: 0;
  height: 62px;
  border: 0;
  background: transparent;
  color: #101828;
  font-size: 17px;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.ct-auth-page:not(.ct-admin-page) #search-input:focus {
  outline: none;
  box-shadow: none;
}

.ct-auth-page:not(.ct-admin-page) #search-input::placeholder {
  color: #98a2b3;
}

.ct-auth-page:not(.ct-admin-page) .search-wrapper svg {
  position: static;
  width: 24px;
  height: 24px;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  transform: none;
}

.ct-auth-page:not(.ct-admin-page) .ct-search-submit {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 186, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ct-auth-page:not(.ct-admin-page) .ct-search-submit:hover {
  filter: brightness(1.03);
  transform: scale(1.03);
  box-shadow: 0 0 10px rgba(0, 186, 255, 0.45), 0 14px 28px rgba(19, 196, 143, 0.24);
}

.ct-auth-page:not(.ct-admin-page) .ct-search-submit:focus-visible {
  outline: 0;
  transform: scale(1.03);
  box-shadow: 0 0 0 4px rgba(0, 186, 255, 0.18), 0 14px 28px rgba(19, 196, 143, 0.24);
}

.ct-auth-page:not(.ct-admin-page) .ct-search-submit svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList {
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  background-clip: padding-box;
  scrollbar-color: #00baff #eef2f7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList::-webkit-scrollbar {
  width: 10px;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 999px;
  background: #eef2f7;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f7;
  border-radius: 999px;
  background: linear-gradient(180deg, #00baff, #13c48f);
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList.is-open {
  display: block;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #101828;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList li:last-child {
  border-bottom: 0;
}

.ct-auth-page:not(.ct-admin-page) #suggestionsList li:hover,
.ct-auth-page:not(.ct-admin-page) #suggestionsList li.is-active {
  background: #f2f4f7;
}

.ct-search-suggestion-league {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f8fafc;
}

.ct-search-league-logo {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.ct-search-suggestion-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1 1 0;
  text-align: left;
}

.ct-search-suggestion-main strong {
  overflow: hidden;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-search-suggestion-main .ct-search-matchline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.ct-search-suggestion-main .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}

.ct-search-suggestion-main .ct-team-home {
  justify-content: flex-start;
  text-align: left;
}

.ct-search-suggestion-main .ct-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ct-search-suggestion-main .ct-team-name {
  min-width: 0;
  flex: 0 1 auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-search-suggestion-main .ct-team-logo {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex: 0 0 auto;
}

.ct-search-suggestion-main .ct-vs-pill {
  justify-self: center;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ct-search-suggestion-main em {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-search-fixture-state {
  flex: 0 0 auto;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 8px;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.ct-search-fixture-state strong {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ct-search-fixture-state em {
  color: #101828;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ct-search-fixture-state.is-finished strong {
  background: #eef2f7;
  color: #344054;
}

.ct-search-fixture-state.is-live strong {
  background: #fef3f2;
  color: #b42318;
}

.ct-search-fixture-state.is-live em {
  color: #b42318;
}

@media (max-width: 640px) {
  .ct-search-fixture-state {
    min-width: 92px;
    gap: 6px;
  }

  .ct-search-fixture-state strong {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  .ct-search-fixture-state em {
    font-size: 12px;
  }
}

.ct-search-suggestion-meta {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(48px, auto));
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.ct-search-suggestion-meta small {
  width: 100%;
  min-width: 48px;
  height: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.ct-search-empty {
  justify-content: center;
  color: #667085;
  font-weight: 800;
}

.ct-auth-page:not(.ct-admin-page) .action-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.ct-auth-page:not(.ct-admin-page) .ct-public-share-button svg {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  fill: currentColor;
  vertical-align: -3px;
}

.ct-search-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.ct-search-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.ct-auth-page:not(.ct-admin-page) .modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.ct-auth-page:not(.ct-admin-page) .modal-overlay.active {
  display: flex;
}

.ct-auth-page:not(.ct-admin-page) .modal-box {
  position: relative;
  inset: auto;
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
  max-height: calc(100dvh - 34px);
  margin: auto;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
  text-align: center;
  transform: none;
}

.ct-auth-page:not(.ct-admin-page) .modal-overlay.active .modal-box {
  transform: none;
}

.ct-auth-page:not(.ct-admin-page) .modal-box-register {
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
}

.ct-auth-page:not(.ct-admin-page) .modal-box h2 {
  width: min(100%, 430px);
  margin: 0 auto 10px;
  color: #101828;
  font-size: 24px;
  line-height: 1.15;
  text-align: center;
}

.ct-auth-page:not(.ct-admin-page) .modal-box p {
  width: min(100%, 440px);
  margin: 0 auto 18px;
  color: #475467;
  line-height: 1.5;
  text-align: center;
}

.ct-auth-page:not(.ct-admin-page) .modal-box strong {
  color: #101828;
}

.ct-auth-page:not(.ct-admin-page) .modal-box a {
  color: #007aa3;
  font-weight: 800;
}

.ct-auth-page:not(.ct-admin-page) .modal-box form {
  display: grid;
  gap: 11px;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .modal-box form button,
.ct-auth-page:not(.ct-admin-page) .modal-box .btn,
.ct-auth-page:not(.ct-admin-page) .modal-box .btn-light,
.ct-auth-page:not(.ct-admin-page) .modal-box .btn-secondary {
  justify-content: center;
  text-align: center;
}

.ct-auth-page:not(.ct-admin-page) .ct-public-share-modal {
  width: min(460px, calc(100% - 28px));
}

.ct-auth-page:not(.ct-admin-page) .ct-auth-feedback-modal {
  width: min(420px, calc(100% - 28px));
}

.ct-auth-page:not(.ct-admin-page) .ct-auth-feedback-modal p {
  white-space: pre-line;
}

.ct-auth-page:not(.ct-admin-page) .ct-auth-feedback-modal .btn-login {
  width: 100%;
  justify-content: center;
}

.ct-auth-page:not(.ct-admin-page) .ct-search-results-modal {
  width: min(980px, calc(100vw - 36px));
  max-width: 980px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.ct-search-results-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f2f4f7;
}

.ct-search-results-tabs button {
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.ct-search-results-tabs button.is-active {
  background: #fff;
  color: #101828;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.ct-search-results-tabs span {
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #e4e7ec;
  color: #475467;
  font-size: 10px;
  line-height: 1;
}

.ct-search-results-tabs button.is-active span {
  background: #00baff;
  color: #fff;
}

.ct-search-results-panels {
  margin-top: 14px;
}

.ct-search-results-list {
  width: 100%;
  max-height: min(58dvh, 540px);
  display: grid;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  list-style: none;
  scrollbar-color: #00baff #eef2f7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.ct-search-results-list[hidden] {
  display: none;
}

.ct-search-results-list::-webkit-scrollbar {
  width: 10px;
}

.ct-search-results-list::-webkit-scrollbar-track {
  margin: 8px 0;
  border-radius: 999px;
  background: #eef2f7;
}

.ct-search-results-list::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f7;
  border-radius: 999px;
  background: linear-gradient(180deg, #00baff, #13c48f);
}

.ct-search-results-list .ct-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 66px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #101828;
  cursor: pointer;
}

.ct-search-results-list .ct-search-suggestion:last-child {
  border-bottom: 0;
}

.ct-search-results-list .ct-search-suggestion:hover {
  background: #f2f4f7;
}

.ct-search-entity-result {
  min-width: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #101828;
  list-style: none;
}

.ct-search-entity-result:last-child {
  border-bottom: 0;
}

.ct-search-entity-link {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: inherit;
  text-align: left;
  text-decoration: none;
}

.ct-search-entity-link:hover {
  background: #f2f4f7;
}

.ct-search-entity-media {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
}

.ct-search-entity-logo,
.ct-search-entity-avatar {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.ct-search-entity-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
}

.ct-search-entity-placeholder {
  color: #008cc4;
  font-size: 14px;
  font-weight: 950;
}

.ct-search-entity-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ct-search-entity-main strong,
.ct-search-entity-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-search-entity-main strong {
  color: #101828;
  font-size: 14px;
  font-weight: 950;
}

.ct-search-entity-main em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.ct-search-entity-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ct-search-entity-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
}

.ct-search-entity-action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf8ff;
  color: #007ead;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.ct-search-results-empty {
  display: grid;
  gap: 5px;
  padding: 18px;
  color: #667085;
  font-weight: 800;
  text-align: center;
}

.ct-search-results-empty strong {
  color: #101828;
  font-size: 14px;
}

.ct-search-results-empty span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ct-search-results-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    overflow: visible;
  }

  .ct-search-results-tabs button {
    min-height: 34px;
    gap: 3px;
    padding: 0 3px;
    border-radius: 7px;
    font-size: 10px;
  }

  .ct-search-results-tabs span {
    min-width: 18px;
    min-height: 18px;
    padding: 0 4px;
    font-size: 9px;
  }

  .ct-search-entity-link {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .ct-search-entity-media {
    width: 42px;
    height: 42px;
  }

  .ct-search-entity-avatar {
    width: 42px;
    height: 42px;
  }

  .ct-search-entity-action {
    grid-column: 2;
    justify-self: start;
  }
}

.ct-public-share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ct-public-share-option {
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  color: #101828;
  font-weight: 900;
  cursor: pointer;
}

.ct-public-share-option:hover {
  border-color: rgba(0, 186, 255, 0.32);
  background: #fff;
}

.ct-auth-page:not(.ct-admin-page) input,
.ct-auth-page:not(.ct-admin-page) select,
.ct-auth-page:not(.ct-admin-page) textarea,
.ct-auth-page:not(.ct-admin-page) .modal-box form input,
.ct-auth-page:not(.ct-admin-page) .modal-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  color: #101828;
  font: inherit;
  outline: none;
}

.ct-auth-page:not(.ct-admin-page) input::placeholder,
.ct-auth-page:not(.ct-admin-page) textarea::placeholder {
  color: #98a2b3;
}

.ct-auth-page:not(.ct-admin-page) input:focus,
.ct-auth-page:not(.ct-admin-page) select:focus,
.ct-auth-page:not(.ct-admin-page) textarea:focus {
  border-color: rgba(0, 186, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-auth-page:not(.ct-admin-page) .input-password-wrapper {
  position: relative;
}

.ct-auth-page:not(.ct-admin-page) .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
}

.ct-auth-page:not(.ct-admin-page) .input-password-wrapper input {
  padding-right: 62px;
}

.ct-auth-page:not(.ct-admin-page) small {
  display: block;
  margin: -4px 0 2px;
  color: #667085;
  font-size: 12px;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #475467;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .checkbox-wrapper input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  accent-color: #13c48f;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-accept {
  position: relative;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
  padding: 12px 13px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-accept input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-auth-page:not(.ct-admin-page) .ct-checkmark {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border: 2px solid rgba(15, 23, 42, 0.18);
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ct-auth-page:not(.ct-admin-page) .ct-checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(42deg) scale(0.8);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-accept input:checked + .ct-checkmark {
  border-color: #13c48f;
  background: linear-gradient(135deg, #00baff, #13c48f);
  box-shadow: 0 8px 18px rgba(19, 196, 143, 0.24);
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-accept input:checked + .ct-checkmark::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.ct-auth-page:not(.ct-admin-page) .btn-disabled {
  background: #d0d5dd !important;
  color: #667085 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.ct-auth-page:not(.ct-admin-page) #docsPanel {
  position: fixed;
  z-index: 4000;
  inset: auto 18px 18px auto;
  display: none;
  width: min(520px, calc(100% - 36px));
  max-height: 75dvh;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #101828;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.ct-auth-page:not(.ct-admin-page) #docsPanel h3 {
  margin-top: 14px;
  color: #007aa3;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-overlay {
  z-index: 10020;
  background: transparent;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-modal {
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-scroll {
  max-height: min(52dvh, 430px);
  overflow-y: auto;
  margin: 12px 0 0;
  padding: 14px 16px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #f8fafc;
  color: #344054;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-scroll h3 {
  margin: 0 0 6px;
  color: #101828;
  font-size: 15px;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-scroll h3:not(:first-child) {
  margin-top: 13px;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-scroll p {
  width: auto;
  margin: 0 0 9px;
  color: #475467;
  font-size: 14px;
  line-height: 1.46;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-read-btn {
  min-width: 132px;
  opacity: 0.52;
  filter: grayscale(0.35);
  cursor: pointer;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-read-btn.is-ready {
  opacity: 1;
  filter: none;
}

.ct-auth-page:not(.ct-admin-page) .ct-terms-error {
  min-height: 18px;
  color: #d92d20;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  body.ct-auth-page:not(.ct-admin-page) {
    padding-top: 86px;
  }

  .ct-auth-page:not(.ct-admin-page) .topbar {
    height: auto;
    min-height: 72px;
    flex-direction: row;
    padding: 10px 12px;
  }

  .ct-search-home {
    width: min(100% - 20px, 1120px);
    min-height: calc(100vh - 90px);
    padding-top: 4px;
  }

  .ct-search-brand-mark {
    width: 64px;
    height: 64px;
  }

  .ct-search-brand-mark img {
    width: 46px;
    height: 46px;
  }

  .ct-search-hero p {
    margin-top: 14px;
  }

  .ct-auth-page:not(.ct-admin-page) .search-wrapper {
    min-height: 58px;
    padding-left: 18px;
  }

  .ct-auth-page:not(.ct-admin-page) #search-input {
    height: 56px;
    font-size: 15px;
  }

  .ct-auth-page:not(.ct-admin-page) .action-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ct-auth-page:not(.ct-admin-page) .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .ct-auth-page:not(.ct-admin-page) .modal-box {
    width: min(460px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    height: auto;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 0 16px 18px;
    border: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    text-align: center;
  }

  .ct-auth-page:not(.ct-admin-page) .ct-terms-modal {
    width: min(460px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    padding: 0 16px 18px;
  }

  .ct-auth-page:not(.ct-admin-page) .modal-close {
    position: absolute;
    top: 9px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
  }

  .ct-auth-page:not(.ct-admin-page) .modal-box > h2,
  .ct-auth-page:not(.ct-admin-page) .modal-box-register #teamSelectorWrapper > h2,
  .ct-auth-page:not(.ct-admin-page) .modal-box-register #registerFormWrapper > h2 {
    position: relative;
    z-index: 2;
    width: calc(100% + 32px);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -16px 16px;
    padding: 10px 56px;
    border-radius: 10px 10px 0 0;
    background: #101828;
    color: #fff;
    font-size: 18px;
    text-align: center;
  }

  .ct-auth-page:not(.ct-admin-page) .modal-box p {
    width: 100%;
    text-align: center;
  }

  .ct-auth-page:not(.ct-admin-page) .ct-terms-scroll {
    max-height: min(52dvh, 430px);
    flex: 1 1 auto;
    padding: 15px;
  }

  .ct-auth-page:not(.ct-admin-page) .ct-search-results-list {
    max-height: min(54dvh, 520px);
    flex: 1 1 auto;
    margin-top: 10px;
    border-radius: 14px;
  }

  .ct-auth-page:not(.ct-admin-page) .ct-terms-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ct-auth-page:not(.ct-admin-page) .ct-terms-read-btn {
    width: 100%;
  }
}

/* Admin login page aligned with the public search-first homepage */
body.ct-admin-page {
  min-height: 100vh;
  padding-top: 82px;
  overflow-x: hidden;
  color: #101828;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 186, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef4f7 48%, #f8fafc 100%);
}

.ct-admin-page .topbar {
  height: 70px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ct-admin-page .topbar-left img {
  width: 46px !important;
  height: 46px !important;
  padding: 6px;
  border-radius: 50%;
  background: #101828;
  object-fit: contain;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.18);
}

.ct-admin-login-home {
  width: min(1120px, calc(100% - 28px));
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: start center;
  margin: 0 auto;
  padding: clamp(8px, 5vh, 42px) 0 54px;
}

.ct-admin-login-hero {
  width: min(900px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
}

.ct-admin-login-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.ct-admin-login-hero p {
  width: min(700px, 100%);
  margin: 18px 0 0;
  color: #667085;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.ct-admin-page #loginAdminModal .modal-box {
  position: relative;
  inset: auto;
  width: min(460px, calc(100% - 28px));
  max-width: 460px;
  max-height: calc(100dvh - 34px);
  margin: auto;
  overflow-y: auto;
  padding: 0 24px 24px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
  text-align: center;
  transform: none;
}

.ct-admin-page #loginAdminModal .modal-box h2 {
  width: calc(100% + 48px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -24px 18px;
  padding: 0 62px;
  border-radius: 10px 10px 0 0;
  background: #101828;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
}

.ct-admin-page #loginAdminModal .modal-box p {
  width: min(100%, 440px);
  margin: 0 auto 18px;
  color: #475467;
  line-height: 1.5;
  text-align: center;
}

.ct-admin-page #loginAdminModal .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.ct-admin-page #loginAdminModal .modal-close:hover {
  background: rgba(0, 186, 255, 0.18);
  color: #fff;
}

.ct-admin-page #loginAdminModal .ct-admin-login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: 8px;
  background: rgba(254, 243, 242, 0.92);
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.ct-admin-page #loginAdminModal .modal-box form {
  display: grid;
  gap: 11px;
  margin-top: 8px;
  text-align: left;
}

.ct-admin-page #loginAdminModal .modal-box form button,
.ct-admin-page #loginAdminModal .modal-box .btn {
  justify-content: center;
  text-align: center;
}

.ct-admin-page #loginAdminModal input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 15px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  color: #101828;
  font: inherit;
  outline: none;
  box-shadow: none;
}

.ct-admin-page #loginAdminModal .input-password-wrapper {
  position: relative;
}

.ct-admin-page #loginAdminModal .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
}

.ct-admin-page #loginAdminModal .input-password-wrapper input {
  margin-bottom: 0;
  padding-right: 62px;
}

.ct-auth-page:not(.ct-admin-page) .search-wrapper input {
  border: 0;
}

.ct-auth-page:not(.ct-admin-page) .search-wrapper input:focus {
  border: 0;
  box-shadow: none;
}

.ct-search-hero p {
  margin-top: clamp(22px, 3vw, 34px);
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.ct-auth-page:not(.ct-admin-page) .modal-box {
  padding: 0 24px 24px;
  border: 0;
  border-radius: 10px;
}

.ct-auth-page:not(.ct-admin-page) .modal-box > h2,
.ct-auth-page:not(.ct-admin-page) .modal-box-register #teamSelectorWrapper > h2,
.ct-auth-page:not(.ct-admin-page) .modal-box-register #registerFormWrapper > h2 {
  width: calc(100% + 48px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -24px 18px;
  padding: 0 62px;
  border-radius: 10px 10px 0 0;
  background: #101828;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
}

.ct-auth-page:not(.ct-admin-page) .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.ct-auth-page:not(.ct-admin-page) .modal-close:hover {
  background: rgba(0, 186, 255, 0.18);
  color: #fff;
}

.ct-search-results-modal #searchResultsSummary:empty {
  display: none;
}

.ct-auth-page:not(.ct-admin-page) #loginModal .modal-box form {
  margin-top: 8px;
}

.ct-auth-page:not(.ct-admin-page) #registerForm {
  gap: 7px;
}

.ct-auth-page:not(.ct-admin-page) #registerForm small:empty {
  display: none;
}

.ct-auth-page:not(.ct-admin-page) #registerForm small:not(:empty) {
  margin: 0 0 3px;
}

.ct-auth-page:not(.ct-admin-page) .ct-code-input {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 6px;
}

.ct-auth-page:not(.ct-admin-page) .ct-form-message {
  min-height: 18px;
  margin: 0;
  text-align: center;
}

.ct-auth-page:not(.ct-admin-page) .ct-form-message:empty {
  display: none;
}

.ct-auth-page:not(.ct-admin-page) .ct-form-message.is-success {
  color: #047857;
}

.ct-auth-page:not(.ct-admin-page) .ct-form-message.is-error {
  color: #b42318;
}

.ct-admin-page #loginAdminModal input::placeholder {
  color: #98a2b3;
}

.ct-admin-page #loginAdminModal input:focus {
  border-color: rgba(0, 186, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-admin-page #loginAdminModal .btn-login {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.28);
  cursor: pointer;
}

@media (max-width: 640px) {
  body.ct-admin-page {
    padding-top: 86px;
  }

  .ct-admin-page .topbar {
    height: auto;
    min-height: 72px;
    flex-direction: row;
    padding: 10px 12px;
  }

  .ct-admin-page .topbar-left,
  .ct-admin-page .topbar-right {
    width: auto;
    justify-content: flex-start;
  }

  .ct-admin-login-home {
    width: min(100% - 20px, 1120px);
    min-height: calc(100vh - 90px);
    padding-top: 4px;
  }
}

/* WebView dashboard refinements */
html:has(body.ct-dashboard-page),
body.ct-dashboard-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.ct-dashboard-page)::-webkit-scrollbar,
body.ct-dashboard-page::-webkit-scrollbar,
.ct-dashboard-page *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.ct-dashboard-foundation.ct-dashboard-page .ct-appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  transform: translateZ(0);
  will-change: transform;
  contain: layout paint;
}

/* Match page topbars reuse the public homepage and dashboard headers. */
body.ct-match-page.ct-match-public,
body.ct-match-page.ct-match-logged {
  min-height: 100vh;
  margin: 0;
  color: #101828;
  background: #f4f7fb;
}

body.ct-match-page.ct-match-public {
  padding: 92px 16px 48px;
}

body.ct-match-page.ct-match-logged {
  padding: 92px 16px 48px;
}

body.ct-match-page.ct-match-public .topbar,
body.ct-match-page.ct-match-logged .ct-appbar {
  z-index: 3000;
}

body.ct-match-page.ct-match-public .modal-overlay {
  z-index: 4200;
}

body.ct-match-page.ct-match-public .ct-terms-overlay {
  z-index: 10020;
}

body.ct-match-page.ct-match-public .topbar-right .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  body.ct-match-page.ct-match-public,
  body.ct-match-page.ct-match-logged {
    padding: 76px 0 28px;
  }
}

/* Logged appbar compact actions */
body.ct-dashboard-foundation.ct-dashboard-page .ct-appbar,
.ct-dashboard-page .ct-appbar {
  z-index: 3000;
  overflow: visible;
  contain: layout;
}

.ct-dashboard-page .ct-user-summary {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.ct-dashboard-page .ct-user-actions {
  position: relative;
  z-index: 3;
  overflow: visible;
  isolation: auto;
}

.ct-dashboard-page .ct-user-actions .ct-user-more {
  position: relative;
  z-index: 4;
  display: inline-flex;
}

.ct-dashboard-page .ct-user-actions .ct-user-action-primary {
  flex: 0 0 auto;
}

.ct-dashboard-page .ct-user-actions > .ct-user-action-primary {
  transform: translateX(-10px);
}

.ct-dashboard-page .ct-user-actions > .ct-user-action-primary:hover {
  transform: translateX(-10px) translateY(-1px);
}

.ct-dashboard-page .ct-user-summary.is-searching .ct-user-actions > .ct-user-action-primary[data-topbar-search] {
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 186, 255, 0.24);
  z-index: 2;
}

.ct-dashboard-page .ct-topbar-fixture-search {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.ct-dashboard-page .ct-topbar-fixture-search .search-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 13px 0 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: none;
  backdrop-filter: none;
}

.ct-dashboard-page .ct-user-summary.is-searching .ct-topbar-fixture-search .search-wrapper {
  width: calc(100% + 33px);
  padding-right: 43px;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-input] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #101828;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-input]::placeholder {
  color: #98a2b3;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-submit {
  width: 0;
  height: 0;
  min-width: 0;
  flex: 0 0 0;
  display: block;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #00baff, #13c48f);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 186, 255, 0.18);
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 3650;
  display: none;
  max-height: min(390px, calc(100vh - 104px));
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #101828;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  scrollbar-color: #00baff #eef2f7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions].is-open {
  display: block;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #101828;
  cursor: pointer;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] li:last-child {
  border-bottom: 0;
}

.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] li:hover,
.ct-dashboard-page .ct-topbar-fixture-search [data-fixture-search-suggestions] li.is-active {
  background: #f2f4f7;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-league {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafc;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-league-logo {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1 1 0;
  overflow: visible;
  color: inherit;
  text-align: left;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main .ct-search-matchline {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: visible;
  color: #101828;
  line-height: 1.2;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main .ct-team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: visible;
  line-height: 1.2;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main .ct-team-logo {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  object-fit: contain;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main strong,
.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main .ct-team-name {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-suggestion-main em {
  display: block;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-fixture-state {
  flex: 0 0 auto;
  min-width: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 6px;
  margin-left: auto;
  overflow: visible;
  text-align: right;
  white-space: nowrap;
}

.ct-dashboard-page .ct-topbar-fixture-search .ct-search-fixture-state strong {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.ct-dashboard-page .ct-search-results-modal {
  position: relative;
  inset: auto;
  width: min(980px, calc(100vw - 36px));
  max-width: 980px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 0 24px 24px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  text-align: center;
}

#searchResultsModal.modal-overlay {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.ct-dashboard-page .ct-search-results-modal > h2 {
  width: calc(100% + 48px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -24px 18px;
  padding: 0 62px;
  border-radius: 10px 10px 0 0;
  background: #101828;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
}

.ct-dashboard-page .ct-search-results-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.ct-dashboard-page .ct-search-results-modal .modal-close:hover {
  background: rgba(0, 186, 255, 0.18);
  color: #fff;
}

@media (max-width: 640px) {
  #searchResultsModal.modal-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  #searchResultsModal .ct-search-results-modal {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0 10px 10px;
    border-radius: 0;
  }

  #searchResultsModal .ct-search-results-modal > h2 {
    flex: 0 0 auto;
    width: calc(100% + 20px);
    min-height: 46px;
    margin: 0 -10px;
    padding: 0 48px;
    border-radius: 0;
    font-size: 17px;
  }

  #searchResultsModal .ct-search-results-modal .modal-close {
    top: 5px;
    right: 7px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 24px;
  }

  #searchResultsModal .ct-search-results-tabs {
    flex: 0 0 auto;
    margin-top: 8px;
  }

  #searchResultsModal .ct-search-results-panels {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
  }

  #searchResultsModal .ct-search-results-list {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    border-radius: 12px;
  }
}

.ct-dashboard-page .ct-user-actions .ct-user-more-toggle[aria-expanded="true"] {
  background: transparent;
  color: #dc2626;
}

.ct-dashboard-page .ct-user-more-toggle {
  overflow: visible;
}

.ct-dashboard-page .ct-more-dots {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  transform: rotate(0deg);
  transition: transform 220ms cubic-bezier(.2,.86,.24,1);
}

.ct-dashboard-page .ct-more-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition:
    left 190ms cubic-bezier(.2,.86,.24,1),
    top 190ms cubic-bezier(.2,.86,.24,1),
    opacity 150ms ease,
    transform 190ms cubic-bezier(.2,.86,.24,1),
    background 150ms ease;
}

.ct-dashboard-page .ct-more-dot-top {
  top: 0.5px;
}

.ct-dashboard-page .ct-more-dot-center {
  top: 6px;
}

.ct-dashboard-page .ct-more-dot-bottom {
  top: 11.5px;
}

.ct-dashboard-page .ct-more-dot-left,
.ct-dashboard-page .ct-more-dot-right {
  top: 6px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
}

.ct-dashboard-page .ct-user-more.is-open .ct-more-dots {
  transform: rotate(45deg);
}

.ct-dashboard-page .ct-user-more.is-open .ct-more-dot {
  background: #dc2626;
}

.ct-dashboard-page .ct-user-more.is-open .ct-more-dot-left {
  left: 2.25px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ct-dashboard-page .ct-user-more.is-open .ct-more-dot-right {
  left: 13.75px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ct-dashboard-page .ct-user-more.is-open .ct-more-alert-badge {
  opacity: 0;
  transform: scale(0.55);
}

.ct-dashboard-page .ct-user-actions .ct-more-alert-badge {
  transition: opacity 150ms ease, transform 150ms ease;
}

.ct-dashboard-page .ct-user-more-menu {
  position: absolute;
  top: calc(100% + 2px);
  right: -8px;
  z-index: 3600;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 7px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14), inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0 round 999px);
  transform: translateY(-10px) scaleY(0.72);
  transform-origin: top center;
  transition:
    opacity 170ms ease,
    clip-path 210ms cubic-bezier(.2,.86,.24,1),
    transform 210ms cubic-bezier(.2,.86,.24,1);
}

.ct-dashboard-page .ct-user-more.is-open .ct-user-more-menu {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 999px);
  transform: translateY(0) scale(1);
}

.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-item {
  width: 38px !important;
  min-width: 0;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #101828;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform: none;
}

.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-item:hover,
.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-item.active {
  background: rgba(0, 186, 255, 0.11);
  color: #008ec2;
  transform: none;
}

.ct-dashboard-page .ct-user-more-menu .ct-user-more-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.ct-dashboard-page .ct-user-more-menu .ct-user-more-item span:not(.ct-icon-badge) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  border: 2px solid #dc2626;
}

.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-refresh,
.ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-logout {
  display: none !important;
}

@media (max-width: 640px) {
  .ct-dashboard-page .ct-user-actions {
    position: static;
  }

  .ct-dashboard-page .ct-user-actions .ct-user-more {
    position: relative;
  }

  .ct-dashboard-page .ct-user-more-menu {
    top: calc(100% + 2px);
    right: -8px;
    padding: 7px;
    width: 52px;
    border-radius: 18px;
    clip-path: inset(0 0 100% 0 round 18px);
  }

  .ct-dashboard-page .ct-user-more.is-open .ct-user-more-menu {
    clip-path: inset(0 0 0 0 round 18px);
  }

  .ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-refresh {
    display: inline-flex !important;
  }

  .ct-dashboard-page .ct-user-actions .ct-user-more-menu .ct-user-more-logout {
    display: inline-flex !important;
  }
}

/* Versione 11: prediction builder layout refinement */
@media (min-width: 981px) {
  .ct-dashboard-page .ct-prediction-box {
    width: min(980px, calc(100vw - 72px));
    max-height: calc(100dvh - 48px);
  }
}

.ct-dashboard-page .ct-prediction-head .ct-kicker {
  color: rgba(255, 255, 255, 0.64);
}

.ct-dashboard-page .ct-builder-head-summary {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}

.ct-dashboard-page .ct-builder-head-summary span,
.ct-dashboard-page .ct-builder-head-summary strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-builder-head-summary span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ct-dashboard-page .ct-builder-head-summary strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.ct-dashboard-page .ct-builder-live-summary {
  display: none;
}

.ct-dashboard-page .ct-prediction-box {
  position: relative;
  border: 0;
}

.ct-dashboard-page .ct-prediction-layout {
  padding-bottom: 76px;
}

.ct-dashboard-page .ct-builder-floating-actions {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: stretch;
  gap: 9px;
  filter: drop-shadow(0 18px 28px rgba(16, 24, 40, 0.22));
  animation: ct-builder-actions-in 0.28s ease-out both;
}

.ct-dashboard-page .ct-builder-floating-actions.hidden {
  display: none;
}

.ct-dashboard-page .ct-builder-floating-summary,
.ct-dashboard-page .ct-builder-floating-done {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  letter-spacing: 0;
  line-height: 1;
}

.ct-dashboard-page .ct-builder-floating-summary {
  min-width: 134px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 13px;
  background: #101828;
  color: #fff;
  text-align: left;
}

.ct-dashboard-page .ct-builder-floating-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 850;
}

.ct-dashboard-page .ct-builder-floating-summary strong {
  color: #fff;
  font-size: 12.5px;
  font-weight: 950;
}

.ct-dashboard-page .ct-builder-floating-done {
  min-width: 72px;
  padding: 0 15px;
  background: linear-gradient(135deg, #17b8f2, #17c9a5);
  color: #fff;
  font-size: 11.5px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.ct-dashboard-page .ct-builder-summary-modal {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ct-dashboard-page .ct-builder-summary-modal.hidden {
  display: none;
}

.ct-dashboard-page .ct-builder-summary-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.34);
  backdrop-filter: blur(8px);
}

.ct-dashboard-page .ct-builder-summary-box {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100% - 34px);
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 0 22px 22px;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.24);
  animation: ct-builder-summary-in 0.26s ease-out both;
}

@keyframes ct-builder-actions-in {
  from {
    opacity: 0;
    transform: translate(18px, 10px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes ct-builder-summary-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ct-dashboard-page .ct-builder-summary-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.ct-dashboard-page .ct-builder-summary-head {
  display: grid;
  gap: 4px;
  margin: 0 -22px;
  padding: 22px 58px 18px 22px;
  border-radius: 24px 24px 0 0;
  background: #101828;
  color: #fff;
}

.ct-dashboard-page .ct-builder-summary-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.ct-dashboard-page .ct-builder-summary-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.ct-dashboard-page .ct-builder-summary-head .ct-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.ct-dashboard-page .ct-builder-summary-ticket {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(152, 162, 179, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #fffdf7, #f4f1e9),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(16, 24, 40, 0.035) 18px 19px);
  color: #101828;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 16px 34px rgba(16, 24, 40, 0.08);
}

.ct-dashboard-page .ct-builder-summary-ticket::before,
.ct-dashboard-page .ct-builder-summary-ticket::after {
  content: "";
  position: absolute;
  top: 58px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(152, 162, 179, 0.18);
}

.ct-dashboard-page .ct-builder-summary-ticket::before {
  left: -9px;
}

.ct-dashboard-page .ct-builder-summary-ticket::after {
  right: -9px;
}

.ct-dashboard-page .ct-builder-summary-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(102, 112, 133, 0.32);
}

.ct-dashboard-page .ct-builder-summary-ticket-top span {
  color: #667085;
  font-size: 12px;
  font-weight: 850;
}

.ct-dashboard-page .ct-builder-summary-ticket-top strong {
  color: #101828;
  font-size: 18px;
  font-weight: 950;
}

.ct-dashboard-page .ct-builder-summary-lines {
  max-height: min(330px, 42dvh);
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.ct-dashboard-page .ct-builder-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(152, 162, 179, 0.18);
}

.ct-dashboard-page .ct-builder-summary-line div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ct-dashboard-page .ct-builder-summary-line strong,
.ct-dashboard-page .ct-builder-summary-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-builder-summary-line strong {
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.ct-dashboard-page .ct-builder-summary-line span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.ct-dashboard-page .ct-builder-summary-line em {
  padding: 7px 9px;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.ct-dashboard-page .ct-builder-summary-line button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #475467;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.ct-dashboard-page .ct-builder-summary-empty {
  padding: 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ct-dashboard-page .ct-builder-summary-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 9px;
}

.ct-dashboard-page .ct-builder-summary-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.ct-dashboard-page .ct-builder-summary-secondary {
  background: #eef2f6;
  color: #344054;
}

.ct-dashboard-page .ct-builder-summary-primary {
  background: linear-gradient(135deg, #17b8f2, #17c9a5);
  color: #fff;
  box-shadow: 0 14px 24px rgba(23, 184, 242, 0.22);
}

.ct-dashboard-page .ct-coupon-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.ct-dashboard-page .ct-coupon-line em {
  padding: 7px 9px;
  border-radius: 999px;
  background: #12b76a;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.ct-dashboard-page .ct-coupon-line button[data-remove] {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #eef2f6;
  color: #475467;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

@media (min-width: 981px) {
  .ct-dashboard-page > .ct-dashboard-shell > .ct-coupon-column {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .ct-dashboard-page > .ct-dashboard-shell > .ct-coupon-column .ct-coupon-box {
    height: auto;
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  .ct-dashboard-page > .ct-dashboard-shell > .ct-coupon-column .ct-coupon-box::-webkit-scrollbar {
    width: 6px;
  }

  .ct-dashboard-page > .ct-dashboard-shell > .ct-coupon-column .ct-coupon-box::-webkit-scrollbar-track {
    background: transparent;
  }

  .ct-dashboard-page > .ct-dashboard-shell > .ct-coupon-column .ct-coupon-box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(102, 112, 133, 0.28);
  }
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-card .ct-section-head p {
  display: none;
}

.ct-dashboard-page .ct-builder-odds-hidden {
  display: none !important;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-card .ct-section-head > div {
  width: 100%;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-search-input {
  width: min(100%, 420px);
  min-height: 38px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  outline: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-search-input::placeholder {
  color: #98a2b3;
  font-weight: 800;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-search-input:focus {
  border-color: rgba(0, 186, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 186, 255, 0.12);
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card {
  padding: 7px 8px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group {
  display: grid;
  gap: 5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group + .ct-builder-league-group {
  margin-top: 10px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: #475467;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-head span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-head strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-head em {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group.is-open .ct-builder-league-head strong {
  color: #0f5b75;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group.is-secondary.is-collapsed .ct-builder-league-head strong {
  color: #475467;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-toggle {
  flex: 0 0 auto;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #eef2f6;
  color: #344054;
  font-size: 10px;
  line-height: 1;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-toggle strong {
  color: inherit;
  font-size: 13px;
  line-height: 1;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group.is-priority .ct-builder-league-toggle {
  border-color: rgba(0, 186, 255, 0.34);
  color: #0f5b75;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-group.is-priority .ct-builder-league-toggle span {
  background: rgba(0, 186, 255, 0.14);
  color: #0f5b75;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-matches {
  display: grid;
  gap: 5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-league-matches[hidden] {
  display: none !important;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-match-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-match-teams {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-team-row {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #101828;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-team-row strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  font-size: 12.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-match-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #101828;
  font-size: 13px;
  line-height: 1.2;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-side {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-home {
  justify-content: flex-end;
  text-align: right;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-name {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odds-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ct-dashboard-page .ct-prediction-modal .ct-odds-section-head > div {
  min-width: 0;
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-close-odds {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.14);
}

.ct-dashboard-page .ct-prediction-modal .ct-builder-close-odds:hover {
  background: #1d2939;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  line-height: 1;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card-head .ct-match-league {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.1;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card-head .ct-match-league span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-card-head .ct-league-logo {
  flex: 0 0 16px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-meta-actions {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  line-height: 1;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-time {
  color: #667085;
  font-weight: 900;
  font-size: 10.5px;
  line-height: 24px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title .ct-match-team-pill {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f7;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title .ct-team-home.ct-match-team-pill {
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title .ct-team-away.ct-match-team-pill {
  justify-self: start;
  justify-content: flex-start;
  text-align: left;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title .ct-match-team-pill .ct-team-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-title > .ct-vs-pill {
  justify-self: center;
}

.ct-dashboard-page .ct-prediction-modal .ct-match-history-button {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 980px) {
  .ct-dashboard-page .ct-prediction-modal {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    padding: 0;
  }

  .ct-dashboard-page .ct-prediction-box {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ct-dashboard-page .ct-prediction-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .ct-dashboard-page .ct-builder-head-summary {
    justify-content: flex-start;
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }

  .ct-dashboard-page .ct-builder-floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }

  .ct-dashboard-page .ct-builder-floating-summary,
  .ct-dashboard-page .ct-builder-floating-done {
    min-height: 38px;
    border-radius: 13px;
  }

  .ct-dashboard-page .ct-builder-floating-summary {
    min-width: 122px;
    padding: 6px 11px;
  }

  .ct-dashboard-page .ct-builder-floating-summary span {
    font-size: 9.5px;
  }

  .ct-dashboard-page .ct-builder-floating-summary strong {
    font-size: 11.5px;
  }

  .ct-dashboard-page .ct-builder-floating-done {
    min-width: 66px;
    padding: 0 12px;
    font-size: 11px;
  }

  .ct-dashboard-page .ct-builder-summary-modal {
    padding: 10px;
    align-items: center;
  }

  .ct-dashboard-page .ct-builder-summary-box {
    width: min(100%, 430px);
    max-height: calc(100% - 20px);
    padding: 0;
    border-radius: 22px;
  }

  .ct-dashboard-page .ct-builder-summary-head {
    margin: -15px;
    margin-bottom: 15px;
    border-radius: 22px 22px 0 0;
  }

  .ct-dashboard-page .ct-builder-summary-head h2 {
    font-size: 20px;
  }

  .ct-dashboard-page .ct-builder-summary-lines {
    max-height: 44dvh;
  }

  .ct-dashboard-page .ct-builder-summary-line {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    padding: 9px;
  }

  .ct-dashboard-page .ct-builder-summary-actions {
    grid-template-columns: 1fr 1fr;
  }

  .ct-dashboard-page .ct-mobile-coupon-slot .ct-coupon-column:not(.has-selections) {
    display: none;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-match-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-match-main {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-team-row strong {
    font-size: 12px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-match-actions {
    gap: 5px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match {
    gap: 5px;
    font-size: 12px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-odds-title-match .ct-team-name {
    max-width: 92px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-odds-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .ct-dashboard-page .ct-prediction-modal .ct-builder-close-odds {
    align-self: start;
    justify-self: end;
    min-height: 28px;
    padding: 0 11px;
    font-size: 10.5px;
  }
}

.ct-messages-page .ct-chat-panel {
  overflow: hidden;
  border-radius: 18px;
}

.ct-messages-page .ct-chat-messages-shell {
  min-height: 0;
  overflow: hidden;
}

.ct-messages-page .ct-message-form,
.ct-messages-page .ct-message-enter-option,
.ct-messages-page .ct-message-recording-bar {
  flex: 0 0 auto;
  position: relative;
  z-index: 36;
}

.ct-messages-page .ct-chat-header {
  overflow: visible;
}

.ct-messages-page .ct-chat-header {
  position: relative;
  z-index: 130;
}

.ct-messages-page .ct-chat-header > .ct-conversation-menu-panel,
.ct-messages-page .ct-conversation-menu-panel.open {
  z-index: 240;
}

.ct-messages-page .ct-group-prediction-dock {
  z-index: 30;
}

.ct-messages-page .ct-group-prediction-overflow-popover {
  z-index: 120;
}

.ct-messages-page .ct-message-group-info-box.ct-message-modal-shell {
  width: min(100%, 560px);
  max-height: calc(100dvh - 24px);
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ct-messages-page .ct-message-group-create-box.ct-message-modal-shell {
  border: 0;
}

.ct-messages-page .ct-image-crop-box.ct-message-modal-shell {
  border: 0;
}

@media (min-width: 701px) {
  .ct-messages-page .ct-message-group-info-box.ct-message-modal-shell {
    min-height: min(550px, calc(100dvh - 24px));
  }

  .ct-messages-page .ct-message-group-create-box.ct-message-modal-shell {
    min-height: min(550px, calc(100dvh - 42px));
  }
}

.ct-messages-page .ct-message-group-info-head.ct-message-modal-header {
  gap: 12px;
  padding: 14px 52px 13px 16px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 116, 144, 0.38), transparent 34%),
    linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.ct-messages-page .ct-message-group-create-head.ct-message-modal-header,
.ct-messages-page .ct-image-crop-head.ct-message-modal-header {
  border-bottom: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 116, 144, 0.38), transparent 34%),
    linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.ct-messages-page .ct-message-group-info-head.ct-message-modal-header img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  object-fit: cover;
}

.ct-messages-page .ct-message-group-info-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: inline-grid;
  place-items: center;
}

.ct-messages-page .ct-message-group-info-icon-wrap > img {
  grid-area: 1 / 1;
  cursor: zoom-in;
}

.ct-messages-page .ct-message-group-info-icon-edit {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 2;
}

.ct-messages-page .ct-message-group-info-icon-edit[hidden],
.ct-messages-page .ct-message-group-info-icon-upload[hidden] {
  display: none;
}

.ct-messages-page .ct-message-group-info-icon-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-message-group-info-icon-upload {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  border-style: dashed;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  z-index: 2;
}

.ct-messages-page .ct-message-group-info-icon-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-message-group-info-icon-wrap.is-editing > img {
  opacity: 0.24;
  cursor: default;
}

.ct-messages-page .ct-message-group-info-icon-wrap.is-busy {
  pointer-events: none;
  opacity: 0.72;
}

.ct-messages-page .ct-message-group-info-head h2 {
  margin: 2px 0 3px;
  font-size: 19px;
  line-height: 1.12;
}

.ct-messages-page .ct-message-group-info-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-messages-page .ct-message-group-info-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-messages-page .ct-message-group-info-title-row h2 {
  min-width: 0;
}

.ct-messages-page .ct-message-group-info-name-input {
  min-width: 0;
  width: min(320px, 100%);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  padding: 0 2px 2px 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.12;
}

.ct-messages-page .ct-message-group-info-name-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.78);
}

.ct-messages-page .ct-message-group-info-name-edit {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.ct-messages-page .ct-message-group-info-name-edit[hidden] {
  display: none;
}

.ct-messages-page .ct-message-group-info-name-edit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-message-group-info-name-edit .ct-icon-check {
  display: none;
}

.ct-messages-page .ct-message-group-info-name-edit.is-editing {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.18);
  color: #dcfce7;
}

.ct-messages-page .ct-message-group-info-name-edit.is-editing .ct-icon-pen {
  display: none;
}

.ct-messages-page .ct-message-group-info-name-edit.is-editing .ct-icon-check {
  display: block;
}

.ct-messages-page .ct-message-group-info-name-edit.is-busy {
  pointer-events: none;
  opacity: 0.65;
}

.ct-messages-page .ct-message-group-info-head .ct-message-group-name-counter {
  justify-self: start;
  color: rgba(255, 255, 255, 0.76);
}

.ct-messages-page .ct-message-group-info-head .ct-message-group-name-counter.is-low {
  color: #fbbf24;
}

.ct-messages-page .ct-message-group-info-head .ct-message-group-name-counter.is-over {
  color: #fecdd3;
}

.ct-messages-page .ct-message-group-info-head p {
  font-size: 12px;
  line-height: 1.35;
}

.ct-messages-page .ct-message-group-info-tools {
  padding: 9px 14px 0;
}

.ct-messages-page .ct-group-action-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #101828;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-group-action-pill.hidden,
.ct-messages-page .ct-group-action-pill[hidden] {
  display: none !important;
}

.ct-messages-page .ct-group-action-pill.active {
  border-color: rgba(0, 186, 255, 0.32);
  background: #edfaff;
  color: #026aa2;
}

.ct-messages-page .ct-group-action-pill svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-messages-page .ct-message-group-info-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 8px;
  padding: 10px 14px;
  overflow: auto;
}

.ct-messages-page .ct-message-group-info-section {
  flex: 0 0 auto;
  align-content: start;
  align-items: stretch;
  grid-auto-rows: max-content;
  gap: 8px;
}

.ct-messages-page .ct-message-group-info-section h3 {
  font-size: 13px;
}

.ct-messages-page .ct-message-group-info-section input {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
}

.ct-messages-page .ct-message-group-info-members,
.ct-messages-page .ct-message-group-info-invite-list {
  gap: 6px;
}

.ct-messages-page .ct-message-group-info-member,
.ct-messages-page .ct-message-group-info-invite-list button {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #fbfcfe;
}

.ct-messages-page .ct-message-group-info-member img,
.ct-messages-page .ct-message-group-info-invite-list img {
  width: 34px;
  height: 34px;
}

.ct-messages-page .ct-group-member-copy {
  min-width: 0;
  gap: 1px;
}

.ct-messages-page .ct-group-member-copy strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #101828;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.ct-messages-page .ct-group-member-copy strong span,
.ct-messages-page .ct-group-member-copy strong em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-messages-page .ct-group-member-copy strong span {
  flex: 1 1 auto;
}

.ct-messages-page .ct-group-member-copy strong .ct-profile-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
}

.ct-messages-page .ct-group-member-copy strong .ct-profile-link:hover {
  text-decoration: underline;
}

.ct-messages-page .ct-group-member-copy strong em {
  flex: 0 1 auto;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.ct-messages-page .ct-group-member-copy small {
  display: none;
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 850;
}

.ct-messages-page .ct-group-member-role-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.ct-messages-page button.ct-group-member-role-pill {
  color: #026aa2;
}

.ct-messages-page .ct-group-member-role-pill.is-static {
  color: #667085;
}

.ct-messages-page .ct-message-group-info-footer {
  padding: 0 16px 14px;
}

.ct-messages-page .ct-builder-match-row.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  background: #f8fafc;
  filter: grayscale(0.12);
}

.ct-messages-page .ct-builder-match-row.is-disabled .ct-builder-match-main,
.ct-messages-page .ct-builder-match-row.is-disabled .ct-match-history-button {
  pointer-events: none;
}

.ct-messages-page .ct-builder-match-disabled-reason {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 112px;
  min-height: 24px;
  margin-right: 7px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.08);
  color: #344054;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-pick-box.ct-message-modal-shell {
  width: min(100%, 620px);
  max-height: calc(100dvh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-layout {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-fixture-locked .ct-builder-search-input,
.ct-messages-page .ct-group-prediction-pick-modal.is-fixture-locked #groupPredictionDayTabs,
.ct-messages-page .ct-group-prediction-pick-modal.is-fixture-locked #groupPredictionCountryTabs {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-fixture-locked .ct-section-head {
  margin-bottom: 8px;
}

.ct-messages-page .ct-prediction-remove-pick {
  margin-right: auto;
  border: 1px solid rgba(245, 124, 0, 0.28);
  background: #fff4e5;
  color: #b45309;
  box-shadow: 0 8px 18px rgba(180, 83, 9, 0.1);
}

.ct-messages-page .ct-prediction-remove-pick.is-confirming {
  background: #f97316;
  color: #fff;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.22);
}

.ct-messages-page .ct-prediction-self-predict {
  border: 1px solid rgba(2, 132, 199, 0.26);
  background: #e0f2fe;
  color: #075985;
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12);
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assign-row {
  grid-row: 2;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  overflow: auto;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-publish-message {
  grid-row: 3;
  margin-top: 0;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-modal-actions {
  grid-row: 4;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assign-row > label {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assign-row.has-selected-user > label {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode #messageGroupPredictionAssignee {
  display: none;
  min-height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-panel {
  margin-top: 0;
}

.ct-messages-page .ct-group-prediction-assignment-search input {
  min-height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-list {
  max-height: min(48dvh, 430px);
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-card,
.ct-messages-page .ct-group-prediction-assignment-selected-card {
  border-radius: 12px;
  padding: 10px;
}

.ct-messages-page .ct-group-prediction-assignment-selected-card {
  padding: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-match {
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta small {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 10px;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta small.is-missing {
  background: #fff1f3;
  color: #b42318;
}

.ct-messages-page .ct-group-prediction-assignment-match-meta small.is-checking {
  background: #f2f4f7;
  color: #475467;
}

.ct-messages-page .ct-group-prediction-assignment-match.is-odds-missing {
  border-color: rgba(180, 35, 24, 0.12);
  background: #fffafa;
}

.ct-messages-page .ct-group-prediction-assignment-match > button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 11px;
}

.ct-messages-page .ct-group-prediction-assignment-match > button:disabled,
.ct-messages-page .ct-group-prediction-assignment-match > button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.ct-messages-page .ct-group-prediction-assignment-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11.5px;
}

.ct-messages-page .ct-group-prediction-assignment-status strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-slip-composer-shell.ct-message-modal-shell {
  width: min(100%, 880px);
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ct-messages-page .ct-slip-composer-shell .ct-message-modal-header {
  flex: 0 0 auto;
  padding: 18px 58px 16px 20px;
}

.ct-messages-page .ct-slip-composer-shell .ct-message-modal-header h2 {
  font-size: 21px;
}

.ct-messages-page .ct-slip-composer-stepper {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ct-messages-page .ct-slip-composer-stepper span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-slip-composer-stepper span.active {
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-title,
.ct-messages-page .ct-group-prediction-slip-description {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.ct-messages-page .ct-group-prediction-slip-title span,
.ct-messages-page .ct-group-prediction-slip-description span {
  color: #344054;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-title input,
.ct-messages-page .ct-group-prediction-slip-description textarea {
  border-radius: 10px;
  font-size: 13px;
}

.ct-messages-page .ct-group-prediction-slip-description textarea {
  min-height: 76px;
  resize: vertical;
}

.ct-messages-page .ct-group-prediction-slip-composer {
  flex: 1 1 auto;
  padding: 12px 20px 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: auto;
}

.ct-messages-page .ct-slip-composer-review {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: 12px;
  padding: 12px 20px 0;
  overflow: auto;
}

.ct-messages-page .ct-slip-composer-review.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-picker,
.ct-messages-page .ct-group-prediction-slip-preview {
  min-height: 0;
  border-radius: 12px;
  padding: 10px;
}

.ct-messages-page .ct-group-prediction-slip-preview {
  background: #101828;
  border-color: rgba(16, 24, 40, 0.18);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-preview h3,
.ct-messages-page .ct-group-prediction-slip-preview p,
.ct-messages-page .ct-group-prediction-slip-preview footer {
  color: inherit;
}

.ct-messages-page .ct-group-prediction-slip-preview p.is-empty {
  color: rgba(255, 255, 255, 0.62);
}

.ct-messages-page .ct-group-prediction-slip-preview-list article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-picks {
  max-height: min(42dvh, 390px);
}

.ct-messages-page .ct-group-prediction-slip-pick {
  position: relative;
  align-items: start;
  gap: 9px;
  min-height: 74px;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ct-messages-page .ct-group-prediction-slip-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-slip-composer-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border: 2px solid rgba(16, 24, 40, 0.18);
  border-radius: 6px;
  background: #fff;
}

.ct-messages-page .ct-group-prediction-slip-pick input:checked + .ct-slip-composer-check {
  border-color: #101828;
  background: #101828;
}

.ct-messages-page .ct-group-prediction-slip-pick input:checked + .ct-slip-composer-check::after {
  content: "";
  width: 8px;
  height: 5px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}

.ct-messages-page .ct-group-prediction-slip-pick.is-readonly .ct-slip-composer-check {
  display: none;
}

.ct-messages-page .ct-slip-composer-pick-body {
  gap: 5px;
}

.ct-messages-page .ct-slip-composer-pick-body .ct-gp-tab-teams {
  max-width: 100%;
}

.ct-messages-page .ct-slip-composer-pick-body strong {
  color: #101828;
  font-size: 12.5px;
}

.ct-messages-page .ct-slip-composer-pick-body small {
  color: #175cd3;
  font-size: 11.5px;
}

.ct-messages-page .ct-slip-composer-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 12px 20px 14px;
  background: #fff;
}

.ct-messages-page #messageGroupPredictionSlipSave:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .ct-messages-page .ct-message-group-info-box.ct-message-modal-shell,
  .ct-messages-page .ct-slip-composer-shell.ct-message-modal-shell,
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-pick-box.ct-message-modal-shell {
    width: 100dvw;
    max-width: 100dvw;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ct-messages-page .ct-message-group-info-head.ct-message-modal-header {
    padding: 14px 50px 13px 14px;
  }

  .ct-messages-page .ct-message-group-info-head.ct-message-modal-header img {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .ct-messages-page .ct-message-group-info-icon-wrap,
  .ct-messages-page .ct-message-group-info-icon-upload {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .ct-messages-page .ct-message-group-info-head h2,
  .ct-messages-page .ct-slip-composer-shell .ct-message-modal-header h2 {
    font-size: 18px;
  }

  .ct-messages-page .ct-message-group-info-member,
  .ct-messages-page .ct-message-group-info-invite-list button {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .ct-messages-page .ct-group-member-role-pill {
    padding: 0 7px;
    font-size: 10.5px;
  }

  .ct-messages-page .ct-slip-composer-shell .ct-message-modal-header {
    padding: 15px 50px 13px 16px;
  }

  .ct-messages-page .ct-slip-composer-stepper {
    padding: 0 16px 10px;
    overflow-x: auto;
  }

  .ct-messages-page .ct-group-prediction-slip-composer {
    padding: 10px 16px 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .ct-messages-page .ct-slip-composer-review {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 16px 0;
  }

  .ct-messages-page .ct-group-prediction-slip-picks {
    max-height: none;
  }

  .ct-messages-page .ct-slip-composer-actions {
    padding: 10px 16px 12px;
  }

  .ct-messages-page .ct-group-prediction-assignment-match {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-assignment-match > button {
    justify-self: stretch;
  }
}

/* Sprint UX gruppi/previsioni: layer reversibile */
.ct-messages-page .ct-group-prediction-overflow-popover.is-picks {
  width: min(420px, calc(100vw - 28px));
}

.ct-messages-page .ct-gp-owner-group {
  display: grid;
  gap: 7px;
}

.ct-messages-page .ct-gp-owner-group + .ct-gp-owner-group {
  margin-top: 12px;
}

.ct-messages-page .ct-gp-owner-group h4 {
  margin: 0;
  padding: 2px 2px 0;
  color: #101828;
  font-size: 12px;
  font-weight: 950;
}

.ct-messages-page .ct-gp-owner-group > div {
  display: grid;
  gap: 7px;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick {
  width: 100%;
  max-width: none;
  min-height: 82px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  color: #101828;
  box-shadow: none;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick.is-pending {
  border-color: rgba(22, 115, 72, 0.22);
  background: #fbfffd;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick.has-assignment-alert {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fffafa;
  padding-left: 42px;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick.is-ready {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-group-prediction-tab.ct-gp-menu-card.is-pick.is-locked {
  opacity: 0.72;
  background: #f8fafc;
}

.ct-messages-page .ct-gp-card-meta {
  color: #667085 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.ct-messages-page .ct-group-prediction-overflow-popover .ct-gp-tab-teams em {
  color: #101828;
  font-size: 10px;
  text-transform: none;
}

.ct-messages-page .ct-builder-match-row.is-disabled .ct-builder-match-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: center;
}

.ct-messages-page .ct-builder-match-row.is-disabled .ct-builder-match-disabled-reason {
  max-width: 112px;
  margin: 0 7px 0 0;
}

.ct-messages-page .ct-group-prediction-pick-modal .ct-builder-match-row.is-disabled .ct-builder-match-actions {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 7px;
}

.ct-messages-page .ct-group-prediction-pick-modal .ct-builder-match-row.is-disabled .ct-match-history-button {
  position: static;
  inset: auto;
  order: 2;
  flex: 0 0 24px;
  transform: none;
}

.ct-messages-page .ct-group-prediction-pick-modal .ct-builder-match-row.is-disabled .ct-match-history-button:hover {
  transform: none;
}

.ct-messages-page .ct-group-prediction-pick-modal .ct-builder-match-row.is-disabled .ct-builder-match-disabled-reason {
  order: 1;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head p.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head {
  color: #101828;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open [data-builder-step="matches"] .ct-section-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open #groupPredictionFixtureSearch {
  width: min(100%, 420px);
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-pick-box.ct-message-modal-shell {
  width: min(100%, 650px);
  max-width: min(650px, calc(100vw - 28px));
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode:not(.is-assignment-picker-open) .ct-prediction-layout {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-prediction-layout {
  grid-row: 3;
  display: block;
  min-height: 0;
  margin-top: 8px;
  padding: 0 16px 12px;
  overflow: auto;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-publish-message {
  grid-row: 4;
  margin-top: 0;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-publish-message:empty {
  display: none;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-modal-actions {
  grid-row: 5;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode [data-builder-step="odds"] {
  display: none !important;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-assign-row {
  grid-row: 2;
  overflow: visible;
  padding-bottom: 12px;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-assignment-choice {
  margin-bottom: 8px;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-assignment-matches {
  display: none;
}

.ct-messages-page .ct-group-prediction-assignment-panel {
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-search {
  margin-bottom: 12px;
}

.ct-messages-page .ct-group-prediction-assignment-list {
  max-height: min(62dvh, 580px);
}

.ct-messages-page .ct-group-prediction-assignment-card {
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-assignment-expertise {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ct-messages-page .ct-group-prediction-assignment-chip {
  min-height: 34px;
  padding: 6px;
  border-radius: 10px;
}

.ct-messages-page .ct-group-prediction-assignment-chip em {
  display: none;
}

.ct-messages-page .ct-group-prediction-assignment-chip strong {
  font-size: 11px;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip {
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 4px;
  row-gap: 0;
  padding: 5px 7px;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip img,
.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip i,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip img,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip i {
  grid-row: auto;
  align-self: center;
}

.ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong,
.ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong {
  align-self: center;
  margin-left: 10px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.1;
}

.ct-messages-page .ct-group-prediction-assignment-matches > header {
  display: block;
}

.ct-messages-page .ct-group-prediction-assignment-matches > header strong {
  min-width: 0;
  flex: 1 1 auto;
  color: #344054;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assignment-calendar-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 2px;
  border: 1px solid #101828;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 12px;
  text-align: center;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-match {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-match-meta {
  grid-column: 1 / 2;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-match-context {
  flex: 0 1 auto;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-match-odds {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assignment-match > button {
  width: auto;
  min-width: 72px;
  justify-self: end;
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ct-messages-page .ct-group-prediction-assignment-selected-match {
  display: grid;
  gap: 2px;
  padding: 12px 8px 8px;
  border: 1px solid rgba(22, 115, 72, 0.18);
  border-radius: 10px;
  background: #f7fff9;
}

.ct-messages-page .ct-group-prediction-assignment-selected-match small,
.ct-messages-page .ct-group-prediction-assignment-selected-match strong,
.ct-messages-page .ct-group-prediction-assignment-selected-match em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-assignment-selected-match small {
  display: block;
  margin: 0 0 2px;
  color: #167348;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-assignment-selected-match strong {
  color: #101828;
  font-size: 12px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-assignment-selected-match em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-idle {
  background: #f8fafc;
  color: #475467;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-checking {
  background: #eff8ff;
  color: #175cd3;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-ok {
  background: #ecfdf3;
  color: #067647;
}

.ct-messages-page .ct-group-prediction-assignment-status.is-error {
  background: #fff1f3;
  color: #b42318;
}

.ct-messages-page .ct-message-modal-actions button.is-loading,
.ct-messages-page .ct-group-prediction-modal-actions button.is-loading,
.ct-messages-page .ct-slip-composer-actions button.is-loading {
  position: relative;
  color: transparent !important;
}

.ct-messages-page .ct-message-modal-actions button.is-loading::after,
.ct-messages-page .ct-group-prediction-modal-actions button.is-loading::after,
.ct-messages-page .ct-slip-composer-actions button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: ct-spin 0.75s linear infinite;
}

@keyframes ct-spin {
  to {
    transform: rotate(360deg);
  }
}

.ct-messages-page .ct-message-group-info-tools {
  align-items: center;
}

.ct-messages-page .ct-group-action-pill.is-danger {
  margin-left: auto;
  color: #b42318;
}

.ct-messages-page .ct-group-action-pill.is-danger span {
  white-space: nowrap;
}

.ct-messages-page .ct-group-action-pill.is-danger svg {
  stroke: currentColor;
}

.ct-messages-page .ct-message-group-info-body {
  padding: 6px 8px 10px;
  gap: 8px;
}

.ct-messages-page .ct-message-group-info-section {
  gap: 6px;
}

.ct-messages-page .ct-message-group-info-members,
.ct-messages-page .ct-message-group-info-invite-list {
  flex: 0 0 auto;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 5px;
}

.ct-messages-page .ct-message-group-info-member,
.ct-messages-page .ct-message-group-info-invite-list button {
  min-height: 40px;
  padding: 5px 7px;
  border-radius: 10px;
}

.ct-messages-page .ct-message-group-info-member {
  border-left: 3px solid var(--ct-group-member-color, #16a34a);
}

.ct-messages-page .ct-message-group-info-member img {
  border: 1px solid var(--ct-group-member-color, rgba(15, 23, 42, 0.08));
}

.ct-messages-page .ct-message-group-info-member.is-status-invited,
.ct-messages-page .ct-message-group-info-member.is-status-pending {
  border-left-color: #98a2b3;
}

.ct-messages-page .ct-message-group-info-member.is-role-owner {
  border-left-color: var(--ct-group-member-color, #8a1538);
}

.ct-messages-page .ct-message-group-info-member.is-role-admin {
  border-left-color: var(--ct-group-member-color, #dc2626);
}

.ct-messages-page .ct-message-group-info-member.is-role-owner .ct-group-member-role-pill {
  color: #8a1538;
}

.ct-messages-page .ct-message-group-info-member.is-role-admin .ct-group-member-role-pill {
  color: #dc2626;
}

.ct-messages-page .ct-message-group-info-member.is-status-invited .ct-group-member-copy strong em:last-of-type,
.ct-messages-page .ct-message-group-info-member.is-status-pending .ct-group-member-copy strong em:last-of-type {
  color: #667085;
}

.ct-messages-page .ct-message-group-info-section input[data-group-info-member-search] {
  box-sizing: border-box;
  flex: 0 0 30px;
  align-self: stretch;
  height: 30px;
  max-height: 30px;
  min-height: 30px;
  margin: -2px 0 1px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 30px;
}

.ct-messages-page .ct-message-group-info-section .ct-group-info-search-input {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
  align-self: stretch !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 30px !important;
}

.ct-messages-page .ct-message-group-info-members-section {
  flex: 0 0 auto;
  display: grid !important;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 4px;
}

.ct-messages-page .ct-message-group-info-members-section h3 {
  margin-bottom: 0;
}

.ct-messages-page .ct-message-group-info-tools-section {
  display: grid !important;
  gap: 8px;
}

.ct-messages-page .ct-message-group-info-tools-section .ct-message-chat-tools-grid.media {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}

.ct-messages-page .ct-message-group-info-tools-section .ct-message-chat-tools-grid.matches.as-chat {
  gap: 8px;
}

.ct-messages-page .ct-message-group-info-tools-section .ct-message-chat-tool-match-message .ct-message-bubble,
.ct-messages-page .ct-message-group-info-tools-section .ct-message-chat-tool-match-message > .ct-message-chat-tool-author {
  width: 100%;
  max-width: 100%;
}

.ct-messages-page .ct-message-group-info-invite-section {
  margin-top: 4px;
}

.ct-messages-page #messageGroupInfoFeedback {
  align-self: center;
  justify-self: center;
  min-height: 0;
  max-width: calc(100% - 28px);
  margin: 4px auto 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.ct-messages-page #messageGroupInfoFeedback:empty {
  display: none;
}

.ct-messages-page #messageGroupInfoFeedback.success {
  background: #ecfdf3;
  color: #067647;
}

.ct-messages-page #messageGroupInfoFeedback.error {
  background: #fff1f3;
  color: #b42318;
}

.ct-messages-page .ct-message-group-info-invite-section.hidden,
.ct-messages-page .ct-message-group-info-invite-section[hidden],
.ct-messages-page .ct-message-group-info-member.hidden,
.ct-messages-page .ct-message-group-info-member[hidden],
.ct-messages-page .ct-message-group-info-invite-list button.hidden,
.ct-messages-page .ct-message-group-info-invite-list button[hidden],
.ct-messages-page .ct-message-group-info-members .ct-message-chat-tools-empty.hidden,
.ct-messages-page .ct-message-group-info-members .ct-message-chat-tools-empty[hidden],
.ct-messages-page .ct-message-group-info-invite-list .ct-message-chat-tools-empty.hidden,
.ct-messages-page .ct-message-group-info-invite-list .ct-message-chat-tools-empty[hidden] {
  display: none !important;
}

.ct-messages-page .ct-group-info-confirm-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.28);
}

.ct-messages-page .ct-group-info-confirm-card {
  width: min(330px, 100%);
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  color: #101828;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.28);
}

.ct-messages-page .ct-group-info-confirm-card strong {
  font-size: 15px;
  font-weight: 950;
}

.ct-messages-page .ct-group-info-confirm-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
}

.ct-messages-page .ct-group-info-confirm-card > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ct-messages-page .ct-group-info-confirm-card button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.ct-messages-page .ct-group-info-confirm-card button:first-child {
  background: #f2f4f7;
  color: #344054;
}

.ct-messages-page .ct-group-info-confirm-card button:last-child {
  background: #101828;
  color: #fff;
}

@media (max-width: 700px) {
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-pick-box.ct-message-modal-shell {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open [data-builder-step="matches"] .ct-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open #groupPredictionFixtureSearch {
    width: 100%;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-prediction-layout {
    padding: 0 12px 10px;
  }

  .ct-messages-page .ct-group-prediction-assignment-list {
    max-height: none;
  }

  .ct-messages-page .ct-group-prediction-assignment-expertise {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-messages-page .ct-group-prediction-assignment-card header,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise {
    height: 38px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
  }

  .ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip {
    flex: 1 1 0;
    max-width: none;
    min-height: 0;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 4px;
    padding: 1px 6px;
    border-radius: 7px;
  }

  .ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip img,
  .ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip i,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip img,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip i {
    width: 18px;
    height: 18px;
  }

  .ct-messages-page .ct-group-prediction-assignment-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong,
  .ct-messages-page .ct-group-prediction-assignment-selected-card header > .ct-group-prediction-assignment-expertise .ct-group-prediction-assignment-chip strong {
    margin-left: 0;
    font-size: 9.5px;
    line-height: 1;
  }

  .ct-messages-page .ct-message-group-info-tools {
    padding-inline: 8px;
  }

  .ct-messages-page .ct-group-action-pill {
    padding-inline: 9px;
  }

  .ct-messages-page .ct-group-action-pill.is-danger span {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .ct-messages-page .ct-message-group-info-box.ct-message-modal-shell {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ct-messages-page .ct-message-group-info-head.ct-message-modal-header {
    align-items: center;
    gap: 9px;
    padding: 12px 44px 10px 12px;
  }

  .ct-messages-page .ct-message-group-info-head.ct-message-modal-header img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .ct-messages-page .ct-message-group-info-head h2 {
    margin: 1px 0 2px;
    font-size: 17px;
    line-height: 1.12;
  }

  .ct-messages-page .ct-message-group-info-head p {
    display: -webkit-box;
    max-height: 34px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11px;
    line-height: 1.28;
  }

  .ct-messages-page .ct-message-group-info-tools {
    flex: 0 0 auto;
    gap: 6px;
    padding: 6px 8px 0;
  }

  .ct-messages-page .ct-group-action-pill {
    min-height: 28px;
    gap: 5px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .ct-messages-page .ct-group-action-pill svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .ct-messages-page .ct-message-group-info-body {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    gap: 6px;
    padding: 6px 8px;
    overflow: auto;
  }

  .ct-messages-page .ct-message-group-info-section {
    display: grid !important;
    flex: 0 0 auto;
    align-content: start;
    align-items: stretch;
    grid-auto-rows: max-content;
    gap: 5px;
  }

  .ct-messages-page .ct-message-group-info-section h3 {
    font-size: 12px;
  }

  .ct-messages-page .ct-message-group-info-section input[data-group-info-member-search] {
    box-sizing: border-box;
    flex: 0 0 29px;
    align-self: stretch;
    height: 29px;
    max-height: 29px;
    min-height: 29px;
    margin: -1px 0 1px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 29px;
  }

  .ct-messages-page .ct-message-group-info-section .ct-group-info-search-input {
    display: block !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    flex-basis: 29px !important;
    line-height: 29px !important;
  }

  .ct-messages-page .ct-message-group-info-members,
  .ct-messages-page .ct-message-group-info-invite-list {
    gap: 5px;
  }

  .ct-messages-page .ct-message-group-info-member,
  .ct-messages-page .ct-message-group-info-invite-list button {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 38px;
    padding: 5px 6px;
    border-radius: 10px;
  }

  .ct-messages-page .ct-message-group-info-member img,
  .ct-messages-page .ct-message-group-info-invite-list img {
    width: 30px;
    height: 30px;
  }

  .ct-messages-page .ct-group-member-copy strong {
    gap: 4px;
    font-size: 12px;
  }

  .ct-messages-page .ct-group-member-copy strong em,
  .ct-messages-page .ct-message-group-info-invite-list em {
    font-size: 10.5px;
  }

  .ct-messages-page .ct-group-member-role-pill {
    min-height: 24px;
    max-width: 78px;
    padding: 0 7px;
    font-size: 10px;
    white-space: nowrap;
  }

  .ct-messages-page button.ct-group-member-role-pill {
    grid-column: auto;
    justify-self: end;
  }

  .ct-messages-page #messageGroupInfoFeedback {
    flex: 0 0 auto;
    max-width: calc(100% - 24px);
    margin: 3px auto 14px;
    padding: 7px 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 700px) {
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-pick-box.ct-message-modal-shell,
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-group-prediction-pick-box.ct-message-modal-shell {
    box-sizing: border-box;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow: hidden;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head {
    position: sticky;
    top: 0;
    z-index: 6;
    background: linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
    color: #fff;
    padding: 14px 50px 13px 14px;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head .ct-kicker,
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head h2,
  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head p {
    color: #fff;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head .ct-kicker {
    color: rgba(255, 255, 255, 0.68);
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head h2 {
    font-size: 18px;
    line-height: 1.14;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head p {
    opacity: 0.72;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-prediction-head-actions {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .ct-messages-page .ct-group-prediction-pick-modal .ct-prediction-close {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 34px;
    aspect-ratio: 1 / 1;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-assign-row {
    min-height: 0;
    overflow-y: auto;
    padding: 12px 12px;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode.is-assignment-picker-open .ct-prediction-layout {
    min-height: 0;
    overflow-y: auto;
  }

  .ct-messages-page .ct-group-prediction-pick-modal.is-assign-mode .ct-group-prediction-modal-actions {
    margin: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
    padding: 12px 14px max(18px, calc(14px + env(safe-area-inset-bottom)));
  }
}

/* Schedina gruppo - restyle finale effettivo */
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-shell.ct-message-modal-shell {
  width: min(1040px, calc(100dvw - 34px));
  max-height: calc(100dvh - 28px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-shell > .ct-share-modal-close {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-head.ct-message-modal-header {
  min-height: 92px;
  padding: 18px 62px 18px 22px;
  background: linear-gradient(135deg, #101828 0%, #172033 52%, #243b53 100%);
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-head h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.12;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-head p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper.ct-slip-composer-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #475467;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper span b {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f6;
  color: inherit;
  font-size: 11px;
  line-height: 1;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper span.active {
  border-color: #101828;
  background: #101828;
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper span.active b {
  background: rgba(255, 255, 255, 0.18);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stage {
  min-height: 0;
  margin: 0;
  padding: 18px 20px 0;
  overflow: auto;
  background: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stage.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-selection.ct-slip-builder-panel {
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef7f1 100%);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head span,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head strong {
  color: #344054;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.ct-messages-page .ct-group-prediction-slip-modal #messageGroupPredictionSlipSelectedCount {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #dcfae6;
  color: #067647;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-pick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  margin: 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 13px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  border-left: 1px dashed rgba(15, 23, 42, 0.16);
  pointer-events: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick:hover,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick:focus-within {
  transform: translateY(-1px);
  border-color: rgba(22, 115, 72, 0.36);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick:has(input:checked) {
  border-color: #167348;
  background: linear-gradient(135deg, #ffffff 0%, #f0fbf5 100%);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card .ct-slip-composer-check {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-top: 1px;
  border: 2px solid rgba(16, 24, 40, 0.2);
  border-radius: 8px;
  background: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card input:checked + .ct-slip-composer-check {
  border-color: #167348;
  background: #167348;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card input:checked + .ct-slip-composer-check::after {
  content: "";
  width: 11px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-1px);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-body {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 12px;
  align-items: stretch;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams {
  gap: 6px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams img,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams i {
  width: 23px;
  height: 23px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams em {
  max-width: 108px;
  color: #101828;
  font-size: 11px;
  text-transform: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main strong {
  color: #101828;
  font-size: 14px;
  line-height: 1.18;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main small {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main > em,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main > em {
  justify-self: start;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side em {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side b,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side b {
  min-width: 58px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-review.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-copy.ct-slip-builder-panel {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-title,
.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-description {
  margin: 0;
  display: grid;
  gap: 7px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-title span,
.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-description span {
  color: #344054;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-title input,
.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-description textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-size: 13px;
  padding: 11px 12px;
  outline: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-description textarea {
  min-height: 150px;
  resize: vertical;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-preview.ct-group-prediction-slip-preview {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101828;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(138, 97, 12, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(138, 97, 12, 0.09) 0 1px, transparent 1px 100%) 0 0 / 14px 14px,
    linear-gradient(180deg, #fffdf6 0%, #ffffff 58%, #f8fafc 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #475467;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display {
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: text;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display.is-empty {
  color: #98a2b3;
  font-style: italic;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display:focus-visible {
  outline: 2px solid rgba(22, 115, 72, 0.35);
  outline-offset: 3px;
  border-radius: 3px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display:disabled {
  opacity: 1;
  cursor: default;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-input {
  min-height: 42px;
  max-height: 180px;
  padding: 9px 10px;
  resize: none;
  overflow-y: auto;
  border: 1px solid rgba(22, 115, 72, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 115, 72, 0.08);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-display.hidden,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-comment-input.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::before,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::after {
  content: "";
  position: absolute;
  top: 86px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(138, 97, 12, 0.16);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::before {
  left: -12px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::after {
  right: -12px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-badge {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #101828;
  color: #fde68a;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview h3 {
  margin: 0;
  color: #101828;
  font-size: 24px;
  line-height: 1.1;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 650;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview p.is-empty {
  color: #98a2b3;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-list {
  display: grid;
  gap: 10px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #101828;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams em {
  max-width: 112px;
  color: #101828;
  font-size: 11px;
  text-transform: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main strong {
  color: #101828;
  font-size: 13.5px;
  line-height: 1.18;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main small {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side span {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #344054;
  font-size: 10.5px;
  font-weight: 900;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side button {
  min-height: 27px;
  border: 0;
  border-radius: 999px;
  background: #fff1f3;
  color: #c01048;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-empty {
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview footer {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 1px dashed rgba(138, 97, 12, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #101828;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview footer span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview footer strong {
  color: #101828;
  font-size: 18px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-shell > .ct-publish-message {
  min-height: 18px;
  margin: 8px 20px 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0;
  padding: 13px 20px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.06);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip button {
  min-height: 41px;
  border-radius: 999px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip [data-group-prediction-slip-back] {
  background: #eef4ff;
  color: #175cd3;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip #messageGroupPredictionSlipSave {
  background: #167348;
  color: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-stepper,
.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-copy {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal.is-readonly .ct-slip-builder-review {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 860px) {
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-pick-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-review {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-shell.ct-message-modal-shell {
    width: 100dvw;
    max-width: 100dvw;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-head.ct-message-modal-header {
    min-height: 84px;
    padding: 14px 50px 13px 14px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-head h2 {
    font-size: 18px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper.ct-slip-composer-stepper {
    padding: 10px 12px;
    gap: 7px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stepper span {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-stage {
    padding: 12px 12px 0;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-panel-head {
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal #messageGroupPredictionSlipSelectedCount {
    align-self: flex-start;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick {
    min-height: 0;
    grid-template-columns: 27px minmax(0, 1fr);
    padding: 11px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick::after {
    width: 78px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-body {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 8px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams em {
    max-width: 78px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side b,
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side b {
    min-width: 52px;
    min-height: 31px;
    font-size: 13px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-copy.ct-slip-builder-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-description textarea {
    min-height: 96px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper {
    padding: 14px;
    border-radius: 14px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::before,
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-paper::after {
    display: none;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-group-prediction-slip-preview h3 {
    font-size: 20px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side span {
    max-width: 132px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-builder-shell > .ct-publish-message {
    margin: 7px 12px 0;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip {
    gap: 8px;
    padding: 11px 12px max(16px, calc(12px + env(safe-area-inset-bottom)));
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip button {
    min-width: 0;
    min-height: 42px;
    padding: 0 11px;
    line-height: 1.1;
    white-space: normal;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-composer-actions.is-slip #messageGroupPredictionSlipSave {
    flex: 1.25 1 0;
  }
}

/* Schedina gruppo - anteprima coerente con i post */
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-preview.ct-group-prediction-slip-preview {
  width: 100%;
  max-height: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172033;
  overflow: visible;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card {
  width: min(100%, 760px);
  margin: 0 auto;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option {
  width: min(100%, 760px);
  min-width: 0;
  margin: 12px auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #172033;
  cursor: pointer;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #157347;
  cursor: pointer;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option strong {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option small {
  color: #667085;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-feed-option.is-selected {
  border-color: rgba(21, 115, 71, 0.36);
  background: #f2fbf6;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-post-author-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display,
.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-input {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  min-width: 0;
  margin: 12px 18px 0;
  color: #475467;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: text;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display.is-empty {
  color: #98a2b3;
  font-style: italic;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(22, 115, 72, 0.35);
  outline-offset: 3px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display:disabled {
  opacity: 1;
  cursor: default;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-input {
  min-height: 44px;
  max-height: 180px;
  padding: 9px 10px;
  resize: none;
  overflow-y: auto;
  border: 1px solid rgba(22, 115, 72, 0.36);
  border-radius: 8px;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 115, 72, 0.08);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display.hidden,
.ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-input.hidden {
  display: none;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-selections {
  display: block;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-selections .ct-feed-selection {
  width: 100%;
  min-width: 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-empty {
  margin: 0;
  padding: 18px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-actions .ct-post-action-btn.static {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  background: transparent;
  color: #475467;
  font-weight: 800;
}

@media (max-width: 560px) {
  .ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-display,
  .ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card .ct-slip-comment-input {
    width: calc(100% - 28px);
    margin: 12px 14px 0;
    font-size: 14px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-group-slip-post-card {
    border-radius: 14px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-actions {
    overflow-x: auto;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-post-actions .ct-post-action-btn.static {
    min-width: 54px;
    min-height: 38px;
    padding-inline: 9px;
  }
}

/* Schedina gruppo - reset anti-sovrapposizione */
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card *,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row * {
  box-sizing: border-box;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card strong,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card small,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row strong,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card .ct-gp-tab-teams,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row .ct-gp-tab-teams {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card .ct-gp-tab-teams > span,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row .ct-gp-tab-teams > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card .ct-gp-tab-teams em,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row .ct-gp-tab-teams em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main {
  overflow: hidden;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side {
  position: relative;
  z-index: 3;
}

/* Schedina gruppo - card compatte */
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick {
  min-height: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  border-width: 1px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick::after {
  width: 66px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card .ct-slip-composer-check {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  margin-top: 0;
  border-radius: 7px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-body {
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main {
  gap: 4px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-event-meta {
  width: 100%;
  min-width: 0;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-event-competition {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #667085;
  font-size: 10.8px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-event-date {
  flex: 0 0 auto;
  margin: 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-owner,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-owner {
  justify-self: start;
  max-width: 100%;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams {
  width: 100%;
  flex-wrap: nowrap;
  gap: 5px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams img,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams i,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams img,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams i {
  width: 20px;
  height: 20px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams em,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams em {
  max-width: 120px;
  font-size: 11.5px;
  font-weight: 950;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main small,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main small {
  display: block;
  color: #667085;
  font-size: 10.8px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main > em,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main > em {
  padding: 3px 7px;
  font-size: 10.5px;
  line-height: 1.15;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side {
  align-content: center;
  gap: 0;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-side b,
.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side b {
  min-width: 48px;
  min-height: 28px;
  font-size: 12.5px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row {
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  padding: 9px 10px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main {
  gap: 4px;
}

.ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-side {
  align-content: center;
  gap: 7px;
}

@media (max-width: 700px) {
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 9px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card.ct-group-prediction-slip-pick::after {
    width: 58px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-body {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main .ct-gp-tab-teams em,
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main .ct-gp-tab-teams em {
    max-width: 78px;
  }

  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-pick-card-main small,
  .ct-messages-page .ct-group-prediction-slip-modal .ct-slip-ticket-row-main small {
    white-space: normal;
  }
}

