:root {
  --bg: #05070c;
  --panel: #111826;
  --panel-strong: #151f31;
  --line: #263653;
  --text: #f4f7ff;
  --muted: #8fa0bf;
  --cyan: #26d9ff;
  --blue: #4f7cff;
  --green: #30e58a;
  --red: #ff6170;
  --gold: #f7c75f;
  --shadow: 0 24px 90px rgba(0, 0, 0, .48);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(38, 217, 255, .14), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(79, 124, 255, .20), transparent 36rem),
    linear-gradient(135deg, #05070c 0%, #07111e 52%, #05070c 100%);
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(2px);
  opacity: .6;
}

.ambient-one {
  inset: 88px auto auto -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(38, 217, 255, .22);
}

.ambient-two {
  right: -160px;
  bottom: 80px;
  width: 420px;
  height: 420px;
  border-radius: 40%;
  background: linear-gradient(135deg, rgba(79, 124, 255, .18), transparent);
}

.shell {
  width: min(1420px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hidden {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(38, 217, 255, .9);
}

.login-card {
  width: min(520px, 100%);
  margin: 10vh auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 31, 49, .92), rgba(11, 17, 28, .94));
  box-shadow: var(--shadow);
}

.login-card h1,
.topbar h1 {
  margin: 28px 0 12px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.06em;
}

.login-card p,
.topbar p {
  color: var(--muted);
  line-height: 1.7;
}

.topbar .disclaimer {
  width: min(640px, 100%);
  margin: 8px 0 0;
  padding: 7px 10px;
  color: #ffd7dd;
  font-size: 12px;
  line-height: 1.45;
  border: 1px solid rgba(255, 97, 112, .62);
  border-radius: 8px;
  background: rgba(255, 97, 112, .09);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #bed0ef;
  font-size: 13px;
  font-weight: 700;
}

input,
button {
  border: 0;
  font: inherit;
}

input {
  height: 46px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b111c;
  outline: none;
}

input:focus {
  border-color: rgba(38, 217, 255, .72);
  box-shadow: 0 0 0 4px rgba(38, 217, 255, .08);
}

button {
  height: 46px;
  padding: 0 22px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #2ad7ff);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(79, 124, 255, .25);
}

.link-button {
  width: 100%;
  height: auto;
  margin-top: 14px;
  padding: 0;
  color: var(--cyan);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

button:disabled {
  cursor: wait;
  opacity: .58;
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(17, 24, 38, .82);
  box-shadow: none;
}

.error-text,
.status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--red);
  font-weight: 700;
}

.app {
  display: grid;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(12, 18, 30, .78), rgba(8, 12, 20, .58));
  box-shadow: var(--shadow);
}

.topbar h1 {
  margin-top: 22px;
}

#ruleBadge,
.rule-badge {
  display: none !important;
}

.actions {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.date-picker {
  min-width: 170px;
}

.account-expiry {
  display: grid;
  min-width: 132px;
  height: 46px;
  align-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 38, .78);
}

.account-expiry span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.account-expiry strong {
  margin-top: 2px;
  color: var(--cyan);
  font-size: 14px;
}

.info-button {
  min-width: 158px;
  color: #d8e5ff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(17, 24, 38, .72);
}

.stats strong {
  display: block;
  color: var(--cyan);
  font-size: 34px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.review-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 18px;
  background: rgba(10, 16, 27, .72);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.review-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.review-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.review-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-filter {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d6ef;
  background: rgba(17, 24, 38, .78);
  box-shadow: none;
  font-size: 12px;
}

.review-filter.is-active {
  color: #06111c;
  background: var(--cyan);
  border-color: var(--cyan);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 172px;
  height: 34px;
}

.sort-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sort-control select {
  width: 124px;
  height: 34px;
  padding: 0 10px;
  color: #d8e5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 38, .78);
  outline: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

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

.review-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 8px;
  background: rgba(17, 24, 38, .64);
}

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

.review-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.review-card p {
  margin: 8px 0 0;
  color: #a8b8d4;
  font-size: 12px;
  line-height: 1.45;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 13, .72);
}

.modal-panel {
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b111c;
  box-shadow: var(--shadow);
}

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

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

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 38, .82);
  box-shadow: none;
}

.modal-panel p,
.renew-message {
  color: var(--muted);
  line-height: 1.6;
}

