:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: rgba(9, 20, 19, 0.96);
  --panel-strong: rgba(15, 28, 27, 0.98);
  --surface: rgba(255, 255, 255, 0.052);
  --surface-strong: rgba(255, 255, 255, 0.082);
  --line: rgba(226, 238, 231, 0.14);
  --line-strong: rgba(226, 238, 231, 0.22);
  --text: #f4f8f5;
  --muted: #a9bbb5;
  --green: #70c87f;
  --teal: #56c3bd;
  --gold: #f1c56b;
  --coral: #f27962;
  --red: #ff6e61;
  --blue: #9fb2ff;
  --shadow: 0 6px 8px rgba(0, 0, 0, 0.22);
  --focus: 0 0 0 3px rgba(241, 197, 107, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.18), #07110f 620px),
    linear-gradient(90deg, rgba(7, 17, 15, 0.88), rgba(7, 17, 15, 0.52) 46%, rgba(7, 17, 15, 0.88)),
    url("assets/stadium-dashboard.png") center top / cover no-repeat fixed;
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 56px;
}

.top,
.section-head,
.date-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 15, 14, 0.96);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand__mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(241, 197, 107, 0.12);
  border-radius: 8px;
  color: var(--gold);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a,
.ghost-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4de;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav a[aria-current="page"],
.top-nav a:hover,
.ghost-link:hover {
  border-color: rgba(241, 197, 107, 0.55);
  background: rgba(241, 197, 107, 0.09);
  color: var(--gold);
}

.top-nav a:focus-visible,
.ghost-link:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.account-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 118px;
}

.account-pill,
.account-note {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4de;
  font-size: 12px;
  font-weight: 850;
}

.account-note {
  color: var(--muted);
  font-weight: 700;
}

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

.account-pill.pro,
.account-pill.elite {
  border-color: rgba(241, 197, 107, 0.46);
  background: rgba(241, 197, 107, 0.12);
  color: var(--gold);
}

.date-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

input[type="date"],
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
select,
button {
  height: 40px;
  border-radius: 8px;
}

input[type="date"],
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--line);
  background: rgba(5, 13, 12, 0.88);
  color: var(--text);
  padding: 0 10px;
}

textarea {
  min-height: 176px;
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

button {
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: #05110f;
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

button:disabled {
  cursor: default;
  opacity: 0.58;
}

.ghost-button,
.danger-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d8e4de;
}

.danger-button {
  color: #ffd0cb;
}

.hero-lite {
  padding: 60px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: none;
}

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

h1 {
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  text-wrap: balance;
}

#daySummary {
  max-width: 760px;
  margin-bottom: 0;
  color: #d8e4de;
  font-size: 18px;
  line-height: 1.7;
}

.hero-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 860px;
  margin-top: 18px;
}

.hero-ops span {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.74);
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-ops b {
  color: var(--gold);
}

.star-strip {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(226, 238, 231, 0.16);
  border-radius: 8px;
  background: rgba(9, 21, 20, 0.94);
  box-shadow: var(--shadow);
}

.star-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.star-strip__head h2 {
  font-size: 22px;
}

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

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

.star-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, transform 180ms ease;
}

.star-card:hover {
  border-color: rgba(241, 197, 107, 0.45);
  transform: translateY(-2px);
}

.star-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.02);
}

.star-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 32%, rgba(0, 0, 0, 0.84) 100%);
}

.star-card div {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 1;
}

.star-card strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.star-card > div > span {
  display: block;
  margin-top: 5px;
  color: #d8e4de;
  font-size: 12px;
}

.flag-img,
.team-flag {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  vertical-align: -2px;
}

.flag-img {
  margin-right: 7px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-grid--summary {
  margin-bottom: 0;
}

.overview-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(226, 238, 231, 0.16);
  border-radius: 8px;
  background: rgba(9, 21, 20, 0.94);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, background 180ms ease;
}

.overview-card:hover {
  border-color: rgba(241, 197, 107, 0.34);
  background: rgba(13, 29, 27, 0.96);
}

.overview-card:nth-child(1) strong,
.overview-card:nth-child(2) strong {
  color: var(--gold);
}

.overview-card:nth-child(3) strong {
  color: var(--red);
}

.overview-card.wide {
  grid-column: span 2;
}

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

.recommendation-card,
.tier-breakdown-card,
.stage-review-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.recommendation-card.strong,
.tier-breakdown-card.strong {
  border-color: rgba(112, 200, 127, 0.32);
  background: rgba(112, 200, 127, 0.07);
}

.recommendation-card.cautious,
.tier-breakdown-card.cautious {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.065);
}

.recommendation-card.cold,
.tier-breakdown-card.cold {
  border-color: rgba(255, 110, 97, 0.34);
  background: rgba(255, 110, 97, 0.075);
}

.recommendation-card > span,
.tier-breakdown-card > span,
.stage-review-card > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.recommendation-card strong,
.tier-breakdown-card strong,
.stage-review-card strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
}

.recommendation-card em,
.recommendation-card small,
.tier-breakdown-card em,
.tier-breakdown-card small,
.stage-review-card em,
.stage-review-card small {
  display: block;
  margin-top: 7px;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.recommendation-card small,
.tier-breakdown-card small,
.stage-review-card small {
  color: var(--muted);
}

.recommendation-card--wide {
  grid-column: span 2;
}

.signal-brief-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.signal-brief-media {
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.signal-brief-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signal-brief-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.signal-brief-copy h2 {
  margin-bottom: 0;
}

.signal-brief-copy p:not(.eyebrow) {
  max-width: 68ch;
  margin-bottom: 0;
  color: #d8e4de;
  font-size: 14px;
  line-height: 1.65;
}

.signal-brief-steps {
  display: grid;
  gap: 8px;
}

.signal-brief-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  color: #d8e4de;
  font-size: 13px;
}

.signal-brief-steps b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: rgba(241, 197, 107, 0.16);
  color: var(--gold);
}

.overview-card > span,
.panel-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.05;
}

.overview-card em {
  display: block;
  color: #d8e4de;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head span {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.section-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.section-actions span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-actions button {
  height: 36px;
}

.snapshot-status {
  min-height: 18px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.match-list,
.upset-list,
.value-list,
.freshness-list,
.update-status-list,
.record-list {
  display: grid;
  gap: 14px;
}

.match-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(112, 200, 127, 0.28);
  border-radius: 8px;
  background: rgba(8, 18, 17, 0.96);
  box-shadow: var(--shadow);
}

