:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #0e1319;
  --panel-2: #141b24;
  --surface: #0a0f15;
  --line: rgba(222, 232, 244, .10);
  --line-strong: rgba(222, 232, 244, .16);
  --muted: #99a6b8;
  --text: #f4f7fb;
  --blue: #4c8dff;
  --green: #24c982;
  --amber: #eab84f;
  --red: #ef6b73;
  --violet: #9b8cff;
}

*,
*::before,
*::after {
  letter-spacing: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: #eef3fb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body {
  font-size: 15px;
}

a {
  color: #8cb7ff;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.sidebar-head {
  position: relative;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #185bd8;
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.brand-title {
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.brand-subtitle {
  color: #65a1ff;
  font-size: .85rem;
  font-weight: 700;
}

.mobile-account-menu {
  display: none;
  position: relative;
}

.mobile-account-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dbe7f8;
  background: rgba(255, 255, 255, .035);
  font-size: .78rem;
  font-weight: 800;
}

.mobile-account-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-account-menu[open] summary {
  border-color: rgba(76, 141, 255, .42);
  background: rgba(76, 141, 255, .13);
}

.mobile-account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1040;
  width: min(240px, calc(100vw - 24px));
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.sidebar .nav-link {
  color: #aeb8c7;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 650;
  font-size: .92rem;
  border: 1px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: rgba(76, 141, 255, .12);
  border-color: rgba(76, 141, 255, .20);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, .96);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.content {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  min-width: 0;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  color: #b7c2d3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

.status-pill[data-live-mode="loading"] .status-dot {
  background: var(--amber);
}

.status-pill[data-live-mode="error"] .status-dot {
  background: var(--red);
}

.content {
  transition: opacity .18s ease;
}

.content.is-refreshing {
  opacity: .78;
}

.metric,
.panel,
.match-header,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03);
}

.metric {
  padding: 18px;
  min-height: 128px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue);
}

.metric-green::before {
  background: var(--green);
}

.metric-amber::before {
  background: var(--amber);
}

.metric-violet::before {
  background: var(--violet);
}

.metric-label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-value {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 900;
  margin-top: 6px;
  color: var(--text);
}

.metric-hint {
  color: var(--muted);
  font-size: .78rem;
  margin-top: 8px;
}

.metric-time {
  font-size: 1.75rem;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(34, 104, 232, .16), rgba(36, 201, 130, .08));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-hero h2 {
  margin: 3px 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  color: #8cb7ff;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-sync {
  min-width: 230px;
  text-align: right;
}

.dashboard-sync span,
.dashboard-sync strong,
.dashboard-sync small {
  display: block;
}

.dashboard-sync span {
  color: var(--muted);
  font-size: .75rem;
}

.dashboard-sync strong {
  color: var(--text);
  font-size: .9rem;
}

.dashboard-sync small {
  margin-top: 3px;
  color: #33d283;
  font-size: .72rem;
  font-weight: 750;
}

.notice {
  padding: 14px 16px;
  color: #d4dae5;
  background: #15120b;
  border-color: rgba(234, 184, 79, .22);
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel.narrow {
  max-width: 520px;
}

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

.panel-header.compact {
  margin-bottom: 14px;
}

.panel-header h2 {
  font-size: 1.02rem;
  margin: 0;
  font-weight: 800;
  color: var(--text);
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 12px 10px;
}

.table thead th {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom-color: var(--line-strong);
}

.table tbody td {
  color: #dce6f4;
  vertical-align: middle;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 255, 255, .035);
}

.table td,
.table th,
code {
  overflow-wrap: anywhere;
}

.form-control,
.form-select {
  min-height: 42px;
  background-color: #090f16;
  border-color: var(--line);
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  background-color: #080d13;
  color: #fff;
  border-color: rgba(47, 125, 246, .7);
  box-shadow: 0 0 0 .2rem rgba(47, 125, 246, .12);
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: #2268e8;
  border-color: #2268e8;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #2f7df6;
  border-color: #2f7df6;
}