.roi-help-panel {
  width: min(560px, 100%);
}

.roi-help-content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.roi-help-content p {
  margin: 0;
}

.roi-help-content strong {
  color: var(--cyan);
}

.roi-help-content ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding-left: 20px;
  color: #c8d6ef;
  line-height: 1.65;
}

.renew-message {
  min-height: 22px;
  font-size: 13px;
  font-weight: 700;
}

.renew-message.is-error {
  color: var(--red);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.status {
  color: var(--cyan);
}

.model-profile {
  padding: 20px 18px 18px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 18px;
  background: rgba(8, 12, 20, .48);
}

.model-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 900;
}

.model-profile-head span {
  color: var(--gold);
}

.model-profile-head strong {
  color: #f4f7ff;
}

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

.model-edge {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 13, 23, .62);
}

.model-edge-primary {
  border-color: rgba(48, 229, 138, .62);
  background: rgba(48, 229, 138, .10);
}

.model-edge span {
  display: block;
  color: #a9bad9;
  font-size: 12px;
  font-weight: 800;
}

.model-edge strong {
  display: block;
  margin-top: 8px;
  color: #f4f7ff;
  font-size: 22px;
  line-height: 1.15;
}

.model-edge p {
  margin: 12px 0 0;
  color: #d8e5ff;
  font-size: 13px;
  line-height: 1.6;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  align-items: start;
  gap: 18px;
  max-height: min(70vh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 10px 18px 2px;
  scrollbar-color: rgba(38, 217, 255, .55) rgba(12, 18, 30, .78);
  scrollbar-width: thin;
}

.match-list::-webkit-scrollbar {
  width: 10px;
}

.match-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(12, 18, 30, .78);
}

.match-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.match-card {
  position: relative;
  overflow: clip;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(21, 31, 49, .96), rgba(12, 18, 30, .94));
  box-shadow: 0 18px 70px rgba(0, 0, 0, .25);
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent 72%);
  pointer-events: none;
}

.match-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.league {
  color: #a9bad9;
  font-size: 13px;
  font-weight: 800;
}

.match-card h2 {
  margin: 12px 0 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

.time-block {
  display: grid;
  gap: 9px;
  justify-items: end;
  white-space: nowrap;
}

.toggle-card {
  position: relative;
  z-index: 2;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(38, 217, 255, .35);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(38, 217, 255, .10);
  box-shadow: none;
  font-size: 12px;
}

.toggle-card:hover {
  border-color: rgba(38, 217, 255, .78);
  background: rgba(38, 217, 255, .18);
}

.match-time {
  color: var(--cyan);
}

.abnormal {
  color: var(--green);
  font-weight: 800;
}

.abnormal.is-risk {
  color: var(--red);
}

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

.match-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(247, 199, 95, .44);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(247, 199, 95, .08);
  font-size: 12px;
  font-weight: 800;
}

.match-tag.roi-candidate {
  border-color: rgba(45, 212, 191, .5);
  color: #5eead4;
  background: rgba(20, 184, 166, .1);
}

.match-tag.roi-watch {
  border-color: rgba(148, 163, 184, .42);
  color: #cbd5e1;
  background: rgba(148, 163, 184, .08);
}

.match-tag.roi-skip {
  border-color: rgba(248, 113, 113, .42);
  color: #fca5a5;
  background: rgba(248, 113, 113, .08);
}

.match-tag.priority-focus {
  border-color: rgba(38, 217, 255, .58);
  color: #67e8f9;
  background: rgba(38, 217, 255, .12);
}

.match-tag.priority-normal {
  border-color: rgba(247, 199, 95, .48);
  color: var(--gold);
  background: rgba(247, 199, 95, .08);
}

.match-tag.priority-skip {
  border-color: rgba(148, 163, 184, .38);
  color: #cbd5e1;
  background: rgba(148, 163, 184, .07);
}

.match-tag.priority-insufficient {
  border-color: rgba(255, 97, 112, .38);
  color: #fca5a5;
  background: rgba(255, 97, 112, .08);
}

.market-status {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 12px;
  background: rgba(3, 8, 16, .28);
}

.market-status p {
  margin: 0;
  line-height: 1.55;
}

.market-summary {
  color: #d8e5ff;
  font-size: 13px;
  font-weight: 800;
}

.market-freshness {
  color: #9fb2d1;
  font-size: 12px;
  font-weight: 800;
}