.match-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.match-card.mid {
  border-color: rgba(241, 197, 107, 0.36);
  background: rgba(20, 20, 13, 0.94);
}

.match-card.mid::before {
  background: linear-gradient(90deg, var(--gold), rgba(241, 197, 107, 0.32));
}

.match-card.high {
  border-color: rgba(255, 110, 97, 0.44);
  background: rgba(22, 15, 14, 0.94);
}

.match-card.high::before {
  background: linear-gradient(90deg, var(--red), rgba(255, 110, 97, 0.32));
}

.match-card.mid .confidence {
  border-color: rgba(241, 197, 107, 0.34);
  background: rgba(241, 197, 107, 0.1);
}

.match-card.high .confidence {
  border-color: rgba(255, 110, 97, 0.32);
  background: rgba(255, 110, 97, 0.1);
}

.match-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.match-card__top > div {
  min-width: 0;
}

.match-card__summary {
  display: grid;
  gap: 10px;
}

.match-card__side {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 188px;
}

.match-focus-players {
  display: grid;
  gap: 10px;
}

.focus-player-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.focus-player-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center top;
}

.focus-player-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 10, 10, 0.04) 34%, rgba(5, 10, 10, 0.88) 100%);
  pointer-events: none;
}

.focus-player-card--fallback img {
  filter: saturate(0.82) brightness(0.86);
}

.focus-player-card__caption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.focus-player-card__caption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d8e4de;
  font-size: 12px;
  font-weight: 800;
}

.focus-player-card__caption strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.team-photo-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 16px 20px 0;
}

.team-photo-strip__center {
  display: grid;
  min-height: 132px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--gold);
  text-align: center;
}

.team-photo-strip__center span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 197, 107, 0.36);
  border-radius: 999px;
  background: rgba(241, 197, 107, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.team-photo-strip__center small {
  max-width: 70px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.team-photo-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(6, 15, 14, 0.84);
}

.team-photo-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(1.03) contrast(1.02);
}

.team-photo-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 42%, rgba(2, 8, 7, 0.86) 100%);
  pointer-events: none;
}

.team-photo-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  color: #eaf2ed;
  text-align: center;
}

.team-photo-card__fallback .team-flag {
  width: 42px;
  height: 29px;
}

.team-photo-card__fallback strong {
  font-size: 18px;
  line-height: 1.15;
}

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

.team-photo-card--ready .team-photo-card__fallback {
  display: none;
}

.team-photo-card--missing > img {
  display: none;
}

.team-photo-card--missing .team-photo-card__caption {
  display: none;
}

.team-photo-card--missing::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(241, 197, 107, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(112, 200, 127, 0.11), rgba(15, 26, 24, 0.92));
}

.team-photo-card__caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.team-photo-card__caption span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.team-photo-card__caption .team-flag {
  width: 22px;
  height: 15px;
}

.team-photo-card__caption small {
  flex: none;
  max-width: 42%;
  color: rgba(216, 228, 222, 0.84);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.team-photo-card__caption a {
  margin-left: 6px;
  color: var(--gold);
  text-decoration: none;
}

.match-meta,
.small,
.quality-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.team-line strong {
  min-width: 0;
  font-size: 30px;
  line-height: 1.1;
}

.team-line__vs,
.match-vs {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(241, 197, 107, 0.34);
  border-radius: 999px;
  background: rgba(241, 197, 107, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.team-name {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-transform: none;
  vertical-align: middle;
}

.team-line .team-flag {
  width: 30px;
  height: 21px;
}

.match-quick-read {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.match-quick-read span {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 15, 14, 0.66);
  color: #d8e4de;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.match-quick-read b {
  color: var(--muted);
  font-weight: 800;
}

.match-quick-read .mid {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.09);
  color: #ffe3a5;
}

.match-quick-read .high {
  border-color: rgba(255, 110, 97, 0.34);
  background: rgba(255, 110, 97, 0.1);
  color: #ffd0cb;
}

.prematch-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.prematch-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.58);
}

.prematch-pill b,
.prematch-pill strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prematch-pill b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.prematch-pill strong {
  color: #f4f8f5;
  font-size: 13px;
  line-height: 1.3;
}

.prematch-pill.ok {
  border-color: rgba(112, 200, 127, 0.24);
  background: rgba(112, 200, 127, 0.08);
}

.prematch-pill.warn {
  border-color: rgba(241, 197, 107, 0.28);
  background: rgba(241, 197, 107, 0.08);
}

.prematch-pill.manual {
  border-color: rgba(86, 195, 189, 0.28);
  background: rgba(86, 195, 189, 0.09);
}

.prematch-pill.manual strong {
  color: #c7fffb;
}

.prematch-pill.miss {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
}

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

