:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --surface: #fffefa;
  --ink: #18211d;
  --muted: #637069;
  --line: #d9ded4;
  --field: #245d43;
  --field-deep: #153e30;
  --gold: #c7982e;
  --red: #ba4d35;
  --cyan: #2c8fa3;
  --shadow: 0 18px 55px rgba(22, 36, 29, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(36, 93, 67, 0.13), transparent 42%),
    linear-gradient(180deg, #fbfaf4 0%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    "Avenir Next",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

button,
select {
  font: inherit;
}

.predictor-shell {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr minmax(140px, auto);
  align-items: center;
  gap: 18px;
}

.home-link,
.sync-pill,
.auth-button,
.admin-button,
.tab-button,
.filter-control {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}

.topbar-title p,
.metric-label,
.eyebrow,
.fixture-meta,
.source-status,
.team-group {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.topbar-title h1 {
  margin: 3px 0 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.app-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #10171b;
  font-size: clamp(30px, 3.4vw, 52px);
  font-style: italic;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 8px 18px rgba(15, 22, 20, 0.08);
  transform: skewX(-8deg);
}

.app-wordmark span:last-child {
  color: #19a405;
}

.sync-pill {
  justify-self: end;
  min-height: 40px;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--field-deep);
  font-weight: 700;
  white-space: nowrap;
}

.auth-hint {
  max-width: min(42vw, 520px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--field-deep);
  font-weight: 800;
  cursor: pointer;
}

.auth-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--field-deep);
  font-weight: 900;
  cursor: pointer;
}

.auth-button.active {
  border-color: rgba(36, 93, 67, 0.32);
  background: rgba(36, 93, 67, 0.1);
}

.admin-button[aria-pressed="true"] {
  border-color: rgba(36, 93, 67, 0.35);
  background: rgba(36, 93, 67, 0.1);
}

.command-grid {
  --hero-panel-height: clamp(500px, min(34vw, calc(100vh - 190px)), 560px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  grid-template-rows: var(--hero-panel-height) auto auto;
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.match-focus,
.model-strip,
.toolbar,
.workspace {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow);
}

.match-focus {
  --focus-home-deep: #063b2a;
  --focus-home-mid: #14553b;
  --focus-home-accent: #f0ede0;
  --focus-away-deep: #062f23;
  --focus-away-mid: #3f651f;
  --focus-away-accent: #c59a20;
  --focus-away-shadow: #102f62;
  height: var(--hero-panel-height);
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 28px;
  grid-column: 1;
  grid-row: 1;
}

.match-focus.focus-jump-highlight {
  animation: focus-jump-ring 950ms ease-out;
}

@keyframes focus-jump-ring {
  0% {
    outline: 0 solid rgba(199, 152, 46, 0);
    outline-offset: 0;
  }
  18% {
    outline: 3px solid rgba(199, 152, 46, 0.72);
    outline-offset: 4px;
  }
  100% {
    outline: 3px solid rgba(199, 152, 46, 0);
    outline-offset: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-focus.focus-jump-highlight {
    animation: none;
    outline: 3px solid rgba(199, 152, 46, 0.58);
    outline-offset: 4px;
  }

  .fixture-card {
    transition:
      border-color 120ms ease,
      box-shadow 120ms ease,
      background-color 120ms ease;
  }

  .fixture-card:not(.knockout-fixture-card):hover {
    transform: none;
  }
}

.match-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--focus-home-accent) 14%, transparent) 0 7%, transparent 25%),
    radial-gradient(circle at 79% 33%, color-mix(in srgb, var(--focus-away-accent) 18%, transparent) 0 9%, transparent 30%),
    radial-gradient(circle at 92% 70%, color-mix(in srgb, var(--focus-away-shadow) 42%, transparent) 0 12%, transparent 32%),
    linear-gradient(
      100deg,
      var(--focus-home-deep) 0%,
      var(--focus-home-mid) 24%,
      color-mix(in srgb, var(--focus-home-mid) 54%, var(--focus-away-mid)) 47%,
      color-mix(in srgb, var(--focus-away-mid) 88%, var(--focus-away-accent)) 70%,
      var(--focus-away-deep) 100%
    );
  opacity: 0.97;
}

.match-focus::after {
  content: "";
  position: absolute;
  inset: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 460' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='1.25' vector-effect='non-scaling-stroke'%3E%3Crect x='12' y='12' width='976' height='436' rx='4'/%3E%3Cpath d='M500 12v436'/%3E%3Ccircle cx='500' cy='230' r='70'/%3E%3Cpath d='M12 115h110v230H12M12 170h40v120H12M122 180a70 70 0 0 1 0 100M988 115H878v230h110M988 170h-40v120h40M878 180a70 70 0 0 0 0 100'/%3E%3Cpath d='M12 54a42 42 0 0 0 42 -42M946 12a42 42 0 0 0 42 42M54 448a42 42 0 0 0 -42 -42M988 406a42 42 0 0 0 -42 42'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.35)'%3E%3Ccircle cx='500' cy='230' r='3.2'/%3E%3Ccircle cx='88' cy='230' r='2.7'/%3E%3Ccircle cx='912' cy='230' r='2.7'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.82;
  pointer-events: none;
}

.focus-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 304px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  color: #fffdf2;
}

.focus-head,
.focus-bottom,
.team-row,
.prob-row,
.fixture-head,
.source-row,
.team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.focus-head {
  flex-wrap: wrap;
}

.eyebrow {
  color: rgba(255, 253, 242, 0.74);
}

.focus-date {
  color: rgba(255, 253, 242, 0.8);
  font-weight: 700;
}

.versus {
  align-self: center;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-self: center;
  align-items: center;
  gap: 18px;
}

.team-name {
  min-width: 0;
  text-align: center;
}

.team-display {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

.team-display.compact {
  gap: 8px;
}

.team-flag {
  flex: 0 0 auto;
  font-size: 1.22em;
  line-height: 1;
}

.team-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.team-copy strong,
.team-copy em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-copy em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.1;
}

.team-name .team-display {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  justify-content: center;
  max-width: 100%;
}

.team-name .team-copy {
  justify-items: center;
  text-align: center;
}

.team-name .team-display strong {
  display: block;
  max-width: 100%;
  font-size: clamp(32px, 5vw, 70px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.team-name .team-copy em {
  margin-top: 3px;
  color: rgba(255, 253, 242, 0.76);
  font-size: clamp(15px, 1.6vw, 22px);
}

.team-name .team-flag {
  position: absolute;
  left: clamp(10px, calc(50% - 190px), calc(50% - 84px));
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  font-size: clamp(30px, 4vw, 58px);
  pointer-events: none;
}

.team-name:last-child {
  text-align: center;
}

.team-name:last-child .team-display {
  display: grid;
  justify-content: center;
  max-width: 100%;
}

.score-chip {
  min-width: 132px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
}

.score-chip strong,
.score-chip span {
  display: block;
}

.score-chip strong {
  font-size: clamp(56px, 5.2vw, 72px);
  line-height: 1;
}

.score-chip span {
  margin-top: 7px;
  color: rgba(255, 253, 242, 0.74);
  font-size: 13px;
  white-space: nowrap;
}

.focus-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.9fr) minmax(176px, 1fr) minmax(132px, 0.78fr);
  align-items: end;
  gap: 24px;
  border-top: 0;
  padding-top: 12px;
}