.market-status.is-fresh {
  border-color: rgba(48, 229, 138, .32);
}

.market-status.is-fresh .market-freshness {
  color: var(--green);
}

.market-status.is-aging {
  border-color: rgba(247, 199, 95, .38);
}

.market-status.is-aging .market-freshness,
.market-status.is-history .market-freshness {
  color: var(--gold);
}

.market-status.is-stale,
.market-status.is-unknown {
  border-color: rgba(255, 97, 112, .42);
  background: rgba(255, 97, 112, .07);
}

.market-status.is-stale .market-freshness,
.market-status.is-unknown .market-freshness {
  color: var(--red);
}

.decision-panel,
.settled-review {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 14px;
  background: rgba(3, 8, 16, .30);
}

.decision-panel {
  border-color: rgba(38, 217, 255, .28);
}

.decision-focus {
  border-color: rgba(38, 217, 255, .48);
  background: rgba(38, 217, 255, .07);
}

.decision-insufficient,
.decision-skip {
  border-color: rgba(148, 163, 184, .32);
}

.decision-head,
.settled-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.decision-head span,
.settled-head span {
  color: #9fb2d1;
  font-size: 12px;
  font-weight: 900;
}

.decision-head strong {
  color: var(--cyan);
  font-size: 16px;
}

.settled-head strong {
  color: #eef4ff;
  font-size: 14px;
  text-align: right;
}

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

.decision-grid div {
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(38, 54, 83, .46);
  border-radius: 10px;
  background: rgba(12, 18, 30, .54);
}

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

.decision-grid p {
  margin: 8px 0 0;
  color: #d8e5ff;
  font-size: 12px;
  line-height: 1.55;
}

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

.settled-pick {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(38, 54, 83, .54);
  border-radius: 10px;
  background: rgba(12, 18, 30, .54);
}

.settled-pick span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settled-pick strong {
  color: #eef4ff;
  font-size: 13px;
  line-height: 1.35;
}

.settled-pick em {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.settled-pick.hit em {
  color: #062515;
  background: var(--green);
}

.settled-pick.miss em {
  color: white;
  background: var(--red);
}

.settled-pick.push em {
  color: #251905;
  background: var(--gold);
}

.list-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(38, 54, 83, .72);
  border-radius: 18px;
  background: rgba(12, 18, 30, .72);
}

.list-state strong {
  color: #eef4ff;
  font-size: 20px;
}

.list-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.list-state.error {
  border-color: rgba(255, 97, 112, .42);
  background: rgba(255, 97, 112, .07);
}

.skeleton-card {
  display: grid;
  gap: 14px;
}

.skeleton-line,
.skeleton-block,
.skeleton-row span {
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(38, 54, 83, .65), rgba(55, 75, 110, .95), rgba(38, 54, 83, .65));
  background-size: 220% 100%;
  animation: skeleton-pulse 1.3s linear infinite;
}

.skeleton-line {
  width: 48%;
  height: 18px;
}

.skeleton-line.wide {
  width: 72%;
  height: 28px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.skeleton-row span {
  height: 56px;
  border-radius: 12px;
}

.skeleton-block {
  height: 92px;
  border-radius: 14px;
}

@keyframes skeleton-pulse {
  from {
    background-position: 220% 0;
  }

  to {
    background-position: -220% 0;
  }
}

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

.metric {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(38, 54, 83, .78);
  border-radius: 16px;
  background: rgba(12, 18, 30, .74);
}

.metric span {
  display: block;
  color: #9fb2d1;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.odds-change {
  grid-column: span 1;
}

.odds-change-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.odds-change-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid rgba(38, 54, 83, .5);
  border-radius: 8px;
  background: rgba(3, 8, 16, .24);
}

.odds-change-row .odds-change-label {
  color: #9fb2d1;
  font-size: 12px;
  font-weight: 800;
}

.odds-change-values {
  margin: 0 !important;
  color: #eef4ff;
  font-size: 13px;
  line-height: 1.2 !important;
}

.odds-change-indicator {
  min-width: 48px;
  color: #9fb2d1;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.odds-change-row.is-up {
  border-color: rgba(255, 97, 112, .42);
  background: rgba(255, 97, 112, .08);
}

.odds-change-row.is-up .odds-change-indicator {
  color: var(--red);
}