.match-substatus {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.match-name {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-card .team-name,
.upset-card .team-name {
  gap: 6px;
}

.overview-card .team-flag,
.upset-card .team-flag {
  width: 19px;
  height: 13px;
}

.confidence {
  display: grid;
  min-width: 94px;
  min-height: 74px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(241, 197, 107, 0.28);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.08);
  text-align: center;
}

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

.confidence strong {
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.match-card-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 0;
}

.share-prediction-button {
  min-width: 96px;
  min-height: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.share-prediction-button:hover:not(:disabled) {
  border-color: rgba(241, 197, 107, 0.42);
  background: rgba(241, 197, 107, 0.1);
  color: var(--gold);
}

.match-body {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(260px, 0.95fr) minmax(230px, 0.8fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px 20px 0;
}

.match-body--trim {
  padding-top: 14px;
}

.prob-panel,
.score-panel,
.risk-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.7);
}

.panel-label {
  margin-bottom: 12px;
  color: #dce8e2;
  letter-spacing: 0.02em;
  text-transform: none;
}

.segmented {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.segmented span {
  display: block;
  min-width: 4px;
}

.seg-win {
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.seg-draw {
  background: var(--gold);
}

.seg-loss {
  background: linear-gradient(90deg, var(--coral), var(--blue));
}

.wdl {
  display: grid;
  gap: 7px;
}

.wdl.compact {
  margin-top: 12px;
}

.wdl-row {
  display: grid;
  grid-template-columns: 34px minmax(70px, 1fr) 58px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

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

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

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

.wdl-row:nth-child(3) .fill {
  background: linear-gradient(90deg, var(--coral), var(--blue));
}

.xg-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #d8e4de;
  font-size: 12px;
}

.xg-bar {
  display: flex;
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.xg-bar span:first-child {
  background: var(--green);
}

.xg-bar span:last-child {
  background: var(--blue);
}

.market-trend-panel {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.58);
}

.market-trend-panel.ok {
  border-color: rgba(112, 200, 127, 0.3);
  background: rgba(112, 200, 127, 0.055);
}

.market-trend-panel.warn {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.06);
}

.market-trend-panel.pending {
  border-color: rgba(255, 255, 255, 0.08);
}

.market-trend-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.market-trend-panel strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.market-trend-panel em,
.market-trend-panel small {
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.market-trend-panel small {
  color: var(--muted);
}

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

.score-box {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.score-box:first-child {
  border-color: rgba(241, 197, 107, 0.34);
  background: rgba(241, 197, 107, 0.1);
}

.score-box strong {
  display: block;
  color: #fff;
  font-size: 31px;
  line-height: 1;
}

.score-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.score-bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.score-bar {
  display: grid;
  grid-template-columns: 42px minmax(80px, 1fr) 52px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.score-bar b {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.score-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.risk-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(112, 200, 127, 0.14);
  color: #c8ffd2;
  font-size: 13px;
  font-weight: 850;
}

.risk-badge.mid {
  background: rgba(241, 197, 107, 0.16);
  color: #ffe3a5;
}

.risk-badge.high {
  background: rgba(255, 110, 97, 0.18);
  color: #ffd0cb;
}

.risk-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.risk-reasons span {
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8e4de;
  font-size: 12px;
}

.recommendation-chip.strong {
  border-color: rgba(112, 200, 127, 0.3);
  background: rgba(112, 200, 127, 0.1);
  color: #c8ffd2;
}

.recommendation-chip.cautious {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.09);
  color: #ffe3a5;
}

.recommendation-chip.watch {
  color: #d8e4de;
}

.recommendation-chip.cold {
  border-color: rgba(255, 110, 97, 0.34);
  background: rgba(255, 110, 97, 0.1);
  color: #ffd0cb;
}

.recommendation-callout {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.recommendation-callout.strong {
  border-color: rgba(112, 200, 127, 0.28);
  background: rgba(112, 200, 127, 0.065);
}

.recommendation-callout.cautious {
  border-color: rgba(241, 197, 107, 0.28);
  background: rgba(241, 197, 107, 0.065);
}

.recommendation-callout.cold {
  border-color: rgba(255, 110, 97, 0.3);
  background: rgba(255, 110, 97, 0.075);
}

.recommendation-callout span,
.recommendation-callout small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recommendation-callout strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 18px;
}

.recommendation-callout em {
  display: block;
  margin-top: 4px;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.recommendation-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recommendation-reasons span {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d8e4de;
}

.decision-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.95fr);
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(226, 238, 231, 0.12);
  border-radius: 10px;
  background: rgba(5, 15, 14, 0.48);
}

.decision-summary.strong {
  border-color: rgba(112, 200, 127, 0.28);
  background: rgba(112, 200, 127, 0.055);
}

.decision-summary.cautious {
  border-color: rgba(241, 197, 107, 0.26);
  background: rgba(241, 197, 107, 0.052);
}

.decision-summary.cold {
  border-color: rgba(255, 110, 97, 0.3);
  background: rgba(255, 110, 97, 0.06);
}

.decision-summary__main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.decision-kicker,
.decision-metric span,
.decision-summary__checks span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.decision-summary__main strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  text-wrap: balance;
}

.decision-summary__main em {
  color: #d8e4de;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

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

.decision-metric {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.decision-metric strong {
  color: #f4f8f5;
  font-size: 16px;
  line-height: 1.25;
}

.decision-metric.ok strong {
  color: #c8ffd2;
}

.decision-metric.risk strong {
  color: #ffd0cb;
}

.decision-metric.hold strong {
  color: #ffe3a5;
}

.decision-summary__checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.decision-summary__checks span {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: #d8e4de;
}

.locked-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px dashed rgba(241, 197, 107, 0.3);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.06);
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.45;
}

.locked-inline span {
  color: var(--gold);
  font-weight: 850;
}

.upset-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upset-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.compact-meter {
  margin-top: 8px;
}

.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match-card .data-tags {
  margin: 16px 20px 18px;
  padding-top: 14px;
}

.match-more {
  margin: 0 20px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.match-more summary::-webkit-details-marker {
  display: none;
}

.match-more summary::after {
  content: "展开";
  color: #d8e4de;
}

.match-more[open] summary::after {
  content: "收起";
}

.match-more__body {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.match-more .data-tags {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.data-tag {
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.data-tag.ok {
  background: rgba(112, 200, 127, 0.14);
  color: #c8ffd2;
}

.data-tag.miss {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.upset-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 132px minmax(220px, 1.4fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(241, 197, 107, 0.28);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.055);
}

.upset-card.high {
  border-color: rgba(255, 110, 97, 0.38);
  background: rgba(255, 110, 97, 0.07);
}

.upset-card strong {
  display: block;
  font-size: 17px;
}

.compact-reasons {
  margin-top: 8px;
}

.value-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 1.4fr) 132px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.value-card.mid {
  border-color: rgba(241, 197, 107, 0.32);
  background: rgba(241, 197, 107, 0.055);
}

.value-card.high {
  border-color: rgba(255, 110, 97, 0.38);
  background: rgba(255, 110, 97, 0.07);
}

.value-card strong {
  display: block;
}

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

.value-metrics span,
.record-grid > div,
.trust-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.value-metrics b,
.record-grid strong,
.trust-grid strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.value-metrics em,
.record-grid em,
.record-grid span,
.trust-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.value-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.value-badge.mid {
  background: rgba(241, 197, 107, 0.16);
  color: #ffe3a5;
}

.value-badge.high {
  background: rgba(255, 110, 97, 0.18);
  color: #ffd0cb;
}

.paywall-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px dashed rgba(241, 197, 107, 0.36);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.075);
}

.paywall-card strong {
  display: block;
  margin: 5px 0 7px;
  font-size: 20px;
}

.paywall-card p,
.paywall-card ul {
  margin: 0;
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.55;
}

.paywall-card ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.paywall-kicker,
.tier-current {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(241, 197, 107, 0.14);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.update-status-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.freshness-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.freshness-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.freshness-card.summary {
  grid-column: 1 / -1;
  background: rgba(86, 195, 189, 0.09);
  border-color: rgba(86, 195, 189, 0.28);
}

.freshness-card.ok {
  border-color: rgba(112, 200, 127, 0.36);
}

.freshness-card.partial,
.freshness-card.scheduled {
  border-color: rgba(241, 197, 107, 0.34);
}

.freshness-card.bad {
  border-color: rgba(255, 110, 97, 0.36);
  background: rgba(255, 110, 97, 0.075);
}

.freshness-card.trend-gap-card {
  grid-column: 1 / -1;
}

.freshness-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.freshness-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 20px;
  line-height: 1.15;
}

.freshness-card em,
.freshness-card small {
  display: block;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.freshness-card small {
  color: var(--muted);
}

.status-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.status-card.partial {
  border-color: rgba(241, 197, 107, 0.28);
  background: rgba(241, 197, 107, 0.055);
}

.status-card.ok {
  border-color: rgba(112, 200, 127, 0.3);
  background: rgba(112, 200, 127, 0.055);
}

.status-card span,
.tier-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.status-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
  line-height: 1;
}

.status-card em {
  display: block;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
}

.status-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.status-card b {
  display: block;
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.status-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
}

.status-card.partial i {
  background: var(--gold);
}

.status-card.ok i {
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.status-overview .overview-card.status-ok strong,
.prematch-overview .overview-card.status-ok strong,
.status-source-card.ok strong,
.status-alert.ok strong {
  color: var(--green);
}

.status-overview .overview-card.status-warn strong,
.prematch-overview .overview-card.status-warn strong,
.status-source-card.warn strong,
.status-source-card.idle strong,
.status-alert.warn strong {
  color: var(--gold);
}

.status-overview .overview-card.status-bad strong,
.prematch-overview .overview-card.status-bad strong,
.status-source-card.bad strong,
.status-alert.bad strong {
  color: var(--red);
}

.prematch-command-grid,
.prematch-match-list,
.prematch-timeline {
  display: grid;
  gap: 12px;
}

.prematch-command-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prematch-command-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.6);
}

.prematch-command-card.featured {
  border-color: rgba(112, 200, 127, 0.34);
  background: rgba(112, 200, 127, 0.07);
}

.prematch-command-card strong {
  color: #f4f8f5;
  font-size: 16px;
}

.prematch-command-card span {
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.55;
}

.prematch-command-card button {
  margin-top: auto;
}

.prematch-run-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.prematch-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 18, 17, 0.82);
}