.focus-bottom > div {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.focus-bottom > div::before {
  content: none;
}

.focus-bottom > div:not(.metric-pack) {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 0;
}

.focus-bottom .metric-label {
  color: rgba(255, 253, 242, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.metric-pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.metric-pack > div {
  min-width: 0;
  display: grid;
  align-content: end;
  border-right: 0;
  padding-right: 0;
  text-align: center;
  justify-items: center;
}

.metric-pack > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.metric-value {
  display: block;
  margin-top: 6px;
  color: #fffdf2;
  font-size: clamp(18px, 1.75vw, 24px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 10px rgba(5, 22, 14, 0.24);
}

.focus-handicap .metric-value {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.14;
}

.focus-factor .metric-value {
  font-size: clamp(20px, 1.9vw, 26px);
}

.scoreline-strip {
  display: block;
  margin-top: 18px;
  border-top: 0;
  padding-top: 8px;
}

.scoreline-strip > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scoreline-pick {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.scoreline-pick strong {
  color: #fffdf2;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1;
}

.scoreline-pick span {
  color: rgba(255, 253, 242, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.model-strip {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: stretch;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  gap: 18px;
  align-content: start;
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.member-strip {
  grid-column: 1 / -1;
  grid-row: 4;
  min-width: 0;
}

.member-strip:empty {
  display: none;
}

.model-title h2,
.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.model-title p,
.section-heading p,
.empty-state span {
  margin: 5px 0 0;
  color: var(--muted);
}

.prob-stack,
.model-stats {
  display: grid;
  gap: 12px;
}

.prematch-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(36, 93, 67, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(247, 250, 244, 0.96), rgba(255, 254, 250, 0.98));
  padding: 14px;
}

.prematch-panel > summary {
  list-style: none;
  cursor: pointer;
}

.prematch-panel > summary::-webkit-details-marker {
  display: none;
}

.prematch-panel-head::after {
  content: "展开";
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--field-deep);
  background: rgba(36, 93, 67, 0.06);
  font-size: 11px;
  font-weight: 900;
}

.prematch-panel[open] .prematch-panel-head::after {
  content: "收起";
}

.prematch-panel-body {
  display: grid;
  gap: 12px;
}

.prematch-panel-head,
.locker-room-block > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.prematch-panel-head span,
.locker-room-block span,
.locker-room-block em,
.incentive-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.prematch-panel-head strong {
  color: var(--field-deep);
  font-size: 16px;
}

.incentive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.incentive-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, max-content);
  align-items: center;
  gap: 10px;
  border: 1px solid #e6ece2;
  border-radius: 8px;
  background: #fffefa;
  padding: 10px;
}

.incentive-card > div {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.incentive-card strong {
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.locker-room-block {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e8ece5;
  padding-top: 10px;
}

.locker-signal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.locker-signal-list li {
  display: grid;
  gap: 4px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

.locker-signal-list li[data-tone="positive"] {
  border-left-color: var(--field);
}

.locker-signal-list li[data-tone="negative"] {
  border-left-color: #c2624d;
}

.locker-signal-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.locker-signal-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.prob-row {
  min-height: 34px;
}

.prob-row span:first-child {
  min-width: 54px;
  font-weight: 700;
}

.prob-track {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece5;
}

.prob-fill {
  width: var(--value);
  height: 100%;
  background: var(--field);
}

.prob-row:nth-child(2) .prob-fill {
  background: var(--gold);
}

.prob-row:nth-child(3) .prob-fill {
  background: var(--red);
}

.prob-percent {
  min-width: 58px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

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

.stat-box {
  min-height: 84px;
  border-top: 2px solid var(--field);
  background: #f6f8f2;
  padding: 12px;
}

.stat-box strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.slot-pill,
.path-mapping-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 253, 242, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 253, 242, 0.12);
  color: #fffdf2;
  font-size: 12px;
  font-weight: 800;
}

.slot-pill strong {
  max-width: 148px;
  overflow-wrap: anywhere;
}

.slot-pill em {
  color: currentColor;
  font-style: normal;
  opacity: 0.76;
  white-space: nowrap;
}

.source-status[data-status="ready"],
.coverage-row[data-status="ready"] strong {
  color: var(--field-deep);
}

.source-status[data-status="warn"],
.coverage-row[data-status="warn"] strong {
  color: #8a5f00;
}

.source-status[data-status="gap"],
.coverage-row[data-status="gap"] strong {
  color: var(--red);
}

.source-status[data-status="pending"],
.coverage-row[data-status="pending"] strong {
  color: #6b5a22;
}

.source-status[data-status="info"],
.coverage-row[data-status="info"] strong {
  color: #235d75;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.tab-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.tab-button {
  min-height: 38px;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tab-admin-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
}

.tab-button.active {
  background: var(--field);
  border-color: var(--field);
  color: #fffdf2;
}

.filter-control {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 7px 10px;
  white-space: nowrap;
}

.filter-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  min-width: 92px;
}

.workspace {
  margin-top: 18px;
  border-radius: 8px;
  padding: 22px;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.schedule-controls {
  display: grid;
  grid-template-columns: minmax(164px, 190px) minmax(164px, 190px) minmax(330px, 410px) minmax(190px, 250px);
  gap: 10px;
  align-items: start;
  justify-content: start;
  margin-bottom: 16px;
}

.schedule-stage-control,
.schedule-time-control,
.schedule-team-control {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  padding: 10px 12px;
}

.schedule-stage-control[hidden],
.chart-filter-control[hidden] {
  display: none !important;
}

.schedule-stage-control,
.schedule-team-control {
  display: grid;
  gap: 7px;
  min-height: 86px;
}

.schedule-stage-control span,
.schedule-time-head span,
.schedule-team-control summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-stage-control select,
.schedule-team-control summary strong {
  min-width: 0;
  min-height: 30px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  outline: none;
}

.schedule-time-control {
  display: grid;
  gap: 9px;
  min-height: 86px;
  overflow: hidden;
}

.schedule-time-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  min-width: 0;
}

.schedule-time-head strong {
  color: var(--field-deep);
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
}

.schedule-time-head em {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.2;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-time-control select {
  width: min(220px, 100%);
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  color: var(--ink);
  padding: 6px 32px 6px 10px;
  cursor: pointer;
  font-weight: 800;
  outline: none;
}

.schedule-time-control select:disabled {
  cursor: default;
  opacity: 0.5;
}

.schedule-team-control summary {
  display: grid;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.schedule-team-control summary::-webkit-details-marker {
  display: none;
}

.schedule-team-control summary strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-team-control summary strong::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  color: var(--muted);
  transform: rotate(45deg);
}

.schedule-team-control[open] summary strong::after {
  transform: rotate(225deg);
}

.team-filter-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 24;
  width: min(310px, 82vw);
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 18px 55px rgba(22, 36, 29, 0.16);
  padding: 8px;
}

.team-filter-actions {
  border-bottom: 1px solid #e6eae2;
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.team-filter-actions button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: #eef4ea;
  color: var(--field-deep);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 800;
}

.team-filter-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
}

.team-filter-list label:hover {
  background: #f1f5ed;
}

.team-filter-list input {
  accent-color: var(--field);
}

.team-filter-list .team-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.12;
}

.team-filter-list .team-copy em {
  font-size: 10px;
}

.team-filter-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}

.chart-heading {
  align-items: center;
}

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

.chart-filter-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-filter-control select {
  min-width: 92px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  outline: none;
}

.chart-mode-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  padding: 4px;
}

.mode-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 800;
}

.mode-button.active {
  background: var(--field);
  color: #fffdf2;
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 340px));
  gap: 12px;
  justify-content: start;
}

.fixture-grid > .empty-state {
  grid-column: 1 / -1;
}

.fixture-card {
  width: 100%;
  min-height: 222px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 15px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.fixture-card:not(.knockout-fixture-card):hover {
  border-color: rgba(36, 93, 67, 0.46);
  box-shadow: 0 12px 32px rgba(22, 36, 29, 0.1);
  transform: translateY(-1px);
}

.fixture-card:focus-visible {
  border-color: var(--field);
  outline: 3px solid rgba(36, 93, 67, 0.24);
  outline-offset: 3px;
}

.fixture-card.active {
  border-color: var(--field);
  background:
    linear-gradient(180deg, rgba(36, 93, 67, 0.06), rgba(255, 254, 250, 0.96)),
    var(--surface);
  box-shadow:
    0 0 0 2px rgba(36, 93, 67, 0.18),
    0 12px 34px rgba(22, 36, 29, 0.12);
}

.knockout-fixture-card {
  cursor: default;
}

.knockout-fixture-card:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.knockout-slots {
  gap: 10px;
}

.slot-team {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
}

.slot-team strong {
  color: var(--field-deep);
  font-size: 26px;
  line-height: 1;
}

.slot-team em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.schedule-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 93, 67, 0.06), transparent 180px),
    var(--surface);
  overflow: hidden;
}

.schedule-chart-scroll {
  --chart-label-width: 152px;
  --chart-day-width: 168px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.schedule-chart-scroll::-webkit-scrollbar {
  height: 10px;
}

.schedule-chart-scroll::-webkit-scrollbar-track {
  background: #eef2e9;
}

.schedule-chart-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef2e9;
  border-radius: 999px;
  background: rgba(36, 93, 67, 0.46);
}

.schedule-chart-grid {
  width: max-content;
  min-width: max(100%, calc(var(--chart-label-width) + var(--day-count) * var(--chart-day-width)));
  display: grid;
  grid-template-columns: var(--chart-label-width) repeat(var(--day-count), var(--chart-day-width));
  align-items: stretch;
}

.chart-corner,
.chart-day-head,
.chart-group-label,
.chart-day-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chart-corner,
.chart-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  background: rgba(255, 254, 250, 0.96);
  backdrop-filter: blur(12px);
}

.chart-corner {
  left: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px;
}

.chart-corner strong,
.chart-group-label strong,
.chart-day-head strong {
  color: var(--field-deep);
}

.chart-corner span,
.chart-group-label span,
.chart-day-head span,
.chart-time,
.chart-meta span {
  color: var(--muted);
  font-size: 12px;
}

.chart-day-head {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 10px;
  text-align: center;
}

.chart-group-label {
  position: sticky;
  left: 0;
  z-index: 3;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(246, 248, 242, 0.98);
}

.chart-group-label strong {
  font-size: 30px;
  line-height: 1;
}

.chart-day-cell {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(36, 93, 67, 0.04), transparent),
    rgba(255, 254, 250, 0.72);
}

.chart-day-cell:empty::after {
  content: "";
  min-height: 1px;
}

.chart-match {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #dfe5da;
  border-left: 4px solid var(--field);
  border-radius: 8px;
  background: #fffefa;
  overflow: hidden;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 36, 29, 0.08);
}

.chart-match.active {
  border-color: var(--field);
  border-left-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(199, 152, 46, 0.2),
    0 12px 28px rgba(22, 36, 29, 0.12);
}

.chart-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.chart-teams .team-display {
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  overflow: hidden;
}

.chart-teams .team-display:last-child {
  justify-content: end;
  text-align: right;
}

.chart-teams .team-copy strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-teams .team-copy em {
  display: none;
}

.chart-teams .team-flag {
  font-size: 12px;
}

.chart-vs {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid #edf0ea;
  padding-top: 4px;
}

.chart-time,
.chart-meta span,
.chart-meta strong {
  line-height: 1.1;
  white-space: nowrap;
}

.chart-time,
.chart-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-meta span {
  max-width: 54%;
}

.chart-meta strong {
  flex: 0 0 auto;
  color: var(--field-deep);
  font-size: 10px;
}

.bracket-chart-shell {
  min-width: 1120px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(36, 93, 67, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(199, 152, 46, 0.12), transparent 38%),
    #f8faf3;
}