.btn-light {
  background: #e8eef8;
  border-color: #e8eef8;
  color: #101722;
}

.btn-outline-primary {
  color: #8cb7ff;
  border-color: rgba(76, 141, 255, .45);
}

.btn-outline-primary:hover {
  background: rgba(76, 141, 255, .16);
  border-color: rgba(76, 141, 255, .70);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .20);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.login-panel.wide {
  width: min(720px, 100%);
}

.setup-box {
  white-space: pre-wrap;
  background: #05070a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #fca5a5;
}

.match-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.match-title-block {
  min-width: 0;
}

.match-header h2 {
  margin: 0;
  font-weight: 900;
}

.match-header h2 span {
  color: #65a1ff;
}

.match-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.score-box,
.stat-card,
.suggestion,
.value-card,
.market-card,
.alert-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.score-box {
  min-width: 190px;
  text-align: right;
}

.score-box .display-6 {
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 850;
}

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

.api-detail-grid {
  display: grid;
  gap: 10px;
}

.api-detail-grid > div {
  padding: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.api-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.api-detail-grid strong,
.api-detail-grid code {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.recipient-list {
  display: grid;
  gap: 10px;
}

.recipient-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recipient-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
}

.recipient-edit {
  margin-top: 8px;
}

.recipient-edit summary {
  color: #8cb7ff;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}

.recipient-edit-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.live-panel {
  border-color: rgba(36, 201, 130, .26);
}

.update-signal-panel {
  border-color: rgba(234, 184, 79, .24);
}

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

.update-signal-card {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

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

.live-match-card,
.schedule-item,
.priority-item,
.compact-alert {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
}

.live-match-top,
.schedule-score,
.priority-badges,
.alert-compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.live-match-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.live-scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-weight: 850;
}

.live-scoreline span {
  overflow-wrap: anywhere;
}

.live-scoreline span:last-child {
  text-align: right;
}

.live-scoreline strong {
  color: #65a1ff;
  font-size: 1.25rem;
  white-space: nowrap;
}

.source-signal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 9px;
  background: rgba(234, 184, 79, .07);
  border: 1px solid rgba(234, 184, 79, .15);
  border-radius: 8px;
}

.source-signal small {
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.live-metrics div {
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
}

.live-metrics span,
.schedule-time span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.live-metrics strong,
.schedule-time strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 1rem;
}

.schedule-list,
.priority-list,
.alert-stack {
  display: grid;
  gap: 10px;
}

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

.schedule-time {
  padding: 10px;
  text-align: center;
  background: rgba(76, 141, 255, .10);
  border: 1px solid rgba(76, 141, 255, .20);
  border-radius: 8px;
}

.schedule-time strong {
  font-size: 1.05rem;
}

.team-line {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.priority-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.compact-alert {
  background: rgba(255, 255, 255, .035);
}

.alert-compact-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 10px;
}

.ai-panel {
  border-color: rgba(155, 140, 255, .24);
}

.ai-summary p {
  margin: 6px 0 0;
  color: #d4deeb;
  line-height: 1.55;
}

.ai-read-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ai-read-card {
  padding: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.ai-read-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

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

.ai-note-grid div {
  padding: 11px;
  background: rgba(155, 140, 255, .08);
  border: 1px solid rgba(155, 140, 255, .18);
  border-radius: 8px;
}

.ai-note-grid span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-note-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.4;
}

.credibility-panel {
  border-color: rgba(36, 201, 130, .24);
  background:
    linear-gradient(135deg, rgba(36, 201, 130, .055), rgba(76, 141, 255, .045)),
    var(--panel);
}

.credibility-overview,
.outcome-prob-grid,
.accuracy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.credibility-summary-card,
.outcome-prob-card,
.value-score-card,
.accuracy-card {
  min-width: 0;
  padding: 13px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credibility-summary-card span,
.accuracy-card span,
.outcome-prob-meta span,
.value-score-title span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.credibility-summary-card strong,
.accuracy-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
}

.credibility-summary-card small,
.accuracy-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.credibility-block {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, .12);
  border: 1px solid rgba(153, 166, 184, .14);
  border-radius: 8px;
}