.prematch-card.ok {
  border-color: rgba(112, 200, 127, 0.3);
}

.prematch-card.warn {
  border-color: rgba(241, 197, 107, 0.34);
}

.prematch-card.bad {
  border-color: rgba(255, 110, 97, 0.38);
}

.prematch-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.prematch-card__head > div {
  min-width: 0;
}

.prematch-card__head span,
.prematch-card__head em,
.prematch-decision-row span,
.prematch-decision-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.prematch-card__head strong {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #f4f8f5;
  font-size: 24px;
  line-height: 1.15;
}

.prematch-card__head strong > b {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(241, 197, 107, 0.32);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
}

.prematch-team {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.prematch-readiness {
  display: grid;
  min-width: 118px;
  gap: 6px;
  text-align: right;
}

.prematch-readiness strong {
  display: block;
  margin: 0;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.prematch-readiness i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.prematch-readiness b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.prematch-decision-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prematch-decision-row > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.prematch-decision-row strong {
  display: block;
  margin: 6px 0 4px;
  color: #f4f8f5;
  font-size: 18px;
  line-height: 1.2;
}

.prematch-decision-row strong.mid {
  color: var(--gold);
}

.prematch-decision-row strong.high {
  color: var(--red);
}

.prematch-shadow-panel {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prematch-shadow-panel > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.prematch-shadow-panel.ok > div:first-child {
  border-color: rgba(112, 200, 127, 0.36);
}

.prematch-shadow-panel.warn > div:first-child {
  border-color: rgba(241, 197, 107, 0.38);
}

.prematch-shadow-panel.bad > div:first-child {
  border-color: rgba(255, 110, 97, 0.36);
}

.prematch-shadow-panel span,
.prematch-shadow-panel em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.prematch-shadow-panel strong {
  display: block;
  overflow: hidden;
  margin: 5px 0 4px;
  color: #f4f8f5;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prematch-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.prematch-check {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.prematch-check > div {
  min-width: 0;
}

.prematch-check.ok {
  border-color: rgba(112, 200, 127, 0.24);
  background: rgba(112, 200, 127, 0.055);
}

.prematch-check.warn {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.06);
}

.prematch-check.miss {
  border-color: rgba(255, 110, 97, 0.34);
  background: rgba(255, 110, 97, 0.065);
}

.prematch-check.idle {
  opacity: 0.84;
}

.prematch-check strong,
.prematch-check span {
  display: block;
}

.prematch-check strong {
  color: #f4f8f5;
  font-size: 13px;
}

.prematch-check span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.prematch-check a {
  flex: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.prematch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.prematch-node {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.58);
}

.prematch-node.ok {
  border-color: rgba(112, 200, 127, 0.24);
}

.prematch-node.warn {
  border-color: rgba(241, 197, 107, 0.3);
}

.prematch-node strong {
  color: #f4f8f5;
  font-size: 16px;
}

.prematch-node span,
.prematch-node em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.prematch-run-log {
  min-height: 260px;
  max-height: 420px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(3, 10, 9, 0.72);
  color: #d8e4de;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prematch-stage-snapshots {
  display: grid;
  gap: 10px;
}

.stage-snapshot-summary,
.stage-snapshot-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.stage-snapshot-summary strong {
  display: block;
  color: #f4f8f5;
  font-size: 28px;
  line-height: 1;
}

.stage-snapshot-summary span,
.stage-snapshot-row span,
.stage-snapshot-summary em,
.stage-snapshot-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.stage-snapshot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.stage-snapshot-row strong {
  color: #f4f8f5;
}

.stage-snapshot-row.ok {
  border-color: rgba(112, 200, 127, 0.26);
}

.stage-snapshot-row.warn {
  border-color: rgba(241, 197, 107, 0.3);
}

.stage-lock-button {
  width: 100%;
  margin-top: 12px;
}

.status-alert-list,
.status-source-grid,
.status-detail-grid {
  display: grid;
  gap: 12px;
}

.status-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.status-alert,
.status-source-card,
.status-publish-card,
.status-quota-card,
.status-detail-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.status-alert.ok,
.status-source-card.ok,
.status-publish-card.ok,
.status-quota-card.ok {
  border-color: rgba(112, 200, 127, 0.3);
  background: rgba(112, 200, 127, 0.055);
}

.status-alert.warn,
.status-source-card.warn,
.status-source-card.idle,
.status-publish-card.warn,
.status-publish-card.idle,
.status-quota-card.warn,
.status-quota-card.idle {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.06);
}

.status-alert.bad,
.status-source-card.bad,
.status-publish-card.bad,
.status-quota-card.bad {
  border-color: rgba(255, 110, 97, 0.36);
  background: rgba(255, 110, 97, 0.075);
}

.status-alert strong,
.status-source-card span,
.status-publish-card span,
.status-quota-card span,
.status-detail-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.status-alert strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.status-alert span,
.status-alert em,
.status-source-card small,
.status-publish-card em,
.status-publish-card small,
.status-quota-card em,
.status-quota-card small,
.status-detail-card em {
  display: block;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.status-alert em {
  margin-top: 6px;
  color: var(--muted);
}

.status-alert a {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: #f1c56b;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.status-alert a:hover {
  text-decoration: underline;
}

.status-source-card strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 8px 0 5px;
  font-size: 30px;
  line-height: 1;
}

.status-publish-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.status-publish-card small {
  margin-top: 8px;
  color: var(--muted);
}

.status-publish-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: #f1c56b;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.status-publish-card a:hover {
  text-decoration: underline;
}