.bracket-title-strip {
  min-height: 74px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(36, 93, 67, 0.16);
  padding: 0 6px 16px;
}

.bracket-title-strip span,
.bracket-stage-head span,
.champion-card span,
.bracket-group-head span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.bracket-title-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--field-deep);
  font-size: 28px;
  line-height: 1;
}

.bracket-title-strip p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.bracket-tree {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.2fr) minmax(260px, 0.9fr);
  gap: 24px;
  padding-top: 20px;
}

.bracket-tree::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 26%;
  right: 26%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(36, 93, 67, 0.32), transparent);
}

.bracket-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.bracket-group-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.94);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(22, 36, 29, 0.08);
}

.bracket-group-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: rgba(36, 93, 67, 0.32);
}

.bracket-side.left .bracket-group-card::after {
  right: -25px;
}

.bracket-side.right .bracket-group-card::after {
  left: -25px;
}

.bracket-group-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 10px;
  border-bottom: 1px solid #edf0ea;
  padding-bottom: 8px;
}

.bracket-group-head span {
  grid-column: 1 / -1;
}

.bracket-group-head strong {
  color: var(--field-deep);
  font-size: 22px;
}

.bracket-group-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.bracket-team-list,
.bracket-stage-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.bracket-team-row,
.bracket-stage-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.bracket-team-row span,
.bracket-stage-team span {
  color: var(--field-deep);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.bracket-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: center;
}

.bracket-center::before,
.bracket-center::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(36, 93, 67, 0.26), transparent);
}

.bracket-center::before {
  left: -12px;
}

.bracket-center::after {
  right: -12px;
}

.champion-card,
.bracket-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 12px 32px rgba(22, 36, 29, 0.1);
}

.champion-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-top: 4px solid var(--gold);
  padding: 16px;
  text-align: center;
}

.champion-card .team-display {
  justify-content: center;
}

.champion-card strong {
  color: var(--field-deep);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.bracket-stage {
  padding: 12px;
}

.bracket-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0ea;
  padding-bottom: 8px;
}

.bracket-stage-head strong {
  min-width: 30px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3e9;
  color: var(--field-deep);
}

.bracket-stage-team {
  min-height: 34px;
  border-left: 3px solid var(--field);
  background: #f6f8f2;
  padding: 7px 8px;
}

.bracket-stage-team .team-copy strong,
.bracket-team-row .team-copy strong {
  font-size: 13px;
  line-height: 1.1;
}

.bracket-stage-team .team-copy em,
.bracket-team-row .team-copy em {
  font-size: 10px;
}

.official-bracket-shell {
  min-width: 100%;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(37, 159, 157, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(55, 83, 155, 0.16), transparent 38%),
    #edf8f5;
}

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

.bracket-view-toggle,
.bracket-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.88);
  padding: 4px;
}

.bracket-view-toggle button,
.bracket-zoom-controls button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--field-deep);
  font-weight: 800;
  cursor: pointer;
}

.bracket-view-toggle button {
  padding: 0 10px;
}

.bracket-view-toggle button.active,
.bracket-zoom-controls button:hover {
  background: var(--field);
  color: #fffdf2;
}

.bracket-zoom-controls button {
  min-width: 32px;
  padding: 0 8px;
}

.bracket-share-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #fff6be;
  color: var(--field-deep);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.bracket-zoom-controls span {
  min-width: 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.bracket-map-viewport {
  position: relative;
  height: min(78vh, 820px);
  min-height: 680px;
  margin-top: 14px;
  border: 1px solid rgba(36, 93, 67, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(36, 180, 174, 0.22), rgba(45, 70, 144, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 82px),
    #44aaa5;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.bracket-map-viewport.dragging {
  cursor: grabbing;
}

.bracket-map-surface {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  transition: transform 120ms ease;
}

.bracket-map-viewport.dragging .bracket-map-surface {
  transition: none;
}

.bracket-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.bracket-link {
  fill: none;
  stroke: rgba(220, 255, 250, 0.86);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 8;
  filter: drop-shadow(0 1px 0 rgba(17, 70, 75, 0.34));
}

.bracket-watermark {
  position: absolute;
  left: 842px;
  top: 72px;
  width: 720px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  text-shadow: 0 2px 14px rgba(8, 52, 62, 0.28);
  pointer-events: none;
}

.bracket-watermark span {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.bracket-watermark strong {
  border: 1px solid rgba(207, 255, 247, 0.72);
  border-radius: 8px;
  background: rgba(236, 255, 249, 0.84);
  color: #058d89;
  padding: 8px 18px;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(24, 75, 83, 0.18);
}

.bracket-watermark em {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.bracket-stage-label {
  position: absolute;
  width: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 255, 249, 0.68);
  border-radius: 999px;
  background: rgba(8, 146, 145, 0.42);
  color: #effffc;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(6, 58, 68, 0.3);
}

.side-group-panel,
.tournament-node,
.center-trophy {
  position: absolute;
  border: 1px solid rgba(188, 255, 249, 0.86);
  border-radius: 8px;
  background: rgba(42, 177, 174, 0.74);
  color: #effffc;
  box-shadow:
    0 0 0 1px rgba(3, 113, 122, 0.28),
    0 14px 32px rgba(15, 64, 89, 0.2);
  backdrop-filter: blur(5px);
}

.side-group-panel {
  width: 290px;
  min-height: 190px;
  padding: 8px;
}

.side-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(218, 255, 251, 0.36);
  padding-bottom: 5px;
}

.side-group-head strong {
  font-size: 20px;
}

.side-group-head span,
.tournament-node-head span,
.tournament-node-foot,
.center-trophy span,
.center-trophy em {
  color: rgba(239, 255, 252, 0.84);
  font-size: 11px;
}

.side-group-body {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding-top: 7px;
}

.side-team-stack,
.side-fixture-stack {
  display: grid;
  align-content: start;
  gap: 4px;
}

.side-team-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 26px;
}

.side-team-row b,
.bracket-participant b {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  background: rgba(209, 255, 250, 0.88);
  color: #058d89;
  font-size: 11px;
}

.side-team-row .team-flag,
.bracket-participant .team-flag {
  width: 22px;
  height: 22px;
  font-size: 18px;
}

.side-team-row .team-copy strong,
.bracket-participant .team-copy strong,
.champion-ribbon .team-copy strong,
.center-trophy .team-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-participant .team-copy strong {
  font-size: 13px;
}

.side-team-row .team-copy em,
.bracket-participant .team-copy em,
.champion-ribbon .team-copy em,
.center-trophy .team-copy em {
  min-width: 0;
  overflow: hidden;
  color: rgba(239, 255, 252, 0.74);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-team-row.slot-only strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-fixture {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 0;
  border-radius: 5px;
  background: rgba(205, 248, 245, 0.18);
  color: #effffc;
  padding: 3px 6px;
  text-align: left;
  cursor: pointer;
}

.mini-fixture:hover {
  background: rgba(205, 248, 245, 0.3);
}

.mini-fixture span {
  color: rgba(239, 255, 252, 0.74);
  font-size: 9px;
}

.mini-fixture strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-node {
  width: 190px;
  min-height: 100px;
  padding: 8px;
  cursor: pointer;
}

.tournament-node:focus-visible {
  outline: 3px solid rgba(255, 246, 190, 0.95);
  outline-offset: 3px;
}

.tournament-node.final-node {
  width: 230px;
  min-height: 124px;
  border-color: rgba(255, 234, 165, 0.9);
  background: linear-gradient(180deg, rgba(73, 190, 139, 0.9), rgba(35, 152, 144, 0.86));
}

.tournament-node-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(218, 255, 251, 0.3);
  padding-bottom: 5px;
}

.tournament-node-head strong {
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(14, 99, 112, 0.46);
  padding: 0 6px;
  color: #fff;
  font-size: 11px;
}

.tournament-node-body {
  display: grid;
  gap: 4px;
  padding-top: 6px;
}

.bracket-participant {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  border-radius: 5px;
  background: rgba(230, 255, 251, 0.14);
  padding: 4px 4px;
}

.bracket-participant.winner {
  background: rgba(255, 238, 174, 0.24);
}

.bracket-participant b {
  width: 32px;
  min-width: 0;
  height: 22px;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 3px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-participant .team-display {
  width: 100%;
  max-width: 100%;
  gap: 3px;
  overflow: hidden;
}

.bracket-participant .team-flag {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  font-size: 13px;
}

.bracket-participant.slot-only strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-participant span {
  min-width: 30px;
  color: rgba(239, 255, 252, 0.78);
  font-size: 9px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.tournament-node-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-top: 1px solid rgba(218, 255, 251, 0.24);
  margin-top: 6px;
  padding-top: 5px;
}

.tournament-node-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-node-foot b {
  flex: 0 0 auto;
  color: #fff;
  font-size: 10px;
}

.champion-ribbon {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(255, 239, 177, 0.34);
  margin-top: 6px;
  padding-top: 6px;
}

.center-trophy {
  width: 340px;
  min-height: 170px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border-color: rgba(255, 236, 169, 0.88);
  background:
    linear-gradient(180deg, rgba(44, 191, 136, 0.92), rgba(26, 144, 139, 0.92)),
    rgba(42, 177, 174, 0.76);
  text-align: center;
}

.center-trophy strong {
  color: #fff6be;
  font-size: 32px;
  line-height: 1;
}

.center-trophy > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  border-top: 1px solid rgba(255, 246, 190, 0.35);
  padding-top: 8px;
}

.center-trophy b {
  color: #fff6be;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.official-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.95);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(22, 36, 29, 0.08);
}

.official-note strong {
  color: var(--field-deep);
}

.official-note span {
  color: var(--muted);
  font-size: 12px;
}

.bracket-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(6, 30, 23, 0.42);
  padding: 22px;
}

