:root {
  color-scheme: dark;
  --bg: #06121a;
  --panel: rgba(10, 31, 42, 0.94);
  --panel-2: rgba(11, 43, 55, 0.82);
  --line: rgba(68, 245, 216, 0.24);
  --line-strong: rgba(68, 245, 216, 0.55);
  --text: #ecfffb;
  --muted: #86b4ba;
  --aqua: #36f3d2;
  --green: #58f79b;
  --yellow: #f4ee75;
  --red: #ff7282;
  --blue: #4fb7ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: auto;
}

body {
  background:
    radial-gradient(circle at 50% 8%, rgba(50, 243, 210, 0.18), transparent 34rem),
    linear-gradient(135deg, #051018 0%, #09202b 46%, #06121a 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
}

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

button {
  cursor: pointer;
}

.war-room {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 58px auto auto;
  gap: 8px;
  padding: 8px;
  overflow: visible;
}

.topbar,
.world-cup-bracket,
.panel,
.mission {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 42px rgba(54, 243, 210, 0.04), 0 12px 42px rgba(0, 0, 0, 0.25);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.world-cup-bracket {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 116px;
  padding: 9px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(54, 243, 210, 0.09), rgba(9, 29, 42, 0.92)),
    rgba(6, 18, 26, 0.94);
}

.bracket-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(103, 245, 220, 0.16);
  border-radius: 7px;
  background: rgba(4, 16, 23, 0.62);
}

.bracket-head strong {
  display: block;
  color: var(--aqua);
  font-size: 16px;
}

.bracket-head span,
.bracket-head em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.bracket-head em {
  color: var(--yellow);
}

.bracket-sync {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(103, 245, 220, 0.45);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(244, 238, 117, 0.95), rgba(47, 238, 200, 0.92));
  color: #062622;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.bracket-sync.running,
.bracket-sync:disabled {
  opacity: 0.72;
  cursor: wait;
}

.bracket-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 0.9fr 0.9fr;
  gap: 8px;
  min-width: 0;
}

.bracket-grid.synced {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow-x: auto;
}

.bracket-empty {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  border: 1px dashed rgba(103, 245, 220, 0.32);
  border-radius: 8px;
  background: rgba(3, 16, 23, 0.66);
}

.bracket-empty strong {
  color: var(--aqua);
  font-size: 14px;
}

.bracket-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bracket-round {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
  min-width: 0;
}

.bracket-round.compact {
  grid-template-columns: 1fr;
}

.bracket-round h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--aqua);
  font-size: 12px;
}

.bracket-round article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 5px;
  min-height: 34px;
  padding: 5px;
  border: 1px solid rgba(103, 245, 220, 0.16);
  border-radius: 6px;
  background: rgba(3, 16, 23, 0.7);
}

.bracket-round article::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  border-top: 1px solid rgba(103, 245, 220, 0.28);
}

.bracket-round:last-child article::after {
  display: none;
}

.bracket-round article span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(54, 243, 210, 0.14);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 900;
}

.bracket-round article b {
  overflow: hidden;
  color: #f1fffc;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-round article b em {
  color: var(--yellow);
  font-style: normal;
}

.bracket-round article small {
  color: var(--muted);
  font-size: 10px;
}

.bracket-round article.champion {
  border-color: rgba(244, 238, 117, 0.5);
  background: rgba(244, 238, 117, 0.1);
}

.bracket-round article.settled {
  border-color: rgba(47, 238, 200, 0.42);
  background: rgba(47, 238, 200, 0.08);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--yellow), var(--aqua));
  color: #062622;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

.brand h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
}

.brand p,
.team-card span,
.versus small,
.panel-title strong,
.status span,
.source-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

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

.mode-tabs button,
.status {
  min-height: 30px;
  border: 1px solid rgba(120, 255, 225, 0.18);
  border-radius: 999px;
  background: rgba(4, 18, 27, 0.82);
  color: var(--text);
  font-size: 13px;
}

.mode-tabs button {
  padding: 0 13px;
}

.mode-tabs .active,
.status strong,
.sync-button span {
  background: linear-gradient(90deg, var(--yellow), var(--aqua));
  color: #052824;
  font-weight: 900;
}

.status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 12px;
}

.status strong {
  display: grid;
  place-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}

.layout {
  min-height: 760px;
  display: grid;
  grid-template-columns: 270px minmax(520px, 1fr) 280px;
  gap: 8px;
  align-items: stretch;
  overflow: visible;
}

