:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0b0b0b;
  --panel: #111111;
  --panel-2: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.64);
  --faint: rgba(244, 241, 234, 0.42);
  --paper: #f4f1ea;
  --red: #ff4f3f;
  --green: #39ff88;
  --blue: #6aa8ff;
  --gold: #e1b85d;
  --radius: 6px;
  --gap: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--black);
  background-size: 72px 72px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
select,
input {
  font: inherit;
}

button,
select {
  min-height: 42px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 292px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--black);
  background: var(--paper);
  font-size: 14px;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

nav a::after {
  content: "→";
  color: var(--faint);
}

nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.side-note {
  margin: auto 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
  line-height: 1.7;
}

main {
  margin-left: 292px;
  padding: 18px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  min-height: 420px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.84)),
    linear-gradient(120deg, rgba(255, 79, 63, 0.38), transparent 34%),
    repeating-linear-gradient(90deg, #0d2e1c 0 92px, #123a24 92px 184px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72) 0 5px, transparent 6px),
    radial-gradient(circle at 58% 20%, rgba(255, 255, 255, 0.56) 0 4px, transparent 5px),
    radial-gradient(circle at 42% 22%, rgba(255, 255, 255, 0.48) 0 4px, transparent 5px),
    linear-gradient(180deg, transparent 0 52%, rgba(255, 255, 255, 0.14) 52% 53%, transparent 53%);
  opacity: 0.9;
  pointer-events: none;
}

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

.hero span,
.label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

.primary-button,
.ghost-button,
.tone {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--black);
  background: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

.ghost-button,
.tone {
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.primary-button:hover,
.ghost-button:hover,
.tone:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.wide {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: var(--gap) 0;
}

.stats div,
.task-console,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.92);
}

.stats div {
  min-height: 112px;
  padding: 18px;
}

.stats span,
.stats strong {
  display: block;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.stats strong {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.task-console {
  margin-bottom: var(--gap);
  padding: 18px;
}

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

.task-empty,
.task-row {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--muted);
}

.task-row {
  display: grid;
  align-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.task-row span,
.task-row strong,
.task-row small {
  display: block;
}

.task-row span {
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.task-row strong {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--black);
  background: var(--gold);
  font-size: 12px;
}

.task-row.succeeded strong {
  background: var(--green);
}

.task-row.failed strong {
  background: var(--red);
}

.task-row small {
  color: var(--faint);
  font-size: 12px;
}

.task-empty {
  grid-column: 1 / -1;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: var(--gap);
  align-items: start;
}

.panel {
  padding: 18px;
}

.large-panel {
  min-height: 482px;
}

.stadium-panel {
  grid-column: 1 / -1;
}

.schedule-panel {
  grid-row: span 2;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

select {
  max-width: 100%;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #0a0a0a;
}

input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #0a0a0a;
}

.schedule-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  margin-bottom: 14px;
}

.date-tabs,
.group-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.date-tabs button,
.group-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.date-tabs {
  gap: 3px;
}

.date-tabs button {
  width: 68px;
  max-width: 68px;
  min-height: 40px;
  padding: 0;
  font-size: 10px;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.date-tabs button.active,
.group-tabs button.active {
  color: var(--black);
  background: var(--green);
  border-color: transparent;
}

.schedule-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.schedule-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  cursor: pointer;
}

.schedule-item.focused {
  border-color: rgba(57, 255, 136, 0.54);
  box-shadow: inset 3px 0 0 var(--green);
}

.schedule-stage {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.side.right {
  justify-content: flex-end;
}

.side span {
  font-size: 30px;
}

.side strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}

.kickoff {
  text-align: center;
}

.kickoff strong,
.kickoff span {
  display: block;
}

.kickoff strong {
  font-size: 26px;
}

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

.schedule-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.match-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.standings-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.standing-header,
.standing-row {
  display: grid;
  grid-template-columns: 42px minmax(120px, 1fr) repeat(6, 54px);
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.standing-header {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.standing-row strong {
  color: var(--text);
}

.standing-row.qualified {
  box-shadow: inset 3px 0 0 var(--green);
}

.standing-row b {
  color: var(--green);
  font-size: 20px;
}

.standings-note {
  margin: 0;
  padding: 14px;
  color: var(--muted);
}

.match-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.8)),
    repeating-linear-gradient(90deg, #0c582d 0 90px, #0f6a36 90px 180px);
  overflow: hidden;
}

.match-card::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  border-top: 3px solid rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.42) 20% 80%, transparent 80%),
    rgba(0, 0, 0, 0.16);
}

.match-card > * {
  position: relative;
  z-index: 1;
}

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

.teams strong {
  font-size: clamp(30px, 5vw, 74px);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.teams strong:last-child {
  text-align: right;
}

.teams span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 14px;
}

.match-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 800;
}

#matchHook {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(244, 241, 234, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: var(--gap);
}