.bracket-detail-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(84vh, 760px);
  overflow: auto;
  border: 1px solid rgba(37, 93, 67, 0.16);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.97);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(6, 30, 23, 0.28);
  padding: 22px;
}

.bracket-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7faf4;
  color: var(--field-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bracket-detail-close:focus-visible {
  outline: 3px solid rgba(37, 93, 67, 0.2);
  outline-offset: 2px;
}

.bracket-detail-head {
  display: grid;
  gap: 6px;
  padding-right: 44px;
}

.bracket-detail-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-detail-head strong {
  color: var(--field-deep);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.bracket-detail-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
}

.bracket-detail-teams > b {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.bracket-detail-team {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(37, 93, 67, 0.72);
  border-radius: 8px;
  background: #f7faf4;
  padding: 14px;
}

.bracket-detail-team.winner {
  border-top-color: var(--gold);
  background: #fbfaf1;
}

.bracket-detail-team > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bracket-detail-team .team-copy strong {
  color: var(--ink);
  font-size: 18px;
}

.bracket-detail-team .team-copy em,
.bracket-detail-team p,
.bracket-detail-team em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.bracket-detail-team > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e4e9df;
  padding-top: 8px;
}

.bracket-detail-team > div strong {
  color: var(--field-deep);
  font-size: 24px;
  line-height: 1;
}

.bracket-detail-team.slot-only strong {
  color: var(--ink);
  font-size: 18px;
}

.bracket-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bracket-detail-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  padding: 12px;
}

.bracket-detail-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bracket-detail-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--field-deep);
  font-size: 17px;
  line-height: 1.16;
}

.bracket-detail-reasons {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.bracket-detail-reasons h3 {
  margin: 0 0 10px;
  color: var(--field-deep);
  font-size: 18px;
}

.bracket-detail-reasons ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.bracket-detail-reasons li {
  color: var(--muted);
  line-height: 1.5;
}

.fixture-teams {
  display: grid;
  gap: 10px;
  margin: 16px 0 10px;
}

.fixture-team {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.fixture-team strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fixture-team .team-display {
  min-width: 0;
}

.fixture-forecast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e4e9df;
  border-radius: 6px;
  background: #f8faf5;
  margin-bottom: 10px;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fixture-forecast strong {
  color: var(--field-deep);
  font-size: 15px;
}

.fixture-team .team-copy strong,
.team-row-card .team-copy strong,
.group-panel .team-copy strong,
.path-table .team-copy strong,
.context-card .team-copy strong {
  font-size: 15px;
  line-height: 1.15;
}

.fixture-team .team-copy em,
.team-row-card .team-copy em,
.group-panel .team-copy em,
.path-table .team-copy em,
.context-card .team-copy em {
  font-size: 11px;
}

.fixture-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tiny-prob {
  min-height: 50px;
  background: #f2f5ef;
  border-top: 2px solid var(--field);
  padding: 8px;
}

.tiny-prob:nth-child(2) {
  border-top-color: var(--gold);
}

.tiny-prob:nth-child(3) {
  border-top-color: var(--red);
}

.tiny-prob span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.tiny-prob strong {
  font-size: 18px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.group-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 15px;
}

.group-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.team-line {
  min-height: 42px;
  border-top: 1px solid #edf0ea;
}

.team-line:first-of-type {
  border-top: 0;
}

.team-line strong {
  overflow-wrap: anywhere;
}

.team-slot-line {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.context-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) repeat(2, minmax(240px, 0.75fr));
  gap: 14px;
}

.context-card,
.insight-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.context-card {
  min-height: 236px;
  padding: 16px;
}

.mapping-context-card {
  grid-column: span 2;
}

.h2h-card {
  background:
    linear-gradient(135deg, rgba(36, 93, 67, 0.08), transparent 45%),
    var(--surface);
}

.context-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.context-card-head h3,
.mini-heading h3 {
  margin: 0;
  font-size: 18px;
}

.context-card-head h3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.coverage-list {
  display: grid;
  gap: 7px;
}

.coverage-row {
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #edf0ea;
  padding-top: 7px;
  font-size: 12px;
}

.coverage-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.coverage-row span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 700;
}

.coverage-row strong,
.coverage-row em {
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.coverage-row em {
  color: var(--muted);
  font-weight: 700;
}

.versus-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.context-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-metric {
  min-height: 70px;
  border-top: 2px solid var(--field);
  background: #f4f7f0;
  padding: 10px;
}

.context-metric.gold {
  border-top-color: var(--gold);
}

.context-metric.cyan {
  border-top-color: var(--cyan);
}

.context-metric.red {
  border-top-color: var(--red);
}

.context-metric span,
.recent-meetings span,
.availability-list span,
.insight-item span,
.mini-heading span,
.context-note {
  color: var(--muted);
  font-size: 12px;
}

.context-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.context-note {
  margin: 12px 0 0;
  line-height: 1.55;
}

.recent-meetings,
.availability-list,
.insight-list {
  display: grid;
  gap: 8px;
}

.recent-meetings {
  margin-top: 12px;
}

.recent-meetings div,
.availability-list div {
  border-top: 1px solid #edf0ea;
  padding-top: 8px;
}

.recent-meetings strong,
.recent-meetings span,
.availability-list strong,
.availability-list span,
.insight-item strong,
.insight-item span {
  display: block;
}

.context-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mini-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 10px;
}

.insight-item {
  padding: 12px 14px;
}

.insight-item.focus-insight {
  border-color: rgba(36, 93, 67, 0.38);
  background: linear-gradient(180deg, rgba(36, 93, 67, 0.08), rgba(255, 254, 250, 0.94));
}

.insight-item strong {
  font-size: 15px;
}

.factor-section {
  margin-top: 20px;
}

.factor-section > summary {
  list-style: none;
  cursor: pointer;
}

.factor-section > summary::-webkit-details-marker {
  display: none;
}

.factor-section .mini-heading {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  margin-bottom: 0;
  padding: 12px 14px;
}

.factor-section[open] .mini-heading {
  margin-bottom: 12px;
}

.factor-section .mini-heading::after {
  content: "展开";
  flex: 0 0 auto;
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 999px;
  background: rgba(36, 93, 67, 0.06);
  color: var(--field-deep);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.factor-section[open] .mini-heading::after {
  content: "收起";
}

.factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.factor-summary,
.factor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(22, 36, 29, 0.06);
}

.factor-summary {
  display: grid;
  align-content: center;
  gap: 6px;
  border-left: 4px solid var(--field);
  padding: 14px;
}

.factor-summary strong {
  color: var(--field-deep);
  font-size: 18px;
}

.factor-summary p,
.factor-card p,
.factor-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.live-factor-map {
  display: grid;
  gap: 3px;
  border-top: 1px solid #e8ece5;
  margin-top: 4px;
  padding-top: 9px;
}

.live-factor-map b {
  color: var(--field-deep);
  font-size: 11px;
  letter-spacing: 0;
}

.live-factor-map span,
.live-factor-map em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.live-factor-map strong {
  font-size: 16px;
}

.factor-card {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.factor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.factor-card-head span,
.factor-card-head b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.factor-card-head span {
  background: #edf3e9;
  color: var(--field-deep);
}

.factor-card-head b {
  background: #f7ecd2;
  color: #835f12;
}

.factor-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.factor-weight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
}

.factor-weight > div {
  height: 7px;
  border-radius: 999px;
  background: #edf0ea;
  overflow: hidden;
}

.factor-weight > div::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--field), var(--cyan));
}

.factor-weight strong {
  color: var(--field-deep);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.factor-card em {
  border-top: 1px solid #edf0ea;
  padding-top: 8px;
  font-style: normal;
}

.chance {
  display: inline-flex;
  min-width: 64px;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--field-deep);
}

.path-table {
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.path-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.path-table th,
.path-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.path-table th:first-child,
.path-table td:first-child {
  text-align: left;
}

.path-table .slot-cell {
  text-align: left;
  min-width: 156px;
}

.path-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fffefa;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.slot-pill {
  border-color: #dfe8d8;
  background: #f5f8f1;
  color: var(--field-deep);
  margin-right: 5px;
}

.slot-pill.muted {
  color: var(--muted);
}

.team-board,
.source-list {
  display: grid;
  gap: 10px;
}

.team-row-card,
.source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.team-row-card {
  display: grid;
  grid-template-columns: 80px 1fr minmax(180px, 0.55fr);
  align-items: center;
  gap: 16px;
}

.rank-badge {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3e9;
  color: var(--field-deep);
  font-weight: 900;
}

.champion-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece5;
}

.champion-fill {
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--field));
}

.path-mapping-status {
  width: fit-content;
  margin-top: 8px;
  border-color: #dfe8d8;
  background: #f6f8f2;
  color: var(--field-deep);
}

.source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.coverage-card.wide {
  grid-template-columns: minmax(0, 1fr);
}

.coverage-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.coverage-kpis span {
  min-width: 116px;
  border: 1px solid #e1e8dc;
  border-radius: 8px;
  background: #f6f8f2;
  padding: 8px 10px;
}

.coverage-kpis strong,
.coverage-kpis em {
  display: block;
  font-style: normal;
}

.coverage-kpis strong {
  color: var(--field-deep);
  font-size: 20px;
}

.coverage-kpis em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.source-card h3 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.source-card a {
  color: var(--field-deep);
  overflow-wrap: anywhere;
}