.status-quota-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.status-quota-card small {
  margin-top: 5px;
  color: var(--muted);
}

.status-quota-card b {
  display: block;
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.status-quota-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.status-quota-card.warn i,
.status-quota-card.idle i {
  background: var(--gold);
}

.status-quota-card.bad i {
  background: var(--red);
}

.status-source-card strong em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.status-detail-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trend-control-panel {
  margin-top: 8px;
}

.trend-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
  align-items: end;
}

.trend-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-toolbar select {
  width: 100%;
}

.trend-match-meta {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.trend-match-meta > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.trend-match-meta b {
  color: var(--gold);
  font-size: 12px;
}

.trend-match-meta em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.trend-overview .overview-card.status-ok strong {
  color: var(--green);
}

.trend-overview .overview-card.status-warn strong {
  color: var(--gold);
}

.trend-overview .overview-card.status-bad strong {
  color: var(--red);
}

.trend-chart-wrap {
  display: grid;
  gap: 12px;
}

.trend-chart {
  display: block;
  width: 100%;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.58);
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trend-legend span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #d8e4de;
  font-size: 12px;
  font-weight: 800;
}

.trend-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.trend-timeline,
.run-snapshot-list {
  display: grid;
  gap: 10px;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(80px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.5);
}

.trend-row.latest {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.06);
}

.trend-row div {
  min-width: 0;
}

.trend-row span,
.run-snapshot-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend-row strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.trend-row.latest > div:first-child strong {
  color: var(--gold);
}

.run-snapshot-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.run-snapshot-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.54);
}

.run-snapshot-card.ok {
  border-color: rgba(112, 200, 127, 0.28);
  background: rgba(112, 200, 127, 0.052);
}

.run-snapshot-card.warn {
  border-color: rgba(241, 197, 107, 0.3);
  background: rgba(241, 197, 107, 0.058);
}

.run-snapshot-card.bad {
  border-color: rgba(255, 110, 97, 0.36);
  background: rgba(255, 110, 97, 0.075);
}

.run-snapshot-card strong {
  display: block;
  margin: 8px 0 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.run-snapshot-card em,
.run-snapshot-card small {
  display: block;
  color: #d8e4de;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.run-snapshot-card small {
  margin-top: 5px;
  color: var(--muted);
}

.trend-empty {
  padding: 16px;
  border: 1px solid rgba(241, 197, 107, 0.22);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.055);
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.5;
}

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

.tier-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
}

.tier-card.featured {
  border-color: rgba(241, 197, 107, 0.48);
  background: rgba(241, 197, 107, 0.08);
}

.tier-card.featured::after {
  position: absolute;
  top: 14px;
  right: 14px;
  content: "优先上线";
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(241, 197, 107, 0.34);
  border-radius: 999px;
  background: rgba(241, 197, 107, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.tier-card.current {
  border-color: rgba(112, 200, 127, 0.58);
  background: rgba(112, 200, 127, 0.08);
}

.tier-current:empty {
  display: none;
}

.tier-card strong {
  display: block;
  margin: 8px 0 6px;
  padding-right: 72px;
  font-size: 22px;
}

.tier-card:not(.featured) strong {
  padding-right: 0;
}

.tier-fit {
  min-height: 38px;
  margin: 0 0 12px;
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.45;
}

.tier-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.45;
}

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

.record-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

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

.record-card header strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 20px;
}

.record-lock {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.tier-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stage-review-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.result-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.result-form input {
  width: 96px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 13, 12, 0.88);
  color: var(--text);
  padding: 0 10px;
}

.result-form button {
  height: 36px;
}

.result-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-status.ok {
  color: #c8ffd2;
}

.result-status.miss {
  color: #ffd0cb;
}

.empty-actions {
  margin-top: 12px;
}