.credibility-block-head,
.outcome-prob-top,
.value-score-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.credibility-block-head {
  margin-bottom: 12px;
}

.credibility-block-head h3 {
  margin: 0;
  color: #edf5ff;
  font-size: .96rem;
  font-weight: 900;
}

.credibility-block-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
}

.outcome-prob-card {
  display: grid;
  gap: 10px;
}

.outcome-prob-top strong,
.value-score-title strong {
  color: var(--text);
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.probability-bar,
.factor-bar {
  height: 7px;
  overflow: hidden;
  background: rgba(153, 166, 184, .13);
  border-radius: 999px;
}

.probability-bar span,
.factor-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #24c982, #4c8dff);
  border-radius: inherit;
}

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

.outcome-prob-meta div {
  min-width: 0;
}

.outcome-prob-meta strong {
  display: block;
  margin-top: 3px;
  color: #edf5ff;
  font-size: .88rem;
  font-weight: 900;
}

.value-verdict {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.credibility-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px;
}

.factor-list,
.value-score-list {
  display: grid;
  gap: 10px;
}

.factor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 11px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factor-row strong {
  display: block;
  color: #edf5ff;
  font-size: .86rem;
}

.factor-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.factor-row > span {
  color: var(--text);
  font-weight: 900;
}

.factor-row .factor-bar {
  grid-column: 1 / -1;
}

.value-score-card {
  display: grid;
  gap: 10px;
}

.value-score-title em {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
}

.credibility-tone-high.value-verdict,
.credibility-tone-high .value-score-title em {
  color: #b8f5d9;
  background: rgba(36, 201, 130, .13);
  border: 1px solid rgba(36, 201, 130, .26);
}

.credibility-tone-mid.value-verdict,
.credibility-tone-mid .value-score-title em {
  color: #ffe1a3;
  background: rgba(234, 184, 79, .12);
  border: 1px solid rgba(234, 184, 79, .26);
}

.credibility-tone-low.value-verdict,
.credibility-tone-low .value-score-title em {
  color: #ffc3c8;
  background: rgba(239, 107, 115, .13);
  border: 1px solid rgba(239, 107, 115, .30);
}

.credibility-tone-muted.value-verdict,
.credibility-tone-muted .value-score-title em {
  color: #c7d0dd;
  background: rgba(153, 166, 184, .10);
  border: 1px solid rgba(153, 166, 184, .20);
}

