/* Compact matchbook preview. The displayed markets remain informational. */
.fixture-market-expand summary { cursor: pointer; list-style: none; }
.fixture-market-expand summary::-webkit-details-marker { display: none; }
.fixture-market-expand summary span::after { content: "  +"; color: #a5303b; font-weight: 700; }
.fixture-market-expand[open] summary span::after { content: "  −"; }
.fixture-market-expand[open] summary { border-bottom: 1px solid #e2e7e5; }
.fixture-market-grid-values > span { min-width: 0; }
.fixture-market-grid-values i, .fixture-market-grid-values b { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .app-header { background: #b82f3b; }
  .header-actions #authTrigger { color: #a72f3d; background: #fff; border-color: #fff; }
  .header-actions .connection, .header-actions .connection.good { color: #fff; background: #a52b36; border-color: #d57579; }
  #view-overview .page-head { min-height: 48px; padding: 6px 12px; background: #fff; border-bottom: 1px solid #e4e8e7; }
  #view-overview .page-head h2 { font-size: 18px; }
  #view-overview .page-actions .date-field { min-height: 34px; }
  #view-overview .fixture-ledger-panel .panel-head { min-height: 42px; padding: 8px 12px; }
  #view-overview .fixture-ledger-panel .panel-head h3 { font-size: 15px; }
  #view-overview .fixture-play-tabs { display: flex; gap: 0; padding: 0 4px; overflow: hidden; background: #fff; }
  #view-overview .fixture-play-tab { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 5px 1px; }
  #view-overview .fixture-play-tab strong { font-size: 11px; white-space: nowrap; }
  #view-overview .fixture-ledger-panel .match-tools { padding: 7px 10px; gap: 5px; }
  #view-overview .match-filter { min-height: 30px; padding: 0 9px; }
  #view-overview .match-search { min-height: 36px; margin-top: 2px; }
  #view-overview .fixture-context-bar { padding: 5px 10px; }
  #view-overview .fixture-ledger-panel .fixture-list { padding: 0; background: #fff; }
  #view-overview .fixture-ledger-panel .fixture-row,
  #view-overview .fixture-ledger-panel .fixture-row:nth-child(even) {
    display: grid; grid-template-columns: 68px minmax(0, 1fr); grid-template-areas: "number main" "number side";
    column-gap: 8px; row-gap: 0; margin: 0; padding: 10px 10px 11px; border: 0; border-bottom: 1px solid #e1e6e4; border-radius: 0; background: #fff; box-shadow: none;
  }
  #view-overview .fixture-row .match-number {
    grid-area: number; align-self: stretch; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 5px; padding: 9px 3px; border: 0; border-radius: 4px; background: #f4f6f5; text-align: center;
  }
  #view-overview .fixture-row .match-number strong { display: block; min-height: 0; padding: 0; color: #a32f3b; background: transparent; font-size: 12px; white-space: nowrap; }
  #view-overview .fixture-row .match-number span { display: block; margin: 0; color: #718079; font-size: 10px; line-height: 1.35; white-space: normal; font-variant-numeric: tabular-nums; }
  #view-overview .fixture-row .match-main { grid-area: main; min-width: 0; }
  #view-overview .fixture-row .match-meta { min-height: 20px; margin: 0 0 4px; }
  #view-overview .fixture-row .match-league { color: #6b7e73; font-size: 10px; }
  #view-overview .fixture-row .market-cue { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  #view-overview .fixture-row .match-teams { grid-template-columns: minmax(0, 1fr) 23px minmax(0, 1fr); min-height: 32px; gap: 4px; }
  #view-overview .fixture-row .match-teams strong { min-width: 0; font-size: 14px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
  #view-overview .fixture-row .match-foot { margin-top: 7px; }
  #view-overview .fixture-market-line { grid-template-columns: 26px 34px repeat(3, minmax(0, 1fr)); min-height: 39px; border-radius: 4px; background: #fff; }
  #view-overview .fixture-market-marker { font-size: 10px; }
  #view-overview .fixture-market-label { font-size: 9px; }
  #view-overview .fixture-market-cell i { color: #ae3440; font-size: 10px; }
  #view-overview .fixture-market-cell b { margin-top: 2px; color: #263e32; font-size: 13px; }
  #view-overview .fixture-market-unavailable { font-size: 11px; }
  #view-overview .fixture-row .match-side { grid-area: side; min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px; margin-top: 7px; }
  #view-overview .fixture-row .match-state { min-width: 0; flex: 1 1 auto; justify-content: flex-start; }
  #view-overview .fixture-row .match-state .pill { min-width: 0; max-width: 100%; min-height: 23px; padding: 0 5px; font-size: 9px; }
  #view-overview .fixture-row .row-actions { width: auto; flex: 0 0 auto; gap: 5px; margin-left: auto; }
  #view-overview .fixture-row .row-actions .btn { min-height: 34px; padding-inline: 7px; font-size: 10px; }
  #view-overview .fixture-row .ai-match { min-width: 70px; }
  #view-overview .fixture-market-grid-head { min-height: 37px; padding: 0 8px; }
  #view-overview .fixture-market-grid-values { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #view-overview .fixture-market-grid-values > span { min-height: 42px; border-right: 1px solid #e7ecee; border-bottom: 1px solid #e7ecee; }
  #view-overview .fixture-market-grid-values > span:nth-child(5n) { border-right: 0; }
  #view-overview .fixture-market-grid-values > span:nth-last-child(-n + 3) { border-bottom: 1px solid #e7ecee; }
  #view-overview .fixture-market-grid-values i { font-size: 10px; }
  #view-overview .fixture-market-grid-values b { font-size: 11px; }
}

@media (max-width: 360px) {
  #view-overview .fixture-ledger-panel .fixture-row { grid-template-columns: 61px minmax(0, 1fr); column-gap: 6px; padding-inline: 7px; }
  #view-overview .fixture-row .match-teams strong { font-size: 13px; }
  #view-overview .fixture-row .row-actions .btn { padding-inline: 5px; }
  #view-overview .fixture-row .ai-match { min-width: 66px; }
}
