/* Shared finish for remaining account pages; the homepage never uses this marker. */
.cb-account-main.cb-interface-polish {
  --ui-line: #b4dbc338;
  --ui-muted: #b4cbbf;
  --ui-surface: radial-gradient(ellipse at 0% 0%, #67e9ac0e, transparent 65%), linear-gradient(145deg, #142c29, #0b1a20);
  font-variant-numeric: tabular-nums;
}
.cb-account-main.cb-interface-polish :is(.cb-auth-card, .cb-account-panel, .cb-admin-editor) {
  position: relative;
  min-width: 0;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: inset 0 1px #d4ffe619, 0 12px 32px #0003;
}
.cb-account-main.cb-interface-polish .cb-auth-card {
  padding: 36px;
  border-color: #8ee8b84d;
  box-shadow: inset 0 1px #d4ffe625, 0 20px 55px #0004;
}
.cb-account-main.cb-interface-polish .cb-auth-card::before,
.cb-account-main.cb-interface-polish .cb-admin-editor::before {
  content: "";
  position: absolute;
  inset: -1px 15% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #acffd4a6, transparent);
  pointer-events: none;
}
.cb-account-main.cb-interface-polish .cb-auth-card .cb-admin-editor {
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: none;
}
.cb-account-main.cb-interface-polish .cb-auth-card .cb-admin-editor::before { display: none; }
.cb-account-main.cb-interface-polish .cb-account-heading {
  position: relative;
  padding: 32px;
  border: 1px solid #77e7b65c;
  border-radius: 18px;
  background: radial-gradient(ellipse at 90% 15%, #76efba17, transparent 55%), linear-gradient(115deg, #15352b, #0a1a20);
  box-shadow: inset 0 1px #dcffe51c, 0 14px 35px #0003;
}
.cb-account-main.cb-interface-polish .cb-account-heading::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(transparent, #69f2bc, transparent);
  pointer-events: none;
}
.cb-account-main.cb-interface-polish .cb-account-heading::after {
  content: "";
  position: absolute;
  inset: 0 12% auto 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a7ffda9c, transparent);
  pointer-events: none;
}
.cb-account-main.cb-interface-polish :is(h1, h2) .cb-accent { color: #69f2bc; text-shadow: 0 3px 28px #43e8b022; }
.cb-account-main.cb-interface-polish .cb-eyebrow { color: #86efbf; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.cb-account-main.cb-interface-polish .cb-account-heading h1 { font-size: clamp(29px, 3.3vw, 42px); }
.cb-account-main.cb-interface-polish :is(.cb-account-panel, .cb-account-history) h2 { font-size: 23px; font-weight: 650; }
.cb-account-main.cb-interface-polish :is(.cb-account-intro, .cb-account-panel > p, .cb-account-heading > p:not(.cb-eyebrow)) { color: var(--ui-muted); line-height: 1.8; }
.cb-account-main.cb-interface-polish .cb-field-help { color: #b1c8b9; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.cb-account-main.cb-interface-polish .cb-account-form { min-width: 0; }
.cb-account-main.cb-interface-polish .cb-form-field { min-width: 0; gap: 9px; margin-bottom: 22px; }
.cb-account-main.cb-interface-polish .cb-form-field label { color: #e1f0e6; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.cb-account-main.cb-interface-polish .cb-form-field :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"]) {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid #accfb54d;
  border-radius: 9px;
  background: #071719 linear-gradient(#071419, #0b1c1e);
  color: #effbf3;
  color-scheme: dark;
  font-size: 16px;
  box-shadow: inset 0 2px 6px #0003, 0 1px #ffffff04;
  transition: border-color .18s, box-shadow .18s;
}
.cb-account-main.cb-interface-polish .cb-form-field textarea { resize: vertical; min-height: 112px; }
.cb-account-main.cb-interface-polish .cb-form-field :is(input, textarea)::placeholder { color: #91ac9f; opacity: 1; }
.cb-account-main.cb-interface-polish .cb-form-field :is(input, select, textarea):focus {
  border-color: #91efbe;
  outline: 2px solid #73efb88c;
  outline-offset: 2px;
  box-shadow: inset 0 2px 6px #0002, 0 0 0 4px #55edb00a;
}
.cb-account-main.cb-interface-polish .cb-form-field input[readonly] { border-style: dashed; color: #d6ddc4; background: #18261f; }
.cb-account-main.cb-interface-polish .cb-form-field .field_with_errors :is(input, select, textarea) { border-color: #eaa99c; }
.cb-account-main.cb-interface-polish input:is([type="checkbox"], [type="radio"]) { width: 19px; height: 19px; flex-shrink: 0; accent-color: #68ecb6; color-scheme: dark; }
.cb-account-main.cb-interface-polish :is(.cb-check-field, .cb-logo-remove) { color: #d3e7db; font-size: 13px; line-height: 1.7; }
.cb-account-main.cb-interface-polish .cb-account-form fieldset { min-width: 0; border: 1px solid #a3d1b634; border-radius: 12px; padding: 20px; margin: 26px 0; background: #071c191f; }
.cb-account-main.cb-interface-polish .cb-account-form legend { padding-inline: 8px; color: #b5f7d6; font-size: 15px; }
.cb-account-main.cb-interface-polish .cb-account-form legend span { color: #b1c8b9; }
.cb-account-main.cb-interface-polish :is(.cb-logo-upload, .cb-photo-upload) { padding: 19px; border: 1px dashed #92deb75c; border-radius: 11px; background: radial-gradient(ellipse at 0% 0%, #64eeaa0b, transparent 70%), #091c1b; }
.cb-account-main.cb-interface-polish input[type="file"] { width: 100%; min-width: 0; max-width: 100%; padding: 10px; font-size: 12px; }
.cb-account-main.cb-interface-polish input[type="file"]::file-selector-button { border: 1px solid #92e8b74d; border-radius: 6px; padding: 8px 10px; margin-right: 10px; background: linear-gradient(135deg, #2a5b42, #15392d); color: #d7ffe7; font: inherit; cursor: pointer; }
.cb-account-main.cb-interface-polish .cb-logo-upload input[type="file"]:invalid { border-color: #edb19f; background: #30241f; }
.cb-account-main.cb-interface-polish .cb-logo-upload:has(input[type="file"]:invalid) .cb-logo-feedback { margin-top: 10px; padding: 10px 12px; border-left: 2px solid #edb19f; border-radius: 4px; background: #3b2a25; color: #ffddd3; }
.cb-account-main.cb-interface-polish .cb-button { min-height: 46px; max-width: 100%; text-align: center; white-space: normal; }
.cb-account-main.cb-interface-polish .cb-button:not(.cb-button-primary, .cb-button-danger) { border: 1px solid #9bcdb54d; background: linear-gradient(135deg, #264d3b, #102d26); color: #d5f4e3; box-shadow: inset 0 1px #d0ffe71c; }
.cb-account-main.cb-interface-polish .cb-button:not(.cb-button-primary, .cb-button-danger):not(:disabled):hover { border-color: #95edbd7a; background: #23503d; }
.cb-account-main.cb-interface-polish .cb-button-primary { border: 1px solid #beffe27a; background: linear-gradient(115deg, #a5ffd3, #5aedb8 65%, #42dfb5); color: #06291e; box-shadow: inset 0 1px #f3fff4aa, 0 7px 24px #36d89b26; }
.cb-account-main.cb-interface-polish .cb-button-primary:hover { transform: translateY(-2px); background: linear-gradient(115deg, #baffdd, #79f6c8); box-shadow: inset 0 1px #fff, 0 10px 28px #36d89b3d; }
.cb-account-main.cb-interface-polish .cb-button-danger { border: 1px solid #ffd4c770; background: linear-gradient(115deg, #f5c7b9, #e7a193); color: #3b1e17; box-shadow: inset 0 1px #fff4, 0 7px 24px #d3755812; }
.cb-account-main.cb-interface-polish .cb-button-danger:hover { background: linear-gradient(115deg, #ffdacb, #efb3a4); transform: translateY(-1px); box-shadow: 0 8px 25px #d3755821; }
.cb-account-main.cb-interface-polish .cb-button:disabled { opacity: 1; cursor: not-allowed; transform: none; border-color: #93b29d38; background: #244739; color: #a9bdae; box-shadow: none; }
.cb-account-main.cb-interface-polish .cb-form-errors,
.cb-account-main.cb-interface-polish .cb-flash-alert { border: 1px solid #ecb5a64d; border-left: 3px solid #edb19f; border-radius: 10px; background: linear-gradient(120deg, #3b2a25, #2b2323); color: #ffddd3; }
.cb-account-main.cb-interface-polish .cb-flash:not(.cb-flash-alert) { border-radius: 10px; border-color: #a0e7ba47; background: linear-gradient(120deg, #1e4231, #142d26); }
.cb-account-main.cb-interface-polish .cb-account-switch { color: var(--ui-muted); line-height: 1.8; }
.cb-account-main.cb-interface-polish .cb-auth-card > .cb-button { margin-top: 20px; }
.cb-account-main.cb-interface-polish .cb-auth-card > .cb-field-help { margin-top: 18px; }
.cb-account-main.cb-interface-polish .cb-text-link { color: #c8ead8; }
.cb-account-main.cb-interface-polish .cb-text-link:hover { color: #9effcc; }
.cb-account-main.cb-interface-polish .cb-pagination { gap: 14px; }
.cb-account-main.cb-interface-polish .cb-pagination a { padding: 9px 14px; border: 1px solid #9bdfb73d; border-radius: 8px; background: #12332a; color: #b3f4d1; }
.cb-account-main.cb-interface-polish :is(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible { outline: 2px solid #7ff3bd; outline-offset: 4px; }
@media (max-width: 760px) {
  .cb-account-main.cb-interface-polish :is(.cb-auth-card, .cb-account-heading, .cb-admin-editor) { padding: 25px 23px; }
  .cb-account-main.cb-interface-polish .cb-account-panel { padding: 23px; }
  .cb-account-main.cb-interface-polish .cb-account-form fieldset { padding: 17px; }
  .cb-account-main.cb-interface-polish .cb-logo-upload { padding: 15px; }
}
@media (max-width: 380px) {
  .cb-account-main.cb-interface-polish :is(.cb-auth-card, .cb-account-heading, .cb-admin-editor, .cb-account-panel) { padding: 22px 18px; }
  .cb-account-main.cb-interface-polish .cb-account-form fieldset { padding-inline: 12px; }
  .cb-account-main.cb-interface-polish .cb-form-field label { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-account-main.cb-interface-polish *, .cb-account-main.cb-interface-polish *::before, .cb-account-main.cb-interface-polish *::after { transition: none !important; animation: none !important; }
  .cb-account-main.cb-interface-polish .cb-button:hover { transform: none; }
}

/* Editable scorecard previews keep each player's statistics together. */
/* Shared scoring-completion heading; standings have their own stylesheet. */
.cb-standings-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cb-standings-intro .cb-eyebrow { margin-bottom: 10px; }
.cb-points-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.cb-points-overview > div { flex: 1 1 360px; }
.cb-points-list { display: grid; gap: 16px; margin-top: 20px; }
.cb-points-card summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; list-style: none; cursor: pointer; }
.cb-points-card summary::-webkit-details-marker { display: none; }
.cb-points-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cb-points-identity > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cb-points-identity strong { font-size: 19px; color: #e9fff3; }
.cb-points-identity .cb-field-help { display: block; margin-top: 5px; }
.cb-points-total { display: grid; justify-items: end; flex-shrink: 0; color: #8af2bf; font-variant-numeric: tabular-nums; }
.cb-points-total > strong { font-size: 36px; line-height: 1.2; }
.cb-points-total > span { font-size: 12px; }
.cb-points-toggle { margin-top: 10px; color: #c5dfd0; }
.cb-points-card[open] .cb-points-toggle > span { display: inline-block; transform: rotate(180deg); }
.cb-points-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.cb-points-group { min-width: 0; background: #061b1980; border: 1px solid #9ce6c429; border-radius: 12px; padding: 18px; }
.cb-points-group h3 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: 16px; }
.cb-points-group h3 span, .cb-points-group dd { color: #8af2bf; }
.cb-points-group dl { margin: 0; }
.cb-points-group dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #9ce6c41c; }
.cb-points-group dt { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.cb-points-group small { display: block; margin-top: 5px; color: #b1c8b9; font-size: 11px; line-height: 1.6; }
.cb-points-group dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.cb-points-card .is-negative { color: #ffb8a4; }
@media (max-width: 900px) { .cb-points-groups { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .cb-points-card summary { align-items: flex-start; flex-direction: column; }
  .cb-points-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
  .cb-points-identity { gap: 12px; }
  .cb-points-identity strong { font-size: 17px; }
}
.cb-scorecard-preview { margin-top: 24px; }
.cb-scorecard-row { margin-bottom: 16px; }
.cb-scorecard-row summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.cb-scorecard-row summary::-webkit-details-marker { display: none; }
.cb-scorecard-row summary strong { display: block; margin-top: 6px; font-size: 17px; color: #e8fff3; overflow-wrap: anywhere; }
.cb-scorecard-row summary:focus-visible { outline: 2px solid #52efbb; outline-offset: 6px; border-radius: 4px; }
.cb-scorecard-state { flex-shrink: 0; color: #91efc3; font-size: 12px; }
.cb-scorecard-state.has-errors { color: #ffbb96; }
.cb-scorecard-fields { margin-top: 24px; }
.cb-scorecard-fields fieldset { min-width: 0; margin: 0 0 18px; padding: 16px; border: 1px solid #9ce6c429; border-radius: 12px; }
.cb-scorecard-fields legend { padding: 0 8px; color: #91efc3; font-size: 13px; font-weight: 650; }
.cb-scorecard-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-scorecard-field-grid .cb-form-field { min-width: 0; margin: 0; }
.cb-scorecard-field-grid input, .cb-scorecard-field-grid select { box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #89d6b33d; border-radius: 8px; background: #061719; color: #e4f9ef; font: inherit; }
.cb-scorecard-field-grid input:focus, .cb-scorecard-field-grid select:focus { outline: 2px solid #52efbb; outline-offset: 2px; }
.cb-scorecard-player { grid-column: 1 / -1; }
.cb-scorecard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cb-scorecard-actions > div { flex: 1 1 240px; }
@media (max-width: 600px) {
  .cb-scorecard-row summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cb-scorecard-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cb-excel-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed #64e6b67a;
  border-radius: 16px;
  background: radial-gradient(ellipse at top, #38dcae16, transparent 75%), #071b1c;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.cb-excel-upload-icon { width: 44px; height: 44px; margin-bottom: 4px; color: #65edc3; }
.cb-excel-dropzone strong { color: #ecfff7; font-size: 18px; }
.cb-excel-dropzone > span { color: #afcdc3; font-size: 14px; }
.cb-excel-browse { color: #72f0c8; text-decoration: underline; text-underline-offset: 4px; }
.cb-excel-dropzone small { color: #9ebeb5; font-size: 12px; }
.cb-excel-dropzone:hover, .cb-excel-dropzone.has-file { border-color: #68ecc1; }
.cb-excel-dropzone:focus-within { outline: 2px solid #72f0c8; outline-offset: 4px; }
.cb-excel-dropzone.is-dragging { border-style: solid; border-color: #86ffd5; background-color: #123b30; box-shadow: inset 0 0 32px #4de5b517, 0 0 24px #4de5b517; }
.cb-account-main.cb-interface-polish .cb-excel-dropzone .cb-excel-file-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.cb-excel-selection { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cb-excel-selection p { min-width: 0; margin: 0; color: #b6dbcc; font-size: 13px; overflow-wrap: anywhere; }
.cb-excel-selection button { flex-shrink: 0; font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cb-excel-selection button[hidden] { display: none; }
.cb-excel-error { color: #ffb9b1; font-size: 13px; }
.cb-excel-error:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .cb-excel-dropzone { transition: none; } }
.cb-image-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 24px 16px; border: 1px dashed #64e6b67a; border-radius: 12px; text-align: center; background: radial-gradient(ellipse at top, #38dcae16, transparent 75%), #071b1c; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.cb-image-dropzone { margin-bottom: 14px; }
.cb-image-upload-icon { width: 34px; height: 34px; color: #65edc3; }
.cb-image-dropzone strong { color: #ecfff7; font-size: 16px; }
.cb-image-dropzone > span { color: #afcdc3; font-size: 13px; }
.cb-image-browse { color: #72f0c8; text-decoration: underline; text-underline-offset: 4px; }
.cb-image-dropzone small { color: #9ebeb5; font-size: 12px; }
.cb-image-dropzone:hover, .cb-image-dropzone.has-file { border-color: #68ecc1; }
.cb-image-dropzone:focus-within { outline: 2px solid #72f0c8; outline-offset: 4px; }
.cb-image-dropzone.is-dragging { border-style: solid; border-color: #86ffd5; background-color: #123b30; box-shadow: inset 0 0 32px #4de5b517, 0 0 24px #4de5b517; }
.cb-account-main .cb-logo-upload .cb-image-dropzone input.cb-image-file-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.cb-logo-feedback { overflow-wrap: anywhere; }
@media (max-width: 540px) { .cb-logo-upload-controls { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cb-image-dropzone { transition: none; } }
.cb-lineup-status, .cb-lineup-editor-heading, .cb-lineup-publish { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cb-lineup-status > p, .cb-lineup-editor-heading > p { max-width: 400px; }
.cb-lineup-import summary { cursor: pointer; color: #b5eed8; padding: 4px 0; }
.cb-lineup-editor-heading { margin-bottom: 22px; }
.cb-lineup-team-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cb-lineup-team-heading h2 { margin-bottom: 8px; }
.cb-lineup-count { display: inline-block; padding: 5px 10px; border: 1px solid #b4dbc338; border-radius: 24px; font-size: 12px; color: #bacfc5; font-variant-numeric: tabular-nums; }
.cb-lineup-count.is-ready { color: #69f2bc; background: #69f2bc12; border-color: #69f2bc60; }
.cb-lineup-count.is-over { color: #ffb9b1; border-color: #ffb9b160; }
.cb-lineup-player { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 7px 0; border: 1px solid transparent; border-radius: 10px; cursor: pointer; background: #05171955; }
.cb-lineup-player:hover { background: #69f2bc09; }
.cb-lineup-player:has(input:checked) { background: #69f2bc12; border-color: #69f2bc60; }
.cb-lineup-player:focus-within { outline: 2px solid #69f2bc; outline-offset: 2px; }
.cb-lineup-player > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cb-lineup-player strong { display: block; color: #eafff4; font-size: 14px; }
.cb-lineup-player small { display: block; margin-top: 4px; color: #afcbbd; font-size: 12px; }
.cb-lineup-player input { flex-shrink: 0; }
.cb-playing-xi-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.cb-playing-xi-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cb-playing-xi-legend i, .cb-playing-dot { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border: 2px solid #071719; border-radius: 50%; background: #506c67; color: #fff; font: 700 10px/1 sans-serif; }
.cb-playing-xi-legend i.is-in, .cb-playing-dot.is-in { background: #39e898; box-shadow: 0 0 8px #39e89850; }
.cb-playing-xi-legend i.is-out, .cb-playing-dot.is-out { background: #7c8584; }
.cb-squad-avatar:has(.cb-playing-dot) { position: relative; overflow: visible; }
.cb-squad-avatar .cb-playing-dot { position: absolute; right: -3px; bottom: -3px; z-index: 2; }
.cb-squad-avatar .cb-playing-dot[hidden] { display: none; }
.cb-playing-only { display: flex; align-items: center; gap: 8px; margin: 0 22px 16px; color: #afcbbd; font-size: 12px; }
.cb-playing-only input { accent-color: #39e898; }
@media (max-width: 1000px) { .cb-playing-only { margin-inline: 14px; } }
.cb-squad-avatar:has(.cb-playing-dot) > img { border-radius: inherit; }
/* Private leagues use the existing account palette and page width. */
.cb-league-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.cb-league-hero > div { min-width: 0; }
.cb-league-hero h1 { overflow-wrap: anywhere; }
.cb-league-emblem { display: grid; place-items: center; flex-shrink: 0; width: 82px; height: 82px; color: #6ff1bf; border: 1px solid #6ff1bf38; border-radius: 20px; background: radial-gradient(circle at 25% 10%, #6ff1bf22, #071b1d); box-shadow: inset 0 1px #d6ffe51a, 0 10px 30px #0002; }
.cb-league-emblem svg { width: 85%; height: 85%; }
.cb-league-hero > .cb-league-emblem { width: 170px; height: 170px; transform: rotate(-7deg); border-radius: 34px; }
.cb-league-pill { display: inline-block; padding: 6px 12px; border: 1px solid #6ff1bf42; border-radius: 24px; color: #a5f5d3; font-size: 12px; background: #6ff1bf09; }
.cb-league-start { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cb-league-edition-options { display: grid; gap: 10px; }
.cb-league-edition-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #6ff1bf35; border-radius: 12px; padding: 16px; background: #081f1c; color: #dfffee; }
.cb-league-edition-option > span { min-width: 0; overflow-wrap: anywhere; }
.cb-league-edition-option > span:last-child { flex-shrink: 0; font-size: 12px; color: #6ff1bf; }
.cb-league-edition-option small { display: block; margin-top: 6px; color: #acc8ba; }
.cb-league-section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.cb-league-section-heading { margin-bottom: 20px; }
.cb-league-empty { text-align: center; padding: 40px; }
.cb-league-empty > .cb-league-emblem { margin: 0 auto 22px; }
.cb-league-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 28px 0; color: #b2cfc1; }
.cb-league-form { max-width: 720px; }
.cb-league-form-note { padding: 20px; border-left: 2px solid #6ff1bf; border-radius: 8px; margin: 22px 0; background: #6ff1bf09; color: #d8f5e6; }
.cb-league-form-note p { color: #b2cfc1; font-size: 13px; line-height: 1.8; margin-top: 8px; }
.cb-league-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-league-stat-grid strong { display: block; font-size: 38px; color: #a5f5d3; margin: 12px 0; }
.cb-league-stat-grid strong.cb-league-season-status { font-size: clamp(22px, 3vw, 32px); }
.cb-league-stat-grid p { font-size: 12px; color: #b2cfc1; }
.cb-league-coming h2 { margin-top: 20px; }
@media (max-width: 700px) { .cb-league-start { grid-template-columns: 1fr; }.cb-league-hero > .cb-league-emblem { width: 90px; height: 90px; }.cb-league-stat-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .cb-league-hero > .cb-league-emblem { display: none; }.cb-league-edition-option { align-items: start; flex-direction: column; } }

/* Private league invitations */
.cb-invite-share { margin-top: 1.5rem; }
.cb-invite-share label { display: block; margin-bottom: .6rem; font-weight: 700; font-size: .85rem; color: #c8e9dd; }
.cb-invite-copy-row { display: flex; align-items: stretch; gap: .75rem; }
.cb-invite-copy-row input { flex: 1; min-width: 0; width: 100%; border: 1px solid #2b544b; border-radius: .65rem; background: #051917; color: #c8e9dd; padding: .9rem 1rem; font-size: .95rem; }
.cb-invite-copy-row .cb-button { flex-shrink: 0; }
.cb-invite-copy-row .cb-invite-code { font-family: monospace; font-weight: 700; letter-spacing: .1em; color: #69f3c0; }
.cb-invite-feedback { min-height: 1.5em; font-size: .8rem; color: #69f3c0; margin-top: .4rem; }
.cb-invite-reset { border-top: 1px solid #25423b; padding-top: 1.25rem; margin-top: 1rem; }
.cb-invite-reset summary { cursor: pointer; color: #b1c9c0; font-size: .85rem; }
.cb-invite-reset p { margin: 1rem 0; color: #adc3ba; }
.cb-invite-preview, .cb-invite-entry { max-width: 860px; }
.cb-invite-preview h2 { overflow-wrap: anywhere; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cb-invite-preview > p { margin-bottom: 1.25rem; }
.cb-invite-preview .cb-league-form-note { margin: 1.5rem 0; }
.cb-invite-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.75rem 0; }
.cb-invite-benefits span { padding: 1rem; border: 1px solid #2c5145; border-radius: .75rem; background: linear-gradient(140deg, #173b2e, #0a1c1e); font-size: .9rem; }
.cb-invite-benefits b { display: block; color: #62edbd; font-size: .7rem; letter-spacing: .12em; margin-bottom: .5rem; }
@media (max-width: 700px) {
  .cb-invite-copy-row { flex-direction: column; }
  .cb-invite-copy-row .cb-invite-code { font-size: .8rem; letter-spacing: .02em; }
  .cb-invite-benefits { grid-template-columns: 1fr; }
  .cb-invite-benefits b { display: inline; margin-right: .75rem; }
}

.cb-scoring-status { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .8rem; margin: .65rem 0; border: 1px solid #b899604a; border-radius: 2rem; color: #efd2a1; background: #b8996010; font-size: .8rem; font-weight: 650; }
.cb-scoring-status.is-final { border-color: #57d9a95e; color: #94f2c8; background: #57d9a915; }
.cb-scoring-completion > p { margin: 1rem 0; }
.cb-scoring-checks { padding: 1rem 1.5rem; margin: 1rem 0; border: 1px solid #b8996035; background: #b8996009; border-radius: .75rem; color: #d4dace; }
.cb-scoring-checks li + li { margin-top: .6rem; }
.cb-scoring-checks summary, .cb-scoring-audit summary { cursor: pointer; }
.cb-scoring-confirm { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.7; }
.cb-scoring-confirm input { flex: 0 0 auto; margin-top: .4rem; }
.cb-scoring-audit { border-top: 1px solid #87c8af30; padding-top: 1.25rem; margin-top: 1.5rem; }
.cb-scoring-audit article { border-bottom: 1px solid #87c8af20; padding: 1rem 0; overflow-wrap: anywhere; }
.cb-scoring-audit article span { display: block; }

/* Match outcomes stay visually separate from fantasy scoring. */
.cb-match-result { padding: 1.25rem 1.5rem; border: 1px solid #709e8e35; border-radius: 1rem; background: linear-gradient(120deg, #12312a, #091a1e); overflow-wrap: anywhere; }
.cb-match-result.is-decided { border-color: #6be8b854; box-shadow: inset 0 1px 0 #b6ffdc14; }
.cb-match-result .cb-eyebrow { display: block; margin-bottom: .55rem; }
.cb-match-result > strong { display: block; color: #c0f7de; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.5; }
.cb-match-result > p { margin: .6rem 0 0; color: #adc7bd; font-size: .9rem; }

/* Explicit no-play review, separate from a played match's scorecard checks. */
.cb-no-play-panel { margin: 1.5rem 0; padding: 1.4rem; border: 1px solid #65dcb74a; border-radius: 1rem; background: radial-gradient(ellipse at top right, #3baf8220, transparent 65%), linear-gradient(130deg, #13352c, #091b20); }
.cb-no-play-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.cb-no-play-panel > summary strong { display: block; color: #dcfff1; font-size: 1.15rem; margin-top: .5rem; }
.cb-no-play-zero { flex-shrink: 0; padding: .75rem 1rem; border: 1px solid #70edbc40; border-radius: .8rem; background: #69f3c00c; color: #8af4c8; font-size: 2rem; font-weight: 750; }
.cb-no-play-zero small { font-size: .65rem; letter-spacing: .12em; }
.cb-no-play-panel > p { margin: 1.2rem 0; line-height: 1.8; color: #bad6ca; }
.cb-no-play-panel .cb-account-form { margin-top: 1.2rem; }
.cb-no-play-panel .cb-scoring-confirm { margin-bottom: 1.25rem; }
.cb-no-play-reopen { border-top: 1px solid #8be1bf26; padding-top: 1rem; }
.cb-no-play-reopen > summary { cursor: pointer; color: #bad6ca; }
.cb-no-play-reopen > p { margin: 1rem 0; }
.cb-no-play-points h2 { color: #b3f3d6; }
.cb-season-complete { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.7rem; margin: 1.5rem 0; border: 1px solid #83ecc363; border-radius: 1rem; background: radial-gradient(ellipse at top right, #4cdca52a, transparent 65%), linear-gradient(130deg, #173b2e, #091b20); }
.cb-season-complete h2 { color: #c0f7de; margin: .5rem 0; }
.cb-season-complete p { color: #bdd6cc; }
.cb-season-complete.is-review { border-color: #e0bb6959; background: linear-gradient(130deg, #333321, #0b2020); }
.cb-season-complete.is-review h2 { color: #f2d6a0; }
.cb-edition-completion-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cb-edition-completion-counts + section .cb-scoring-confirm { margin-bottom: 1rem; }
.cb-edition-completion-counts strong { font-size: 2rem; color: #a3f4cc; }
.cb-member-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.3rem 0; border-bottom: 1px solid #9acfb32a; }
.cb-member-identity { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.cb-member-identity > div { min-width: 0; overflow-wrap: anywhere; }
.cb-member-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: .9rem; color: #8ff2cc; background: linear-gradient(135deg, #244b3c, #0b2422); border: 1px solid #83e4bd40; font-weight: 750; }
.cb-member-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cb-member-remove { border-color: #ed9b914f; color: #f5beb5; background: #da74640c; }
.cb-member-remove:hover { border-color: #ed9b9180; background: #da74641c; }
@media (max-width: 700px) { .cb-member-row { align-items: flex-start; flex-direction: column; }.cb-member-actions { width: 100%; } }
.cb-edition-completion-match { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid #91cbb32a; }
.cb-edition-completion-match > div { min-width: 0; overflow-wrap: anywhere; }
.cb-edition-completion-match > a { flex-shrink: 0; }
@media (max-width: 700px) { .cb-season-complete, .cb-edition-completion-match { align-items: flex-start; flex-direction: column; }.cb-edition-completion-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .cb-no-play-panel { padding: 1rem; }.cb-no-play-panel .cb-button { white-space: normal; } }

/* Edition scoring reference: uses the same emerald panels as season management. */
.cb-toss-automation { border-color: #65dcb83d; background: radial-gradient(ellipse at top right, #36ce9b12, transparent 60%), linear-gradient(125deg, #142e29, #0a191d); }
.cb-toss-automation-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cb-toss-automation-heading h2 { margin: .4rem 0; }
.cb-source-status { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid #8bdcbb30; border-radius: 2rem; color: #b2ccc4; font-size: .8rem; white-space: nowrap; }
.cb-source-status.is-awaiting, .cb-source-status.is-synced { color: #7ff0c4; background: #57e5b312; }
.cb-source-status.is-error, .cb-source-status.is-review, .cb-source-status.is-partial, .cb-source-warning { color: #f2ce91; }
.cb-source-times { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.3rem 0; color: #91b0a8; font-size: .75rem; }
.cb-source-times strong { display: block; margin-top: .4rem; color: #d5e6e0; font-size: .85rem; font-weight: 550; }
.cb-source-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
.cb-source-actions form { margin: 0; }
.cb-source-history { margin-top: 1.4rem; border-top: 1px solid #8bdcbb20; padding-top: 1rem; font-size: .8rem; color: #a4c5b9; }
.cb-source-history summary { cursor: pointer; }
.cb-source-history ol { list-style: none; padding: 0; }
.cb-source-history li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #8bdcbb12; }
.cb-source-history time { flex: 0 0 130px; font-variant-numeric: tabular-nums; color: #80a99b; }
.cb-source-preview { padding: 1.2rem; margin: 1.5rem 0; border: 1px solid #64e5b538; border-radius: .85rem; background: #4ad7aa0a; }
.cb-source-preview h2 { font-size: 1.2rem; margin: .5rem 0; overflow-wrap: anywhere; }
.cb-source-preview > p { margin-bottom: .5rem; }
.cb-source-confirm { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0; font-size: .9rem; line-height: 1.5; }
.cb-source-confirm input[type=checkbox] { flex: 0 0 16px; width: 16px; height: 16px; margin: .2rem 0 0; accent-color: #49e7b3; }
.cb-match-automation-grid, .cb-xi-mapping-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cb-match-automation-grid > section { min-width: 0; }
.cb-match-automation-grid .cb-toss-automation-heading { flex-wrap: wrap; }
.cb-source-status.is-published { color: #7ff0c4; background: #57e5b312; }
.cb-xi-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #55e6ad; box-shadow: 0 0 10px #55e6ad65; }
.cb-xi-sync-note { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid #91dcb520; }
.cb-xi-sync-intro { margin: 1.5rem 0; }
.cb-xi-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: 2rem 0 1rem; }
.cb-xi-preview-heading p { max-width: 440px; }
.cb-xi-mapping-team { padding: 0; overflow: hidden; }
.cb-xi-mapping-team > header { display: flex; align-items: center; gap: 1rem; padding: 1.4rem; background: linear-gradient(120deg, #40cb9919, transparent); border-bottom: 1px solid #91dcb524; }
.cb-xi-mapping-team > header h2 { margin: 0; font-size: 1.25rem; }
.cb-xi-mapping-team > header p { margin: .3rem 0 0; font-size: .8rem; color: #97bcb0; }
.cb-xi-mapping-row { padding: 1rem 1.4rem; border-bottom: 1px solid #91dcb516; }
.cb-xi-mapping-row:focus-within { background: #4ee3ab08; }
.cb-xi-source-name { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.cb-xi-source-name > div { min-width: 0; overflow-wrap: anywhere; }
.cb-xi-source-name strong, .cb-xi-source-name small { display: block; }
.cb-xi-source-name strong { font-size: .95rem; }
.cb-xi-source-name small { font-size: .7rem; color: #89aa9f; margin-top: .15rem; }
.cb-xi-row-number { color: #79cbae; font-size: .75rem; font-variant-numeric: tabular-nums; width: 2rem; height: 2rem; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #84deb329; border-radius: .55rem; background: #4bd59b0a; }
.cb-xi-map-arrow { margin-left: auto; color: #6ab59a; }
.cb-xi-mapping-row .cb-form-field { margin-bottom: 0; }
.cb-xi-mapping-row select { width: 100%; min-width: 0; font-size: .85rem; }
.cb-xi-map-hint { display: block; margin-top: .4rem; color: #c9bc8d; font-size: .72rem; }
.cb-xi-map-hint.is-saved { color: #74d9b0; }
.cb-xi-mapping-team > footer, .cb-xi-no-roster { padding: 1.3rem; }
.cb-xi-mapping-team > footer p { margin: .4rem 0 0; }
.cb-xi-enable { margin: 1.25rem 0; }
@media (max-width: 850px) { .cb-match-automation-grid, .cb-xi-mapping-grid { grid-template-columns: 1fr; } .cb-xi-preview-heading { align-items: flex-start; flex-direction: column; gap: .5rem; } }
@media (max-width: 550px) { .cb-toss-automation-heading { align-items: flex-start; flex-direction: column; } .cb-source-history li { flex-direction: column; gap: .2rem; } .cb-source-history time { flex-basis: auto; } }
.cb-scoring-overview { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cb-scoring-overview > div:first-child { max-width: 660px; }
.cb-scoring-leaders { display: flex; gap: 14px; flex-shrink: 0; }
.cb-scoring-leaders > div { min-width: 112px; padding: 20px; border: 1px solid #49e7b333; border-radius: 16px; background: linear-gradient(135deg, #49e7b319, #0b1a1d); }
.cb-scoring-leaders span { display: block; color: #abc7c1; font-size: 12px; }
.cb-scoring-leaders strong { display: block; color: #59efbf; font-size: 36px; letter-spacing: -1.5px; }
.cb-scoring-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.cb-scoring-grid .cb-scoring-card { margin: 0; min-width: 0; }
.cb-scoring-card dl { margin: 20px 0; }
.cb-scoring-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #ffffff0c; }
.cb-scoring-card dt { color: #cee0dd; font-size: 14px; }
.cb-scoring-card dd { margin: 0; color: #66edbb; font-size: 20px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-scoring-card dd span { font-size: 10px; color: #91aca5; font-weight: 400; }
.cb-scoring-card dd.is-negative { color: #f5a8ae; }
.cb-scoring-notes { padding-left: 20px; color: #cee0dd; font-size: 14px; line-height: 1.8; }
.cb-scoring-notes li { margin: 12px 0; }
@media (max-width: 760px) { .cb-scoring-overview { align-items: stretch; flex-direction: column; } .cb-scoring-grid { grid-template-columns: 1fr; } .cb-scoring-leaders > div { flex: 1; } }