.panel-title {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.command-panel,
.report-panel {
  min-height: 0;
  overflow: visible;
}

.command-stack {
  min-height: calc(100% - 38px);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 8px;
  overflow: visible;
}

.control-card,
.metric-card,
.prediction-list,
.lock-card,
.handicap-read-card,
.prediction-audit-card,
.ev-card,
.risk-card,
.review-card,
.analysis-output,
.summary-strip article {
  border: 1px solid rgba(103, 245, 220, 0.16);
  border-radius: 8px;
  background: rgba(7, 26, 36, 0.82);
}

.control-card {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.control-card h2,
.prediction-list h2,
.lock-card h2,
.handicap-read-card h2,
.prediction-audit-card h2,
.ev-card h2,
.hit-card h2,
.review-card h2,
.risk-card h2,
.analysis-output h2 {
  margin: 0;
  color: var(--aqua);
  font-size: 15px;
}

label {
  display: grid;
  gap: 4px;
  color: #ccebe7;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(109, 248, 223, 0.2);
  border-radius: 6px;
  background: rgba(4, 16, 23, 0.88);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.intel-card textarea {
  min-height: 116px;
}

input.needs-input,
select.needs-input {
  border-color: rgba(255, 114, 130, 0.78);
  box-shadow: 0 0 0 2px rgba(255, 114, 130, 0.12);
}

input,
select {
  height: 34px;
  padding: 0 9px;
  font-size: 13px;
}

select option {
  color: var(--text);
  background: #071923;
}

.source-note.auto {
  color: rgba(88, 247, 155, 0.9);
}

.source-note.warn {
  color: rgba(246, 229, 108, 0.95);
}

.market-summary {
  margin: 8px 0 0;
  color: rgba(210, 255, 250, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.sync-button,
.primary-action,
.secondary-action {
  width: 100%;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.sync-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  border: 1px solid rgba(109, 248, 223, 0.4);
  background: rgba(10, 38, 50, 0.96);
  color: #bffff4;
}

.sync-button span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
}

.sync-button.running,
.sync-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-action {
  height: 40px;
  background: linear-gradient(90deg, #5df37c, #36f3d2);
  color: #052824;
  font-size: 14px;
  font-weight: 900;
}

.primary-action.running {
  box-shadow: 0 0 24px rgba(56, 243, 210, 0.36);
  filter: brightness(1.12);
}

.secondary-action {
  min-height: 32px;
  background: rgba(48, 236, 206, 0.14);
  color: #bffff4;
  border: 1px solid rgba(109, 248, 223, 0.34);
  font-size: 13px;
}

.secondary-action.compact {
  min-height: 28px;
  font-size: 12px;
}

.odds-manual-card {
  gap: 8px;
}

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

.manual-odds-grid.one-x-two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-odds-grid.market-lines {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.manual-odds-title {
  margin: 2px 0 -2px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
}

.manual-odds-grid input {
  padding-inline: 6px;
}

.ah-result {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 9px;
  border: 1px solid rgba(103, 245, 220, 0.18);
  border-radius: 8px;
  background: rgba(3, 16, 23, 0.78);
  color: rgba(223, 255, 250, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.ah-result strong {
  color: var(--aqua);
  font-size: 15px;
}

.ah-result small {
  color: rgba(246, 229, 108, 0.95);
}

.odds-upload input {
  padding: 6px;
  height: auto;
  font-size: 12px;
}

.odds-paste-zone {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px dashed rgba(109, 248, 223, 0.42);
  border-radius: 8px;
  background: rgba(48, 236, 206, 0.08);
  color: rgba(223, 255, 250, 0.86);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  outline: none;
}

.odds-paste-zone:focus,
.odds-paste-zone.active {
  border-color: rgba(88, 247, 155, 0.82);
  background: rgba(88, 247, 155, 0.14);
  color: #f1fffc;
}

.odds-preview {
  margin: 0;
  display: grid;
  gap: 5px;
}

.odds-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid rgba(103, 245, 220, 0.22);
  border-radius: 8px;
  background: rgba(3, 16, 23, 0.78);
}

.odds-preview figcaption {
  color: rgba(246, 229, 108, 0.95);
  font-size: 10px;
  line-height: 1.35;
}

.odds-image-analysis {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(103, 245, 220, 0.16);
  border-radius: 8px;
  background: rgba(3, 16, 23, 0.68);
  color: rgba(223, 255, 250, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.odds-image-analysis strong {
  color: var(--aqua);
}

.handicap-read-output {
  display: grid;
  gap: 8px;
  color: rgba(223, 255, 250, 0.88);
  font-size: 12px;
  line-height: 1.45;
}

.handicap-read-output table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 6px;
  font-size: 11px;
}

.handicap-read-output th,
.handicap-read-output td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(103, 245, 220, 0.12);
  text-align: left;
}

.handicap-read-output th {
  color: var(--aqua);
  background: rgba(48, 236, 206, 0.08);
}

.handicap-read-output strong {
  color: var(--green);
}

.handicap-read-output b {
  color: var(--yellow);
}

.prediction-audit-output {
  display: grid;
  gap: 8px;
  color: rgba(223, 255, 250, 0.88);
  font-size: 12px;
  line-height: 1.45;
}

.prediction-audit-output strong {
  color: var(--green);
}

.prediction-audit-output span {
  display: block;
  margin-top: 2px;
}

.prediction-audit-output table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.prediction-audit-output th,
.prediction-audit-output td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(103, 245, 220, 0.12);
  text-align: left;
}

.prediction-audit-output th,
.prediction-audit-output b {
  color: var(--yellow);
}

.sportmonks-data-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 18, 27, 0.78);
}

.sportmonks-data-card h2 {
  margin: 0 0 8px;
  color: var(--aqua);
  font-size: 14px;
}

.sportmonks-entitlement-output {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.entitlement-row {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(103, 245, 220, 0.14);
  border-radius: 7px;
  background: rgba(2, 18, 24, 0.72);
}

.entitlement-row strong {
  color: var(--green);
  font-size: 13px;
}

.entitlement-row span {
  color: #f4fffd;
}

.intel-summary {
  display: block;
  color: #f4fffd;
}

.intel-list {
  margin: 2px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.intel-list li {
  color: #f4fffd;
  line-height: 1.35;
}

.hdp-missing-list,
.hdp-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hdp-missing-list span,
.hdp-step-list span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(246, 229, 108, 0.12);
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}

.hdp-missing-list span {
  background: rgba(255, 114, 130, 0.14);
  color: #ff9ba7;
}

.status-note {
  min-height: 28px;
  padding: 7px 9px;
  border: 1px solid rgba(109, 248, 223, 0.14);
  border-radius: 6px;
  background: rgba(4, 16, 23, 0.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.status-note.good,
.api-status.good,
.analysis-status.good {
  color: var(--green);
  border-color: rgba(88, 247, 155, 0.32);
}

.status-note.bad,
.api-status.bad,
.analysis-status.bad {
  color: var(--red);
  border-color: rgba(255, 107, 122, 0.32);
}

.hidden-model-data {
  display: none;
}

.mission {
  min-height: 760px;
  display: grid;
  grid-template-rows: 86px 70px auto auto auto auto;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow: visible;
  background:
    linear-gradient(rgba(80, 255, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 255, 225, 0.04) 1px, transparent 1px),
    rgba(5, 18, 27, 0.88);
  background-size: 42px 42px;
}

.match-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 136px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(32, 89, 104, 0.72), rgba(12, 34, 48, 0.72));
}

.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 58px;
  padding: 10px;
  border: 1px solid rgba(103, 245, 220, 0.18);
  border-radius: 8px;
  background: rgba(20, 54, 68, 0.76);
}

.team-card.away {
  justify-content: flex-end;
  text-align: right;
}

.team-card > div:not(.flag) {
  min-width: 0;
}

.team-card strong {
  display: block;
  overflow: hidden;
  color: #f5fffd;
  font-size: clamp(18px, 1.65vw, 27px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.flag {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #0aa06a, #fff, #d93943);
  color: #062523;
  font-weight: 900;
}

.flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flag img[hidden] {
  display: none;
}

.flag span {
  position: relative;
  z-index: 1;
}

.versus {
  display: grid;
  place-items: center;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(87, 255, 229, 0.3), rgba(11, 35, 46, 0.88) 62%);
  box-shadow: 0 0 40px rgba(56, 243, 210, 0.3);
}

.versus b {
  color: var(--aqua);
  font-size: 42px;
  line-height: 0.9;
}

.versus em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.summary-strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 8px;
  min-height: 0;
}

.summary-strip article {
  min-width: 0;
  padding: 10px;
}

.summary-strip span,
.metric-card span,
dt {
  color: var(--muted);
  font-size: 12px;
}

.summary-strip strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(17px, 1.45vw, 24px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mainCall {
  color: var(--green);
  display: -webkit-box;
  font-size: clamp(16px, 1.25vw, 21px);
  line-height: 1.15;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pitch-zone {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 0;
  overflow: visible;
  padding: 0 8px;
}

.pitch-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(96px, 0.16fr) minmax(560px, 1fr) minmax(96px, 0.16fr);
  align-items: center;
  gap: 8px;
}

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 2px solid rgba(89, 255, 143, 0.76);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 12.5%, transparent 12.5% 25%, rgba(255, 255, 255, 0.06) 25% 37.5%, transparent 37.5% 50%, rgba(255, 255, 255, 0.06) 50% 62.5%, transparent 62.5% 75%, rgba(255, 255, 255, 0.06) 75% 87.5%, transparent 87.5%),
    linear-gradient(135deg, rgba(38, 239, 119, 0.62), rgba(24, 131, 89, 0.72));
}

.half-line,
.center-circle,
.box,
.attack-line {
  position: absolute;
  pointer-events: none;
}

.half-line {
  inset: 0 auto 0 50%;
  width: 2px;
  background: rgba(221, 255, 246, 0.55);
}

.center-circle {
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  border: 2px solid rgba(221, 255, 246, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.box {
  top: 28%;
  width: 18%;
  height: 44%;
  border: 2px solid rgba(221, 255, 246, 0.45);
}

.box.left { left: 0; }
.box.right { right: 0; }

.attack-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(56, 243, 210, 0.9);
  transform-origin: left center;
  animation: tacticalFlow 2.4s linear infinite paused;
}

.attack-line.one {
  left: 24%;
  top: 53%;
  width: 34%;
  transform: rotate(-24deg);
}

.attack-line.two {
  left: 54%;
  top: 47%;
  width: 27%;
  transform: rotate(22deg);
}

.heat {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
  animation: heatPulse 3.6s ease-in-out infinite paused;
}

.home-heat { left: 25%; top: 34%; background: rgba(72, 243, 120, 0.86); }
.away-heat { right: 21%; top: 41%; background: rgba(123, 208, 197, 0.68); }

.pitch-players {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.formation-badge {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 1px;
  min-width: 92px;
  padding: 6px 10px;
  border: 1px solid rgba(103, 245, 220, 0.24);
  border-radius: 8px;
  background: rgba(3, 16, 23, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #f3fffd;
  text-align: center;
  pointer-events: none;
}

.formation-badge.home {
  left: 12px;
  top: 10px;
}

.formation-badge.away {
  right: 12px;
  top: 10px;
}

.formation-badge span {
  color: rgba(165, 240, 236, 0.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.formation-badge strong {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.formation-badge em {
  max-width: 132px;
  overflow: hidden;
  color: rgba(223, 255, 250, 0.82);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 66px;
  min-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f4fffd;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  box-shadow: none;
  animation: playerDrift 4.8s ease-in-out infinite paused;
  transform: translate(-50%, -50%);
  white-space: normal;
}

.player.away {
  color: #fffbea;
}

.player.risk {
  color: #ff6f81;
}

.player .player-no {
  color: #f4fffd;
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
}

.player .player-name {
  width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 9px;
  font-weight: 1000;
}

.player-photo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: radial-gradient(circle, #e8f4f3, #8da7ad);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(40, 255, 193, 0.22);
}

.player.away .player-photo {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(246, 229, 108, 0.32);
}

.player.placeholder {
  opacity: 0.68;
}

.player.risk .player-photo {
  border-color: rgba(255, 114, 130, 0.95);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 114, 130, 0.36);
}

.player.risk .player-name,
.player.risk .player-no {
  color: #ff7282;
}

.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-initial {
  color: #05313b;
  font-size: 13px;
  font-weight: 1000;
}

.lineup-list {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  max-height: 100%;
  padding: 7px;
  border: 1px solid rgba(103, 245, 220, 0.14);
  border-radius: 8px;
  background: rgba(4, 16, 23, 0.42);
}

.lineup-list > strong {
  overflow: hidden;
  color: var(--aqua);
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-list > div {
  display: grid;
  gap: 3px;
}

.lineup-row {
  display: grid;
  grid-template-columns: 20px 18px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(109, 248, 223, 0.07);
  color: #eafffb;
  font-size: 11px;
  line-height: 1.15;
}

.lineup-avatar {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(234, 255, 251, 0.55);
  border-radius: 50%;
  background: rgba(234, 255, 251, 0.16);
}

.lineup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineup-avatar i {
  color: #eafffb;
  font-size: 9px;
  font-style: normal;
  font-weight: 1000;
}

.lineup-row b {
  color: var(--yellow);
  font-size: 10px;
}

.lineup-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

.lineup-row.placeholder {
  color: rgba(234, 255, 251, 0.55);
}

.lineup-row.risk {
  border: 1px solid rgba(255, 114, 130, 0.48);
  background: rgba(255, 114, 130, 0.12);
  color: #ffdce1;
}

.lineup-row.risk b,
.lineup-row.risk span {
  color: #ff7282;
}

.lineup-row.risk em {
  color: #ffb6bf;
}

.pitch-lineup-source {
  position: absolute;
  right: 16px;
  bottom: 2px;
  z-index: 3;
  max-width: 68%;
  margin: 0;
  color: #b8fff0;
  font-size: 10px;
  text-align: right;
}

.radar-core {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(104, 255, 225, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle, #071f2b 35%, rgba(73, 243, 220, 0.2));
  box-shadow: 0 0 35px rgba(56, 243, 210, 0.36);
  animation: radarFloat 3.8s ease-in-out infinite paused;
  transform: translate(-50%, -50%);
}

.radar-core::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 243, 210, 0.55), transparent 32%, transparent);
  animation: radarSweep 2.6s linear infinite paused;
}

.radar-core span {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 19px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 50%, var(--aqua) 0 14%, transparent 16%),
    radial-gradient(circle at 67% 50%, var(--aqua) 0 14%, transparent 16%),
    #102f3f;
}

.pitch-zone.analyzing .attack-line,
.pitch-zone.analyzing .heat,
.pitch-zone.analyzing .player,
.pitch-zone.analyzing .radar-core,
.pitch-zone.analyzing .radar-core::before {
  animation-play-state: running;
}

.analysis-output {
  min-height: 0;
  padding: 10px;
  overflow: visible;
}

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

.analysis-grid article {
  min-height: 0;
  padding: 7px;
  border: 1px solid rgba(109, 248, 223, 0.14);
  border-radius: 6px;
  background: rgba(4, 16, 23, 0.62);
}

.analysis-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--aqua);
  font-size: 13px;
}

.analysis-grid span,
.risk-card p {
  color: #c9e6e2;
  font-size: 12px;
  line-height: 1.35;
}

.analysis-grid span {
  display: block;
  white-space: pre-line;
}

.analysis-grid .source-note {
  display: block;
  margin-top: 6px;
  font-size: 9px;
}

.report-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: 38px 88px 76px auto auto auto;
  overflow: visible;
}

.metric-card,
.prediction-list,
.lock-card,
.handicap-read-card,
.prediction-audit-card,
.ev-card,
.hit-card,
.review-card,
.risk-card {
  min-height: 0;
  margin: 7px;
  padding: 9px;
  overflow: visible;
}

.xg-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.xg-row strong {
  color: var(--aqua);
  font-size: 32px;
}

.xg-row b {
  color: var(--muted);
  font-size: 24px;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 7px;
}

.mini-bars div {
  display: grid;
  align-content: center;
  gap: 5px;
  height: 62px;
  padding: 6px;
  border: 1px solid rgba(103, 245, 220, 0.16);
  border-radius: 8px;
  background: rgba(9, 28, 39, 0.82);
}

.mini-bars div.active {
  border-color: rgba(88, 247, 155, 0.55);
  background: rgba(18, 55, 45, 0.82);
}

.mini-bars span {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.mini-bars strong {
  color: #f1fffc;
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.mini-bars i {
  display: block;
  width: 12%;
  min-height: 7px;
  height: 7px !important;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(90deg, var(--aqua), var(--blue));
}

dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(103, 245, 220, 0.12);
}

dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dd {
  margin: 0;
  color: #f1fffc;
  font-size: 12px;
  line-height: 1.3;
}

dd .source-note {
  display: block;
  margin-top: 1px;
  font-size: 8px;
}

.prediction-list dd > span {
  display: grid;
  gap: 4px;
}

.probability-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: rgba(222, 255, 250, 0.86);
}

.probability-row i {
  padding: 2px 5px;
  border: 1px solid rgba(103, 245, 220, 0.14);
  border-radius: 5px;
  background: rgba(3, 20, 27, 0.75);
  font-style: normal;
  white-space: nowrap;
}

.probability-row i.hot {
  border-color: rgba(88, 247, 155, 0.55);
  background: rgba(36, 109, 73, 0.55);
  color: #dffff2;
}

.probability-row b,
.prediction-list dd > span > b {
  color: var(--green);
}

.probability-row em {
  color: rgba(157, 214, 214, 0.52);
  font-style: normal;
}

.market-line {
  color: var(--muted);
}

.score-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.score-stack i {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 243, 210, 0.12);
  color: #f4fffd;
  font-style: normal;
  font-weight: 900;
}

.risk-card p {
  -webkit-line-clamp: 4;
}

.final-score-input {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 7px;
}

.post-review-output {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  color: #dffff8;
  font-size: 12px;
  line-height: 1.4;
}

.post-review-output strong {
  color: var(--aqua);
}

.post-review-output table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.post-review-output th,
.post-review-output td {
  padding: 4px 5px;
  border-bottom: 1px solid rgba(103, 245, 220, 0.14);
  text-align: left;
}

.post-review-output th {
  color: var(--yellow);
}

.post-review-output b {
  color: var(--yellow);
}

.post-review-output span {
  display: block;
  margin-top: 3px;
}

.positive { color: var(--green); }
.neutral { color: var(--yellow); }
.negative { color: var(--red); }

@keyframes tacticalFlow {
  from { background-position: 220% 0; }
  to { background-position: -120% 0; }
}

@keyframes heatPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.38; }
  50% { transform: scale(1.12); opacity: 0.68; }
}

