/* League actions share a compact panel in both dialogs and direct page visits. */
html.cb-league-dialog-open { overflow: hidden; }
.cb-home.cb-account-shell .cb-league-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: 85vh;
  max-height: 85dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #8ee8b851;
  border-radius: 20px;
  background: #0c201f;
  color: #edf9f2;
  box-shadow: inset 0 1px #d4ffe62b, 0 28px 90px #0009;
  scrollbar-width: thin;
  scrollbar-color: #456b5d #0c201f;
  color-scheme: dark;
}
.cb-home.cb-account-shell .cb-league-dialog::backdrop {
  background: #020c12c9;
  backdrop-filter: blur(7px);
}
.cb-home.cb-account-shell .cb-league-dialog[open] {
  animation: cb-league-dialog-enter .18s ease-out;
}
.cb-home.cb-account-shell .cb-league-dialog turbo-frame {
  display: block;
  min-width: 0;
}
.cb-home.cb-account-shell .cb-league-dialog [hidden] { display: none !important; }
.cb-home.cb-account-shell .cb-league-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #a1d4bc30;
  border-radius: 12px;
  background: #0c241fea;
  color: #c7e7d7;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.cb-home.cb-account-shell .cb-league-dialog-close:hover {
  background: #1e4032;
  border-color: #8cebb77a;
  color: #f0fff7;
}
.cb-home.cb-account-shell .cb-league-dialog-close:disabled {
  border-color: #a1d4bc20;
  background: #0c241f;
  color: #91aa9c;
  opacity: .6;
  cursor: wait;
}
.cb-home.cb-account-shell .cb-league-dialog-close svg { width: 18px; height: 18px; }
.cb-home.cb-account-shell .cb-league-dialog-error {
  margin: 68px 24px 0;
  padding: 12px 15px;
  border: 1px solid #ecb5a64d;
  border-left: 3px solid #edb19f;
  border-radius: 10px;
  background: #332622;
  color: #ffddd3;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.cb-home.cb-account-shell .cb-league-dialog-loading {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
  min-height: 200px;
  padding: 36px 68px 36px 32px;
  color: #bed7c9;
  font-size: 14px;
  line-height: 1.8;
}
.cb-home.cb-account-shell .cb-league-dialog-loading p { margin: 0; }
.cb-home.cb-account-shell .cb-league-dialog-loading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8ff0bd;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cb-home.cb-account-shell .cb-league-flow {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #9bd1b93b;
  border-radius: 20px;
  background: radial-gradient(ellipse at 10% 0%, #7ef7b80b, transparent 65%), linear-gradient(145deg, #142c29, #0b1a20);
  box-shadow: inset 0 1px #d4ffe61f, 0 16px 42px #0003;
  overflow-wrap: anywhere;
}
.cb-home.cb-account-shell .cb-league-dialog .cb-league-flow {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cb-home.cb-account-shell .cb-league-flow-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.cb-home.cb-account-shell .cb-league-dialog .cb-league-flow-heading { padding-right: 36px; }
.cb-home.cb-account-shell .cb-league-flow-heading > div { min-width: 0; }
.cb-home.cb-account-shell .cb-league-flow-heading .cb-league-emblem {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: inset 0 1px #d6ffe51a;
}
.cb-home.cb-account-shell .cb-league-flow .cb-eyebrow {
  margin: 0 0 7px;
  color: #92e9bc;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .14em;
}
.cb-home.cb-account-shell .cb-league-flow-heading h1 {
  margin: 0;
  color: #f0fff6;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.cb-home.cb-account-shell .cb-league-flow-heading p:not(.cb-eyebrow) {
  margin: 10px 0 0;
  color: #b4cdbf;
  font-size: 13px;
  line-height: 1.75;
}
.cb-home.cb-account-shell .cb-league-context {
  margin-bottom: 24px;
  padding: 12px 15px;
  border: 1px solid #93c9ac2b;
  border-radius: 10px;
  background: #071b1966;
  color: #c2dece;
  font-size: 12px;
  line-height: 1.75;
}
.cb-home.cb-account-shell .cb-league-context :is(p, .cb-eyebrow) { margin: 0; }
.cb-home.cb-account-shell .cb-league-context :is(span, strong) { display: block; }
.cb-home.cb-account-shell .cb-league-context strong { color: #e1f4e9; font-weight: 600; }
.cb-home.cb-account-shell .cb-league-flow-body { min-width: 0; }
.cb-home.cb-account-shell .cb-league-flow-body > p {
  margin: 0 0 18px;
  color: #b4cdbf;
  font-size: 13px;
  line-height: 1.8;
}
.cb-home.cb-account-shell .cb-account-form.cb-league-flow-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cb-home.cb-account-shell .cb-account-form.cb-league-flow-form::before { display: none; }
.cb-home.cb-account-shell .cb-league-flow .cb-form-field { gap: 9px; margin-bottom: 20px; }
.cb-home.cb-account-shell .cb-league-flow .cb-form-field label { color: #e1f0e6; font-size: 13px; }
.cb-home.cb-account-shell .cb-league-flow .cb-form-field :is(input, select, textarea):not([type="hidden"], [type="checkbox"], [type="radio"]) {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid #accfb54d;
  border-radius: 10px;
  background: #071719;
  color: #effbf3;
  font-size: 16px;
  box-shadow: inset 0 2px 6px #0003;
}
.cb-home.cb-account-shell .cb-league-flow input::placeholder { color: #91ac9f; opacity: 1; }
.cb-home.cb-account-shell .cb-league-flow .cb-form-field .field_with_errors input { border-color: #eaa99c; }
.cb-home.cb-account-shell .cb-league-flow .cb-field-help {
  margin: 0;
  color: #b0c9bb;
  font-size: 12px;
  line-height: 1.75;
}
.cb-home.cb-account-shell .cb-league-flow-note,
.cb-home.cb-account-shell .cb-league-flow-state {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid #8ad6ac29;
  border-left: 2px solid #75dfac;
  border-radius: 10px;
  background: #72e9a908;
  color: #d2eedf;
  font-size: 13px;
  line-height: 1.75;
}
.cb-home.cb-account-shell :is(.cb-league-flow-note, .cb-league-flow-state) strong { font-weight: 600; }
.cb-home.cb-account-shell :is(.cb-league-flow-note, .cb-league-flow-state) p { margin: 6px 0 0; color: #b2cdbd; }
.cb-home.cb-account-shell :is(.cb-league-flow-note, .cb-league-flow-state) p:first-child { margin-top: 0; }
.cb-home.cb-account-shell .cb-league-flow-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}
.cb-home.cb-account-shell .cb-league-flow .cb-button {
  min-width: 0;
  min-height: 46px;
  max-width: 100%;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid #9bcdb54d;
  border-radius: 10px;
  background: linear-gradient(135deg, #264d3b, #102d26);
  color: #d5f4e3;
  box-shadow: inset 0 1px #d0ffe71c;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.cb-home.cb-account-shell .cb-league-flow .cb-button-primary {
  border-color: #beffe27a;
  background: linear-gradient(115deg, #a5ffd3, #5aedb8 65%, #42dfb5);
  color: #06291e;
  box-shadow: inset 0 1px #f3fff4aa, 0 7px 24px #36d89b26;
}
.cb-home.cb-account-shell .cb-league-flow .cb-button:hover {
  transform: translateY(-1px);
  border-color: #a4f7c88a;
  background: #23503d;
}
.cb-home.cb-account-shell .cb-league-flow .cb-button-primary:hover { background: linear-gradient(115deg, #baffdd, #79f6c8); }
.cb-home.cb-account-shell .cb-league-flow .cb-button:disabled {
  transform: none;
  border-color: #93b29d38;
  background: #244739;
  color: #a9bdae;
  box-shadow: none;
  cursor: wait;
}
.cb-home.cb-account-shell .cb-league-flow-actions > :is(.cb-text-link, button:not(.cb-button)),
.cb-home.cb-account-shell .cb-league-flow-alternate a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #bfdaca;
  font-size: 12px;
}
.cb-home.cb-account-shell .cb-league-flow-actions > button:not(.cb-button) {
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cb-home.cb-account-shell .cb-league-flow-actions > .cb-text-link:hover,
.cb-home.cb-account-shell .cb-league-flow-alternate a:hover { color: #9effcc; }
.cb-home.cb-account-shell .cb-league-join-preview { margin-bottom: 22px; }
.cb-home.cb-account-shell .cb-league-flow .cb-league-join-preview h2 {
  margin: 0 0 8px;
  color: #f0fff6;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.03em;
}
.cb-home.cb-account-shell .cb-league-join-preview > p { margin: 0; color: #afcbbb; font-size: 12px; line-height: 1.75; }
.cb-home.cb-account-shell .cb-league-join-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.cb-home.cb-account-shell .cb-league-join-facts > span {
  padding: 6px 10px;
  border: 1px solid #8bd8ad2b;
  border-radius: 8px;
  background: #70e8a909;
  color: #bce8cf;
  font-size: 11px;
  line-height: 1.6;
}
.cb-home.cb-account-shell .cb-league-flow-alternate {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid #a3d5b91e;
}
.cb-home.cb-account-shell .cb-league-flow .cb-form-errors {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid #ecb5a64d;
  border-left: 3px solid #edb19f;
  border-radius: 10px;
  background: #332622;
  color: #ffddd3;
  font-size: 13px;
  line-height: 1.75;
}
.cb-home.cb-account-shell .cb-league-flow .cb-invite-share { margin-top: 22px; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-share:first-child { margin-top: 0; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-copy-row { gap: 10px; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-copy-row input {
  min-height: 48px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}
.cb-home.cb-account-shell .cb-league-flow .cb-invite-code { letter-spacing: .025em; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-feedback { min-height: 20px; margin: 6px 0 0; font-size: 12px; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset { padding-top: 10px; margin-top: 18px; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  color: #b7cfc0;
  font-size: 12px;
}
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset summary::-webkit-details-marker { display: none; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset summary::after { content: "+"; margin-left: auto; color: #a2d0ba; font-size: 20px; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset[open] summary::after { content: "−"; }
.cb-home.cb-account-shell .cb-league-flow .cb-invite-reset p { margin: 8px 0 16px; font-size: 12px; line-height: 1.8; }
.cb-home.cb-account-shell :is(.cb-league-flow, .cb-league-dialog) :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #8afad0;
  outline-offset: 3px;
}
.cb-home.cb-account-shell .cb-league-start-compact {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
}
.cb-home.cb-account-shell .cb-league-start-compact > div { min-width: 0; }
.cb-home.cb-account-shell .cb-league-start-compact .cb-eyebrow { margin-bottom: 6px; }
.cb-home.cb-account-shell .cb-league-start-compact h2 { margin: 0 0 7px; font-size: 20px; line-height: 1.35; }
.cb-home.cb-account-shell .cb-league-start-compact .cb-field-help { margin: 0; }
.cb-home.cb-account-shell .cb-league-start-compact .cb-league-edition-option { min-width: 0; min-height: 60px; padding: 12px 16px; }
.cb-home.cb-account-shell .cb-league-start-compact .cb-league-edition-option strong { font-size: 13px; }
.cb-home.cb-account-shell .cb-league-start-compact .cb-league-edition-option small { margin-top: 2px; font-size: 11px; }
.cb-home.cb-account-shell .cb-league-list-caption { margin: 0 0 18px; color: #a9c6b5; font-size: 12px; line-height: 1.75; }

@keyframes cb-league-dialog-enter {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}
@media (max-width: 700px) {
  .cb-home.cb-account-shell .cb-league-start-compact { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .cb-home.cb-account-shell .cb-league-dialog { width: calc(100% - 24px); border-radius: 16px; }
  .cb-home.cb-account-shell .cb-league-flow { padding: 26px 20px; border-radius: 16px; }
  .cb-home.cb-account-shell .cb-league-flow-heading { gap: 12px; margin-bottom: 22px; }
  .cb-home.cb-account-shell .cb-league-dialog .cb-league-flow-heading { padding-right: 36px; }
  .cb-home.cb-account-shell .cb-league-flow-heading .cb-league-emblem { width: 42px; height: 42px; border-radius: 11px; }
  .cb-home.cb-account-shell .cb-league-flow-heading h1 { font-size: 24px; }
  .cb-home.cb-account-shell .cb-league-flow-heading .cb-eyebrow { font-size:10px; letter-spacing: .1em; }
  .cb-home.cb-account-shell .cb-league-flow-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .cb-home.cb-account-shell .cb-league-flow-actions > .cb-button { width: 100%; }
  .cb-home.cb-account-shell .cb-league-flow .cb-invite-copy-row { flex-direction: column; }
  .cb-home.cb-account-shell .cb-league-flow .cb-invite-copy-row .cb-button { width: 100%; }
  .cb-home.cb-account-shell .cb-league-flow .cb-invite-code { font-size: 12px; letter-spacing: .01em; }
  .cb-home.cb-account-shell .cb-league-start-compact { padding: 20px; }
  .cb-home.cb-account-shell .cb-league-dialog-loading { padding: 28px 62px 28px 22px; }
}
@media (max-width: 360px) {
  .cb-home.cb-account-shell .cb-league-flow { padding-inline: 17px; }
  .cb-home.cb-account-shell .cb-league-flow-heading { flex-wrap: wrap; }
  .cb-home.cb-account-shell .cb-league-flow-heading .cb-league-emblem { width: 38px; height: 38px; }
  .cb-home.cb-account-shell .cb-league-context { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-home.cb-account-shell .cb-league-dialog[open] { animation: none; }
  .cb-home.cb-account-shell .cb-league-flow .cb-button:hover { transform: none; }
  .cb-home.cb-account-shell .cb-league-dialog-close { transition: none; }
}