.empty {
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.admin-hero {
  padding-bottom: 18px;
}

.admin-toolbar,
.admin-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar label,
.admin-form label {
  display: grid;
  min-width: min(260px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-form select {
  min-width: 150px;
}

.ops-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(280px, 1fr);
  align-items: start;
}

.ops-match-picker {
  min-width: 0;
}

.ops-match-meta {
  display: grid;
  gap: 6px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.ops-team-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-team-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ops-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-team-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-team-head strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.checkbox-row {
  display: inline-flex !important;
  min-width: 0 !important;
  width: fit-content;
  grid-template-columns: auto 1fr;
  align-items: center;
  color: var(--text) !important;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

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

.ops-mini-grid label,
.ops-team-card > label {
  min-width: 0;
}

.ops-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-preset-row button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-override-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.override-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

.override-form label {
  min-width: 0;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.override-json {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.override-json textarea {
  width: 100%;
  box-sizing: border-box;
  color: #d8e4de;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.admin-override-preview {
  margin-top: 14px;
}

.admin-override-preview pre {
  margin: 0;
  overflow: auto;
  max-height: 280px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.55;
}

.admin-table,
.admin-snapshot-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 110px 110px 150px 150px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-row--head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-row strong,
.admin-row em,
.admin-snapshot strong,
.admin-snapshot span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-row em,
.admin-snapshot span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.tier-badge {
  display: inline-flex;
  min-height: 28px;
  width: fit-content;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.tier-badge.pro,
.tier-badge.elite {
  background: rgba(241, 197, 107, 0.14);
  color: var(--gold);
}

.admin-snapshot {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 1fr) 130px 120px 90px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.manual-hero p:not(.eyebrow) {
  max-width: 72ch;
  color: #d8e4de;
  line-height: 1.65;
}

.manual-gap-summary {
  display: grid;
  gap: 14px;
}

.manual-gap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(86, 195, 189, 0.2);
  border-radius: 8px;
  background: rgba(86, 195, 189, 0.055);
}

.manual-gap-head > div {
  display: grid;
  gap: 5px;
}

.manual-gap-head strong {
  color: #fff;
  font-size: 16px;
}

.manual-gap-head span {
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.45;
}

.manual-gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.manual-gap-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.manual-gap-card.ok {
  border-color: rgba(112, 200, 127, 0.28);
  background: rgba(112, 200, 127, 0.06);
}

.manual-gap-card.warn {
  border-color: rgba(241, 197, 107, 0.28);
  background: rgba(241, 197, 107, 0.065);
}

.manual-gap-card.miss {
  border-color: rgba(255, 110, 97, 0.3);
  background: rgba(255, 110, 97, 0.06);
}

.manual-gap-card.idle {
  background: rgba(255, 255, 255, 0.035);
}

.manual-gap-card span,
.manual-gap-card em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.manual-gap-card strong {
  color: #f4f8f5;
  font-size: 17px;
}

.manual-gap-card button {
  width: fit-content;
  min-width: 88px;
  height: 34px;
}

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

.manual-form label,
.manual-impact label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.manual-form textarea {
  min-height: 98px;
}

.manual-wide,
.manual-impact,
.manual-actions {
  grid-column: 1 / -1;
}

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

.manual-market-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.manual-market-grid textarea {
  min-height: 88px;
}

.manual-market-actions,
.manual-market-status {
  grid-column: 1 / -1;
}

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

.manual-market-status {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.manual-market-panel[data-market-type="1x2"] .manual-market-total-field {
  display: none;
}

.manual-market-panel[data-market-type="1x2"] .manual-market-handicap-field {
  display: none;
}

.manual-market-panel[data-market-type="totals"] .manual-market-1x2-field {
  display: none;
}

.manual-market-panel[data-market-type="totals"] .manual-market-handicap-field {
  display: none;
}

.manual-market-panel[data-market-type="handicap"] .manual-market-1x2-field,
.manual-market-panel[data-market-type="handicap"] .manual-market-total-field {
  display: none;
}

.manual-impact {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.48);
}

.manual-impact legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.manual-impact-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.manual-api-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(86, 195, 189, 0.24);
  border-radius: 8px;
  background: rgba(86, 195, 189, 0.055);
}

.manual-api-copy {
  display: grid;
  gap: 5px;
}

.manual-api-copy strong {
  color: #f4f8f5;
  font-size: 16px;
}

.manual-api-copy p,
.manual-api-box > span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.manual-api-box > span {
  grid-column: 1 / -1;
}

.manual-preview-toolbar,
.manual-ocr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.manual-preview-toolbar {
  margin-bottom: 14px;
}

.manual-preview-toolbar > span,
.manual-ocr-side > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.manual-preview-output {
  min-height: 120px;
}

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

.manual-preview-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.manual-preview-card strong {
  color: #fff;
  font-size: 18px;
}

.manual-preview-card small,
.manual-preview-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.manual-preview-card em {
  color: #d8e4de;
  line-height: 1.5;
}

.manual-preview-card .delta-pos {
  color: #70c87f;
}

.manual-preview-card .delta-neg {
  color: #f1c56b;
}

.manual-preview-metrics {
  display: grid;
  gap: 7px;
}

.manual-preview-metric {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 10px;
  align-items: center;
}

.manual-preview-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-preview-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.manual-preview-bar > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
}

.manual-preview-bar.alt > b {
  background: linear-gradient(90deg, rgba(86, 195, 189, 0.9), rgba(112, 200, 127, 0.92));
}

.manual-preview-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-preview-scores code {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.56);
  color: #f4f8f5;
  font-size: 12px;
}

.manual-ocr-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
}

.manual-ocr-side,
.manual-ocr-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.manual-ocr-recent-row select {
  min-width: 0;
}

.manual-ocr-meta {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.manual-ocr-meta strong,
.manual-ocr-meta span,
.manual-ocr-meta small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.manual-ocr-meta strong {
  color: #fff;
  font-size: 13px;
}

.manual-ocr-meta span,
.manual-ocr-meta small {
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.5;
}

.manual-ocr-meta small {
  color: var(--muted);
}

.manual-ocr-queue {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 197, 107, 0.2);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.05);
}

.manual-ocr-queue-grid {
  display: grid;
  gap: 8px;
}

.manual-ocr-queue-grid article {
  display: grid;
  gap: 4px;
}

.manual-ocr-queue-grid strong,
.manual-ocr-queue-grid span,
.manual-ocr-queue small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.manual-ocr-queue-grid strong {
  color: #fff;
  font-size: 12px;
}

.manual-ocr-queue-grid span,
.manual-ocr-queue small {
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.5;
}

.manual-ocr-queue small {
  color: var(--muted);
}

.manual-ocr-preview-shell {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 15, 14, 0.52);
}

.manual-ocr-preview-shell img {
  display: none;
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
  object-fit: contain;
}

.manual-ocr-preview-shell img.ready {
  display: block;
}

.manual-ocr-text {
  min-height: 220px;
}

.manual-ocr-candidates {
  display: grid;
  gap: 10px;
}