.insight,
.output {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.insight {
  min-height: 124px;
  padding: 16px;
}

.insight strong,
.output strong {
  color: var(--text);
}

.insight p,
.output p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.probability {
  display: grid;
  gap: 16px;
}

.probability div {
  display: grid;
  grid-template-columns: 86px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.probability span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.probability i {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.probability b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s ease;
}

#homeBar {
  background: var(--green);
}

#drawBar {
  background: var(--gold);
}

#awayBar {
  background: var(--blue);
}

.soft,
.output {
  margin-top: 16px;
  padding: 16px;
  white-space: pre-wrap;
}

.compliance {
  margin: 14px 0 0;
  color: rgba(225, 184, 93, 0.82);
  font-size: 13px;
  line-height: 1.6;
}

.controls,
.upload-grid,
.tones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

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

.tone.active {
  color: var(--black);
  background: var(--green);
  border-color: transparent;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

label select {
  width: 100%;
}

.empty-video:empty::before {
  content: "选择比赛和风格后，生成一套可直接发的视频脚本。";
  color: var(--muted);
}

.empty-roast:empty::before {
  content: "毒舌可以犀利，但不会做人身攻击或引导投注。";
  color: var(--muted);
}

.empty-stadium:empty::before {
  content: "上传两张图后，会生成预览和可直接发给图像模型的提示词。";
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(57, 255, 136, 0.26);
  border-radius: 999px;
  color: var(--green);
  background: rgba(57, 255, 136, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.upload-box {
  position: relative;
  min-height: 128px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel-2);
  cursor: pointer;
}

.upload-box:hover {
  border-color: rgba(57, 255, 136, 0.44);
}

.upload-box span,
.upload-box strong {
  display: block;
}

.upload-box span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.upload-box strong {
  margin-top: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.canvas-wrap {
  margin: 16px 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #000;
  overflow: hidden;
}

#stadiumCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #080808;
}

.task-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
}

.task-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.94);
}

.dialog-body {
  padding: 18px;
  color: var(--muted);
}