.source-status {
  min-width: 128px;
  text-align: center;
  border-radius: 999px;
  padding: 8px 10px;
  background: #eef4ea;
  color: var(--field-deep);
  font-weight: 800;
}

.quick-strip {
  display: grid;
  grid-template-columns: minmax(96px, 0.18fr) minmax(0, 0.82fr);
  align-items: center;
  align-self: stretch;
  gap: 12px;
  grid-column: 1;
  grid-row: 3;
  margin-top: 0;
  min-height: 112px;
  border: 1px solid rgba(178, 72, 38, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 18%, rgba(205, 76, 36, 0.12), transparent 31%),
    linear-gradient(110deg, rgba(255, 253, 247, 0.94), rgba(255, 244, 232, 0.84));
  box-shadow: 0 14px 38px rgba(104, 44, 23, 0.08);
  padding: 10px;
}

.quick-strip-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}

.quick-strip-title span,
.quick-pick span,
.community-snapshot span,
.scenario-panel span,
.my-schedule-controls span,
.share-dialog header span,
.info-dialog header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-strip-title strong {
  color: #522a1d;
  font-size: 16px;
  line-height: 1.1;
}

.quick-strip-title span {
  color: #a24724;
}

.quick-pick-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-pick {
  min-width: 0;
  min-height: 56px;
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(188, 73, 39, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 254, 250, 0.98), rgba(255, 239, 222, 0.76)),
    radial-gradient(circle at 92% 14%, rgba(216, 93, 41, 0.18), transparent 32%);
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(104, 44, 23, 0.06);
  cursor: pointer;
}

.quick-pick::before {
  content: "🔥";
  position: absolute;
  top: 7px;
  right: 8px;
  opacity: 0.86;
  font-size: 16px;
  line-height: 1;
  filter: saturate(0.92);
}

.quick-pick::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(214, 83, 40, 0.08);
  pointer-events: none;
}

.quick-pick-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 22px;
}

.quick-pick-meta b {
  min-width: 0;
  overflow: hidden;
  color: #9a4523;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-pick.active {
  border-color: rgba(171, 55, 32, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 249, 240, 0.98), rgba(255, 225, 204, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(210, 73, 37, 0.24), transparent 33%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 12px 28px rgba(128, 48, 24, 0.11);
}

.quick-pick strong,
.quick-pick em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-pick strong {
  color: #422116;
  font-size: 14px;
}

.quick-pick em {
  color: #8a5130;
  font-size: 12px;
  font-style: normal;
}

.focus-actions,
.focus-model-actions,
.model-actions,
.section-actions,
.scenario-actions,
.share-actions,
.my-match-tags,
.fixture-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-actions {
  margin-top: 6px;
}

.focus-model-actions {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -2px;
}

.focus-model-actions .ghost-action {
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.focus-action,
.ghost-action,
.table-action,
.scenario-actions button,
.share-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 253, 242, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 242, 0.12);
  color: #fffdf2;
  padding: 7px 11px;
  font-weight: 900;
  cursor: pointer;
}

.focus-action.active,
.focus-action.primary {
  border-color: rgba(255, 246, 190, 0.58);
  background: rgba(255, 246, 190, 0.22);
}

.focus-action.warn {
  border-color: rgba(255, 215, 200, 0.56);
  background: rgba(186, 77, 53, 0.28);
}

.model-actions {
  border-top: 1px solid #e5eadf;
  padding-top: 12px;
}

.ghost-action,
.table-action,
.scenario-actions button,
.share-actions button {
  border-color: var(--line);
  background: #f5f8f1;
  color: var(--field-deep);
}

.ghost-action:disabled,
.table-action:disabled {
  cursor: default;
  opacity: 0.48;
}

.export-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.export-status:empty {
  display: none;
}

.export-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 8px;
  background: rgba(36, 93, 67, 0.08);
  color: var(--field-deep);
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.export-link.primary {
  border-color: var(--field);
  background: var(--field);
  color: #fffdf2;
}

.community-snapshot {
  display: grid;
  gap: 8px;
  border: 1px solid #e0e8da;
  border-radius: 8px;
  background: #f8faf5;
  padding: 10px;
  grid-template-columns: 1fr;
}

.community-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--field-deep);
  font-size: 15px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.member-panel {
  --member-team-deep: #474b47;
  --member-team-mid: #b8b1a1;
  --member-team-accent: #d8bd72;
  --member-team-shadow: #ebe7dc;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--member-team-accent) 45%, rgba(95, 90, 76, 0.28));
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 252, 0.96), rgba(239, 235, 224, 0.84) 46%, rgba(255, 252, 244, 0.94)),
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--member-team-accent) 24%, transparent), transparent 36%),
    linear-gradient(90deg, color-mix(in srgb, var(--member-team-deep) 14%, transparent), color-mix(in srgb, var(--member-team-mid) 10%, transparent));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 18px 46px rgba(48, 43, 31, 0.11);
  padding: 12px;
}

.member-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--member-team-deep) 14%, transparent), transparent 24%, color-mix(in srgb, var(--member-team-accent) 20%, transparent) 55%, transparent 82%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 18px);
  opacity: 0.78;
}

.member-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-top: 3px solid color-mix(in srgb, var(--member-team-accent) 72%, #fff 12%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  pointer-events: none;
}

.member-panel > * {
  position: relative;
  z-index: 1;
}

.member-flag-watermark {
  position: absolute;
  right: clamp(12px, 3vw, 42px);
  top: 50%;
  z-index: 0;
  opacity: 0.09;
  font-size: clamp(84px, 11vw, 170px);
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%) rotate(-8deg);
  filter: saturate(0.9) contrast(1.04);
}

.member-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.member-panel-head {
  display: grid;
  gap: 3px;
}

.member-panel-head span,
.member-kpi-grid span,
.member-history span,
.member-news span {
  color: color-mix(in srgb, var(--member-team-deep) 48%, var(--muted));
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-panel-head strong {
  color: color-mix(in srgb, var(--member-team-deep) 76%, var(--field-deep));
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.member-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.member-kpi-grid div {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--member-team-accent) 26%, #e2eadc);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.64);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  padding: 9px;
  backdrop-filter: blur(8px);
}

.member-kpi-grid strong {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--member-team-deep) 74%, var(--field-deep));
  font-size: 13px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.member-pick-row,
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-pick-row button {
  flex: 1 1 72px;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--member-team-accent) 34%, rgba(36, 93, 67, 0.2));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.76), rgba(242, 236, 221, 0.76)),
    color-mix(in srgb, var(--member-team-accent) 10%, #edf4e8);
  color: color-mix(in srgb, var(--member-team-deep) 72%, var(--field-deep));
  font-weight: 900;
  cursor: pointer;
}

.member-history,
.member-news {
  display: grid;
  gap: 6px;
  border-top: 1px solid color-mix(in srgb, var(--member-team-accent) 24%, #e2eadc);
  padding-top: 10px;
}

.member-history strong,
.member-news strong {
  color: color-mix(in srgb, var(--member-team-deep) 74%, var(--field-deep));
  font-size: 13px;
  line-height: 1.38;
}

.member-history ul,
.member-news ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-history li,
.member-news li {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.member-history li strong {
  overflow-wrap: anywhere;
}

.member-news a {
  color: color-mix(in srgb, var(--member-team-deep) 74%, var(--field-deep));
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.member-news em,
.member-status {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.member-status {
  min-height: 16px;
  margin: 0;
}

.member-status:empty {
  display: none;
}

.member-strip .member-panel {
  grid-template-columns: minmax(180px, 0.8fr) minmax(360px, 1.5fr) minmax(230px, 0.9fr) minmax(260px, 1.1fr);
  grid-template-areas:
    "head kpis picks news"
    "history kpis actions news"
    "status status status status";
  align-items: stretch;
  gap: 12px;
  padding: 14px;
}

.member-strip .member-panel-head {
  grid-area: head;
  align-content: center;
}

.member-strip .member-kpi-grid {
  grid-area: kpis;
}

.member-strip .member-pick-row {
  grid-area: picks;
  align-self: start;
}

.member-strip .member-history {
  grid-area: history;
}

.member-strip .member-news {
  grid-area: news;
}

.member-strip .member-actions {
  grid-area: actions;
  align-self: end;
}

.member-strip .member-status {
  grid-area: status;
}

.member-strip .member-history,
.member-strip .member-news {
  min-width: 0;
  border-top: 0;
  padding-top: 0;
}

.member-strip .member-news {
  border-left: 1px solid color-mix(in srgb, var(--member-team-accent) 24%, #e2eadc);
  padding-left: 12px;
}

.member-strip .member-news > strong,
.member-strip .member-history > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-strip .member-history ul,
.member-strip .member-news ul {
  max-height: 78px;
  overflow: auto;
  padding-right: 2px;
}

.fixture-badges {
  margin-top: 10px;
}

.fixture-badges span,
.my-match-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #edf3e9;
  color: var(--field-deep);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.table-action {
  min-height: 30px;
  padding: 5px 9px;
  white-space: nowrap;
}

.my-schedule-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px));
  gap: 10px;
  margin-bottom: 16px;
}

.my-schedule-controls[hidden] {
  display: none;
}

.my-schedule-controls label {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  padding: 10px 12px;
}

.my-schedule-controls select {
  min-width: 0;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  outline: none;
}

.my-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 12px;
}

.my-schedule-grid > .empty-state {
  grid-column: 1 / -1;
}

.my-schedule-setup,
.my-schedule-profile {
  grid-column: 1 / -1;
}

.my-schedule-setup {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf5;
  padding: 16px;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.setup-steps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #dfe8d8;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.setup-steps b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8ece5;
  color: var(--field-deep);
  font-size: 11px;
}

.setup-steps span.active {
  border-color: rgba(36, 93, 67, 0.42);
  background: rgba(36, 93, 67, 0.08);
  color: var(--field-deep);
}

.setup-panel {
  display: grid;
  gap: 14px;
}

.setup-block {
  display: grid;
  gap: 8px;
}

.setup-panel > span,
.setup-block > span,
.setup-summary span,
.my-schedule-profile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-panel h3 {
  margin: 0;
  color: var(--field-deep);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.05;
}

.setup-panel p {
  max-width: 680px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.my-team-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.my-team-choice,
.my-day-choice,
.schedule-mode-choice,
.setup-actions button,
.setup-primary,
.my-schedule-profile button,
.team-board-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.my-team-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  text-align: left;
}

.my-day-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  padding-right: 2px;
}

