.live-detail-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}

.live-detail-title {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 18px;
}

.live-match-clock {
  flex: none;
  color: var(--dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.live-match-clock.is-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-match-clock .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
  animation: pulse-live 1.6s ease-in-out infinite;
}

.live-match-clock-period {
  margin-left: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.section-stack {
  border-bottom: 1px solid var(--line);
}

.section-stack .empty {
  border-top: 1px solid var(--line);
}

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

.section-head h3 {
  margin: 0;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
}

.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.table-actions {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
}

.resolver-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
}

.resolver-filters label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.resolver-filters select,
.resolver-filters input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.row-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-right: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  pointer-events: none;
}

.chevron-icon {
  width: 11px;
  height: 11px;
  transition: transform 120ms ease;
}

.row-expander-placeholder {
  display: inline-block;
  width: 16px;
  min-width: 16px;
  margin-right: 10px;
  vertical-align: middle;
}

.resolver-expandable-row {
  cursor: pointer;
}

.resolver-expandable-row:hover td {
  background: var(--panel-soft);
}

.resolver-expandable-row:hover .row-expander {
  color: var(--dark);
}

.resolver-market-copy {
  display: inline-flex;
  max-width: calc(100% - 38px);
  flex-direction: column;
  gap: 4px;
  vertical-align: middle;
}

.resolver-market-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.resolver-event-row > td {
  background: var(--panel-soft);
  padding: 0;
}

.resolver-events {
  padding: 10px 18px 14px 44px;
}

.resolver-events-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resolver-evidence-table {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.resolver-evidence-table th,
.resolver-evidence-table td {
  padding: 7px 12px;
}

.resolver-evidence-table td {
  color: var(--muted);
  font-size: 12px;
}

.resolver-evidence-table tbody tr:last-child td {
  border-bottom: 0;
}

th,
td {
  padding: 9px 14px;
  text-align: left;
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  border-bottom: 1px solid var(--line-soft);
  color: #344054;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td strong {
  color: var(--dark);
  font-weight: 600;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover td {
  background: #fafbfc;
}

td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.muted-cell {
  color: var(--muted);
}

td.type-cell {
  color: var(--dark);
  font-weight: 600;
  white-space: nowrap;
}

td.strong-cell {
  color: var(--dark);
  font-weight: 600;
}

td.actions-cell,
th.actions-cell {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

td.id-cell {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}

.match-cell {
  display: grid;
  gap: 2px;
}

.match-cell-name {
  color: var(--dark);
  font-weight: 600;
}

.team-matchup {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

td .team-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  min-width: 23rem;
}

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

.team-matchup-home {
  justify-content: flex-end;
}

.team-logo {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
}

/* The placeholder is white for dark surfaces. See ADR-070. */
html:not([data-theme='dark']) .team-logo[data-team-logo-fallback='true'] {
  filter: invert(1);
}

.team-matchup-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-matchup-versus {
  flex: none;
  color: var(--muted);
  font-weight: 500;
}

.match-cell-meta {
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}

.status .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.status-draft {
  color: #b25c0d;
}

.status-draft .dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.status-published {
  color: var(--green);
}

.status-published .dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.15);
}

.status-published .dot.pulse {
  animation: pulse-live-green 1.8s ease-in-out infinite;
}

@keyframes pulse-live-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(8, 127, 91, 0.04); }
}

.status-upcoming {
  color: #4b5563;
}

.status-upcoming .dot {
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.22);
}

.status-live {
  color: #b91c1c;
}

.status-live .dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22);
  animation: pulse-live 1.6s ease-in-out infinite;
}

.status-ok {
  color: var(--green);
}

.status-ok .dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.15);
}

.status-ok .dot.pulse {
  animation: pulse-live-green 1.8s ease-in-out infinite;
}

.status-finished {
  color: var(--muted);
}

.status-finished .dot {
  background: var(--muted-soft);
}

.status-warn {
  color: #b25c0d;
}

.status-warn .dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.status-neutral {
  color: var(--muted);
}

.status-neutral .dot {
  background: var(--muted-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2f7;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.status-pill.yes {
  background: #dcfce7;
  color: #166534;
}

.status-pill.no {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08); }
}