.manual-ocr-candidate {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.manual-ocr-candidate strong {
  color: #fff;
  font-size: 14px;
}

.manual-ocr-candidate p,
.manual-ocr-candidate small {
  margin: 0;
  color: #d8e4de;
  font-size: 12px;
  line-height: 1.5;
}

.manual-ocr-candidate small {
  color: var(--muted);
}

.manual-ocr-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-form[data-type="availability"] .manual-lineup-field {
  display: none;
}

.manual-form[data-type="lineup"] .manual-player-field {
  display: none;
}

.manual-output {
  width: 100%;
  min-height: 220px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.manual-command {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(241, 197, 107, 0.24);
  border-radius: 8px;
  background: rgba(241, 197, 107, 0.06);
}

.manual-command span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-command code {
  display: block;
  color: #f4f8f5;
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.manual-guide-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

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

.manual-guide-grid strong {
  color: #fff;
}

.manual-guide-grid span {
  margin-top: 7px;
  color: #d8e4de;
  font-size: 13px;
  line-height: 1.55;
}

.page-shell {
  width: min(1240px, calc(100% - 36px));
  padding-top: 20px;
  padding-bottom: 72px;
}

.page-shell--public {
  width: min(1240px, calc(100% - 40px));
}

.page-shell--admin {
  width: min(1320px, calc(100% - 40px));
}

body.page-public {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.24), #06100f 580px),
    radial-gradient(circle at top left, rgba(86, 195, 189, 0.14), transparent 33%),
    radial-gradient(circle at top right, rgba(241, 197, 107, 0.09), transparent 30%),
    url("assets/stadium-dashboard.png") center top / cover no-repeat fixed;
}

body.page-admin {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.28), #06100f 520px),
    radial-gradient(circle at top left, rgba(86, 195, 189, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(159, 178, 255, 0.08), transparent 24%),
    #06100f;
}

.top__left,
.top__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top__right {
  margin-left: auto;
  justify-content: flex-end;
}

.top--public,
.top--admin {
  padding: 12px 14px;
  backdrop-filter: blur(18px);
}

.top--public {
  background: rgba(6, 15, 14, 0.84);
}

.top--admin {
  background: rgba(7, 16, 15, 0.95);
  border-color: rgba(86, 195, 189, 0.16);
}

.top--admin .top-nav a[aria-current="page"] {
  border-color: rgba(86, 195, 189, 0.36);
  background: rgba(86, 195, 189, 0.1);
  color: #c8fffb;
}

.admin-entry[hidden] {
  display: none !important;
}

.workspace-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(86, 195, 189, 0.24);
  border-radius: 999px;
  background: rgba(86, 195, 189, 0.09);
  color: #bfeeea;
  font-size: 12px;
  font-weight: 850;
}

.page-admin .top-nav a[href="index.html"],
.page-admin .top-nav a[href="record.html"],
.page-admin .top-nav a[href="index.html#pricingPanel"] {
  display: none;
}

.panel {
  border-radius: 12px;
  background: rgba(10, 20, 19, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.panel--primary,
.panel--side,
.hero-summary-card,
.star-strip--compact {
  border: 1px solid rgba(226, 238, 231, 0.12);
}

.panel--primary {
  padding: 22px;
}

.panel--side {
  padding: 20px;
}

.section-head > span,
.section-head--compact > span {
  max-width: 50ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-head--compact {
  align-items: flex-start;
}

.section-head--compact h2 {
  margin-bottom: 4px;
}

.hero-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 48px;
}

.hero-dashboard--solo {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 40px;
}

.hero-dashboard__main {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(226, 238, 231, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-dashboard__main h1 {
  margin-bottom: 12px;
}

.hero-dashboard__main > p:not(.eyebrow) {
  max-width: 60ch;
  color: #d4e0db;
  line-height: 1.6;
}

.hero-dashboard__main--compact {
  padding: 24px 26px;
}

.hero-dashboard__aside {
  display: grid;
}

.hero-summary-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 12px;
  background: rgba(9, 19, 18, 0.92);
}

.hero-dashboard--record {
  padding-top: 44px;
}

.admin-hero--workspace {
  padding-top: 44px;
  padding-bottom: 18px;
}

.admin-hero--workspace h1,
.admin-hero--workspace p,
.manual-hero p {
  max-width: 64ch;
  color: #d4e0db;
  line-height: 1.6;
}

.overview-grid--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.overview-strip {
  margin-top: 16px;
}

.module-nav-panel {
  margin-top: 18px;
  padding: 12px;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-tab {
  min-width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #d8e4de;
  font-weight: 800;
  padding: 0 14px;
}

.module-tab:hover:not(:disabled) {
  filter: none;
  transform: none;
  border-color: rgba(241, 197, 107, 0.38);
  background: rgba(241, 197, 107, 0.08);
  color: var(--gold);
}

.module-tab.is-active,
.module-tab[aria-selected="true"] {
  border-color: rgba(241, 197, 107, 0.5);
  background: rgba(241, 197, 107, 0.12);
  color: var(--gold);
}

.module-panels {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.prediction-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.prediction-stage__list {
  min-width: 0;
}

.prediction-stage__visual {
  position: sticky;
  top: 84px;
}

.theme-panel {
  overflow: hidden;
  border: 1px solid rgba(226, 238, 231, 0.12);
  border-radius: 12px;
  background: rgba(8, 18, 17, 0.96);
  box-shadow: var(--shadow);
}

.theme-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 7;
  object-fit: cover;
}

.page-module {
  display: none;
}

.page-module.is-active {
  display: block;
}

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

.module-stack {
  display: grid;
  gap: 14px;
}

.section-head--public {
  align-items: center;
}

.star-strip--compact {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(9, 19, 18, 0.88);
}

.star-strip--compact .star-grid {
  margin-top: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.93fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.content-grid__main,
.content-grid__side,
.record-stack {
  display: grid;
  gap: 20px;
}

.content-grid--record {
  grid-template-columns: minmax(0, 1.46fr) minmax(280px, 0.88fr);
}

.content-grid--admin {
  grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.92fr);
}

.signal-brief-panel--compact {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
  overflow: hidden;
}

.signal-brief-panel--compact .signal-brief-media {
  min-height: 100%;
}

.signal-brief-panel--compact .signal-brief-copy {
  padding: 24px 24px 24px 0;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.admin-hub-card {
  display: flex;
  min-height: 156px;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(226, 238, 231, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(86, 195, 189, 0.3);
  background: rgba(86, 195, 189, 0.08);
}

.admin-hub-card strong {
  font-size: 18px;
}

.admin-hub-card span {
  color: #d8e4de;
  font-size: 14px;
  line-height: 1.55;
}

.admin-hub-card em {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 980px) {
  .page-shell--public,
  .page-shell--admin {
    width: min(100% - 28px, 1320px);
  }

  .hero-dashboard,
  .content-grid,
  .content-grid--record,
  .content-grid--admin {
    grid-template-columns: 1fr;
  }

  .hero-dashboard__main,
  .hero-summary-card,
  .panel--primary,
  .panel--side {
    padding: 20px;
  }

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

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

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

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

  .prediction-stage__visual {
    position: static;
  }

  .prematch-command-grid,
  .prematch-shadow-panel,
  .prematch-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-brief-panel--compact {
    grid-template-columns: 1fr;
  }

  .signal-brief-panel--compact .signal-brief-copy {
    padding: 20px;
  }
}

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

  .top__right {
    justify-content: flex-start;
  }

  .overview-grid--hero,
  .admin-hub-grid {
    grid-template-columns: 1fr;
  }

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

  .module-tab {
    min-width: 0;
    padding: 0 10px;
  }

  .prematch-command-grid,
  .prematch-check-grid,
  .prematch-shadow-panel,
  .prematch-decision-row {
    grid-template-columns: 1fr;
  }

  .prematch-card__head {
    flex-direction: column;
  }

  .prematch-readiness {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .page-shell--public,
  .page-shell--admin {
    width: min(100% - 20px, 1320px);
  }

  .hero-dashboard__main,
  .hero-summary-card,
  .panel--primary,
  .panel--side {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .overview-grid,
  .record-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .prematch-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .value-card,
  .record-grid {
    grid-template-columns: 1fr 1fr;
  }

  .update-status-list,
  .freshness-list,
  .recommendation-grid,
  .tier-breakdown-grid,
  .stage-review-grid,
  .status-publish-grid,
  .status-quota-grid,
  .status-source-grid,
  .status-detail-grid,
  .run-snapshot-list,
  .ops-form,
  .ops-team-grid,
  .admin-override-grid,
  .admin-row,
  .admin-snapshot,
  .pricing-grid,
  .trust-grid,
  .manual-form,
  .manual-market-grid,
  .manual-api-box,
  .manual-preview-grid,
  .manual-ocr-grid,
  .manual-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-brief-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .page,
  .top,
  .panel,
  .star-strip,
  .overview-card,
  .recommendation-card,
  .tier-breakdown-card,
  .match-card,
  .freshness-card,
  .status-card,
  .status-alert,
  .status-source-card,
  .status-publish-card,
  .status-quota-card,
  .status-detail-card,
    .run-snapshot-card,
    .value-card,
  .upset-card,
  .tier-card {
    min-width: 0;
    max-width: 100%;
  }

  .top,
  .section-head,
  .manual-gap-head,
  .prematch-card__head,
  .match-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .top {
    position: static;
  }

  .top-nav,
  .section-actions {
    width: 100%;
  }

  .section-head > span {
    width: 100%;
  }

  .section-actions span {
    width: 100%;
    word-break: break-all;
  }

  .overview-card em,
  .freshness-card em,
  .freshness-card small,
  .small,
  .quality-line,
  .match-meta {
    word-break: break-all;
  }

  h1 {
    font-size: 42px;
  }

  .team-line strong {
    font-size: 25px;
  }

  .match-quick-read {
    width: 100%;
  }

  .prematch-status-strip {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .team-photo-strip {
    grid-template-columns: 1fr;
    padding: 14px 14px 0;
  }

  .team-photo-strip__center {
    min-height: 38px;
    display: flex;
  }

  .team-photo-strip__center small {
    max-width: none;
  }

  .team-photo-card,
  .team-photo-card > img {
    min-height: 150px;
  }

  .match-quick-read span {
    display: block;
    flex: 1 1 180px;
    border-radius: 8px;
    word-break: break-all;
  }

  .match-quick-read b {
    display: inline-block;
    margin-right: 6px;
  }

  .match-body {
    padding: 14px 14px 0;
  }

  .match-card .data-tags {
    margin-right: 14px;
    margin-left: 14px;
  }

  .match-more {
    margin-right: 14px;
    margin-left: 14px;
  }

  .match-card-actions {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: stretch;
  }

  .match-card__side {
    width: 100%;
    min-width: 0;
  }

  .match-focus-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-prediction-button {
    width: 100%;
  }

  .overview-grid,
  .match-body,
  .upset-card,
  .value-card,
  .value-metrics,
  .paywall-card,
  .update-status-list,
  .freshness-list,
  .recommendation-grid,
  .tier-breakdown-grid,
  .stage-review-grid,
  .status-publish-grid,
  .status-quota-grid,
  .status-source-grid,
  .status-detail-grid,
  .run-snapshot-list,
  .trend-toolbar,
  .ops-form,
  .ops-team-grid,
  .ops-mini-grid,
  .admin-override-grid,
  .override-form,
  .admin-row,
  .admin-snapshot,
  .pricing-grid,
  .trust-grid,
  .manual-form,
  .manual-market-grid,
  .manual-api-box,
  .manual-preview-grid,
  .manual-ocr-grid,
  .manual-impact,
  .manual-guide-grid,
  .prematch-command-grid,
  .prematch-check-grid,
  .prematch-decision-row,
  .decision-summary__metrics,
  .record-summary,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .prematch-readiness {
    width: 100%;
    text-align: left;
  }

  .prematch-check {
    align-items: flex-start;
    flex-direction: column;
  }

  .star-grid {
    grid-auto-columns: minmax(210px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(241, 197, 107, 0.42) rgba(255, 255, 255, 0.08);
  }

  .star-card {
    scroll-snap-align: start;
  }

  .star-strip__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .star-card,
  .star-card > img {
    min-height: 170px;
  }

  .overview-card.wide,
  .recommendation-card--wide,
  .risk-panel {
    grid-column: auto;
  }

  .signal-brief-media {
    min-height: 180px;
  }

  .confidence {
    width: 100%;
    max-width: 100%;
    min-height: 62px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .record-card header {
    flex-direction: column;
  }

  .record-lock {
    text-align: left;
  }

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

  .trend-row > div:first-child {
    grid-column: 1 / -1;
  }

  .trend-chart {
    height: 340px;
  }
}

@media (max-width: 560px) {
  body {
    background-attachment: scroll;
  }

  .page {
    width: min(100% - 24px, 1120px);
  }

  .hero-lite {
    padding-top: 42px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 21px;
  }

  .hero-ops {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .hero-ops span {
    display: block;
    min-height: 38px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
    word-break: break-all;
  }

  .hero-ops b {
    display: inline-block;
    margin-right: 6px;
  }

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

  .trend-chart {
    height: 300px;
  }

  .date-tools {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .date-tools input,
  .date-tools button,
  .section-actions button,
  .section-actions .ghost-link {
    width: 100%;
  }

  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .team-line {
    gap: 8px;
  }

  .team-line strong {
    font-size: 22px;
  }

  .match-quick-read span {
    flex-basis: 100%;
  }

  .tier-card.featured::after {
    position: static;
    width: fit-content;
    order: -1;
    margin-bottom: 8px;
  }

  .tier-card.featured strong {
    padding-right: 0;
  }

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

  .score-bar {
    grid-template-columns: 38px minmax(62px, 1fr) 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  button:hover:not(:disabled),
  .star-card:hover {
    transform: none;
  }
}