.my-day-choice {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.my-day-choice strong,
.my-day-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-day-choice span {
  color: var(--muted);
  font-size: 12px;
}

.my-team-choice.active,
.my-day-choice.active,
.schedule-mode-choice.active,
.setup-primary,
.my-schedule-profile button,
.team-board-toggle {
  border-color: var(--field);
  background: var(--field);
  color: #fffdf2;
}

.my-team-choice.active .team-copy em,
.my-team-choice.active .team-copy strong,
.my-day-choice.active span {
  color: #fffdf2;
}

.my-match-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.my-match-choice {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.82);
  padding: 12px;
}

.my-match-choice > button {
  display: grid;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.my-match-choice > button span,
.my-match-choice > button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.my-match-choice > button strong {
  color: var(--field-deep);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.my-match-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.my-match-choice-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  color: var(--field-deep);
  font-weight: 900;
  cursor: pointer;
}

.my-match-choice-actions button.active {
  border-color: var(--field);
  background: var(--field);
  color: #fffdf2;
}

.schedule-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.schedule-mode-choice {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.schedule-mode-choice strong,
.schedule-mode-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.schedule-mode-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-mode-choice.active span {
  color: rgba(255, 253, 242, 0.78);
}

.setup-summary {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  gap: 8px 12px;
  border-top: 1px solid #dfe8d8;
  border-bottom: 1px solid #dfe8d8;
  padding: 14px 0;
}

.setup-summary strong {
  color: var(--field-deep);
  overflow-wrap: anywhere;
}

.setup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.setup-actions button,
.setup-primary {
  padding: 10px 16px;
}

.setup-primary:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.my-schedule-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  padding: 14px;
}

.my-schedule-profile div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.my-schedule-profile strong,
.my-schedule-profile em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-schedule-profile strong {
  color: var(--field-deep);
  font-size: 18px;
  line-height: 1.16;
}

.my-schedule-profile em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.my-schedule-profile button {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.my-match-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.my-match-card button {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.my-match-card button span,
.my-match-card button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.my-match-card button strong {
  color: var(--field-deep);
  font-size: 18px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.my-match-tags {
  border-top: 1px solid #edf0ea;
  margin-top: 10px;
  padding-top: 10px;
}

.scenario-clear-button {
  min-height: 40px;
  border: 1px solid rgba(255, 246, 190, 0.4);
  border-radius: 8px;
  background: rgba(255, 246, 190, 0.18);
  color: var(--field-deep);
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.scenario-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #e3e9dd;
  border-radius: 8px;
  background: #f7faf4;
  margin-top: 14px;
  padding: 12px;
}

.scenario-panel strong {
  color: var(--field-deep);
}

.scenario-actions button.active {
  border-color: var(--field);
  background: var(--field);
  color: #fffdf2;
}

.prediction-wizard-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  border: 1px solid rgba(36, 93, 67, 0.2);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 28px 84px rgba(6, 30, 23, 0.32);
  padding: 22px;
}

.prediction-wizard-body {
  display: grid;
  gap: 16px;
}

.prediction-wizard-head {
  display: grid;
  gap: 5px;
  padding-right: 42px;
}

.prediction-wizard-head span,
.prediction-group-head span,
.prediction-knockout-head span,
.prediction-complete-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-wizard-head h2 {
  margin: 0;
  color: var(--field-deep);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.prediction-wizard-head p,
.prediction-model-hint,
.prediction-complete-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.prediction-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.prediction-stepper span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  color: var(--muted);
  font-weight: 900;
}

.prediction-stepper span.active {
  border-color: rgba(36, 93, 67, 0.24);
  background: rgba(36, 93, 67, 0.08);
  color: var(--field-deep);
}

.prediction-stepper span.current {
  background: var(--field);
  color: #fffdf2;
}

.prediction-mode-grid,
.prediction-duel-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prediction-mode-grid button,
.prediction-team-pool button,
.prediction-duel-preview button,
.prediction-group-slots button,
.prediction-wizard-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  color: var(--field-deep);
  cursor: pointer;
}

.prediction-mode-grid button {
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.prediction-mode-grid button.active,
.prediction-team-pool button.selected,
.prediction-group-slots button.filled {
  border-color: rgba(36, 93, 67, 0.45);
  background: rgba(36, 93, 67, 0.1);
}

.prediction-mode-grid span,
.prediction-focus-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prediction-mode-grid strong {
  font-size: 20px;
  line-height: 1.12;
}

.prediction-mode-grid em,
.prediction-team-pool em,
.prediction-duel-preview em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.prediction-focus-select {
  display: grid;
  gap: 7px;
}

.prediction-focus-select select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--field-deep);
  padding: 0 12px;
  font-weight: 900;
}

.prediction-group-card,
.prediction-knockout-card,
.prediction-complete-card {
  display: grid;
  gap: 14px;
  border: 1px solid #e3e9dd;
  border-radius: 10px;
  background: #f7faf4;
  padding: 16px;
}

.prediction-complete-card {
  position: relative;
  overflow: hidden;
}

.prediction-complete-card.celebratory {
  min-height: 142px;
  border-color: rgba(36, 93, 67, 0.24);
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 246, 190, 0.8), transparent 26%),
    linear-gradient(135deg, rgba(36, 93, 67, 0.12), rgba(25, 164, 5, 0.08)),
    #f7faf4;
}

.prediction-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prediction-confetti span,
.prediction-confetti i {
  position: absolute;
  opacity: 0;
  animation: prediction-confetti-pop 1.8s ease-out forwards;
}

.prediction-confetti span {
  font-size: 24px;
}

.prediction-confetti i {
  width: 9px;
  height: 24px;
  border-radius: 999px;
  background: #19a405;
}

.prediction-confetti span:nth-child(1) {
  left: 10%;
  top: 18%;
  animation-delay: 80ms;
}

.prediction-confetti span:nth-child(2) {
  left: 68%;
  top: 9%;
  animation-delay: 180ms;
}

.prediction-confetti span:nth-child(3) {
  left: 88%;
  top: 36%;
  animation-delay: 40ms;
}

.prediction-confetti i:nth-child(4) {
  left: 30%;
  top: 15%;
  background: #d09d22;
}

.prediction-confetti i:nth-child(5) {
  left: 44%;
  top: 8%;
  background: #c4523d;
  animation-delay: 120ms;
}

.prediction-confetti i:nth-child(6) {
  left: 78%;
  top: 28%;
  background: #245d43;
  animation-delay: 240ms;
}

.prediction-confetti i:nth-child(7) {
  left: 57%;
  top: 52%;
  background: #19a405;
  animation-delay: 160ms;
}

.prediction-confetti i:nth-child(8) {
  left: 18%;
  top: 62%;
  background: #fff6be;
  animation-delay: 260ms;
}

@keyframes prediction-confetti-pop {
  0% {
    opacity: 0;
    transform: translateY(24px) rotate(0deg) scale(0.6);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-42px) rotate(180deg) scale(1);
  }
}

.prediction-group-head,
.prediction-knockout-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.prediction-group-head strong,
.prediction-knockout-head strong,
.prediction-complete-card strong {
  color: var(--field-deep);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
}