.factor-row.credibility-tone-high .factor-bar i {
  background: linear-gradient(90deg, #24c982, #64e0aa);
}

.factor-row.credibility-tone-mid .factor-bar i {
  background: linear-gradient(90deg, #eab84f, #ffd37a);
}

.factor-row.credibility-tone-low .factor-bar i {
  background: linear-gradient(90deg, #ef6b73, #ff9aa1);
}

.value-card-top,
.value-meta,
.value-metrics {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.value-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
  flex-wrap: wrap;
}

.value-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.value-metrics div {
  min-width: 0;
}

.value-metrics span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.value-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 1rem;
}

.min-w-0 {
  min-width: 0;
}

.radar-page {
  display: grid;
  gap: 0;
}

.radar-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.radar-hero h2 {
  margin: 3px 0 4px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.radar-hero p {
  margin: 0;
  color: var(--muted);
}

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

.radar-summary-card {
  padding: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.radar-summary-card span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.radar-summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.radar-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-filter-btn {
  min-height: 36px;
  padding: 8px 12px;
  color: #c7d4e7;
  background: rgba(153, 166, 184, .08);
  border: 1px solid rgba(153, 166, 184, .18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
}

.radar-filter-btn:hover,
.radar-filter-btn.active {
  color: #dceafe;
  background: rgba(76, 141, 255, .16);
  border-color: rgba(76, 141, 255, .42);
}

.radar-live-spotlight,
.radar-section-live {
  border-color: rgba(36, 201, 130, .26);
}

.radar-section-upcoming {
  border-color: rgba(76, 141, 255, .18);
}

.radar-section-finished {
  border-color: rgba(153, 166, 184, .14);
}

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

.radar-live-card {
  padding: 14px;
  background: linear-gradient(135deg, rgba(36, 201, 130, .10), rgba(76, 141, 255, .06));
  border: 1px solid rgba(36, 201, 130, .24);
  border-radius: 8px;
  min-width: 0;
}

.radar-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.radar-table tbody tr {
  border-left: 3px solid transparent;
}

.radar-table tbody tr.radar-row-live {
  border-left-color: var(--green);
  background: rgba(36, 201, 130, .035);
}

.radar-table tbody tr.radar-row-upcoming {
  border-left-color: rgba(76, 141, 255, .58);
}

.radar-table tbody tr.radar-row-final {
  border-left-color: rgba(153, 166, 184, .32);
  opacity: .78;
}

.radar-match-name {
  color: var(--text);
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.radar-match-name span {
  color: #8cb7ff;
}

.radar-empty-filter {
  padding: 14px;
  color: var(--muted);
  font-size: .84rem;
}

.market-insights {
  overflow: hidden;
}

.featured-market-block {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.market-ai-review {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(36, 201, 130, .10), rgba(76, 141, 255, .08)),
    rgba(255, 255, 255, .025);
  border: 1px solid rgba(76, 141, 255, .22);
  border-radius: 8px;
}

.market-ai-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-ai-review-head h3 {
  margin: 3px 0 0;
  color: #eef5ff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.28;
}

.market-ai-review-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.market-ai-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.market-ai-review-grid article {
  display: grid;
  gap: 7px;
  padding: 11px;
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(153, 166, 184, .16);
  border-radius: 8px;
}

.market-ai-review-grid strong {
  color: #e8f0fb;
  font-size: .95rem;
}

.market-ai-review-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.42;
}

.context-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.context-source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  color: #cfe0ff;
  background: rgba(76, 141, 255, .10);
  border: 1px solid rgba(76, 141, 255, .24);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-decoration: none;
}

.context-source-list a:hover {
  color: #fff;
  border-color: rgba(76, 141, 255, .44);
}

.market-section-title,
.featured-card-top,
.market-accordion-button,
.market-summary-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-section-title {
  align-items: flex-start;
}

.market-section-title h3 {
  margin: 0;
  color: #e8f0fb;
  font-size: .95rem;
  font-weight: 900;
}

.market-section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

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

.featured-market-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(36, 201, 130, .11), rgba(76, 141, 255, .07));
  border: 1px solid rgba(36, 201, 130, .22);
  border-radius: 8px;
  min-width: 0;
}

.featured-selection {
  color: #e8f0fb;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.market-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 14px;
}

.market-filter-btn {
  min-height: 34px;
  padding: 7px 11px;
  color: #c7d4e7;
  background: rgba(153, 166, 184, .08);
  border: 1px solid rgba(153, 166, 184, .18);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
}

.market-filter-btn:hover,
.market-filter-btn.active {
  color: #dceafe;
  background: rgba(76, 141, 255, .16);
  border-color: rgba(76, 141, 255, .42);
}

.market-empty-filter {
  padding: 12px;
  color: var(--muted);
  background: rgba(153, 166, 184, .08);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .84rem;
}

.market-accordion {
  display: grid;
  gap: 10px;
}

.market-accordion-item {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.market-accordion-button {
  width: 100%;
  padding: 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.market-accordion-button:hover {
  background: rgba(255, 255, 255, .035);
}

.market-accordion-title {
  min-width: 0;
}

.market-accordion-title strong,
.market-accordion-title small {
  display: block;
}

.market-accordion-title strong {
  font-size: .95rem;
  font-weight: 900;
}

.market-accordion-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.market-summary-metrics {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.market-summary-metrics span {
  color: #c7d4e7;
  background: rgba(153, 166, 184, .08);
  border: 1px solid rgba(153, 166, 184, .16);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 850;
  white-space: nowrap;
}

.market-accordion .market-list {
  padding: 0 14px 14px;
}

.market-group-content {
  display: grid;
  gap: 14px;
  padding: 0 14px 14px;
}

.market-group-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.market-group-highlight {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 13px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.market-group-highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--blue);
}

.market-group-highlight.is-safe::before {
  background: var(--green);
}

.market-group-highlight.is-value::before {
  background: var(--amber);
}

.market-group-highlight.is-advanced::before {
  background: var(--red);
}

.market-group-highlight span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-group-highlight strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.market-group-highlight small {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.35;
}

.market-group-highlight em {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 5px 9px;
  color: #dceafe;
  background: rgba(76, 141, 255, .12);
  border: 1px solid rgba(76, 141, 255, .25);
  border-radius: 999px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 900;
}

.market-subsection {
  display: grid;
  gap: 10px;
}

.market-subsection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.market-subsection-head h4 {
  margin: 0;
  color: #e8f0fb;
  font-size: .92rem;
  font-weight: 900;
}

.market-subsection-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.market-subsection-head > span {
  min-width: 28px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfe0ff;
  background: rgba(153, 166, 184, .10);
  border: 1px solid rgba(153, 166, 184, .20);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
}

.market-list {
  display: grid;
  gap: 10px;
}

.market-group-content .market-list {
  padding: 0;
}

.market-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}

.market-card.is-featured {
  border-color: rgba(36, 201, 130, .28);
}

.market-card.has-value {
  border-color: rgba(234, 184, 79, .26);
}

.market-card.is-resolved {
  opacity: .72;
  background: rgba(153, 166, 184, .055);
}

.market-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.market-name {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.market-selection {
  margin-top: 3px;
  color: var(--text);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.market-selection-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.market-card-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
}

.market-card-metrics div {
  min-width: 0;
  padding: 9px 10px;
  background: rgba(0, 0, 0, .13);
  border: 1px solid rgba(153, 166, 184, .12);
  border-radius: 8px;
}

.market-card-metrics span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-card-metrics strong {
  display: block;
  margin-top: 3px;
  color: #edf5ff;
  font-size: .92rem;
  font-weight: 900;
}

.market-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: .74rem;
}

.market-card p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.market-state-note {
  padding: 9px 10px;
  color: #c7d4e7;
  background: rgba(153, 166, 184, .08);
  border: 1px solid rgba(153, 166, 184, .14);
  border-radius: 8px;
  font-size: .75rem;
}

.market-ai-note {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  color: #c7d4e7;
  background: rgba(76, 141, 255, .08);
  border: 1px solid rgba(76, 141, 255, .18);
  border-radius: 8px;
  font-size: .75rem;
}

.market-ai-note strong {
  color: #dceafe;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-ai-note span {
  line-height: 1.4;
}

.alert-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.signal-badge,
.score-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.signal-success {
  color: #b8f5d9;
  background: rgba(36, 201, 130, .12);
  border-color: rgba(36, 201, 130, .26);
}

.signal-warning {
  color: #ffe1a3;
  background: rgba(234, 184, 79, .12);
  border-color: rgba(234, 184, 79, .28);
}

.signal-danger {
  color: #ffc3c8;
  background: rgba(239, 107, 115, .13);
  border-color: rgba(239, 107, 115, .30);
}

.signal-muted {
  color: #c7d0dd;
  background: rgba(153, 166, 184, .10);
  border-color: rgba(153, 166, 184, .20);
}

.score-pill {
  min-width: 54px;
  border-color: rgba(140, 183, 255, .24);
  background: rgba(76, 141, 255, .11);
}

.score-high {
  color: #b8f5d9;
}

.score-mid {
  color: #ffe1a3;
}

.score-low {
  color: #cbd6e5;
}

.score-pill.score-high {
  border-color: rgba(36, 201, 130, .32);
  background: rgba(36, 201, 130, .13);
}

.score-pill.score-mid {
  border-color: rgba(234, 184, 79, .30);
  background: rgba(234, 184, 79, .12);
}

.score-pill.score-low {
  border-color: rgba(153, 166, 184, .20);
  background: rgba(153, 166, 184, .10);
}

.match-chat {
  position: fixed;
  right: 24px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 1045;
}

.match-chat-mobile-entry {
  display: none;
}

.match-chat-mobile-button {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 11px 12px;
  color: #f4f8ff;
  background: linear-gradient(135deg, rgba(20, 87, 212, .92), rgba(20, 201, 130, .18));
  border: 1px solid rgba(140, 183, 255, .30);
  border-radius: 8px;
  text-align: left;
}

.match-chat-mobile-button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 950;
}

.match-chat-mobile-button strong {
  line-height: 1.1;
  font-weight: 900;
}

.match-chat-mobile-button small {
  color: rgba(219, 231, 248, .78);
  font-size: .72rem;
  line-height: 1.25;
}

.match-chat-toggle {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 8px;
  color: #f4f8ff;
  background: #1457d4;
  border: 1px solid rgba(140, 183, 255, .42);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
  font-weight: 900;
}

.match-chat-toggle span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #dbeafe;
  font-size: .82rem;
  font-weight: 950;
}

.match-chat-toggle strong {
  line-height: 1;
}

.match-chat.is-open .match-chat-toggle {
  display: none;
}

.match-chat-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 96px));
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  overflow: hidden;
  color: var(--text);
  background: #101720;
  border: 1px solid rgba(140, 183, 255, .24);
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .56);
}