.dialog-body img,
.dialog-body video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.dialog-body pre {
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #050505;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.result-grid div,
.share-line,
.result-waiting,
.result-error {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.result-grid span,
.result-grid strong {
  display: block;
}

.result-grid strong {
  margin-top: 8px;
  color: var(--green);
  font-size: 34px;
}

.score-line {
  margin: 12px 0;
  color: var(--text);
  font-weight: 800;
}

.result-error {
  color: var(--red);
}

@media (max-width: 1180px) {
  .sidebar {
    position: static;
    width: auto;
  }

  nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 18px;
  }

  nav a::after,
  .side-note {
    display: none;
  }

  main {
    margin-left: 0;
  }

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

@media (max-width: 760px) {
  main {
    padding: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 520px;
    padding: 22px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 72px);
  }

  .stats,
  .task-list,
  .insight-list,
  .controls,
  .upload-grid,
  .tones,
  nav {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .side.right {
    justify-content: flex-start;
  }

  .standing-header,
  .standing-row {
    grid-template-columns: 34px minmax(92px, 1fr) repeat(6, 38px);
    font-size: 13px;
  }

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

  .teams strong:last-child {
    text-align: left;
  }

  .probability div {
    grid-template-columns: 70px 1fr 44px;
  }
}

@media (max-width: 480px) {
  .stats,
  .task-list,
  .insight-list,
  .controls,
  .upload-grid,
  .tones,
  nav {
    grid-template-columns: 1fr;
  }
}

/* Refined web workspace */
:root {
  color-scheme: light;
  --black: #101214;
  --ink: #16191d;
  --panel: #ffffff;
  --panel-2: #f8faf9;
  --line: rgba(18, 25, 31, 0.1);
  --line-strong: rgba(18, 25, 31, 0.18);
  --text: #181b1f;
  --muted: #6b737c;
  --faint: #9aa2aa;
  --paper: #ffffff;
  --red: #d84b3f;
  --green: #14a06f;
  --blue: #3777d6;
  --gold: #c8943f;
  --radius: 8px;
  --gap: 16px;
}

body {
  color: var(--text);
  background:
    linear-gradient(180deg, #f4f7f5 0, #edf2ef 420px, #f7f8f6 100%);
}

.sidebar {
  width: 276px;
  border-right: 0;
  background: #111416;
  box-shadow: 18px 0 48px rgba(16, 20, 22, 0.12);
}

.brand {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.brand-mark {
  border: 0;
  color: #fff;
  background: #14a06f;
}

.brand strong,
nav a:hover {
  color: #fff;
}

.brand span,
nav a,
.side-note {
  color: rgba(255, 255, 255, 0.62);
}

nav a {
  border-radius: 8px;
}

nav a::after {
  content: "";
}

nav a:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.side-note {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

main {
  margin-left: 276px;
  padding: 22px;
}

.hero {
  min-height: 300px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(12, 16, 18, 0.78), rgba(12, 16, 18, 0.18)),
    linear-gradient(135deg, rgba(20, 160, 111, 0.96), rgba(18, 21, 24, 0.98));
  box-shadow: 0 22px 70px rgba(15, 29, 24, 0.18);
}

.hero::before {
  opacity: 0.32;
}

.hero span,
.hero .label {
  color: rgba(255, 255, 255, 0.78);
}

.label {
  color: var(--green);
}

h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 0.98;
  text-transform: none;
}

h2 {
  color: var(--text);
  font-size: 21px;
}

.hero-link {
  min-height: 46px;
  border: 0;
  color: #102016;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

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

.stats div,
.task-console,
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(21, 28, 32, 0.06);
}

.stats div {
  min-height: 96px;
  padding: 18px 20px;
}

.stats span,
.task-row small,
.schedule-stage,
.kickoff span,
.match-status,
.standings-note {
  color: var(--muted);
}

.stats strong {
  color: var(--text);
  font-size: clamp(20px, 2.4vw, 30px);
}

.grid {
  grid-template-columns: minmax(620px, 1.4fr) minmax(380px, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.panel-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0f7d56;
  background: rgba(20, 160, 111, 0.1);
  font-size: 12px;
  font-weight: 800;
}

select,
input[type="search"] {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px transparent;
}

select:focus,
input[type="search"]:focus {
  outline: 3px solid rgba(20, 160, 111, 0.16);
  border-color: rgba(20, 160, 111, 0.42);
}

.primary-button {
  border: 0;
  color: #fff;
  background: #111416;
}

.ghost-button,
.tone {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.ghost-button:hover,
.tone:hover {
  border-color: rgba(20, 160, 111, 0.42);
  color: #0f7d56;
  background: rgba(20, 160, 111, 0.07);
}

.date-tabs,
.group-tabs {
  gap: 8px;
  padding: 2px 0 12px;
}

.date-tabs button,
.group-tabs button {
  border-color: transparent;
  color: var(--muted);
  background: #eef2ef;
}

.date-tabs button {
  width: 74px;
  max-width: 74px;
  min-height: 38px;
  font-size: 12px;
}

.date-tabs button.active,
.group-tabs button.active {
  color: #fff;
  background: #111416;
}

.schedule-list {
  gap: 12px;
  max-height: 780px;
  padding-right: 8px;
}

.schedule-item {
  gap: 12px;
  padding: 16px;
  border-color: rgba(18, 25, 31, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 28, 32, 0.05);
}

.schedule-item:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 160, 111, 0.25);
}

.schedule-item.focused {
  border-color: rgba(20, 160, 111, 0.42);
  box-shadow:
    inset 4px 0 0 var(--green),
    0 14px 30px rgba(20, 160, 111, 0.1);
}

.schedule-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 12px;
}

.schedule-date {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0f7d56;
  background: rgba(20, 160, 111, 0.1);
  font-weight: 900;
}

.schedule-body {
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  gap: 16px;
}

.side {
  gap: 12px;
}

.side span {
  font-size: inherit;
}

.side strong {
  color: var(--text);
  font-size: 20px;
}

.flag-img {
  flex: 0 0 auto;
  width: 38px;
  height: 26px;
  border: 1px solid rgba(18, 25, 31, 0.12);
  border-radius: 4px;
  object-fit: cover;
  background: #eef2ef;
  box-shadow: 0 5px 12px rgba(17, 20, 22, 0.08);
}

.flag-img.sm {
  width: 28px;
  height: 19px;
}

.flag-img.fallback {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.kickoff {
  display: grid;
  align-content: center;
  min-height: 72px;
  border-radius: 10px;
  background: #f4f7f5;
}

.kickoff strong {
  color: #111416;
  font-size: 28px;
}

.kickoff.score {
  background: #e8f7ef;
}

.kickoff.score strong {
  color: #0f8f62;
  font-size: 30px;
}

.schedule-actions {
  align-items: center;
}

.match-status {
  min-height: 38px;
  background: #f4f7f5;
}

.standings-table {
  border-color: rgba(18, 25, 31, 0.08);
  border-radius: 12px;
  background: #fff;
}

.standing-header,
.standing-row {
  grid-template-columns: 34px minmax(126px, 1fr) repeat(6, 42px);
  padding: 12px 14px;
  border-bottom-color: rgba(18, 25, 31, 0.08);
}

.standing-header {
  background: #f4f7f5;
}

.standing-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.standing-row.qualified {
  box-shadow: inset 4px 0 0 var(--green);
  background: linear-gradient(90deg, rgba(20, 160, 111, 0.08), transparent 42%);
}

.standing-row b {
  color: #0f7d56;
}

.task-empty,
.task-row,
.insight,
.output {
  border-color: var(--line);
  border-radius: 10px;
  background: #fff;
}

.task-row span,
.insight strong,
.output strong {
  color: var(--text);
}

.probability i {
  background: #edf1ef;
}

.canvas-wrap,
.upload-box {
  border-color: var(--line);
  background: #f8faf9;
}

@media (max-width: 1180px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .schedule-panel {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 100%;
  }

  main {
    margin-left: 0;
  }

  .stats,
  .task-list {
    grid-template-columns: 1fr;
  }

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

  .side.right {
    justify-content: flex-start;
  }

  .side.right .flag-img {
    order: -1;
  }
}