@keyframes playerDrift {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(6px, -4px); }
  70% { transform: translate(-4px, 5px); }
}

@keyframes radarSweep {
  to { transform: rotate(360deg); }
}

@keyframes radarFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

.analysis-output.flash {
  animation: analysisFlash 900ms ease;
}

.refresh-flash {
  animation: refreshFlash 1100ms ease;
}

.focus-pulse {
  animation: focusPulse 1200ms ease;
}

@keyframes analysisFlash {
  35% {
    box-shadow: 0 0 34px rgba(56, 243, 210, 0.32);
    border-color: rgba(56, 243, 210, 0.72);
  }
}

@keyframes focusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 238, 117, 0.55), var(--panel-shadow);
    border-color: rgba(244, 238, 117, 0.75);
  }
  100% {
    box-shadow: var(--panel-shadow);
  }
}

@keyframes refreshFlash {
  25%, 70% {
    box-shadow: 0 0 34px rgba(88, 247, 155, 0.42);
    border-color: rgba(88, 247, 155, 0.82);
    background: rgba(16, 64, 49, 0.88);
  }
}

@media (max-width: 1180px) {
  .war-room {
    min-width: 1100px;
  }

  .world-cup-bracket {
    grid-template-columns: 190px 1fr;
  }

  .layout {
    grid-template-columns: 270px minmax(520px, 1fr) 280px;
  }
}