.match-chat-panel[hidden] {
  display: none;
}

.match-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}

.match-chat-head span,
.match-chat-head small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

.match-chat-head strong {
  display: block;
  margin: 2px 0;
  color: #f3f7ff;
  font-size: .95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.chat-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #c7d4e7;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
}

.match-chat-messages {
  min-height: 260px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.chat-message.is-user {
  align-self: flex-end;
  color: #f4f8ff;
  background: rgba(76, 141, 255, .18);
  border-color: rgba(76, 141, 255, .28);
}

.chat-message.is-assistant {
  align-self: flex-start;
  color: #dbe7f8;
  background: rgba(255, 255, 255, .05);
}

.chat-message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .88rem;
  line-height: 1.45;
}

.chat-message-content strong {
  color: #f6f9ff;
  font-weight: 900;
}

.chat-message-content em {
  color: #cfe1ff;
}

.chat-message time {
  display: block;
  margin-top: 5px;
  color: rgba(219, 231, 248, .62);
  font-size: .68rem;
  text-align: right;
}

.match-chat-quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 14px 12px;
  scrollbar-width: none;
}

.match-chat-quick::-webkit-scrollbar {
  display: none;
}

.chat-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #cfe1ff;
  background: rgba(76, 141, 255, .10);
  border: 1px solid rgba(76, 141, 255, .22);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