.prediction-group-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.prediction-group-slots button {
  min-height: 76px;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.prediction-group-slots span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.prediction-group-slots strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-team-pool {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.prediction-team-pool button {
  min-height: 96px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.prediction-duel-preview {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 132px;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.prediction-duel-preview button {
  min-height: 116px;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.prediction-duel-preview button:disabled {
  cursor: default;
}

.prediction-duel-choice.winner-card {
  border-color: var(--line);
  background: #f7faf4;
}

.prediction-duel-choice.loser-card {
  background: #f7faf4;
}

.prediction-duel-preview b {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--field);
  color: #fffdf2;
  transition: opacity 180ms ease;
}

.prediction-duel-preview.animating {
  --duel-slide: calc(50% + 38px);
  pointer-events: none;
}

.prediction-duel-preview.animating::before,
.prediction-duel-preview.animating::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  pointer-events: none;
}

.prediction-duel-preview.animating::before {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 246, 190, 0.82);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px rgba(255, 246, 190, 0.12),
    0 0 46px rgba(36, 93, 67, 0.28);
  animation: prediction-duel-impact 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.animating::after {
  width: min(220px, 28vw);
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 246, 190, 0.9), transparent),
    linear-gradient(90deg, rgba(36, 93, 67, 0), rgba(36, 93, 67, 0.34), rgba(36, 93, 67, 0));
  filter: blur(3px);
  transform: translate(-50%, -50%) scaleX(0);
  animation: prediction-duel-slash 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.animating > b {
  animation: prediction-duel-vs 1660ms ease both;
}

.prediction-duel-preview.animating > .prediction-duel-choice {
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 30px rgba(10, 36, 24, 0.11);
  transition: none;
}

.prediction-duel-preview.animating > .prediction-duel-choice::before,
.prediction-duel-preview.animating > .prediction-duel-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.prediction-duel-preview.animating > .prediction-duel-choice::before {
  border: 1px solid rgba(255, 246, 190, 0.7);
  box-shadow: inset 0 0 24px rgba(255, 246, 190, 0.28);
  animation: prediction-card-crush-glow 1660ms ease both;
}

.prediction-duel-preview.animating > .prediction-duel-choice::after {
  background: linear-gradient(90deg, transparent, rgba(36, 93, 67, 0.16), transparent);
  mix-blend-mode: multiply;
}

.prediction-duel-preview.winner-left > .prediction-duel-choice:first-child {
  z-index: 4;
  animation: prediction-duel-left-winner 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.winner-left > .prediction-duel-choice:last-child {
  z-index: 3;
  animation: prediction-duel-right-loser 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.winner-right > .prediction-duel-choice:first-child {
  z-index: 3;
  animation: prediction-duel-left-loser 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.winner-right > .prediction-duel-choice:last-child {
  z-index: 4;
  animation: prediction-duel-right-winner 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

.prediction-duel-preview.winner-left > .prediction-duel-choice:last-child::after,
.prediction-duel-preview.winner-right > .prediction-duel-choice:first-child::after {
  animation: prediction-card-devoured 1660ms cubic-bezier(0.18, 0.84, 0.22, 1) both;
}

@keyframes prediction-duel-left-winner {
  0% {
    transform: translateX(0) scaleX(1) scaleY(1);
    opacity: 1;
    filter: none;
  }
  22% {
    transform: translateX(calc(var(--duel-slide) * 0.42)) scaleX(0.98) scaleY(1.01);
  }
  32% {
    transform: translateX(calc(var(--duel-slide) * 0.62)) scaleX(0.88) scaleY(1.07);
  }
  42% {
    transform: translateX(calc(var(--duel-slide) * 0.51)) scaleX(1.04) scaleY(0.97);
  }
  58% {
    transform: translateX(calc(var(--duel-slide) * 0.72)) scaleX(0.98) scaleY(1.03);
  }
  74% {
    transform: translateX(calc(var(--duel-slide) * 0.96)) scaleX(1.18) scaleY(1);
  }
  100% {
    transform: translateX(calc(var(--duel-slide) * 0.82)) scale(1.045);
    opacity: 1;
    filter: none;
  }
}

@keyframes prediction-duel-right-winner {
  0% {
    transform: translateX(0) scaleX(1) scaleY(1);
    opacity: 1;
    filter: none;
  }
  22% {
    transform: translateX(calc(var(--duel-slide) * -0.42)) scaleX(0.98) scaleY(1.01);
  }
  32% {
    transform: translateX(calc(var(--duel-slide) * -0.62)) scaleX(0.88) scaleY(1.07);
  }
  42% {
    transform: translateX(calc(var(--duel-slide) * -0.51)) scaleX(1.04) scaleY(0.97);
  }
  58% {
    transform: translateX(calc(var(--duel-slide) * -0.72)) scaleX(0.98) scaleY(1.03);
  }
  74% {
    transform: translateX(calc(var(--duel-slide) * -0.96)) scaleX(1.18) scaleY(1);
  }
  100% {
    transform: translateX(calc(var(--duel-slide) * -0.82)) scale(1.045);
    opacity: 1;
    filter: none;
  }
}

@keyframes prediction-duel-left-loser {
  0% {
    transform: translateX(0) scaleX(1) scaleY(1);
    opacity: 1;
    filter: none;
  }
  22% {
    transform: translateX(calc(var(--duel-slide) * 0.42)) scaleX(0.98) scaleY(1.01);
  }
  32% {
    transform: translateX(calc(var(--duel-slide) * 0.62)) scaleX(0.78) scaleY(1.09);
  }
  42% {
    transform: translateX(calc(var(--duel-slide) * 0.5)) scaleX(0.94) scaleY(0.99);
  }
  58% {
    transform: translateX(calc(var(--duel-slide) * 0.72)) scaleX(0.86) scaleY(1.05);
    opacity: 0.96;
  }
  74% {
    transform: translateX(calc(var(--duel-slide) * 0.92)) scaleX(0.26) scaleY(1.03);
    opacity: 0.24;
    filter: blur(1px);
  }
  100% {
    transform: translateX(calc(var(--duel-slide) * 1.02)) scaleX(0.02) scaleY(0.96);
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes prediction-duel-right-loser {
  0% {
    transform: translateX(0) scaleX(1) scaleY(1);
    opacity: 1;
    filter: none;
  }
  22% {
    transform: translateX(calc(var(--duel-slide) * -0.42)) scaleX(0.98) scaleY(1.01);
  }
  32% {
    transform: translateX(calc(var(--duel-slide) * -0.62)) scaleX(0.78) scaleY(1.09);
  }
  42% {
    transform: translateX(calc(var(--duel-slide) * -0.5)) scaleX(0.94) scaleY(0.99);
  }
  58% {
    transform: translateX(calc(var(--duel-slide) * -0.72)) scaleX(0.86) scaleY(1.05);
    opacity: 0.96;
  }
  74% {
    transform: translateX(calc(var(--duel-slide) * -0.92)) scaleX(0.26) scaleY(1.03);
    opacity: 0.24;
    filter: blur(1px);
  }
  100% {
    transform: translateX(calc(var(--duel-slide) * -1.02)) scaleX(0.02) scaleY(0.96);
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes prediction-duel-vs {
  0%,
  18% {
    transform: scale(1);
    opacity: 1;
  }
  30% {
    transform: scale(0.7);
    opacity: 0.35;
  }
  48% {
    transform: scale(0.82);
    opacity: 0.2;
  }
  58%,
  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}

@keyframes prediction-duel-impact {
  0%,
  18% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  30% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.72);
  }
  40% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
  56% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
  }
  68% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(0.92);
  }
  88%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.1);
  }
}

@keyframes prediction-duel-slash {
  0%,
  56% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
  }
  70% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1.6);
  }
}

@keyframes prediction-card-crush-glow {
  0%,
  20% {
    opacity: 0;
  }
  25%,
  61% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes prediction-card-devoured {
  0%,
  56% {
    opacity: 0;
    transform: scaleX(0);
  }
  70% {
    opacity: 1;
    transform: scaleX(0.55);
  }
  86%,
  100% {
    opacity: 0;
    transform: scaleX(1.08);
  }
}

.prediction-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.prediction-wizard-actions button {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 900;
}

.prediction-wizard-actions button:last-child {
  border-color: transparent;
  background: var(--field);
  color: #fffdf2;
}

.prediction-wizard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(6, 30, 23, 0.45);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.share-dialog,
.info-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: 0 28px 84px rgba(6, 30, 23, 0.3);
  padding: 20px;
}

.share-dialog {
  width: min(520px, 100%);
}

.share-dialog.wide {
  width: min(1080px, 100%);
}

.share-dialog header,
.info-dialog header {
  display: grid;
  gap: 4px;
  padding-right: 44px;
}

.share-dialog h2,
.info-dialog h2 {
  margin: 0;
  color: var(--field-deep);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7faf4;
  color: var(--field-deep);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.share-dialog img {
  display: block;
  width: min(100%, 320px);
  margin: 16px auto;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(22, 36, 29, 0.16);
}

.share-dialog.wide img {
  width: min(100%, 960px);
}

.share-actions {
  justify-content: center;
}

.share-dialog p,
.dialog-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.share-dialog p:empty {
  display: none;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.method-grid section,
.data-freshness {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  padding: 14px;
}

.method-grid h3 {
  margin: 0 0 7px;
  color: var(--field-deep);
  font-size: 17px;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.why-headline {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
  padding-bottom: 12px;
}

.why-headline strong {
  color: var(--field-deep);
  font-size: 22px;
  line-height: 1.16;
}

.why-headline span,
.data-freshness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reason-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
  padding-left: 20px;
}

.reason-list li {
  color: var(--muted);
  line-height: 1.5;
}

.data-freshness {
  display: grid;
  gap: 5px;
}

.data-freshness strong {
  color: var(--field-deep);
  overflow-wrap: anywhere;
}

.admin-layer,
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 33, 29, 0.42);
  backdrop-filter: blur(10px);
}

.admin-dialog,
.auth-dialog {
  width: min(420px, 100%);
  border: 1px solid rgba(36, 93, 67, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-dialog {
  position: relative;
  width: min(520px, 100%);
}

.admin-dialog-head p,
.auth-dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-dialog-head h2,
.auth-dialog-head h2 {
  margin: 4px 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.auth-dialog-head span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tabs button,
.auth-account-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f2;
  color: var(--field-deep);
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  border-color: var(--field);
  background: var(--field);
  color: #fffdf2;
}

.admin-password-field,
.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-password-field input,
.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.auth-code-row button,
.auth-form > button {
  min-height: 46px;
  border: 1px solid rgba(36, 93, 67, 0.18);
  border-radius: 8px;
  background: var(--field);
  color: #fffdf2;
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-status.error,
.admin-error {
  margin: 12px 0 0;
  color: var(--red);
  font-weight: 800;
}

.auth-account-actions,
.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.admin-dialog-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.88);
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.admin-dialog-actions button[type="submit"] {
  border-color: transparent;
  background: var(--field);
  color: #fffdf2;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.8);
  padding: 22px;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.site-icp-footer {
  position: static !important;
  display: block !important;
  width: min(1460px, calc(100% - 32px)) !important;
  margin: -22px auto 20px !important;
  text-align: right !important;
  pointer-events: auto !important;
}

@media (max-width: 1360px) {
  .predictor-shell {
    width: min(100% - 24px, 1280px);
  }

  .command-grid {
    --hero-panel-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .match-focus {
    height: auto;
    min-height: 360px;
  }

  .focus-content {
    height: auto;
    min-height: 304px;
  }

  .model-strip {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
    align-items: start;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .model-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-strip {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 1120px) {
  .focus-bottom {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 1fr);
    row-gap: 16px;
  }

  .member-strip .member-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "head picks"
      "kpis kpis"
      "history news"
      "actions actions"
      "status status";
  }

  .member-strip .member-news {
    border-left: 0;
    padding-left: 0;
  }

  .team-name .team-display strong {
    font-size: clamp(32px, 6vw, 62px);
  }

  .score-chip strong {
    font-size: clamp(50px, 6.2vw, 66px);
  }
}

@media (max-width: 980px) {
  .topbar,
  .command-grid,
  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-pick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions,
  .sync-pill {
    justify-self: start;
  }

  .auth-hint {
    max-width: 100%;
    text-align: left;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .chart-heading {
    align-items: stretch;
  }

  .filter-control {
    justify-content: space-between;
  }

	  .team-row-card,
	  .source-card,
	  .context-grid,
	  .context-split,
    .member-kpi-grid,
	  .method-grid {
	    grid-template-columns: 1fr;
	  }

	  .mapping-context-card {
	    grid-column: auto;
	  }

  .model-strip {
    grid-template-columns: 1fr;
  }

  .member-strip .member-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "kpis"
      "picks"
      "history"
      "news"
      "actions"
      "status";
  }

  .member-strip .member-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .member-strip .member-news {
    border-top: 1px solid #e2eadc;
    padding-top: 10px;
  }

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

  .my-schedule-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prediction-mode-grid,
  .prediction-team-pool {
    grid-template-columns: 1fr;
  }

  .prediction-duel-preview {
    gap: 8px;
  }

  .prediction-group-slots,
  .prediction-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prediction-duel-preview button {
    min-height: 96px;
    padding: 10px;
  }

  .prediction-duel-preview b {
    justify-self: center;
    width: 44px;
    height: 44px;
  }

  .schedule-chart-grid {
    --chart-label-width: 118px;
    --chart-day-width: 148px;
  }

  .chart-group-label {
    padding: 10px;
  }

  .bracket-chart-shell {
    min-width: 980px;
  }

  .bracket-tree {
    grid-template-columns: 230px 330px 230px;
    gap: 18px;
  }

  .bracket-title-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .bracket-title-strip p,
  .bracket-controls,
  .chart-tools {
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }

  .bracket-map-viewport {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .schedule-chart-scroll.is-horizontal-scrolled .schedule-chart-grid {
    --chart-label-width: 56px;
  }

  .schedule-chart-scroll.is-horizontal-scrolled .chart-corner,
  .schedule-chart-scroll.is-horizontal-scrolled .chart-group-label {
    justify-items: center;
    padding: 8px 6px;
    text-align: center;
  }

  .schedule-chart-scroll.is-horizontal-scrolled .chart-corner span,
  .schedule-chart-scroll.is-horizontal-scrolled .chart-group-label span {
    display: none;
  }

  .schedule-chart-scroll.is-horizontal-scrolled .chart-corner strong {
    max-width: 42px;
    font-size: 12px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .schedule-chart-scroll.is-horizontal-scrolled .chart-group-label strong {
    font-size: 24px;
  }

  .match-focus {
    min-height: 620px;
  }

  .match-focus::before {
    background:
      radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--focus-home-accent) 14%, transparent) 0 8%, transparent 26%),
      radial-gradient(circle at 74% 78%, color-mix(in srgb, var(--focus-away-accent) 18%, transparent) 0 10%, transparent 32%),
      radial-gradient(circle at 86% 88%, color-mix(in srgb, var(--focus-away-shadow) 38%, transparent) 0 12%, transparent 34%),
      linear-gradient(
        180deg,
        var(--focus-home-deep) 0%,
        var(--focus-home-mid) 28%,
        color-mix(in srgb, var(--focus-home-mid) 52%, var(--focus-away-mid)) 49%,
        color-mix(in srgb, var(--focus-away-mid) 88%, var(--focus-away-accent)) 72%,
        var(--focus-away-deep) 100%
      );
  }

  .match-focus::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 1000' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.34)' stroke-width='1.25' vector-effect='non-scaling-stroke'%3E%3Crect x='12' y='12' width='436' height='976' rx='4'/%3E%3Cpath d='M12 500h436'/%3E%3Ccircle cx='230' cy='500' r='70'/%3E%3Cpath d='M115 12v110h230V12M170 12v40h120V12M180 122a70 70 0 0 0 100 0M115 988v-110h230v110M170 988v-40h120v40M180 878a70 70 0 0 1 100 0'/%3E%3Cpath d='M54 12a42 42 0 0 1 -42 42M406 12a42 42 0 0 0 42 42M12 946a42 42 0 0 1 42 42M448 946a42 42 0 0 1 -42 42'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.34)'%3E%3Ccircle cx='230' cy='500' r='3.2'/%3E%3Ccircle cx='230' cy='88' r='2.7'/%3E%3Ccircle cx='230' cy='912' r='2.7'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.76;
  }

  .focus-content {
    min-height: 562px;
  }

  .topbar-title h1 {
    font-size: clamp(34px, 12vw, 58px);
  }

  .team-row {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
  }

  .team-name:last-child {
    text-align: center;
  }

  .team-name:last-child .team-display {
    flex-direction: row;
  }

  .score-chip {
    width: min(260px, 100%);
    justify-self: center;
  }

  .focus-content {
    gap: 18px;
  }

  .focus-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .predictor-shell {
    width: min(100% - 18px, 1460px);
    padding-top: 12px;
  }

  .match-focus,
  .model-strip,
  .workspace {
    padding: 14px;
  }

  .match-focus {
    padding-bottom: 22px;
  }

  .toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .my-schedule-controls,
  .my-schedule-grid,
  .my-match-choice-list,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .member-strip .member-kpi-grid {
    grid-template-columns: 1fr;
  }

  .quick-pick-list,
  .my-team-choice-grid,
  .my-day-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-pick {
    min-height: 62px;
  }

  .schedule-mode-grid,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .my-schedule-profile,
  .setup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .focus-actions,
  .model-actions,
  .share-actions,
  .scenario-actions {
    align-items: stretch;
  }

  .focus-action,
  .ghost-action,
  .scenario-actions button,
  .share-actions button {
    flex: 1 1 138px;
  }

  .tab-group {
    gap: 6px;
  }

  .tab-button,
  .tab-admin-button {
    min-width: 72px;
    min-height: 38px;
    padding: 8px 10px;
  }

  .team-name .team-display strong {
    font-size: clamp(42px, 15vw, 72px);
  }

  .team-name .team-flag {
    font-size: clamp(28px, 9vw, 48px);
  }

  .metric-pack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-pack > div {
    padding-right: 8px;
  }

  .scoreline-strip > div {
    gap: 10px;
  }

  .scoreline-pick strong {
    font-size: clamp(22px, 8vw, 34px);
  }

  .bracket-detail-overlay {
    padding: 12px;
  }

  .bracket-detail-card {
    padding: 18px;
  }

  .bracket-detail-teams,
  .bracket-detail-summary {
    grid-template-columns: 1fr;
  }

  .bracket-detail-teams > b {
    justify-self: start;
  }

  .score-chip {
    width: 100%;
  }

  .schedule-controls {
    grid-template-columns: 1fr;
  }

  .schedule-time-head {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 7px;
  }

  .schedule-time-head strong {
    font-size: 18px;
  }

  .schedule-time-head em {
    font-size: 11px;
  }

  .fixture-grid {
    grid-template-columns: 1fr;
  }

  .model-stats,
  .incentive-grid,
  .fixture-probs,
  .context-metrics {
    grid-template-columns: 1fr;
  }

  .incentive-card {
    grid-template-columns: 1fr;
  }

  .incentive-card > div {
    justify-items: start;
  }

  .chart-mode-toggle {
    width: 100%;
  }

  .mode-button {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .predictor-shell {
    width: min(100% - 12px, 1460px);
  }

  .topbar-title h1 {
    font-size: clamp(30px, 13vw, 46px);
  }

  .match-focus,
  .model-strip,
  .workspace {
    padding: 12px;
  }

  .match-focus {
    min-height: 580px;
    padding-bottom: 20px;
  }

  .match-focus::after {
    inset: 6px;
  }

  .focus-content {
    min-height: 532px;
  }

  .team-name .team-display {
    gap: 7px;
  }

  .team-name .team-flag {
    left: clamp(8px, calc(50% - 160px), calc(50% - 68px));
  }

  .team-name .team-display strong {
    font-size: clamp(34px, 14vw, 56px);
  }

  .score-chip strong {
    font-size: clamp(44px, 16vw, 62px);
  }

  .focus-bottom .metric-label {
    font-size: 10px;
  }

  .metric-value {
    font-size: clamp(17px, 6vw, 22px);
  }

  .focus-handicap .metric-value {
    font-size: clamp(16px, 5.2vw, 20px);
  }

  .stat-box {
    min-height: 74px;
    padding: 10px;
  }

  .stat-box strong {
    font-size: 18px;
  }
}