.bracket-grid.daily-leagues { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.daily-league { padding: 9px; border: 1px solid rgba(103,245,220,.16); border-radius: 7px; background: rgba(4,16,23,.62); min-width: 0; }
.daily-league h2 { color: var(--aqua); font-size: 13px; margin: 0 0 7px; }
.daily-league p, .daily-league span, .daily-league time { color: var(--muted); font-size: 11px; }
.daily-league p { margin: 0; }
.daily-league article { display: grid; gap: 4px; padding: 7px 0; border-top: 1px solid rgba(103,245,220,.12); }
.daily-league strong { font-size: 12px; overflow-wrap: anywhere; }
@media(max-width: 700px) { .bracket-grid.daily-leagues { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.bracket-grid.daily-leagues { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 340px; overflow-y: auto; }
@media(max-width: 500px) { .bracket-grid.daily-leagues { grid-template-columns: 1fr; } }

.recent-fixture { display:grid; width:100%; gap:4px; text-align:left; color:inherit; background:transparent; border:0; border-top:1px solid rgba(103,245,220,.12); padding:9px 5px; cursor:pointer; font:inherit; }
.recent-fixture:hover, .recent-fixture:focus-visible { background:rgba(103,245,220,.1); outline:1px solid var(--aqua); border-radius:4px; }
.recent-fixture:disabled { opacity:.6; cursor:wait; }

.match-odds-strip { margin:4px 0; overflow:hidden; border:1px solid rgba(103,245,220,.28); border-radius:8px; background:rgba(3,18,24,.96); }
.odds-board-head,.odds-board-body { display:grid; grid-template-columns:minmax(190px,1.15fr) repeat(3,minmax(138px,1fr)); }
.odds-board-head { min-height:34px; border-bottom:1px solid rgba(103,245,220,.22); background:rgba(10,43,50,.92); }
.odds-board-head > * { display:grid; place-items:center; min-width:0; padding:7px 8px; border-right:1px solid rgba(103,245,220,.15); }
.odds-board-head > :last-child { border-right:0; }
.odds-board-head b { color:var(--aqua); font-size:11px; letter-spacing:.08em; }
.odds-event-heading { align-content:center; justify-items:start; gap:2px; }
.odds-event-heading span { color:var(--muted); font-size:9px; letter-spacing:.12em; }
.odds-event-heading strong { max-width:100%; overflow:hidden; color:#f0fffc; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.odds-board-body { min-height:128px; }
.odds-team-panel,.odds-market-column { min-width:0; padding:8px; border-right:1px solid rgba(103,245,220,.14); }
.odds-market-column:last-child { border-right:0; }
.odds-team-panel { display:grid; align-content:start; gap:8px; background:rgba(6,31,38,.72); }
.odds-team-panel .odds-kickoff { color:var(--muted); font-size:9px; }
.odds-team-panel strong { font-size:12px; line-height:1.25; }
.odds-team-panel .home { color:#ff9d4d; }
.odds-team-panel .away { color:#35d9ff; }
.odds-team-panel small { color:rgba(223,255,250,.48); font-size:9px; }
.odds-market-column { display:grid; align-content:start; gap:5px; max-height:194px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(103,245,220,.35) transparent; }
.odds-quote { display:grid; grid-template-columns:minmax(58px,1fr) auto; align-items:center; min-height:26px; overflow:hidden; border:1px solid rgba(103,245,220,.2); border-radius:4px; background:linear-gradient(180deg,rgba(18,48,56,.9),rgba(5,29,36,.9)); }
.odds-quote span { min-width:0; padding:5px 6px; color:rgba(223,255,250,.76); font-size:10px; white-space:nowrap; }
.odds-quote strong { padding:5px 7px; color:#fff; font-size:11px; font-variant-numeric:tabular-nums; text-align:right; }
.odds-quote i { grid-column:1/-1; height:1px; background:rgba(103,245,220,.12); }
.odds-board-empty { display:grid; place-items:center; min-height:62px; color:rgba(223,255,250,.42); font-size:10px; text-align:center; }
.odds-board-source { display:block; padding:6px 9px; border-top:1px solid rgba(103,245,220,.14); color:var(--muted); font-size:9px; }
@media(max-width:700px) {
  .match-odds-strip { overflow-x:auto; }
  .odds-board-head,.odds-board-body { min-width:680px; }
}

.ai-advisor-card { padding:12px; border:1px solid rgba(174,255,83,.28); border-radius:8px; background:linear-gradient(145deg,rgba(12,40,43,.96),rgba(3,22,29,.98)); box-shadow:inset 0 1px rgba(255,255,255,.03); }
.ai-advisor-center .ai-model-center-card { margin-bottom:9px; }
.ai-advisor-center .ai-actions { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ai-advisor-center .ai-actions .ai-records-button { grid-column:auto; }
.ai-advisor-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.ai-advisor-head h2 { margin:0; color:var(--aqua); font-size:14px; }
.ai-advisor-head span { color:var(--muted); font-size:9px; text-transform:uppercase; }
.ai-advisor-head span.good { color:#75f5b5; }
.ai-advisor-head span.bad { color:#ff8b79; }
.ai-model-field { display:grid; gap:5px; margin-bottom:8px; }
.ai-model-field span { color:var(--muted); font-size:10px; }
.ai-model-field select { width:100%; min-width:0; padding:8px; border:1px solid rgba(103,245,220,.25); border-radius:5px; color:#eafffb; background:#061d25; font-size:10px; }
.ai-model-center-card { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:12px; padding:9px 12px; border:1px solid rgba(103,245,220,.28); border-radius:8px; background:rgba(7,26,36,.9); }
.ai-model-center-card > span { display:grid; gap:2px; }
.ai-model-center-card small { color:var(--muted); font-size:8px; letter-spacing:.12em; }
.ai-model-center-card strong { color:var(--aqua); font-size:13px; }
.ai-model-center-card select { width:100%; min-width:0; padding:9px 10px; border:1px solid rgba(103,245,220,.35); border-radius:5px; color:#eafffb; background:#061d25; font-size:11px; }
.ai-model-center-card select:focus-visible { outline:1px solid var(--aqua); outline-offset:2px; }
.ai-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-bottom:9px; }
.ai-actions .secondary-action { min-height:34px; padding:7px; font-size:10px; }
.ai-actions .ai-records-button { grid-column:1 / -1; border-color:rgba(103,245,220,.42); color:var(--aqua); }
.ai-advice-output { display:grid; gap:6px; padding:10px; border:1px solid rgba(103,245,220,.18); border-radius:6px; background:rgba(2,14,20,.58); }
.ai-advice-output strong { color:#fff; font-size:14px; }
.ai-advice-output strong.skip { color:#ffd76b; }
.ai-advice-output strong.pick { color:#7dffc2; }
.ai-advice-output span,.ai-advice-output li { color:rgba(226,255,250,.74); font-size:10px; line-height:1.45; }
.ai-advice-output ul { display:grid; gap:3px; margin:0; padding-left:17px; }
.ai-advice-meta { display:flex; flex-wrap:wrap; gap:5px; }
.ai-advice-meta b { padding:3px 5px; border:1px solid rgba(174,255,83,.25); border-radius:4px; color:#cfff91; font-size:9px; font-weight:700; }
.ai-learning-output { margin-top:8px; color:var(--muted); font-size:9px; line-height:1.5; }
.ai-market-picks { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin:3px 0; }
.ai-market-pick { display:grid; gap:3px; min-width:0; padding:8px; border:1px solid rgba(103,245,220,.18); border-radius:5px; background:#061920; }
.ai-market-pick.is-pick { border-color:rgba(125,255,194,.38); }
.ai-market-pick.is-skip { border-color:rgba(255,215,107,.22); }
.ai-market-pick div { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.ai-market-pick small { color:var(--muted); font-size:9px; }
.ai-market-pick strong { color:#7dffc2; font-size:12px; }
.ai-market-pick.is-skip strong { color:#ffd76b; }
.ai-market-pick b { overflow:hidden; color:#fff; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ai-market-pick span,.ai-market-pick p { margin:0; color:rgba(226,255,250,.65); font-size:9px; line-height:1.4; }

.ai-history-dialog { width:min(1040px,calc(100vw - 32px)); max-width:none; max-height:88dvh; padding:0; border:1px solid rgba(103,245,220,.34); border-radius:8px; color:#eafffb; background:#04171e; box-shadow:0 18px 60px rgba(0,0,0,.62); }
.ai-history-dialog::backdrop { background:rgba(0,7,10,.78); backdrop-filter:blur(3px); }
.ai-history-shell { display:grid; max-height:88dvh; grid-template-rows:auto auto 1fr; }
.ai-history-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; border-bottom:1px solid rgba(103,245,220,.18); background:#061d25; }
.ai-history-head span { color:#78a4a8; font-size:9px; letter-spacing:.16em; }
.ai-history-head h2 { margin:3px 0 0; color:var(--aqua); font-size:18px; }
.ai-history-head .secondary-action { width:auto; min-width:72px; }
.ai-accuracy-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:12px 18px; border-bottom:1px solid rgba(103,245,220,.14); }
.ai-accuracy-summary article { display:grid; gap:3px; padding:10px; border:1px solid rgba(103,245,220,.2); border-radius:6px; background:#061920; }
.ai-accuracy-summary span { color:#83afb2; font-size:10px; }
.ai-accuracy-summary strong { color:#7dffc2; font-size:20px; }
.ai-accuracy-summary small { color:#9ab7b8; font-size:9px; }
.ai-history-content { overflow:auto; padding:14px 18px 18px; }
.ai-history-label { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:9px; }
.ai-history-label strong { color:#fff; font-size:12px; }
.ai-history-label span { color:var(--muted); font-size:9px; }
.ai-history-list { display:grid; gap:7px; }
.ai-history-state { grid-column:1 / -1; padding:22px; color:var(--muted); text-align:center; font-size:11px; }
.ai-history-state.is-error { color:#ff8b79; }
.ai-history-record { overflow:hidden; border:1px solid rgba(103,245,220,.18); border-radius:6px; background:#051a21; }
.ai-history-record summary { display:grid; grid-template-columns:90px 1fr auto; align-items:center; gap:12px; padding:11px 12px; cursor:pointer; list-style:none; }
.ai-history-record summary::-webkit-details-marker { display:none; }
.ai-history-record summary:hover { background:rgba(103,245,220,.04); }
.ai-history-record summary strong { min-width:0; overflow:hidden; color:#f0fffd; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.ai-history-record summary strong i { color:#608c91; font-style:normal; font-weight:400; }
.ai-history-record summary b { color:#7dffc2; font-size:11px; }
.ai-record-date { color:#75a3a7; font-size:9px; }
.ai-record-body { display:grid; gap:9px; padding:0 12px 12px; border-top:1px solid rgba(103,245,220,.1); }
.ai-record-meta { display:flex; flex-wrap:wrap; gap:5px; padding-top:9px; }
.ai-record-meta span { padding:3px 5px; border:1px solid rgba(103,245,220,.15); border-radius:4px; color:#82aeb1; font-size:8px; }
.ai-record-picks { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.ai-record-picks article { display:grid; grid-template-columns:auto auto 1fr auto; align-items:center; gap:8px; padding:8px; border:1px solid rgba(103,245,220,.15); border-radius:5px; background:#04151b; }
.ai-record-picks span { color:#7fa9ad; font-size:9px; }
.ai-record-picks strong { color:#cfff91; font-size:10px; }
.ai-record-picks b { overflow:hidden; color:#fff; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.ai-record-picks em { padding:3px 5px; border-radius:4px; color:#a9c4c6; background:#0a2a32; font-size:8px; font-style:normal; }
.ai-record-picks .grade-win,.ai-record-picks .grade-half_win { color:#7dffc2; }
.ai-record-picks .grade-loss,.ai-record-picks .grade-half_loss { color:#ff8b79; }
.ai-record-summary,.ai-record-review p { margin:0; color:#b7cdcf; font-size:10px; line-height:1.5; }
.ai-record-review { display:grid; gap:5px; padding:9px; border-left:2px solid rgba(174,255,83,.42); background:#061c22; }
.ai-record-review strong { color:var(--aqua); font-size:10px; }
.ai-record-review ul { display:grid; gap:3px; margin:0; padding-left:16px; color:#aac4c5; font-size:9px; }
.ai-record-review .ai-adjustment { color:#d4efae; }
@media(max-width:700px) {
  .ai-model-center-card { grid-template-columns:1fr; gap:6px; }
  .ai-advisor-center .ai-actions { grid-template-columns:1fr; }
  .ai-market-picks,.ai-record-picks { grid-template-columns:1fr; }
  .ai-accuracy-summary { grid-template-columns:1fr 1fr; }
  .ai-history-dialog { width:calc(100vw - 16px); }
  .ai-history-record summary { grid-template-columns:1fr auto; }
  .ai-record-date { grid-column:1 / -1; }
  .ai-history-label span { display:none; }
}