.odds-change-row.is-down {
  border-color: rgba(48, 229, 138, .42);
  background: rgba(48, 229, 138, .08);
}

.odds-change-row.is-down .odds-change-indicator {
  color: var(--green);
}

.odds-change-row.is-changed {
  border-color: rgba(247, 199, 95, .42);
  background: rgba(247, 199, 95, .08);
}

.odds-change-row.is-changed .odds-change-indicator {
  color: var(--gold);
}

.metric-highlight {
  border-color: rgba(38, 217, 255, .55);
  background: rgba(38, 217, 255, .08);
}

.metric-hit {
  border-color: rgba(48, 229, 138, .72);
  background: rgba(48, 229, 138, .11);
}

.metric-miss {
  border-color: rgba(255, 97, 112, .72);
  background: rgba(255, 97, 112, .10);
}

.metric-push {
  border-color: rgba(247, 199, 95, .72);
  background: rgba(247, 199, 95, .10);
}

.hit-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  vertical-align: 2px;
}

.hit-badge.metric-hit {
  color: #062515;
  background: var(--green);
  border: 0;
}

.hit-badge.metric-miss {
  color: #fff;
  background: var(--red);
  border: 0;
}

.hit-badge.metric-push {
  color: #251905;
  background: var(--gold);
  border: 0;
}

.metric-wide {
  grid-column: span 2;
}

.match-body {
  display: block;
}

.match-card.is-collapsed .match-body {
  display: none;
}

.match-card.is-collapsed {
  padding-top: 18px;
  padding-bottom: 18px;
}

.match-card.is-collapsed h2 {
  margin-bottom: 0;
  display: block;
}

.interpretation {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  color: #d8e5ff;
  line-height: 1.75;
  white-space: pre-wrap;
  background: rgba(3, 8, 16, .42);
  border: 1px solid rgba(38, 54, 83, .62);
}

.history-panel {
  margin-top: 14px;
  border: 1px solid rgba(38, 54, 83, .7);
  border-radius: 16px;
  background: rgba(8, 13, 23, .58);
}

.history-panel summary {
  padding: 14px 16px;
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.history-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(17, 24, 38, .78);
  border: 1px solid rgba(38, 54, 83, .58);
}

.history-item strong {
  color: var(--cyan);
}

.history-item p {
  margin: 8px 0 0;
  color: #c7d6f3;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 16px, 1420px);
    padding-top: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .topbar h1 {
    margin-top: 16px;
    font-size: 38px;
    line-height: 1.02;
  }

  .topbar p {
    margin: 8px 0 0;
    line-height: 1.55;
  }

  .topbar .disclaimer {
    font-size: 11px;
  }

  .actions,
  .actions button,
  .date-picker {
    width: 100%;
  }

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

  .stats article {
    padding: 16px;
  }

  .stats strong {
    font-size: 28px;
  }

  .review-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-panel {
    padding: 14px;
  }

  .review-filters {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .review-filter-group {
    width: 100%;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .review-filter-group::-webkit-scrollbar {
    display: none;
  }

  .review-filter {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .sort-control {
    width: 100%;
  }

  .sort-control select {
    flex: 1;
    width: auto;
  }

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

  .model-profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .match-list {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding: 0 0 14px;
  }

  .match-card {
    padding: 16px;
    border-radius: 18px;
  }

  .match-head {
    flex-direction: column;
    gap: 10px;
  }

  .match-card h2 {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.18;
  }

  .time-block {
    justify-items: start;
    gap: 7px;
  }

  .match-tags {
    margin-top: 10px;
  }

  .market-status {
    margin-top: 10px;
    padding: 10px 12px;
  }

  .market-summary {
    font-size: 12px;
  }

  .market-freshness {
    font-size: 11px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .decision-panel,
  .settled-review {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .decision-head,
  .settled-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .settled-head strong {
    text-align: left;
  }

  .decision-grid,
  .settled-picks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .decision-grid div,
  .settled-pick {
    min-height: auto;
  }

  .list-state {
    min-height: 150px;
    padding: 18px;
  }

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

  .metric {
    min-height: auto;
    padding: 12px;
    border-radius: 12px;
  }

  .odds-change-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .interpretation {
    margin-top: 12px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  .history-panel {
    margin-top: 12px;
  }

  .metric-wide {
    grid-column: auto;
  }
}