.match-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}

.match-chat-form textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  color: #f4f8ff;
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  font-size: .86rem;
  outline: none;
}

.match-chat-form textarea:focus {
  border-color: rgba(76, 141, 255, .62);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, .12);
}

.match-chat-form button {
  min-width: 84px;
  color: white;
  background: #256ce8;
  border: 1px solid rgba(140, 183, 255, .26);
  border-radius: 8px;
  font-weight: 900;
}

.match-chat-form button:disabled {
  cursor: wait;
  opacity: .62;
}

.docs-list .list-group-item {
  background: transparent;
  border-color: var(--line);
  color: #dbe7f8;
}

.footer-note {
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 1020;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    gap: 10px;
  }

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

  .sidebar .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: .82rem;
  }

  .brand-title {
    font-size: .95rem;
  }

  .brand-subtitle {
    font-size: .75rem;
  }

  .sidebar .nav {
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px !important;
    margin: 0 -4px;
    padding: 0 4px 2px;
    scrollbar-width: none;
  }

  .sidebar .nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar .nav-link {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: .84rem;
  }

  .mobile-account-menu {
    display: block;
    flex: 0 0 auto;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar,
  .match-header,
  .panel-header,
  .dashboard-hero,
  .radar-hero,
  .market-section-title,
  .market-accordion-button {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-sync {
    min-width: 0;
    text-align: left;
  }

  .topbar {
    min-height: auto;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar .small {
    display: none;
  }

  .topbar h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-pill {
    flex: 0 1 auto;
    max-width: 58%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .content {
    padding: 16px;
  }

  .metric {
    min-height: 116px;
    padding: 14px;
  }

  .metric-value {
    font-size: 1.65rem;
  }

  .panel {
    padding: 14px;
  }

  .filter-form,
  .filter-form .form-select,
  .filter-form .btn {
    width: 100%;
  }

  .filter-form {
    flex-direction: column;
  }

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

  .radar-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }

  .radar-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .radar-filter-btn {
    white-space: nowrap;
  }

  .match-header h2 {
    font-size: 1.25rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .score-box {
    width: 100%;
    text-align: left;
  }

  .score-box .display-6 {
    font-size: 1.8rem;
  }

  .suggestion > .d-flex {
    flex-direction: column;
  }

  .value-card-top,
  .market-card-top,
  .credibility-block-head,
  .outcome-prob-top,
  .value-score-title,
  .market-subsection-head {
    flex-direction: column;
  }

  .credibility-two-col {
    grid-template-columns: 1fr;
  }

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

  .recipient-card {
    flex-direction: column;
  }

  .recipient-actions {
    align-items: flex-start;
  }

  .schedule-item,
  .priority-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-time {
    width: 100%;
    text-align: left;
  }

  .schedule-score,
  .priority-badges,
  .market-summary-metrics {
    justify-content: flex-start;
  }

  .market-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }

  .market-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .market-filter-btn {
    white-space: nowrap;
  }

  .suggestion .text-end {
    text-align: left !important;
  }

  .match-chat {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .match-chat-panel {
    width: calc(100vw - 28px);
    max-height: min(76dvh, calc(100dvh - 110px));
    grid-template-rows: auto minmax(180px, 1fr) auto auto;
  }

  .footer-note {
    padding: 10px 16px;
  }
}

@media (max-width: 720px) {
  .mobile-card-table {
    overflow: visible;
  }

  .mobile-card-table table,
  .mobile-card-table thead,
  .mobile-card-table tbody,
  .mobile-card-table th,
  .mobile-card-table td,
  .mobile-card-table tr {
    display: block;
    width: 100%;
  }

  .mobile-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mobile-card-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
  }

  .mobile-card-table td {
    border: 0 !important;
    padding: 8px 0 !important;
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    text-align: left !important;
    min-width: 0;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .mobile-card-table td:not([data-label]) {
    display: block;
  }

  .mobile-card-table td:not([data-label])::before {
    content: none;
  }

  .mobile-card-table td[data-label="Ação"] .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 12px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .login-screen {
    padding: 12px;
    place-items: start center;
  }

  .login-panel {
    padding: 20px;
  }

  .topbar h1 {
    font-size: 1rem;
  }

  .status-pill {
    align-self: auto;
    padding: 6px 10px;
    font-size: .74rem;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
  }

  .dashboard-hero {
    padding: 14px;
    gap: 10px;
    margin-bottom: 14px !important;
  }

  .dashboard-hero h2 {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .dashboard-hero p {
    font-size: .86rem;
    line-height: 1.35;
  }

  .dashboard-sync {
    padding-top: 8px;
    border-top: 1px solid rgba(222, 232, 244, .10);
  }

  .dashboard-sync span,
  .dashboard-sync small {
    display: none;
  }

  .dashboard-sync strong {
    font-size: .78rem;
  }

  .dashboard-metrics {
    --bs-gutter-x: .65rem;
    --bs-gutter-y: .65rem;
    margin-bottom: 1rem !important;
  }

  .notice,
  .panel,
  .metric,
  .match-header {
    border-radius: 7px;
  }

  .panel-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .panel-header h2 {
    font-size: .95rem;
  }

  .panel-header p {
    display: none;
  }

  .panel-header .btn {
    width: 100%;
  }

  .dashboard-metrics > .col-6 {
    width: 50%;
  }

  .metric {
    min-height: 94px;
    padding: 11px;
  }

  .metric-label {
    font-size: .62rem;
    line-height: 1.2;
  }

  .metric-value {
    font-size: 1.38rem;
    margin-top: 5px;
  }

  .metric-time {
    font-size: 1.2rem;
  }

  .metric-hint {
    font-size: .68rem;
    line-height: 1.25;
    margin-top: 5px;
  }

  .stat-card .h5 {
    font-size: 1rem;
  }

  .value-grid,
  .market-groups,
  .live-grid,
  .credibility-overview,
  .outcome-prob-grid,
  .accuracy-grid {
    grid-template-columns: 1fr;
  }

  .value-metrics,
  .outcome-prob-meta,
  .market-card-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .live-scoreline {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .live-scoreline span {
    font-size: .9rem;
    line-height: 1.15;
  }

  .live-scoreline span:last-child {
    text-align: right;
  }

  .live-scoreline strong {
    font-size: 1.05rem;
  }

  .live-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
  }

  .live-metrics div {
    padding: 8px 7px;
  }

  .live-metrics span {
    font-size: .58rem;
  }

  .live-metrics strong {
    font-size: .86rem;
  }

  .live-match-card {
    padding: 12px;
  }

  .live-match-top {
    gap: 6px;
    margin-bottom: 10px;
  }

  .live-match-top .small {
    font-size: .68rem;
  }

  .live-match-card > .btn {
    width: 100%;
  }

  .schedule-list {
    gap: 8px;
  }

  .schedule-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    align-items: start;
  }

  .schedule-time {
    width: auto;
    padding: 8px 6px;
    text-align: center;
  }

  .schedule-time span {
    font-size: .56rem;
    line-height: 1.1;
  }

  .schedule-time strong {
    font-size: .88rem;
  }

  .schedule-main {
    min-width: 0;
  }

  .schedule-main .small {
    font-size: .7rem;
    line-height: 1.3;
  }

  .team-line {
    font-size: .9rem;
  }

  .schedule-score {
    grid-column: 2;
    justify-content: flex-start;
    gap: 6px;
  }

  .schedule-item > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .priority-item {
    padding: 12px;
  }

  .priority-badges {
    gap: 6px;
  }

  .radar-summary-grid,
  .radar-live-grid {
    grid-template-columns: 1fr;
  }

  .radar-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-card-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sidebar-footer {
    display: none;
  }

  .match-chat {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
  }

  .match-chat-mobile-entry {
    display: block;
  }

  .match-chat-toggle {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .48);
  }

  .match-chat-panel {
    width: 100%;
    max-height: min(78dvh, calc(100dvh - 88px - env(safe-area-inset-bottom, 0px)));
  }

  .match-chat-messages {
    min-height: 190px;
    padding: 12px;
  }

  .chat-message {
    max-width: 94%;
  }

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

  .match-chat-form button {
    min-height: 42px;
  }
}
