.odds-cell.unavailable.back,
.depth-grid .odds-cell.unavailable.back,
.condensed-runner .odds-cell.unavailable.back,
.score-selection .odds-cell.unavailable.back {
  color: #071522;
  background: var(--back-100);
  border-color: var(--back-200);
  cursor: pointer;
}

.odds-cell.unavailable.lay,
.depth-grid .odds-cell.unavailable.lay,
.condensed-runner .odds-cell.unavailable.lay,
.score-selection .odds-cell.unavailable.lay {
  color: #071522;
  background: var(--lay-100);
  border-color: var(--lay-200);
  cursor: pointer;
}

.odds-cell.unavailable:disabled { cursor: not-allowed; }
.event-header.tennis-event-header {
  grid-template-columns: 96px minmax(0, 1fr) 96px;
}

.event-header.tennis-event-header .event-identity,
.event-header.tennis-event-header .event-identity h1 {
  width: 100%;
}

.tennis-event-header .tennis-live-score-detail {
  width: min(420px, 100%);
  margin-inline: auto;
  gap: 4px;
}

.tennis-event-header .tennis-live-score-detail .tennis-score-head,
.tennis-event-header .tennis-live-score-detail .tennis-score-player {
  grid-template-columns: 190px auto 38px 50px;
  justify-content: center;
  column-gap: 8px;
}

.tennis-event-header .tennis-live-score-detail .tennis-set-heads,
.tennis-event-header .tennis-live-score-detail .tennis-set-values {
  grid-template-columns: repeat(var(--tennis-set-columns), 32px);
}

.tennis-event-header .tennis-live-score-detail .tennis-score-head small {
  font-size: .66rem;
}

.tennis-event-header .tennis-live-score-detail .tennis-score-player {
  min-height: 31px;
}

.tennis-event-header .tennis-live-score-detail .tennis-player-name {
  min-width: 0;
  justify-content: flex-start;
  gap: 7px;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tennis-event-header .tennis-live-score-detail .tennis-score-player > b,
.tennis-event-header .tennis-live-score-detail .tennis-score-player > strong,
.tennis-event-header .tennis-live-score-detail .tennis-set-values span {
  font-size: 1.03rem;
}

.tennis-event-header .tennis-live-score-detail .tennis-detail-date,
.tennis-event-header .tennis-live-score-detail .tennis-current-set {
  justify-self: center;
}

@media (max-width: 760px) {
  .event-header.tennis-event-header {
    grid-template-columns: 1fr;
  }

  .tennis-event-header .tennis-live-score-detail {
    width: min(360px, 100%);
  }

  .tennis-event-header .tennis-live-score-detail .tennis-score-head,
  .tennis-event-header .tennis-live-score-detail .tennis-score-player {
    grid-template-columns: minmax(145px, 1fr) auto 28px 38px;
    justify-content: stretch;
    column-gap: 5px;
  }

  .tennis-event-header .tennis-live-score-detail .tennis-set-heads,
  .tennis-event-header .tennis-live-score-detail .tennis-set-values {
    grid-template-columns: repeat(var(--tennis-set-columns), 24px);
  }

  .tennis-event-header .tennis-live-score-detail .tennis-player-name {
    font-size: .8rem;
  }
}
:root {
  color-scheme: light;
  --navy-975: #020a14;
  --navy-950: #04101f;
  --navy-900: #07182d;
  --navy-850: #0b223b;
  --navy-800: #102c49;
  --navy-700: #173d63;
  --gold-600: #b78622;
  --gold-500: #d4a83f;
  --gold-400: #eccb70;
  --gold-200: #f5e4ad;
  --ink-950: #081525;
  --ink-900: #142338;
  --ink-700: #3b4b61;
  --ink-500: #65758a;
  --ink-400: #8190a2;
  --surface: #ffffff;
  --surface-soft: #f3f5f7;
  --surface-muted: #e7ebef;
  --line-strong: #bdc7d2;
  --line: #d3dae2;
  --line-soft: #e6eaee;
  --back-700: #075d8a;
  --back-600: #0b75aa;
  --back-200: #9fd6ef;
  --back-100: #bfe7f8;
  --lay-700: #8c234d;
  --lay-600: #ad3764;
  --lay-200: #efb6ca;
  --lay-100: #f6cada;
  --success: #0e9661;
  --danger: #c1394b;
  --warning: #c98216;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --topbar-height: 120px;
  --sidebar-width: 226px;
  --sidebar-compact: 62px;
  --ticket-width: 442px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink-950: #f5f8fb;
  --ink-900: #e7eef5;
  --ink-700: #c2cfdb;
  --ink-500: #96a9bb;
  --ink-400: #7f94a7;
  --surface: #102235;
  --surface-soft: #091827;
  --surface-muted: #162b3e;
  --line-strong: #496075;
  --line: #344c61;
  --line-soft: #273e52;
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
html, body { background: var(--surface-soft); }
body { overflow-x: hidden; color: var(--ink-900); font-size: 16px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
b, strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { color: var(--ink-500); font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.metric b, .wallet-panel b, .toolbar-stats b, .matched b, .odds-cell, .ticket-inputs input, .indicative b, .event-facts b { font-variant-numeric: tabular-nums; }

/* Topbar */
.topbar { position: sticky; z-index: 50; top: 0; height: var(--topbar-height); color: #fff; background: var(--navy-950); box-shadow: 0 4px 12px rgba(2,10,20,.12); }
.topbar-main { position: relative; height: 72px; display: flex; align-items: center; gap: 13px; padding: 0 32px 0 20px; }
.brand { height: 100%; display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-symbol { width: 42px; height: 42px; display: block; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: .95; letter-spacing: .075em; }
.brand-copy b { font-size: 1.18rem; font-weight: 760; }
.brand-copy small { margin-top: 5px; color: var(--gold-400); font-size: .57rem; font-weight: 650; letter-spacing: .2em; }
.brand-separator { width: 1px; height: 38px; flex: 0 0 auto; background: #29435f; }
.primary-nav { align-self: stretch; display: flex; align-items: stretch; gap: 2px; }
.primary-nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: #afbdcb; font-size: .84rem; font-weight: 580; text-decoration: none; white-space: nowrap; transition: color 90ms ease, background 90ms ease; }
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.035); }
.primary-nav a.active { color: #fff; }
.primary-nav a.active::after { position: absolute; right: 10px; bottom: 0; left: 10px; height: 3px; content: ''; background: var(--gold-400); }
.primary-nav i { width: 6px; height: 6px; background: #31cf87; border-radius: 50%; }
.search-wrap { position: absolute; left: 50%; width: clamp(240px, 30vw, 430px); transform: translateX(-50%); }
.global-search { width: 100%; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #60758c; background: #fff; border: 1px solid #d9e0e7; border-radius: 5px; transition: border-color 90ms ease, box-shadow 90ms ease; }
.global-search:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(236,203,112,.22); }
.global-search > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.global-search input { min-width: 0; width: 100%; color: var(--ink-900); background: transparent; border: 0; outline: 0; font-size: .82rem; }
.global-search input::placeholder { color: #60758c; }
.global-search kbd { flex: 0 0 auto; padding: 4px 6px; color: #60758c; background: #eef2f6; border: 0; border-radius: 4px; font-family: inherit; font-size: .58rem; white-space: nowrap; }
.global-search button { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; color: #b7c4d0; background: transparent; border: 0; }
.global-search button svg { width: 16px; height: 16px; }
.search-suggestions { position: absolute; z-index: 60; top: calc(100% + 7px); right: 0; left: 0; overflow: hidden; color: var(--ink-900); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 12px 28px rgba(2,10,20,.2); }
.search-suggestions button { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 7px 11px; color: var(--ink-900); background: #fff; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.search-suggestions button:last-child { border-bottom: 0; }
.search-suggestions button:hover, .search-suggestions button.active { background: #edf2f6; box-shadow: inset 3px 0 0 var(--gold-500); }
.search-suggestions button span { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.search-suggestions b { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions small { color: var(--ink-500); font-size: .68rem; }
.search-suggestions em { color: var(--navy-700); font-size: .67rem; font-style: normal; font-weight: 650; }
.search-suggestions p { margin: 0; padding: 15px; color: var(--ink-500); font-size: .78rem; }
.account-strip { height: 100%; display: flex; align-items: center; gap: 9px; margin-left: auto; }
.wallet-panel { position: relative; width: 205px; height: 54px; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; padding: 5px 11px 5px 13px; background: #0d2943; border: 1px solid #3a526a; border-radius: 7px; box-shadow: inset 3px 0 0 rgba(222,177,55,.9), inset 0 1px 0 rgba(255,255,255,.04); }
.wallet-panel > span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-panel > span + span { border-top: 1px solid #29435f; }
.wallet-panel small { color: #fff; font-size: .56rem; font-weight: 680; letter-spacing: .1em; }
.wallet-panel b { color: #fff; font-size: .74rem; font-weight: 680; white-space: nowrap; }
.wallet-panel span:last-child small, .wallet-panel span:last-child b { color: #ff8fa8; }
.player-control { position: relative; height: 42px; }
.player-button { height: 42px; min-width: 112px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #fff; background: #15324f; border: 1px solid #8b732d; border-radius: 6px; font-size: .76rem; font-weight: 650; }
.player-button:hover { background: #193b5d; border-color: var(--gold-500); }
.player-button svg { width: 17px; height: 17px; color: #d8e0e9; }
.player-button svg:last-child { width: 15px; height: 15px; margin-left: auto; color: var(--gold-400); transition: transform 90ms ease; }
.player-button svg:last-child.open { transform: rotate(180deg); }
.player-menu { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; width: 215px; display: grid; color: var(--ink-900); background: #fff; border: 1px solid #d7e0e9; border-radius: 7px; box-shadow: 0 12px 26px rgba(2,10,20,.22); }
.player-menu::before { position: absolute; top: -6px; right: 30px; width: 11px; height: 11px; content: ''; background: #fff; border-top: 1px solid #d7e0e9; border-left: 1px solid #d7e0e9; transform: rotate(45deg); }
.player-menu header { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line-soft); }
.player-menu header b { font-size: .78rem; }
.player-menu header small { color: var(--ink-500); font-size: .64rem; }
.player-menu a, .player-menu button { min-height: 38px; display: flex; align-items: center; padding: 0 16px; color: var(--ink-700); background: #fff; border: 0; border-bottom: 1px solid var(--line-soft); font-size: .72rem; text-align: left; text-decoration: none; }
.player-menu a:hover, .player-menu a:focus-visible, .player-menu button:hover, .player-menu button:focus-visible { color: var(--navy-900); background: #edf3f8; }
.player-menu a.active { color: var(--navy-900); background: #edf3f8; font-weight: 650; box-shadow: inset 3px 0 0 var(--gold-500); }
.player-menu .logout-demo { color: #b33c52; border-bottom: 0; font-weight: 650; }
.mobile-menu-toggle { width: 38px; height: 38px; display: none; place-items: center; padding: 0; color: #c4cfda; background: transparent; border: 1px solid #2b4157; border-radius: var(--radius-sm); }
.mobile-menu-toggle svg { width: 18px; height: 18px; }
.mobile-menu-toggle, .mobile-nav-panel { display: none; }
.sportbar { height: 48px; display: flex; align-items: stretch; justify-content: space-between; gap: 18px; background: #0c233b; border-bottom: 2px solid var(--gold-500); }
.sport-nav { min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.sport-nav::-webkit-scrollbar { display: none; }
.sport-nav button, .sport-nav a { min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; color: #fff; background: transparent; border: 0; border-right: 1px solid rgba(41,67,95,.34); font-size: .69rem; font-weight: 620; text-decoration: none; white-space: nowrap; }
.sport-nav button:hover, .sport-nav a:hover { color: #fff; background: rgba(255,255,255,.035); }
.sport-nav button.active, .sport-nav a.active { min-width: 92px; color: var(--navy-950); background: var(--gold-500); font-weight: 720; }
.sport-nav .in-play-link i { width: 6px; height: 6px; background: #31cf87; border-radius: 50%; }

/* Main grid and sidebar */
.exchange-layout { width: calc(100% - 32px); max-width: 1860px; min-height: calc(100vh - var(--topbar-height)); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--ticket-width); margin-inline: auto; transition: grid-template-columns 120ms ease; }
.exchange-layout.sidebar-collapsed { grid-template-columns: var(--sidebar-compact) minmax(0, 1fr) var(--ticket-width); }
.sports-sidebar { min-width: 0; background: var(--surface); border-right: 1px solid var(--line-strong); }
.sidebar-heading { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 15px; color: var(--ink-700); border-bottom: 1px solid var(--line); font-size: .7rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-heading button { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sidebar-heading button:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.sidebar-heading button svg { width: 15px; height: 15px; transition: transform 120ms ease; }
.sidebar-collapsed .sidebar-heading { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-heading > span { display: none; }
.sidebar-collapsed .sidebar-heading button svg { transform: rotate(180deg); }
.sport-list, .competition-list { padding: 6px; }
.sport-tree-item, .country-tree-item { display: block; }
.sport-tree-item + .sport-tree-item { border-top: 1px solid #e4e9ee; }
.sport-list .sport-tree-item > button { border-bottom: 0; }
.tree-chevron { width: 14px; height: 14px; flex: 0 0 auto; transform: rotate(-90deg); transition: transform 100ms ease; }
.tree-chevron.open { transform: rotate(90deg); }
.country-list { margin: 0 4px 5px 29px; border-left: 1px solid #c7d1da; }
.country-list > .country-tree-item > button { min-height: 32px; padding: 0 6px 0 8px; background: #f4f7f9; }
.country-list > .country-tree-item > button:hover { background: #e9eef2; }
.country-list .flag { width: 22px; height: 16px; }
.country-list .competition-list { padding: 0 3px 4px 18px; }
.country-list .competition-list button { min-height: 30px; padding-inline: 7px; background: #fff; }
.country-list .competition-list button.selected { background: #e3e9ee; }
.country-list > .tennis-competition-list { padding: 2px 3px 4px 8px; }
.country-list > .tennis-competition-list button { min-height: 31px; }
.country-list > .antepost-tree-item { margin-bottom: 3px; border-bottom: 1px solid #d8e0e7; }
.country-list > .antepost-tree-item > .antepost-toggle { min-height: 34px; padding: 0 6px 0 8px; color: var(--navy-850); background: #fff8e5; }
.country-list > .antepost-tree-item > .antepost-toggle:hover { background: #fff1c7; }
.country-list > .antepost-tree-item > .antepost-toggle > svg:first-child { width: 17px; height: 17px; color: #b27b00; }
.antepost-country-list { margin-left: 12px; border-left: 1px solid #d6b958; }
.antepost-country-list > .country-tree-item > button { min-height: 32px; padding: 0 6px 0 8px; background: #fffdf6; }
.antepost-country-list > .country-tree-item > button:hover { background: #fff7df; }
.antepost-tree-item > .antepost-direct-list { margin-left: 12px; padding-left: 3px; border-left: 1px solid #d6b958; }
.antepost-tree-item > .antepost-direct-list button { background: #fffdf6; }
.sport-list button, .competition-list button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 9px; color: var(--ink-700); background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); text-align: left; transition: background 80ms ease, color 80ms ease; }
.sport-list button:hover:not(:disabled), .competition-list button:hover { background: var(--surface-soft); }
.sport-list button.selected, .competition-list button.selected { color: var(--navy-900); background: #e8eef3; border-color: #d9e1e8; box-shadow: inset 3px 0 0 var(--gold-500); }
.sport-list button:disabled { cursor: default; opacity: .48; }
.sport-list b, .competition-list b { flex: 1; overflow: hidden; font-size: .79rem; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.sport-list small, .competition-list small { color: var(--ink-500); font-size: .69rem; font-variant-numeric: tabular-nums; }
.sport-glyph { width: 25px; height: 25px; display: grid; flex: 0 0 auto; place-items: center; color: var(--navy-700); }
.sport-glyph svg { width: 19px; height: 19px; }
.sidebar-section { padding: 15px 15px 6px; color: var(--ink-500); border-top: 1px solid var(--line); font-size: .67rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.flag { width: 25px; height: 18px; display: grid; flex: 0 0 auto; place-items: center; color: var(--ink-700); background: #eef1f4; border: 1px solid var(--line); border-radius: var(--radius-xs); font-size: .56rem; font-weight: 700; }
.sidebar-collapsed .sport-list, .sidebar-collapsed .competition-list { padding-inline: 7px; }
.sidebar-collapsed .sport-list button, .sidebar-collapsed .competition-list button { justify-content: center; padding: 0; }
.sidebar-collapsed .sport-list b, .sidebar-collapsed .sport-list small, .sidebar-collapsed .competition-list b, .sidebar-collapsed .competition-list small, .sidebar-collapsed .sidebar-section { display: none; }
.sidebar-collapsed .competition-list button:first-child { display: none; }
.sidebar-collapsed .competition-list { border-top: 1px solid var(--line); }
.sidebar-collapsed .country-list { display: none; }

/* Exchange list */
.exchange-main { min-width: 0; padding: 16px; }
.exchange-controlbar { min-height: 48px; display: grid; grid-template-columns: minmax(210px,1fr) auto auto; align-items: stretch; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-975); border-left: 3px solid var(--gold-500); }
.exchange-controlbar.live-controlbar { grid-template-columns: minmax(210px,1fr) auto; }
.exchange-control-title { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px 12px; }
.exchange-control-title > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--gold-400); }
.exchange-control-title > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.exchange-control-title small { color: #9eb0c1; font-size: .61rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.exchange-control-title h1 { overflow: hidden; margin: 0; font-size: .91rem; font-weight: 680; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.exchange-control-title > b { min-width: 23px; height: 20px; display: grid; place-items: center; color: var(--navy-950); background: var(--gold-400); border-radius: 10px; font-size: .62rem; font-variant-numeric: tabular-nums; }
.exchange-time-filters { display: flex; align-items: center; gap: 3px; padding: 6px; border-left: 1px solid rgba(255,255,255,.12); }
.exchange-time-filters button { min-height: 30px; padding: 0 9px; color: #c8d3dd; background: transparent; border: 1px solid transparent; border-radius: 2px; font-size: .65rem; font-weight: 650; }
.exchange-time-filters button:hover { color: #fff; background: rgba(255,255,255,.07); }
.exchange-time-filters button.active { color: var(--navy-950); background: var(--gold-400); border-color: var(--gold-500); }
.exchange-time-filters button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.exchange-total { min-width: 112px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 1px; padding: 5px 11px; border-left: 1px solid rgba(255,255,255,.12); }
.exchange-total small { color: #8fa3b6; font-size: .58rem; text-transform: uppercase; }
.exchange-total b { color: #fff; font-size: .72rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.market-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.market-toolbar h1 { margin: 3px 0 0; color: var(--ink-950); font-size: 1.38rem; font-weight: 680; letter-spacing: -.025em; }
.toolbar-stats { display: flex; gap: 22px; }
.toolbar-stats span { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.toolbar-stats small { color: var(--ink-500); font-size: .68rem; }
.toolbar-stats b { color: var(--ink-950); font-size: .82rem; }
.market-caption { min-height: 44px; display: grid; grid-template-columns: 72px minmax(170px, 1fr) 34px 84px minmax(378px, 420px); align-items: stretch; color: var(--ink-500); background: #e7ebef; border: 1px solid var(--line-strong); border-bottom: 0; font-size: .65rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.market-caption > span { display: flex; align-items: center; padding: 0 10px; border-right: 1px solid #d5dce3; }
.market-caption > span:nth-child(4) { justify-content: flex-end; }
.market-caption > div { min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 3px 5px; }
.outcome-head { min-width: 0; display: grid; place-items: center; text-align: center; }
.outcome-head > b { color: var(--ink-950); font-size: .7rem; line-height: 1; }
.event-groups { display: block; }
.competition-block + .competition-block { margin-top: 8px; }
.competition-band { min-height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; color: #fff; background: var(--navy-850); border-inline: 1px solid var(--navy-975); }
.competition-band > h2 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .66rem; font-weight: 690; letter-spacing: .045em; text-transform: uppercase; }
.competition-band svg { width: 14px; height: 14px; color: var(--gold-400); }
.competition-band b { color: #91a4b7; font-size: .55rem; font-weight: 650; letter-spacing: .06em; }
.event-list { overflow: hidden; background: #fff; border: 1px solid var(--line-strong); border-top: 0; }
.event-row { position: relative; min-height: 54px; display: grid; grid-template-columns: 72px minmax(170px, 1fr) 34px 84px minmax(378px, 420px); align-items: stretch; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row:hover { background: #f9fafb; }
.event-time { display: flex; align-items: center; justify-content: center; padding: 6px; color: var(--ink-500); border-right: 1px solid var(--line-soft); font-size: .69rem; text-align: center; text-transform: capitalize; }
.prematch-time { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.upcoming-label { color: #7d8993; font-size: .47rem; font-weight: 700; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.event-upcoming .event-time { background: #f5f7f8; }
.event-time strong { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--danger); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.event-time strong > span { display: inline-flex; align-items: center; gap: 5px; }
.event-time strong > b { color: var(--ink-950); font-size: .66rem; font-weight: 740; letter-spacing: 0; }
.event-time i { width: 6px; height: 6px; background: var(--danger); border-radius: 50%; }
.event-name { min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; padding: 6px 11px; color: var(--ink-950); background: transparent; border: 0; border-right: 1px solid var(--line-soft); text-align: left; }
.event-name:hover b { color: var(--navy-700); }
.event-name b { max-width: 100%; overflow: hidden; font-size: .81rem; font-weight: 610; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.event-name small { max-width: 100%; overflow: hidden; color: var(--ink-500); font-size: .65rem; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.event-favourite { width: 34px; display: grid; place-items: center; padding: 0; color: #a8b2bc; background: transparent; border: 0; border-right: 1px solid var(--line-soft); }
.event-favourite svg { width: 16px; height: 16px; }
.event-favourite:hover { color: var(--gold-500); background: #f7f3e8; }
.event-favourite.selected { color: #b98708; }
.event-favourite.selected svg { fill: var(--gold-400); }
.event-favourite:focus-visible, .detail-favourite:focus-visible { position: relative; z-index: 2; outline: 2px solid var(--gold-500); outline-offset: -3px; }
.matched { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 6px 9px 6px 4px; border-right: 1px solid var(--line-soft); }
.matched small { color: var(--ink-500); font-size: .62rem; }
.matched b { color: var(--ink-900); font-size: .75rem; }
.market-grid { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(122px, 136px)); gap: 6px; align-items: center; justify-content: end; padding: 3px 5px; }
.market-grid.two-way .selection-pair:nth-child(2) { grid-column: 3; }
.selection-pair { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(59px, 1fr)); gap: 2px; }
.runner-market-card { position: relative; border-bottom: 1px solid var(--line); background: #fff; }
.runner-market-card:last-child { border-bottom: 0; }
.runner-market-summary { min-height: 46px; display: grid; grid-template-columns: 72px minmax(170px, 1fr) 34px 110px; align-items: stretch; background: #f8fafb; border-bottom: 1px solid var(--line); }
.runner-market-time { display: grid; place-items: center; padding: 5px; color: var(--ink-500); border-right: 1px solid var(--line-soft); font-size: .64rem; text-align: center; }
.runner-market-time > span { white-space: nowrap; }
.runner-market-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 5px 10px; color: var(--ink-950); background: transparent; border: 0; border-right: 1px solid var(--line-soft); text-align: left; }
.runner-market-name b, .runner-market-name small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runner-market-name b { font-size: .75rem; }
.runner-market-name small { color: var(--ink-500); font-size: .57rem; text-transform: uppercase; }
.runner-market-matched { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 5px 9px; }
.runner-market-matched small { color: var(--ink-500); font-size: .55rem; }
.runner-market-matched b { color: var(--ink-900); font-size: .68rem; }
.runner-list-head, .runner-list-row { display: grid; grid-template-columns: minmax(180px, 1fr) 132px 132px; align-items: center; gap: 2px; padding: 3px 6px 3px 12px; }
.runner-list-head { min-height: 25px; color: var(--ink-500); background: #e9eef2; border-bottom: 1px solid var(--line); font-size: .56rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.runner-list-head b { text-align: center; }
.runner-list-head b:nth-child(2) { color: var(--back-700); }
.runner-list-head b:nth-child(3) { color: var(--lay-700); }
.runner-list-row { min-height: 46px; border-bottom: 1px solid var(--line-soft); }
.runner-list-row:last-child { border-bottom: 0; }
.runner-list-row:hover { background: #f5f8fa; }
.runner-list-row > button:first-child { min-width: 0; overflow: hidden; padding: 7px 4px; color: var(--ink-900); background: transparent; border: 0; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.runner-list-row > button:first-child b { font-size: .72rem; font-weight: 640; }
.runner-list-row .odds-cell { height: 38px; }
.runner-market-status { position: absolute; z-index: 3; top: 8px; right: 8px; padding: 6px 18px; color: #fff; background: rgba(183,28,49,.82); border-radius: 2px; font-size: .62rem; font-weight: 780; letter-spacing: .06em; }
.runner-market-card > .quick-bet-host { border-top: 1px solid var(--line); }
.odds-cell { min-width: 0; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 2px; border: 1px solid transparent; border-radius: 1px; transition: background 70ms ease, border-color 70ms ease, filter 70ms ease, transform 70ms ease; }
.odds-cell.back { color: #071522; background: var(--back-100); border-color: var(--back-200); }
.odds-cell.lay { color: #071522; background: var(--lay-100); border-color: var(--lay-200); }
.odds-cell:hover:not(:disabled) { filter: saturate(1.08) brightness(.97); border-color: currentColor; }
.odds-cell:active:not(:disabled) { filter: brightness(.92); transform: translateY(1px); }
.odds-cell.selected { color: #071522; border-color: var(--gold-600); box-shadow: inset 0 0 0 2px var(--gold-400); }
.odds-cell.back.selected { background: var(--back-200); }
.odds-cell.lay.selected { background: var(--lay-200); }
.odds-cell b { font-size: .88rem; font-weight: 730; line-height: 1; }
.odds-cell small { max-width: 100%; overflow: hidden; color: #34495e; font-size: .6rem; font-weight: 540; line-height: 1; opacity: .96; text-overflow: ellipsis; white-space: nowrap; }
.cell-side { display: block; font-size: .55rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.odds-cell.compact .cell-side { display: none; }
.odds-cell.price-changed { animation: price-pulse 650ms ease-out; }
@keyframes price-pulse { 0% { box-shadow: inset 0 0 0 3px var(--gold-500); filter: brightness(1.06); } 100% { box-shadow: inset 0 0 0 0 transparent; filter: none; } }
.odds-cell:disabled { cursor: not-allowed; color: #596779; background: #dfe4e8; border-color: #cdd4db; }
.market-suspended .odds-cell { color: #071522; opacity: .43; filter: saturate(.7); }
.market-suspended .odds-cell.back { background: var(--back-100); border-color: var(--back-200); }
.market-suspended .odds-cell.lay { background: var(--lay-100); border-color: var(--lay-200); }
.market-suspended .odds-cell b { color: #071522; }
.market-suspended .odds-cell small { color: #34495e; }
.loading-state, .error-state, .empty-results { padding: 32px; color: var(--ink-500); font-size: .8rem; text-align: center; }
.error-state { color: var(--danger); }
.suspension-banner { position: absolute; z-index: 3; top: 50%; right: 5px; width: min(410px, calc(100% - 10px)); padding: 8px 12px; color: #fff; background: rgba(183,28,49,.7); border: 1px solid rgba(133,23,39,.78); border-radius: var(--radius-xs); box-shadow: 0 2px 6px rgba(77,9,20,.12); backdrop-filter: blur(1px); font-size: .68rem; font-weight: 780; letter-spacing: .07em; text-align: center; text-transform: uppercase; transform: translateY(-50%); }

.suspension-banner.is-finished { color: #485767; background: rgba(222,227,232,.86); border-color: rgba(126,140,153,.46); box-shadow: 0 2px 6px rgba(53,67,79,.08); text-shadow: 0 1px 0 #fff; }
.runner-market-status.is-finished { color: #485767; background: rgba(222,227,232,.9); border: 1px solid rgba(126,140,153,.46); text-shadow: 0 1px 0 #fff; }

/* Betslip */
.betslip-rail { min-width: 0; background: #fff; border-left: 1px solid var(--line-strong); }
.betslip-heading { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: #fff; background: var(--navy-850); border-bottom: 2px solid var(--gold-500); font-size: .8rem; font-weight: 650; letter-spacing: .02em; }
.betslip-heading > div { display: flex; align-items: center; gap: 8px; }
.betslip-heading > div > svg { width: 16px; height: 16px; color: var(--gold-400); flex: 0 0 auto; }
.betslip-heading b { width: 19px; height: 19px; display: grid; place-items: center; color: var(--navy-950); background: var(--gold-400); border-radius: 50%; font-size: .65rem; }
.mobile-close { display: none; width: 30px; height: 30px; place-items: center; padding: 0; color: #fff; background: transparent; border: 0; }
.mobile-close svg { width: 18px; height: 18px; }
.empty-ticket { min-height: 128px; display: grid; grid-template-columns: 28px 1fr; align-content: center; gap: 2px 10px; padding: 20px 16px; color: var(--ink-500); border-bottom: 1px solid var(--line); text-align: left; }
.empty-ticket > svg { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--ink-400); }
.empty-ticket b { color: var(--ink-700); font-size: .78rem; font-weight: 620; }
.empty-ticket p { margin: 0; font-size: .7rem; line-height: 1.35; }
.ticket-card { margin: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); }
.ticket-card.back { border-top: 3px solid var(--back-600); }
.ticket-card.lay { border-top: 3px solid var(--lay-600); }
.ticket-side { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.ticket-side strong { padding: 3px 6px; color: #fff; border-radius: var(--radius-xs); font-size: .66rem; letter-spacing: .05em; }
.ticket-card.back .ticket-side strong { background: var(--back-700); }
.ticket-card.lay .ticket-side strong { background: var(--lay-700); }
.ticket-side small { flex: 1; color: var(--ink-500); font-size: .68rem; }
.ticket-side button { width: 27px; height: 27px; display: grid; place-items: center; padding: 0; color: var(--ink-500); background: transparent; border: 0; }
.ticket-side button svg { width: 16px; height: 16px; }
.ticket-event { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 10px; }
.ticket-event b { color: var(--ink-950); font-size: .82rem; font-weight: 640; }
.ticket-event small { color: var(--ink-500); font-size: .69rem; }
.ticket-inputs { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7px; padding: 10px; background: #eef1f4; border-block: 1px solid var(--line); }
.ticket-inputs label { min-width: 0; }
.ticket-inputs label > span { display: block; margin-bottom: 4px; color: var(--ink-700); font-size: .66rem; font-weight: 600; }
.ticket-inputs input { min-width: 0; width: 100%; height: 38px; padding: 0 7px; color: var(--ink-950); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); text-align: center; font-size: .82rem; }
.stepper { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; }
.stepper button { color: var(--navy-700); background: #fff; border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 650; }
.stepper button:hover, .quick-stakes button:hover { background: #e5ebf0; }
.stepper button:first-child { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.stepper button:last-child { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.stepper input { border-radius: 0; border-inline: 0; }
.quick-stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.quick-stakes button { height: 30px; color: var(--navy-700); background: #edf2f6; border: 1px solid #d2dbe3; border-radius: var(--radius-xs); font-size: .69rem; font-weight: 620; }
.indicative { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 9px 10px; }
.indicative span { color: var(--ink-700); font-size: .69rem; }
.indicative b { color: var(--ink-950); font-size: .84rem; }
.indicative small { grid-column: 1 / -1; color: var(--ink-500); font-size: .63rem; line-height: 1.35; }
.keep-live { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 9px; font-size: .72rem; }
.keep-live input { width: 15px; height: 15px; accent-color: var(--navy-700); }
.countdown { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px; margin: 0 10px 8px; padding: 8px 10px; color: #fff; background: var(--navy-850); border-left: 3px solid var(--gold-500); }
.countdown small, .countdown span { font-size: .66rem; }
.countdown b { color: var(--gold-400); font-size: 1.25rem; }
.ticket-feedback { margin: 0 10px 8px; padding: 8px 9px; border-radius: var(--radius-xs); font-size: .68rem; line-height: 1.35; }
.ticket-feedback.pending { color: #725719; background: #fff4d5; border: 1px solid #dfc36e; }
.ticket-feedback.success { color: #07633f; background: #e4f5ed; border: 1px solid #9bd1bc; }
.ticket-feedback.error { color: #942637; background: #fdebed; border: 1px solid #e9aeb7; }
.place-order { width: calc(100% - 20px); height: 40px; margin: 0 10px 10px; color: #fff; background: var(--navy-800); border: 1px solid var(--navy-950); border-radius: var(--radius-xs); font-size: .76rem; font-weight: 680; letter-spacing: .02em; }
.place-order:hover:not(:disabled) { background: var(--navy-700); }
.place-order:disabled { cursor: not-allowed; color: #8996a3; background: #dbe0e5; border-color: #cbd2d9; }
.betslip-notice { margin: 10px; padding: 8px; color: #6d551f; background: #fff7e1; border: 1px solid #e4ce8a; border-radius: var(--radius-xs); font-size: .67rem; text-align: center; }
.betslip-notice i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; background: var(--gold-500); border-radius: 50%; }
.mobile-ticket-trigger { display: none; }

/* Compact operational single-ticket overrides */
.betslip-rail { background: #f5f7f9; }
.betslip-heading { position: sticky; z-index: 2; top: 0; height: 46px; padding-inline: 12px; }
.betslip-heading b { min-width: 20px; width: auto; height: 20px; padding-inline: 5px; border-radius: 10px; }
.mobile-close, .ticket-close { width: 34px; height: 34px; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid transparent; border-radius: var(--radius-xs); }
.mobile-close { display: none; }
.ticket-close { display: grid; }
.mobile-close:hover, .ticket-close:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.mobile-close svg, .ticket-close svg { width: 17px; height: 17px; }
.empty-ticket { min-height: 96px; gap: 3px 9px; padding: 15px 13px; background: #fff; }
.empty-ticket > svg { width: 23px; height: 23px; color: var(--navy-500); }
.empty-ticket b { color: var(--ink-800); font-size: .76rem; font-weight: 630; }
.empty-ticket p { font-size: .67rem; line-height: 1.3; }
.ticket-card { margin: 8px; border-radius: 2px; }
.ticket-identity { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 9px 10px 10px; border-bottom: 1px solid var(--line); }
.ticket-card.back .ticket-identity { background: rgba(102,196,239,.13); }
.ticket-card.lay .ticket-identity { background: rgba(238,154,187,.14); }
.ticket-identity strong { grid-column: 1 / -1; width: max-content; padding: 3px 6px; color: #fff; border-radius: 2px; font-size: .62rem; font-weight: 720; letter-spacing: .055em; }
.ticket-card.back .ticket-identity strong { background: var(--back-700); }
.ticket-card.lay .ticket-identity strong { background: var(--lay-700); }
.ticket-identity b { min-width: 0; overflow: hidden; color: var(--ink-950); font-size: .8rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ticket-identity small { grid-column: 1; color: var(--ink-500); font-size: .65rem; }
.ticket-identity span { grid-column: 2; grid-row: 2 / 4; align-self: end; max-width: 105px; overflow: hidden; color: var(--ink-900); font-size: .71rem; font-weight: 650; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ticket-inputs { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 7px; padding: 9px 10px 8px; border-block: 0; border-bottom: 1px solid var(--line); }
.ticket-inputs input { height: 39px; border-radius: 2px; font-weight: 620; }
.ticket-inputs input:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--navy-700); }
.stepper { grid-template-columns: 36px minmax(0, 1fr) 36px; }
.stepper button { min-width: 36px; font-size: 1rem; }
.stepper button:first-child { border-radius: 2px 0 0 2px; }
.stepper button:last-child { border-radius: 0 2px 2px 0; }
.quick-stakes { padding: 7px 10px; }
.quick-stakes button { min-width: 0; border-radius: 2px; font-weight: 650; }
.stepper button:focus-visible, .quick-stakes button:focus-visible, .keep-live:focus-within, .place-order:focus-visible, .mobile-close:focus-visible, .ticket-close:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.indicative { align-items: baseline; gap: 4px 10px; padding: 9px 10px 8px; border-bottom: 1px solid var(--line-soft); }
.indicative b { font-size: .9rem; font-weight: 700; text-align: right; }
.keep-live { min-height: 37px; padding: 6px 10px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.keep-live input { width: 16px; height: 16px; margin: 0; }
.ticket-feedback { margin: 7px 10px 0; padding: 7px 8px; border-radius: 2px; font-size: .67rem; }
.rail-feedback { margin-block: 9px; }
.place-order { height: 43px; margin-top: 9px; border-radius: 2px; font-size: .75rem; font-weight: 700; }
.place-order.back { box-shadow: inset 4px 0 0 var(--back-500); }
.place-order.lay { box-shadow: inset 4px 0 0 var(--lay-500); }
.betslip-notice { margin: 8px; padding: 7px; border-radius: 2px; font-size: .64rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Technical two-tab order console */
.betslip-tabs { position: sticky; z-index: 3; top: 0; height: 48px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-bottom: 1px solid var(--line-strong); }
.betslip-tabs > button[role="tab"] { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; color: var(--ink-500); background: #fff; border: 0; border-right: 1px solid var(--line); font-size: .76rem; font-weight: 680; }
.betslip-tabs > button[role="tab"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; content: ''; background: transparent; }
.betslip-tabs > button[role="tab"].active { color: var(--navy-950); }
.betslip-tabs > button[role="tab"].active::after { background: var(--navy-700); }
.betslip-tabs > button[role="tab"] b { min-width: 20px; height: 20px; display: grid; place-items: center; padding-inline: 5px; color: var(--navy-950); background: #e9eef3; border-radius: 10px; font-size: .62rem; }
.betslip-tabs > button[role="tab"].active b { background: var(--gold-400); }
.betslip-tabs > button:focus-visible { z-index: 1; outline: 2px solid var(--gold-500); outline-offset: -3px; }
.betslip-tabs > .mobile-close { position: absolute; right: 4px; top: 7px; color: var(--navy-800); }

.ticket-card { margin: 8px; border-top-width: 1px; }
.ticket-card.back, .ticket-card.lay { border-top-width: 1px; }
.ticket-market { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; color: var(--navy-950); background: #e8f3fb; border-bottom: 1px solid var(--line-strong); }
.ticket-card.lay .ticket-market { background: #fbeaf0; }
.ticket-market b { font-size: .68rem; font-weight: 740; letter-spacing: .035em; text-transform: uppercase; }
.ticket-market .ticket-close { width: 28px; height: 28px; color: var(--navy-700); }
.ticket-market .ticket-close:hover { background: rgba(4,31,59,.06); border-color: var(--line-strong); }
.ticket-identity { min-height: 52px; grid-template-columns: 1fr auto; align-items: center; gap: 1px 8px; padding: 7px 10px; background: #fff !important; }
.ticket-identity span { grid-column: 1; grid-row: 1; align-self: center; max-width: none; color: var(--ink-950); font-size: .83rem; text-align: left; }
.ticket-identity strong { grid-column: 2; grid-row: 1; }
.ticket-identity small { grid-column: 1 / -1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-inputs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; padding: 0; background: #fff; border-bottom: 1px solid var(--line-strong); }
.ticket-inputs label { padding: 7px 8px 9px; background: #edf6fc; }
.ticket-card.lay .ticket-inputs label { background: #fceff3; }
.ticket-inputs label + label { border-left: 1px solid var(--line-strong); }
.ticket-inputs label > span { margin-bottom: 5px; color: var(--navy-800); font-size: .62rem; font-weight: 690; letter-spacing: .035em; text-transform: uppercase; }
.odds-stepper, .stake-control { display: grid; grid-template-columns: 32px minmax(0,1fr) 32px; }
.odds-stepper button, .stake-control button { min-width: 32px; height: 38px; padding: 0; color: var(--navy-800); background: #fff; border: 1px solid var(--line-strong); font-size: 1rem; font-weight: 700; }
.odds-stepper button:first-child, .stake-control button:first-child { border-radius: 2px 0 0 2px; }
.odds-stepper button:last-child, .stake-control button:last-child { border-radius: 0 2px 2px 0; }
.odds-stepper input, .stake-control input { height: 38px; border-inline: 0; border-radius: 0; font-variant-numeric: tabular-nums; }
.odds-stepper button:hover, .stake-control button:hover { background: #e5ebf0; }
.odds-stepper button:focus-visible, .stake-control button:focus-visible { z-index: 1; outline: 2px solid var(--gold-500); outline-offset: -2px; }
.quick-stakes { gap: 5px; padding: 7px 8px; background: #fff; border-bottom-color: var(--line-strong); }
.quick-stakes button { height: 32px; background: #f2f5f7; }
.indicative { padding: 8px 10px 7px; }
.indicative span { font-size: .7rem; }
.indicative b { font-size: .86rem; }
.keep-live { color: #fff; background: var(--navy-850); border-bottom: 0; }
.keep-live input { accent-color: var(--gold-500); }
.place-order { width: calc(100% - 16px); margin: 8px; color: var(--navy-950); background: var(--gold-400); border-color: #cf9e22; box-shadow: none !important; letter-spacing: .055em; }
.place-order:hover:not(:disabled) { background: var(--gold-500); }

.open-bets-panel { min-height: 190px; }
.open-bets-panel > header { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 11px; color: #fff; background: var(--navy-850); border-bottom: 1px solid var(--navy-950); }
.open-bets-panel > header span { font-size: .65rem; font-weight: 720; letter-spacing: .045em; }
.open-bets-panel > header button { min-height: 28px; padding: 0 8px; color: #fff; background: transparent; border: 1px solid #617185; border-radius: 2px; font-size: .63rem; }
.open-bets-panel > header button:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.open-bets-list { background: #fff; }
.open-bet { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 9px 9px 8px 12px; border-bottom: 1px solid var(--line-strong); }
.open-bet::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; content: ''; background: var(--back-500); }
.open-bet.lay::before { background: var(--lay-500); }
.open-bet-title { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.open-bet-title b { overflow: hidden; color: var(--ink-950); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.open-bet-title span { flex: 0 0 auto; padding: 3px 5px; color: #70540f; background: #fff3cf; border: 1px solid #dcc069; border-radius: 2px; font-size: .58rem; font-weight: 680; }
.open-bet > small { grid-column: 1 / -1; color: var(--ink-500); font-size: .62rem; }
.open-bet dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 5px 0 0; }
.open-bet dl div { min-width: 0; }
.open-bet dt { color: var(--ink-500); font-size: .56rem; text-transform: uppercase; }
.open-bet dd { margin: 2px 0 0; color: var(--ink-900); font-size: .68rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.open-bet > button { align-self: end; min-height: 30px; padding: 0 9px; color: var(--navy-800); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font-size: .62rem; font-weight: 630; }
.open-bet > button:hover { background: #eef2f5; }
.open-bets-empty { min-height: 126px; display: grid; grid-template-columns: 26px 1fr; align-content: center; gap: 3px 8px; padding: 18px; color: var(--ink-500); background: #fff; }
.open-bets-empty svg { grid-row: 1 / 3; width: 22px; color: var(--navy-500); }
.open-bets-empty b { color: var(--ink-800); font-size: .73rem; }
.open-bets-empty small { font-size: .63rem; }

/* Event detail */
.detail-loading { padding: 48px; color: var(--ink-500); text-align: center; }
.market-sidebar { padding-bottom: 16px; }
.market-link { width: calc(100% - 12px); min-height: 52px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 2px 8px; margin: 6px; padding: 7px 9px; color: var(--ink-700); background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); text-align: left; }
.market-link.selected { color: var(--navy-900); background: #e8eef3; border-color: #d9e1e8; box-shadow: inset 3px 0 0 var(--gold-500); }
.market-link > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; color: var(--navy-700); }
.market-link svg { width: 18px; height: 18px; }
.market-link b { font-size: .76rem; font-weight: 620; }
.market-link small { color: var(--ink-500); font-size: .63rem; }
.sidebar-collapsed .market-link { width: 48px; grid-template-columns: 1fr; justify-items: center; margin-inline: 7px; padding: 0; }
.sidebar-collapsed .market-link b, .sidebar-collapsed .market-link small { display: none; }
.detail-main { padding-top: 12px; }
.back-command { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 0 9px; color: var(--navy-700); background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: .71rem; font-weight: 620; }
.back-command:hover { background: #fff; }
.back-command svg { width: 15px; height: 15px; }
.event-header { position: relative; min-height: 88px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 18px; padding: 12px 15px 18px; color: #fff; background: var(--navy-900); border: 1px solid var(--navy-975); border-bottom: 2px solid var(--gold-500); }
.event-back-link { position: absolute; z-index: 2; top: 10px; left: 11px; min-width: 68px; height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; color: var(--navy-950); background: var(--gold-400); border: 1px solid #a77910; border-radius: 2px; font-size: .66rem; font-weight: 780; }
.event-back-link:hover { color: var(--navy-950); background: var(--gold-500); }
.event-back-link svg { width: 14px; height: 14px; }
.detail-favourite { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: #91a4b7; background: transparent; border: 1px solid transparent; border-radius: 2px; }
.detail-favourite:hover { color: var(--gold-400); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.detail-favourite.selected { color: var(--gold-400); }
.detail-favourite.selected svg { fill: var(--gold-400); }
.detail-favourite svg { width: 18px; height: 18px; }
.event-identity h1 { margin: 3px 0 2px; font-size: 1.3rem; font-weight: 680; letter-spacing: -.025em; }
.event-identity h1 span { color: var(--gold-400); }
.event-identity .live-score { display: inline-flex; align-items: center; margin-inline: 7px; padding: 2px 9px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(222,177,55,.65); border-radius: 3px; font-size: .92em; font-variant-numeric: tabular-nums; }
.event-identity p { margin: 0; color: #aab9c7; font-size: .7rem; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: #5ce3a5; font-weight: 720; letter-spacing: .07em; }
.live-indicator i { width: 7px; height: 7px; background: #35d58d; border-radius: 50%; box-shadow: 0 0 0 3px rgba(53,213,141,.12); }
.live-indicator b { padding-left: 5px; color: #fff; border-left: 1px solid rgba(255,255,255,.2); font-weight: 650; letter-spacing: 0; }
.event-header .eyebrow { color: var(--gold-400); font-size: .66rem; }
.event-facts { display: flex; align-items: center; gap: 17px; }
.event-facts > span { min-width: 82px; display: flex; flex-direction: column; gap: 2px; }
.event-facts small { color: #8fa3b6; font-size: .62rem; }
.event-facts b { color: #fff; font-size: .76rem; font-weight: 610; white-space: nowrap; }
.detail-market { position: relative; margin-top: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); }
.primary-market-meta { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px 6px 10px; color: var(--ink-500); background: #f5f7f8; border-left: 3px solid var(--gold-500); border-bottom: 1px solid var(--line); }
.primary-market-meta span { overflow: hidden; color: var(--ink-950); font-size: .76rem; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.primary-market-meta b { flex: 0 0 auto; color: var(--ink-800); font-size: .58rem; font-weight: 620; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail-suspension { position: absolute; z-index: 4; top: 5px; left: 50%; min-width: 112px; padding: 4px 12px; color: #fff; background: #cf1735; border: 1px solid #a90e28; border-radius: 2px; box-shadow: 0 2px 5px rgba(77,9,20,.18); font-size: .64rem; font-weight: 780; letter-spacing: .06em; text-align: center; transform: translateX(-50%); }
.depth-head, .runner-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(468px, 600px); align-items: center; gap: 10px; padding: 5px 10px; }
.depth-head { min-height: 29px; color: var(--ink-500); background: #e7ebef; border-bottom: 1px solid var(--line-strong); font-size: .62rem; font-weight: 680; letter-spacing: .05em; text-transform: uppercase; }
.depth-head > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; text-align: center; }
.depth-head > div b { padding: 2px 0; font-size: .59rem; font-weight: 720; }
.depth-head .depth-back { color: #073a55; background: #9ed9f2; border-right: 4px solid var(--line-strong); }
.depth-head .depth-lay { color: #4b1027; background: #f2b2c5; }
.runner-row { min-height: 58px; border-top: 1px solid var(--line); }
.runner-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.runner-name b { overflow: hidden; color: var(--ink-950); font-size: .81rem; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.runner-name small { color: var(--ink-500); font-size: .64rem; }
.depth-grid { min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(62px, 1fr)); gap: 2px; }
.depth-grid .odds-cell { height: 45px; }
.depth-grid .cell-side { display: none; }
.depth-grid .odds-cell:nth-child(3) { margin-right: 4px; }
.depth-grid .odds-cell:nth-child(4) { margin-left: 0; }
.depth-grid .odds-cell:nth-child(1) { background: #e9f5fa; border-color: #d2e5ed; }
.depth-grid .odds-cell:nth-child(2) { background: #cae8f4; border-color: #afd9e9; }
.depth-grid .odds-cell:nth-child(3) { background: #91d1ed; border-color: #6fbddd; }
.depth-grid .odds-cell:nth-child(4) { background: #f2abc0; border-color: #e88daa; }
.depth-grid .odds-cell:nth-child(5) { background: #f4c9d5; border-color: #eab2c3; }
.depth-grid .odds-cell:nth-child(6) { background: #f8e5ea; border-color: #efd2db; }
.depth-grid .odds-cell b { color: #071522; opacity: 1; }
.depth-grid .odds-cell small { color: #34495e; opacity: 1; }
.depth-grid .odds-cell:hover, .depth-grid .odds-cell.selected { filter: brightness(.96) saturate(1.08); opacity: 1; }
.related-markets { margin-top: 10px; border: 1px solid var(--line-strong); background: #eef1f4; }
.related-markets-heading { min-height: 45px; display: flex; align-items: stretch; justify-content: flex-start; color: #fff; background: var(--navy-900); border-bottom: 2px solid var(--gold-500); }
.related-markets-heading h2 { display: flex; align-items: center; margin: 0; padding: 0 16px 0 12px; font-size: .88rem; font-weight: 680; }
.related-markets-heading h2 small { min-width: 20px; height: 20px; display: grid; place-items: center; margin-left: 7px; padding: 0 5px; color: var(--navy-950); background: var(--gold-400); border-radius: 10px; font-size: .58rem; font-variant-numeric: tabular-nums; }
.related-markets-heading nav { display: flex; align-items: stretch; }
.related-markets-heading nav button { min-width: 70px; padding: 0 10px; color: #9fb0c0; background: transparent; border: 0; border-left: 1px solid #29435f; font-size: .63rem; font-weight: 650; }
.related-markets-heading nav button:hover, .related-markets-heading nav button.active { color: var(--navy-950); background: var(--gold-500); }
.related-markets-heading nav button small { margin-left: 3px; color: inherit; font-size: .54rem; }
.market-search { width: 180px; height: 30px; display: flex; align-items: center; gap: 5px; align-self: center; margin: 5px 7px 5px auto; padding: 0 7px; color: #7f94a8; background: #fff; border: 1px solid #405a73; border-radius: 2px; }
.market-search svg { width: 14px; height: 14px; flex: 0 0 auto; }
.market-search input { min-width: 0; width: 100%; height: 100%; padding: 0; color: var(--ink-900); background: transparent; border: 0; outline: 0; font-size: .65rem; }
.condensed-market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; align-items: start; }
.condensed-market { scroll-margin-top: calc(var(--topbar-height) + 10px); overflow: hidden; background: #fff; border: 1px solid var(--line-strong); }
.condensed-market.correct-score-market { grid-column: 1 / -1; }
.condensed-market > header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px 6px 10px; border-left: 3px solid var(--gold-500); border-bottom: 1px solid var(--line); background: #f5f7f8; }
.condensed-market > header div { min-width: 0; }
.condensed-market > header span { color: var(--ink-500); font-size: .55rem; font-weight: 670; letter-spacing: .07em; }
.condensed-market > header h3 { overflow: hidden; margin: 1px 0 0; color: var(--ink-950); font-size: .76rem; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.condensed-market > header p { margin: 0; color: var(--ink-500); font-size: .58rem; white-space: nowrap; }
.condensed-market > header p b { color: var(--ink-800); font-variant-numeric: tabular-nums; }
.condensed-suspension { flex: 0 0 auto; padding: 3px 7px; color: #fff; background: #cf1735; border-radius: 2px; font-size: .57rem; font-weight: 760; letter-spacing: .055em; }
.condensed-column-head, .condensed-runner { display: grid; grid-template-columns: minmax(110px, 1fr) 66px 66px; align-items: center; gap: 2px; padding: 3px 7px; }
.condensed-column-head { min-height: 25px; color: var(--ink-500); background: #e7ebef; border-bottom: 1px solid var(--line-strong); font-size: .56rem; font-weight: 690; text-transform: uppercase; }
.condensed-column-head b { font-size: .56rem; text-align: center; }
.condensed-column-head b:nth-child(2) { color: var(--back-700); }
.condensed-column-head b:nth-child(3) { color: var(--lay-700); }
.condensed-runner { min-height: 47px; border-bottom: 1px solid var(--line); }
.condensed-runner:last-child { border-bottom: 0; }
.condensed-runner > span { overflow: hidden; color: var(--ink-900); font-size: .69rem; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.condensed-runner .odds-cell { height: 39px; }
.condensed-runner .odds-cell b { font-size: .74rem; }
.condensed-runner .odds-cell small { font-size: .53rem; }
.condensed-runner .cell-side { display: none; }
.market-show-more, .markets-show-more { width: 100%; min-height: 32px; padding: 0 10px; color: #075f92; background: #f5f8fa; border: 0; border-top: 1px solid var(--line); font-size: .62rem; font-weight: 680; }
.market-show-more:hover, .markets-show-more:hover { color: #033e61; background: #eaf1f5; }
.market-show-more small { margin-left: 5px; color: var(--ink-500); }
.markets-show-more { min-height: 38px; border-top-color: var(--line-strong); }
.market-empty { padding: 28px 14px; color: var(--ink-500); background: #fff; text-align: center; font-size: .72rem; }
.correct-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 7px; background: #edf1f4; }
.score-column { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); }
.score-column > header, .score-selection { display: grid; grid-template-columns: minmax(70px, 1fr) 66px 66px; align-items: center; gap: 2px; padding: 3px 5px; }
.score-column > header { min-height: 28px; color: var(--ink-700); background: #e4e9ee; border-bottom: 1px solid var(--line-strong); font-size: .57rem; }
.score-column > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-column > header span { font-weight: 720; text-align: center; }
.score-column > header span:nth-child(2) { color: var(--back-700); }
.score-column > header span:nth-child(3) { color: var(--lay-700); }
.score-selection { min-height: 43px; border-bottom: 1px solid var(--line); }
.score-selection:last-child { border-bottom: 0; }
.score-selection > span { color: var(--ink-950); font-size: .7rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.score-selection .odds-cell { height: 36px; }
.score-selection .odds-cell b { font-size: .71rem; }
.score-selection .odds-cell small { font-size: .5rem; }
.score-selection .cell-side { display: none; }
.placeholder { max-width: 720px; margin: 50px auto; padding: 28px; background: #fff; border: 1px solid var(--line-strong); }
.placeholder h1 { margin: 7px 0; }
.placeholder p { color: var(--ink-700); line-height: 1.6; }

/* Professional terminal refinement */
html { scrollbar-gutter: stable; }
body { line-height: 1.35; }
.topbar { border-bottom: 1px solid #132d49; box-shadow: 0 2px 7px rgba(2,10,20,.18); }
.topbar-main { border-bottom: 1px solid rgba(255,255,255,.055); }
.global-search { border-radius: 3px; box-shadow: inset 0 1px 1px rgba(2,10,20,.035); }
.wallet-panel, .player-button, .player-menu { border-radius: 4px; }
.sports-sidebar, .betslip-rail { box-shadow: none; }
.sidebar-heading { background: #f7f9fa; border-bottom-color: var(--line-strong); }
.sport-list button, .competition-list button, .market-link { border-radius: 2px; }
.exchange-main { padding: 14px; }
.market-toolbar { min-height: 51px; margin-bottom: 8px; padding: 0 2px 7px; border-bottom: 1px solid var(--line); }
.market-toolbar h1 { letter-spacing: -.018em; }
.market-caption { min-height: 44px; font-weight: 680; }
.event-list { border-color: #aeb9c5; }
.event-row:nth-child(even) { background: #fbfcfd; }
.event-row:hover { background: #f3f6f8; box-shadow: inset 3px 0 0 var(--gold-500); }
.event-row:focus-within { position: relative; z-index: 1; box-shadow: inset 3px 0 0 var(--gold-500); }
.event-name b { letter-spacing: -.008em; }
.odds-cell { border-radius: 1px; }
.betslip-tabs { box-shadow: inset 0 -1px 0 rgba(4,16,31,.04); }
.betslip-tabs > button[role="tab"].active { background: #f8fafb; }
.ticket-card, .open-bet, .detail-market { box-shadow: none; }
.ticket-card { border-color: #aeb9c5; }
.open-bets-panel > header, .ticket-market { letter-spacing: .02em; }
.place-order { font-weight: 760; }

/* Unified NEXA exchange terminal */
@media (min-width: 901px) {
  :root { --topbar-height: 108px; }
  .topbar-main { height: 66px; }
  .sportbar { height: 42px; }
}
.app-shell { min-height: 100vh; background: #e9edf1; }
.topbar { background: #030f1e; border-bottom: 0; box-shadow: 0 2px 8px rgba(2,10,20,.24); }
.topbar-main { background: linear-gradient(90deg, #04101f 0%, #071a30 58%, #061525 100%); }
.sportbar { background: #0b2036; border-top: 1px solid #193651; border-bottom: 2px solid var(--gold-500); }
.sport-nav button, .sport-nav a { letter-spacing: .012em; }
.sport-nav button.active, .sport-nav a.active { box-shadow: inset 0 -2px 0 #fff; }
.exchange-layout { align-items: start; background: #e9edf1; }
.sports-sidebar, .betslip-rail { position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #aeb9c5 transparent; }
.sports-sidebar { background: #f8fafb; border-color: #aeb9c5; }
.sidebar-heading { position: sticky; z-index: 2; top: 0; height: 40px; padding-inline: 11px; color: #fff; background: var(--navy-850); border-bottom: 2px solid var(--gold-500); font-size: .65rem; }
.sidebar-heading button { color: #d8e1e9; background: transparent; border-color: #496078; }
.sidebar-heading button:hover { color: #fff; background: rgba(255,255,255,.07); border-color: #718398; }
.sport-list, .competition-list { padding: 4px; }
.sport-list button, .competition-list button { min-height: 36px; gap: 8px; padding-inline: 8px; border-bottom: 1px solid #e3e8ed; }
.sport-list button:last-child, .competition-list button:last-child { border-bottom-color: transparent; }
.sport-list button:hover:not(:disabled), .competition-list button:hover { color: var(--navy-900); background: #edf1f4; }
.sport-list button.selected, .competition-list button.selected { background: #e3e9ee; border-color: #cbd4dc; box-shadow: inset 3px 0 0 var(--gold-500); }
.sidebar-section { padding: 10px 12px 6px; color: #516276; background: #edf1f4; border-block: 1px solid #d3dae2; font-size: .6rem; }
.exchange-main { padding: 8px; }
.exchange-controlbar { min-height: 43px; border-left-width: 4px; }
.exchange-control-title { padding-block: 4px; }
.exchange-time-filters { padding-block: 4px; }
.exchange-time-filters button { min-height: 28px; }
.market-caption { min-height: 25px; background: #dfe4e9; border-color: #aeb9c5; font-size: .58rem; }
.market-caption > div { padding-block: 2px; }
.outcome-head > b { font-size: .65rem; }
.competition-block + .competition-block { margin-top: 6px; }
.competition-band { min-height: 25px; padding-inline: 7px; background: #182b3e; }
.competition-band > h2 { font-size: .61rem; }
.event-list { border-color: #aeb9c5; }
.event-row { min-height: 47px; }
.event-time { padding: 3px; font-size: .6rem; }
.event-name { gap: 0; padding: 3px 9px; }
.event-name b { font-size: .73rem; line-height: 1.05; }
.event-name small { font-size: .54rem; line-height: 1; text-transform: uppercase; }
.matched { gap: 1px; padding-block: 3px; }
.matched small { font-size: .55rem; }
.matched b { font-size: .68rem; }
.market-grid { grid-template-columns: repeat(3, minmax(118px, 132px)); gap: 8px; padding: 2px 4px; }
.selection-pair { gap: 1px; }
.odds-cell { height: 40px; border-color: rgba(8,36,61,.12); }
.odds-cell.back { background: #afdff5; }
.odds-cell.lay { background: #f3bed1; }
.odds-cell b { font-size: .82rem; }
.odds-cell small { font-size: .55rem; }
.betslip-rail { background: #f1f4f6; border-color: #aeb9c5; }
.betslip-tabs { height: 43px; background: #fff; }
.betslip-tabs > button[role="tab"] { font-size: .7rem; }
.betslip-tabs > button[role="tab"].active { color: #fff; background: var(--navy-850); }
.betslip-tabs > button[role="tab"].active::after { background: var(--gold-500); }
.ticket-card { margin: 6px; }
.ticket-market { height: 34px; }
.ticket-identity { min-height: 48px; }
.quick-stakes { padding-block: 6px; }
.betslip-notice { margin: 6px; }
.detail-main { padding: 8px; }
.back-command { min-height: 29px; margin-bottom: 6px; }
.event-header { min-height: 82px; }
.detail-market, .related-markets { margin-top: 7px; }
.runner-row { min-height: 54px; }
.related-markets-heading { min-height: 41px; }
.condensed-market-grid { gap: 6px; padding: 6px; }
.condensed-market > header { min-height: 40px; }
.condensed-runner { min-height: 44px; }
.market-link { min-height: 46px; margin-block: 4px; }

/* In-Play filters and compact execution surfaces */
.inplay-tools { min-height: 66px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 14px; padding: 6px 8px; background: #f7f9fa; border: 1px solid var(--line-strong); border-bottom: 0; }
.inplay-sports { min-width: 0; display: flex; align-items: center; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-bottom: 7px; scrollbar-color: #8293a2 #e1e6ea; scrollbar-gutter: stable; scrollbar-width: thin; }
.inplay-sports::-webkit-scrollbar { height: 8px; }
.inplay-sports::-webkit-scrollbar-track { background: #e1e6ea; border-radius: 4px; }
.inplay-sports::-webkit-scrollbar-thumb { background: #8293a2; border: 1px solid #e1e6ea; border-radius: 4px; }
.inplay-sports::-webkit-scrollbar-thumb:hover { background: #617586; }
.inplay-sports button { position: relative; min-width: 66px; height: 45px; flex: 0 0 auto; display: grid; grid-template-columns: 19px 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 0 6px; padding: 4px 9px; color: var(--ink-700); background: #fff; border: 1px solid var(--line); border-radius: 2px; font-size: .63rem; text-align: left; }
.inplay-sports button svg { grid-row: 1 / 3; width: 19px; height: 19px; color: var(--navy-700); }
.inplay-sports button span { align-self: end; font-weight: 670; }
.inplay-sports button b { align-self: start; color: var(--success); font-size: .58rem; font-variant-numeric: tabular-nums; }
.inplay-sports button:hover { background: #eef3f6; border-color: #aeb9c5; }
.inplay-sports button.active { color: var(--navy-950); background: #fff8e3; border-color: var(--gold-500); box-shadow: inset 0 -3px 0 var(--gold-500); }
.inplay-selects { display: flex; align-items: center; gap: 7px; }
.inplay-selects label { display: flex; flex-direction: column; gap: 2px; color: var(--ink-500); font-size: .53rem; font-weight: 680; letter-spacing: .045em; text-transform: uppercase; }
.inplay-selects select { min-width: 122px; height: 32px; padding: 0 28px 0 8px; color: var(--ink-900); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font-size: .65rem; font-weight: 620; }
.inplay-sports button:focus-visible, .inplay-selects select:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }

.market-caption.two-way > div, .market-grid.two-way { grid-template-columns: repeat(2, minmax(122px, 136px)); }
.market-grid.two-way .selection-pair:nth-child(2) { grid-column: auto; }
.event-row.quick-bet-open { grid-template-rows: auto auto; }
.event-row.quick-bet-open > :not(.quick-bet-host) { grid-row: 1; }
.quick-bet-host { min-width: 0; grid-column: 1 / -1; grid-row: 2; }
.quick-bet-bar { min-height: 51px; display: grid; grid-template-columns: minmax(160px, 1fr) 58px 140px 92px minmax(148px, 188px) 112px; align-items: center; gap: 7px; padding: 5px 7px; background: #eef6fb; border-top: 1px solid #9fc8dc; box-shadow: inset 3px 0 0 var(--back-600); }
.quick-bet-bar.lay { background: #fceff3; border-top-color: #dfa4b9; box-shadow: inset 3px 0 0 var(--lay-600); }
.quick-bet-selection { min-width: 0; display: flex; align-items: center; gap: 7px; }
.quick-bet-selection > strong { flex: 0 0 auto; padding: 3px 5px; color: #fff; background: var(--back-700); border-radius: 2px; font-size: .57rem; letter-spacing: .045em; }
.quick-bet-bar.lay .quick-bet-selection > strong { background: var(--lay-700); }
.quick-bet-selection > span { min-width: 0; display: flex; flex-direction: column; }
.quick-bet-selection b, .quick-bet-selection small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-bet-selection b { color: var(--ink-950); font-size: .68rem; }
.quick-bet-selection small { color: var(--ink-500); font-size: .55rem; }
.quick-bet-cancel, .quick-bet-stakes button { height: 31px; color: var(--ink-700); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font-size: .59rem; font-weight: 620; }
.quick-odds, .quick-stake { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; }
.quick-odds > span, .quick-stake > span { color: var(--ink-500); font-size: .55rem; font-weight: 680; text-transform: uppercase; }
.quick-odds > div { min-width: 0; display: grid; grid-template-columns: 27px minmax(46px,1fr) 27px; }
.quick-odds button { height: 32px; padding: 0; color: var(--navy-800); background: #fff; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 750; }
.quick-odds input, .quick-stake input { min-width: 0; width: 100%; height: 32px; padding: 0 5px; color: #071522; background: #fff; border: 1px solid var(--line-strong); border-radius: 0; font-size: .69rem; font-weight: 680; text-align: center; font-variant-numeric: tabular-nums; }
.quick-odds input { border-inline: 0; }
.quick-stake { grid-template-columns: 1fr; gap: 1px; }
.quick-stake > span { display: none; }
.quick-bet-stakes { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.quick-bet-stakes button { min-width: 0; padding: 0 3px; }
.quick-place-order { min-width: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--navy-950); background: #e5b83f; border: 1px solid #bd8d16; border-radius: 2px; font-size: .62rem; font-weight: 780; letter-spacing: .035em; }
.quick-place-order:hover:not(:disabled) { background: #efc859; }
.quick-place-order:disabled:not(.is-countdown) { color: #8996a3; background: #dbe0e5; border-color: #cbd2d9; }
.quick-bet-bar button:focus-visible, .quick-bet-bar input:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--gold-600); outline-offset: 1px; }

.place-order { background: #e5b83f; border-color: #bd8d16; }
.place-order:hover:not(:disabled) { background: #efc859; }
.place-order.is-countdown:disabled, .quick-place-order.is-countdown:disabled { cursor: wait; color: var(--navy-950); background: #e5b83f; border-color: #bd8d16; opacity: 1; }
.place-order-countdown { color: #075d8a; font-size: 1rem; font-weight: 820; font-variant-numeric: tabular-nums; }

/* Match Odds uses the same compact cell geometry as secondary markets. */
.depth-head, .runner-row { grid-template-columns: minmax(130px, 1fr) 408px; padding-block: 4px; }
.runner-row { min-height: 49px; }
.depth-grid { grid-template-columns: repeat(6, 66px); }
.depth-grid .odds-cell { height: 39px; }
.depth-grid .odds-cell b { font-size: .74rem; }
.depth-grid .odds-cell small { font-size: .53rem; }

@media (max-width: 1450px) {
  :root { --sidebar-width: 210px; --ticket-width: 350px; }
  .topbar-main { gap: 7px; padding: 0 22px 0 10px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-copy b { font-size: 1.02rem; }
  .brand-copy small { font-size: .5rem; }
  .brand-separator { height: 32px; }
  .primary-nav a { padding-inline: 7px; font-size: .77rem; }
  .search-wrap { width: clamp(240px, 28vw, 360px); }
  .global-search { height: 34px; }
  .global-search kbd { display: none; }
  .account-strip { gap: 6px; }
  .wallet-panel { width: 178px; height: 50px; padding-inline: 8px; }
  .player-control, .player-button { height: 38px; }
  .player-button { min-width: 96px; padding-inline: 8px; }
  .quick-bet-bar { grid-template-columns: minmax(125px,1fr) 52px 130px 76px minmax(130px,160px) 102px; gap: 5px; }
}

@media (max-width: 1240px) {
  .exchange-layout, .exchange-layout.sidebar-collapsed { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
  .exchange-layout.sidebar-collapsed { grid-template-columns: var(--sidebar-compact) minmax(0, 1fr); }
  .betslip-rail { position: fixed; z-index: 70; right: 0; top: var(--topbar-height); bottom: 0; width: var(--ticket-width); overflow-y: auto; border-left: 1px solid var(--line-strong); transform: translateX(101%); transition: transform 140ms ease; }
  .betslip-rail.mobile-open { transform: translateX(0); }
  .mobile-close { display: grid; }
  .betslip-tabs > button[role="tab"]:nth-child(2) { padding-right: 38px; }
  .mobile-ticket-trigger { position: fixed; z-index: 60; right: 16px; bottom: 16px; height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #fff; background: var(--navy-850); border: 1px solid var(--gold-500); border-radius: var(--radius-sm); font-size: .75rem; font-weight: 650; }
  .mobile-ticket-trigger > svg { width: 17px; height: 17px; }
  .mobile-ticket-trigger b { width: 19px; height: 19px; display: grid; place-items: center; color: var(--navy-950); background: var(--gold-400); border-radius: 50%; font-size: .64rem; }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 208px; }
  :root { --topbar-height: 224px; }
  .topbar-main { height: 176px; display: grid; grid-template-columns: minmax(130px, 1fr) auto; grid-template-rows: 46px 34px 46px 42px; grid-template-areas: "brand player" "nav nav" "wallet wallet" "search search"; gap: 2px 8px; padding: 4px 10px; }
  .brand { grid-area: brand; }
  .brand-symbol { width: 34px; height: 34px; }
  .brand-copy { display: flex; }
  .brand-separator { display: none; }
  .primary-nav { grid-area: nav; align-self: stretch; }
  .primary-nav a { padding-inline: 9px; font-size: .75rem; }
  .primary-nav a.active::after { right: 9px; left: 9px; }
  .search-wrap { position: relative; left: auto; grid-area: search; width: 100%; max-width: none; transform: none; }
  .global-search { height: 38px; }
  .account-strip { display: contents; }
  .wallet-panel { grid-area: wallet; width: 100%; height: 44px; align-self: center; }
  .player-control { grid-area: player; height: 36px; align-self: center; }
  .player-button { height: 36px; min-width: 92px; }
  .player-menu { top: calc(100% + 7px); }
  .market-grid { grid-template-columns: repeat(3, minmax(106px, 1fr)); }
  .market-caption, .event-row { grid-template-columns: 64px minmax(140px, 1fr) 32px 74px minmax(330px, 1fr); }
}

@media (max-width: 820px) {
  .exchange-layout, .exchange-layout.sidebar-collapsed { display: block; }
  .exchange-layout { width: 100%; max-width: none; }
  .sports-sidebar { position: sticky; z-index: 35; top: var(--topbar-height); display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-strong); scrollbar-width: none; }
  .sidebar-heading, .sidebar-section, .competition-list, .country-list { display: none; }
  .sport-list { display: flex; gap: 2px; padding: 5px 7px; }
  .sport-list button { width: auto; min-height: 35px; gap: 6px; padding: 0 10px; }
  .sport-list button.selected { box-shadow: inset 0 -3px 0 var(--gold-500); }
  .sidebar-collapsed .sport-list b { display: block; }
  .sport-list small { display: none; }
  .exchange-main { padding: 10px 7px 72px; }
  .inplay-tools { overflow-x: auto; }
  .inplay-selects { flex: 0 0 auto; }
  .exchange-controlbar { grid-template-columns: minmax(0,1fr) auto; }
  .exchange-control-title { padding-inline: 9px; }
  .exchange-control-title > div { display: block; }
  .exchange-control-title small { display: none; }
  .exchange-control-title h1 { font-size: .82rem; }
  .exchange-time-filters { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; scrollbar-width: none; }
  .exchange-time-filters button { flex: 1 0 auto; }
  .exchange-total { grid-column: 2; grid-row: 1; min-width: 104px; }
  .market-toolbar { min-height: 46px; margin-bottom: 7px; }
  .market-toolbar h1 { font-size: 1.14rem; }
  .toolbar-stats span:first-child { display: none; }
  .market-caption { min-height: 38px; grid-template-columns: 1fr; }
  .market-caption > span { display: none; }
  .market-caption > div { grid-column: 1; }
  .outcome-head > b { line-height: 1; }
  .event-row { min-height: 116px; grid-template-columns: 52px minmax(0, 1fr) 32px 66px; grid-template-rows: 52px 64px; }
  .event-time, .event-name, .event-favourite, .matched { grid-row: 1; }
  .event-time { padding: 4px; font-size: .64rem; }
  .event-name { padding: 5px 8px; }
  .event-name b { font-size: .76rem; }
  .matched { padding: 5px; }
  .matched small { font-size: .57rem; }
  .matched b { font-size: .68rem; }
  .market-grid { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; padding: 7px 3px 4px; border-top: 1px solid var(--line-soft); }
  .market-caption.two-way > div, .market-grid.two-way { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .selection-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .runner-table-caption { display: none; }
  .runner-market-summary { grid-template-columns: 62px minmax(0, 1fr) 32px 72px; }
  .runner-list-head, .runner-list-row { grid-template-columns: minmax(120px, 1fr) minmax(76px, 96px) minmax(76px, 96px); padding-left: 7px; }
  .runner-list-row .odds-cell { height: 44px; }
  .odds-cell { height: 49px; }
  .odds-cell b { font-size: .84rem; }
  .odds-cell small { font-size: .58rem; }
  .suspension-banner { top: auto; right: 5px; bottom: 8px; width: calc(100% - 10px); transform: none; }
  .quick-bet-host { display: none; }
  .betslip-rail { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 84vh; border-radius: 8px 8px 0 0; transform: translateY(102%); }
  .betslip-rail.mobile-open { transform: translateY(0); }
  .betslip-heading { position: sticky; z-index: 2; top: 0; border-radius: 8px 8px 0 0; }
  .ticket-card, .betslip-notice { max-width: 480px; margin-inline: auto; }
  .detail-layout { display: block; }
  .market-sidebar { position: static; display: block; padding: 5px; }
  .market-sidebar .sidebar-heading { display: none; }
  .market-link, .sidebar-collapsed .market-link { width: auto; min-width: 190px; grid-template-columns: 30px 1fr; justify-items: initial; margin: 0; padding: 6px 8px; }
  .sidebar-collapsed .market-link b, .sidebar-collapsed .market-link small { display: block; }
  .detail-main { padding-top: 8px; }
  .event-header { min-height: 118px; grid-template-columns: 1fr; gap: 9px; padding: 11px 12px 18px; }
  .event-identity h1 { font-size: 1.08rem; }
  .event-facts { justify-content: space-between; gap: 8px; }
  .event-facts > span { min-width: auto; }
  .depth-head { min-height: 45px; grid-template-columns: 1fr; gap: 3px; padding: 4px 6px; }
  .runner-row { min-height: 72px; grid-template-columns: 1fr; gap: 6px; padding: 7px 5px; }
  .runner-name { padding-left: 2px; }
  .depth-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
  .depth-grid .odds-cell { height: 50px; padding-inline: 1px; }
  .depth-grid .odds-cell b { font-size: .74rem; }
  .depth-grid .odds-cell small { font-size: .53rem; }
  .depth-grid .cell-side { font-size: .47rem; }
  .condensed-market-grid { grid-template-columns: 1fr; }
  .related-markets-heading { display: block; }
  .related-markets-heading nav { min-height: 36px; overflow-x: auto; border-top: 1px solid #29435f; }
  .related-markets-heading nav button { flex: 0 0 auto; }
  .market-search { width: calc(100% - 14px); margin: 6px 7px; }
  .correct-score-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  :root { --topbar-height: 232px; }
  .topbar-main { height: 184px; grid-template-columns: minmax(120px, 1fr) auto; grid-template-rows: 46px 38px 48px 42px; gap: 2px 5px; padding-inline: 6px; }
  .brand-symbol { width: 32px; height: 32px; }
  .brand { gap: 7px; }
  .brand-copy b { font-size: .92rem; }
  .brand-copy small { font-size: .45rem; letter-spacing: .15em; }
  .player-button { min-width: 84px; padding-inline: 7px; }
  .player-button svg:first-child { display: none; }
  .search-wrap { min-width: 36px; }
  .global-search { padding-inline: 8px; }
  .global-search input { font-size: .74rem; }
  .sportbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0; }
  .sport-nav button, .sport-nav a { padding-inline: 12px; }
  .sport-nav button.active, .sport-nav a.active { min-width: 75px; }
  .exchange-main { padding-inline: 5px; }
  .market-toolbar h1 { font-size: 1.05rem; }
  .toolbar-stats { gap: 7px; }
  .event-row { grid-template-columns: 48px minmax(0,1fr) 30px 62px; }
  .market-grid { padding-inline: 2px; }
  .odds-cell b { font-size: .79rem; }
  .odds-cell small { font-size: .55rem; }
  .related-markets-heading { display: block; }
  .related-markets-heading nav { min-height: 34px; border-top: 1px solid #29435f; }
  .related-markets-heading nav button { flex: 1; }
  .market-search { width: calc(100% - 14px); margin: 6px 7px; }
  .condensed-market-grid { padding: 5px; }
  .correct-score-grid { grid-template-columns: 1fr; }
  .condensed-column-head, .condensed-runner { grid-template-columns: minmax(92px, 1fr) 62px 62px; padding-inline: 4px; }
}

/* Live-market composition and execution polish */
.wallet-panel { width: 212px; padding-inline: 14px 12px; background: #0b2741; border-color: #405a72; box-shadow: inset 2px 0 0 #d4a93d, inset 0 1px 0 rgba(255,255,255,.045); }
.wallet-panel small { font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .55rem; font-weight: 650; letter-spacing: .105em; }
.wallet-panel b { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .73rem; font-weight: 720; letter-spacing: -.025em; }
.wallet-panel span:last-child small, .wallet-panel span:last-child b { color: #ff839d; }
.sport-nav .inplay-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding-inline: 5px; color: var(--navy-950); background: var(--gold-400); border-radius: 10px; font-size: .58rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sport-nav .in-play-link.active .inplay-count { color: #fff; background: var(--navy-850); }

.event-name { align-items: flex-start; text-align: left; }
.event-time strong { flex-direction: column; gap: 2px; letter-spacing: .045em; white-space: nowrap; }
.event-time strong > span:first-child { color: var(--danger); }
.event-time strong em { font-size: .62rem; font-style: normal; font-weight: 720; letter-spacing: 0; }
.live-list-score { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; color: var(--ink-950); letter-spacing: 0; }
.live-list-score b { font-size: .68rem; font-weight: 760; }
.live-list-score small { color: #526579; font-size: .54rem; font-weight: 650; line-height: 1; word-spacing: 3px; }
.tennis-live-score { --tennis-set-columns: 1; display: inline-grid; gap: 1px; color: var(--ink-950); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.tennis-score-head, .tennis-score-player { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; column-gap: 3px; }
.tennis-set-heads, .tennis-set-values { display: grid; grid-template-columns: repeat(var(--tennis-set-columns), 15px); align-items: center; justify-items: center; }
.tennis-score-head small { color: #718092; font-size: .43rem; font-weight: 700; }
.tennis-score-head > b { color: var(--danger); font-size: .48rem; line-height: 1; }
.tennis-score-player { min-height: 13px; }
.tennis-score-player > b, .tennis-score-player > strong, .tennis-set-values span { font-size: .57rem; line-height: 1; }
.tennis-set-values span { color: #536679; font-weight: 650; }
.tennis-games { color: #24384c; }
.tennis-point { color: var(--danger); }
.tennis-service { width: 5px; height: 5px; display: inline-block; justify-self: center; background: transparent; border-radius: 50%; }
.tennis-service.serving { background: #d23a55; box-shadow: 0 0 0 1px rgba(210,58,85,.12); }
.tennis-live-score-list { min-width: 56px; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.tennis-live-score-list > b { color: var(--danger); font-size: .49rem; line-height: 1; }
.tennis-live-score-list > span { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1; }
.tennis-live-score-list > span strong { min-width: 23px; color: #162c41; font-size: .61rem; font-weight: 760; }
.tennis-live-score-list > span small { color: #718092; font-size: .39rem; font-weight: 720; letter-spacing: .04em; }
.tennis-live-score-detail { width: min(480px, 100%); min-width: 0; justify-self: center; gap: 5px; color: #fff; }
.tennis-live-score-detail .tennis-score-head, .tennis-live-score-detail .tennis-score-player { grid-template-columns: minmax(205px, 1fr) auto 34px 48px; column-gap: 10px; }
.tennis-live-score-detail .tennis-set-heads, .tennis-live-score-detail .tennis-set-values { grid-template-columns: repeat(var(--tennis-set-columns), 31px); }
.tennis-live-score-detail .tennis-score-head small { color: #91a8bc; font-size: .57rem; }
.tennis-live-score-detail .tennis-score-player { min-height: 27px; }
.tennis-live-score-detail .tennis-score-player > b, .tennis-live-score-detail .tennis-score-player > strong, .tennis-live-score-detail .tennis-set-values span { font-size: .91rem; }
.tennis-live-score-detail .tennis-player-name { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; overflow: hidden; color: #fff; font-size: 1rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tennis-live-score-detail .tennis-set-values span { color: #c8d5df; }
.tennis-live-score-detail .tennis-current-games { min-width: 25px; padding: 3px 4px; color: #fff; background: #8b6900; border-radius: 3px; }
.tennis-live-score-detail .tennis-point { min-width: 30px; padding: 3px 6px; color: #35ef9d; background: #0a3d36; border-radius: 6px; }
.tennis-live-score-detail .tennis-service.serving { background: #35d58d; }
.tennis-detail-date { justify-self: center; color: #c6d3de; font-size: .58rem; font-weight: 550; }
.tennis-current-set { justify-self: center; color: #9fb0bf; font-size: .56rem; font-weight: 650; letter-spacing: .13em; }
.tennis-event-header .event-identity { display: grid; justify-items: center; }
.tennis-event-header .event-identity h1 { width: 100%; }

.market-caption.two-way > div { grid-template-columns: repeat(3, 1fr); }
.market-grid.two-way { grid-template-columns: repeat(3, minmax(122px, 136px)); }
.market-grid.two-way .selection-pair:nth-child(2) { grid-column: 3; }

.inplay-sports button { min-width: 78px; height: 49px; font-size: .72rem; }
.inplay-sports button b { font-size: .65rem; }
.inplay-selects label { font-size: .6rem; }
.inplay-selects select { min-width: 140px; height: 35px; font-size: .73rem; }

.event-header { grid-template-columns: 165px minmax(280px, 1fr) 165px; gap: 12px; }
.event-status-line { align-self: end; padding-bottom: 8px; color: #aab9c7; font-size: .69rem; }
.event-identity { min-width: 0; text-align: center; }
.event-identity h1 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-inline: auto; }
.event-identity .live-score-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; }
.event-identity .live-score { margin-inline: 0; }
.event-identity .live-score-wrap small { color: #cbd6df; font-size: .58rem; font-weight: 620; letter-spacing: .055em; word-spacing: 4px; }
.event-facts { justify-content: flex-end; padding-right: 31px; text-align: right; }

.place-order.is-countdown, .quick-place-order.is-countdown { position: relative; overflow: hidden; }
.place-order, .quick-place-order { display: flex; align-items: center; justify-content: center; background: #d8aa38; border-color: #a97c13; }
.place-order:hover:not(:disabled), .quick-place-order:hover:not(:disabled) { background: #e3b94e; }
.place-order.is-countdown:disabled, .quick-place-order.is-countdown:disabled { background: #d8aa38; border-color: #a97c13; }
.place-order-countdown { position: relative; z-index: 1; width: 42px; height: 30px; display: grid; place-items: center; margin: 0 auto; color: #082d50; background: rgba(255,255,255,.38); border: 1px solid rgba(8,45,80,.35); border-radius: 3px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.06rem; font-weight: 780; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); animation: countdown-tick 160ms ease-out; }
.countdown-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: #0a5f91; transform-origin: left center; animation: countdown-consume linear forwards; }
.countdown-progress::after { position: absolute; inset: 0; content: ''; background: rgba(255,255,255,.28); transform: translateX(-100%); animation: countdown-scan 900ms linear infinite; }
@keyframes countdown-consume { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes countdown-tick { from { opacity: .45; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@keyframes countdown-scan { to { transform: translateX(100%); } }

.ticket-card.back { background: #eaf6fd; border-color: #8fc8e3; }
.ticket-card.back .ticket-market { background: #dceffc; }
.ticket-card.back .ticket-identity { background: #f4faff !important; }
.ticket-card.lay { background: #fceff3; border-color: #dca4b8; }
.ticket-card.lay .ticket-identity { background: #fff7fa !important; }
.ticket-inputs { grid-template-columns: minmax(142px, .72fr) minmax(190px, 1.28fr); }
.ticket-card.back .ticket-inputs label { background: #e5f4fd; }
.ticket-card.back .ticket-inputs label + label { background: #edf8fe; }
.ticket-card.lay .ticket-inputs label { background: #fce9f0; }
.ticket-card.lay .ticket-inputs label + label { background: #fff1f5; }
.ticket-feedback.rail-feedback.success { margin: 8px; padding: 11px 12px; color: #045a37; background: #ddf5e9; border: 1px solid #73c59f; border-left: 5px solid #15965f; font-size: .74rem; font-weight: 760; letter-spacing: .035em; box-shadow: 0 2px 6px rgba(4,90,55,.1); }

.open-bets-group > h3 { min-height: 31px; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0 10px; color: #fff; background: #22384c; border-bottom: 1px solid #10253a; font-size: .62rem; letter-spacing: .07em; }
.open-bets-group > h3 b { min-width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: #168a59; border-radius: 10px; font-size: .57rem; }
.open-bets-group.group-unmatched > h3 { background: #2b3037; }
.open-bets-group.group-unmatched > h3 b { color: var(--navy-950); background: var(--gold-400); }
.open-bets-group > p { margin: 0; padding: 12px; color: var(--ink-500); background: #fff; border-bottom: 1px solid var(--line-strong); font-size: .65rem; }
.open-bet { display: block; padding: 0; background: #fff; }
.open-bet::before { width: 3px; }
.open-bet-marketline { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px 0 11px; color: #36536d; background: #e7f1f8; border-bottom: 1px solid #c8d7e2; }
.open-bet.lay .open-bet-marketline { background: #f9e9ef; border-bottom-color: #e6c8d3; }
.open-bet-marketline span { overflow: hidden; font-size: .58rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.open-bet-marketline b { flex: 0 0 auto; padding: 2px 5px; color: #08633f; background: #e3f5eb; border: 1px solid #8bceb0; border-radius: 2px; font-size: .52rem; letter-spacing: .045em; }
.pending-order .open-bet-marketline b { color: #70540f; background: #fff4d4; border-color: #dec36f; }
.open-bet-title { min-height: 41px; display: grid; align-content: center; gap: 2px; padding: 5px 11px; border-bottom: 1px solid #e1e7ec; }
.open-bet-title b { color: var(--ink-950); font-size: .7rem; }
.open-bet-title small { overflow: hidden; color: #607386; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.open-bet-metrics { width: 100%; display: grid; grid-template-columns: .62fr .8fr 1fr 1fr; gap: 0; margin: 0; padding: 7px 10px; }
.open-bet-metrics div { min-width: 0; padding-inline: 6px; border-left: 1px solid #e3e8ed; }
.open-bet-metrics div:first-child { padding-left: 0; border-left: 0; }
.open-bet dt { color: #607386; font-size: .5rem; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; }
.open-bet dd { margin: 2px 0 0; color: #091c2e; font-size: .66rem; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.matched-confirmation { min-height: 25px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 0 10px; color: #067246; background: #f0f8f4; border-top: 1px solid #dcebe4; font-size: .54rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.matched-confirmation i { width: 6px; height: 6px; background: #15965f; border-radius: 50%; }
.open-bet-editor.compact { display: grid; grid-template-columns: .72fr 1fr .92fr; gap: 6px; margin: 0; padding: 7px 9px 8px 11px; background: #f7f9fa; border: 0; }
.open-bet-editor > label > span, .open-bet-editor legend, .open-bet-pending-value span { display: block; margin-bottom: 3px; color: #526578; font-size: .51rem; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.open-bet-editor input[type="text"], .open-bet-editor input[inputmode="decimal"] { width: 100%; height: 31px; padding: 0 7px; color: #071a2d; background: #fff; border: 1px solid #9eb0be; border-radius: 2px; font-size: .68rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.open-bet-pending-value { min-width: 0; }
.open-bet-pending-value b { height: 31px; display: flex; align-items: center; justify-content: flex-end; color: #0a2943; font-size: .67rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.open-bet-editor fieldset { grid-column: 1 / -1; min-height: 28px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 4px 7px; border: 1px solid #d3dbe2; }
.open-bet-editor fieldset legend { margin: 0; padding-inline: 4px; }
.open-bet-editor fieldset label { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-800); font-size: .58rem; font-weight: 680; }
.prematch-persistence { grid-column: 1 / -1; color: #687988; font-size: .54rem; font-weight: 680; letter-spacing: .045em; text-transform: uppercase; }
.open-bet-editor input:focus-visible, .open-bet-edit-actions button:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.open-bet-edit-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr .85fr 1fr; gap: 5px; }
.open-bet-edit-actions button { min-height: 30px; padding: 0 6px; color: var(--navy-800); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; font-size: .57rem; font-weight: 700; }
.open-bet-edit-actions .cancel { color: #9a1833; border-color: #d69aa8; }
.open-bet-edit-actions .update { color: #071a2d; background: var(--gold-400); border-color: #b78818; }
.open-bet-edit-actions .update:hover:not(:disabled) { background: var(--gold-500); }
.open-bet.execution::before { background: #15965f; }
.open-bet.pending-order::before { background: var(--gold-500); }

.curated-home .competition-block + .competition-block { margin-top: 9px; }
.curated-home .competition-band { min-height: 29px; background: #132b42; border-left: 3px solid var(--gold-500); }
.curated-home .competition-band > h2 { font-size: .68rem; letter-spacing: .065em; }

/* Open Bets hierarchy and side-aware execution surfaces */
.open-bets-group.group-unmatched > h3 { position: sticky; z-index: 4; top: 38px; color: #fff; background: #15191e; border-bottom-color: #080a0d; box-shadow: 0 2px 5px rgba(4, 12, 20, .22); }
.open-bets-group.group-unmatched > h3 b { color: #06223a; background: #f0c754; }
.open-bet.back { background: #d4ecf8; }
.open-bet.back .open-bet-title, .open-bet.back .open-bet-metrics { background: #e1f2fa; }
.open-bet.back .open-bet-marketline { color: #104a6e; background: #b9dff1; border-bottom-color: #83bfdc; }
.open-bet.lay { background: #f4ccd9; }
.open-bet.lay .open-bet-title, .open-bet.lay .open-bet-metrics { background: #f8dae4; }
.open-bet.lay .open-bet-marketline { color: #772541; background: #edb6c8; border-bottom-color: #da88a5; }
.open-bet-editor.compact { background: rgba(255,255,255,.64); }
.open-bet-marketline { min-height: 22px; }
.open-bet-title { min-height: 34px; padding-block: 3px; }
.open-bet-metrics { padding-block: 5px; }
.open-bet-editor.compact { gap: 4px 6px; padding-block: 5px 6px; }
.open-bet-editor input[type="text"], .open-bet-editor input[inputmode="decimal"] { height: 28px; }
.open-bet-pending-value b { height: 28px; }
.open-bet-editor fieldset { min-height: 25px; padding-block: 2px; }
.open-bet-edit-actions button { min-height: 27px; }
.automatic-keep { grid-column: 1 / -1; padding: 3px 6px; color: #075d3d; background: rgba(214,243,230,.86); border: 1px solid #8bc8ab; font-size: .53rem; font-weight: 760; letter-spacing: .045em; text-transform: uppercase; }
.cashout-offer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 10px; background: #fff8e1; border-top: 1px solid #e6cd7d; }
.cashout-offer span { display: grid; gap: 1px; }
.cashout-offer small { color: #6d5b24; font-size: .5rem; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.cashout-offer b { color: #142d43; font-size: .74rem; font-variant-numeric: tabular-nums; }
.cashout-offer button { min-width: 104px; min-height: 31px; color: #061b2d; background: #e4b83f; border: 1px solid #b98a16; border-radius: 2px; font-size: .62rem; font-weight: 780; letter-spacing: .025em; }
.cashout-offer button:hover:not(:disabled) { background: #efc95a; }
.cashout-offer button:focus-visible { outline: 2px solid #075f92; outline-offset: 1px; }
.cashout-offer button:disabled { cursor: wait; opacity: .72; }

.cashout-confirm-backdrop { position: fixed; z-index: 220; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2,14,27,.62); backdrop-filter: blur(2px); }
.cashout-confirm { width: min(420px, calc(100vw - 32px)); color: #0b2033; background: #fff; border: 1px solid #8799a9; border-top: 4px solid var(--gold-500); box-shadow: 0 18px 54px rgba(0,15,29,.32); }
.cashout-confirm > header { min-height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 15px; color: #fff; background: var(--navy-900); font-size: .72rem; font-weight: 780; letter-spacing: .045em; text-transform: uppercase; }
.cashout-confirm > header button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 0; }
.cashout-confirm > header svg { width: 14px; height: 14px; }
.cashout-confirm-body { padding: 17px 18px 15px; }
.cashout-confirm-body > small { color: #547086; font-size: .62rem; font-weight: 680; }
.cashout-confirm-body h2 { margin: 4px 0 5px; font-size: 1.05rem; }
.cashout-confirm-body p { margin: 0 0 14px; color: #536879; font-size: .68rem; }
.cashout-confirm-body dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: #edf3f7; border: 1px solid #cbd7e0; }
.cashout-confirm-body dl div { display: grid; gap: 3px; padding: 10px 12px; }
.cashout-confirm-body dl div + div { border-left: 1px solid #cbd7e0; }
.cashout-confirm-body dt { color: #5a6f80; font-size: .53rem; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.cashout-confirm-body dd { margin: 0; font-size: .78rem; font-weight: 780; }
.cashout-confirm-body dl div:last-child dd { color: #087a4c; }
.cashout-confirm > footer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; padding: 10px 18px 14px; }
.cashout-confirm > footer button { min-height: 35px; color: #173149; background: #fff; border: 1px solid #a7b5c0; font-size: .65rem; font-weight: 740; }
.cashout-confirm > footer .confirm { color: #061b2d; background: #ddb13d; border-color: #b2871d; }
.cashout-confirm > footer .confirm:hover:not(:disabled) { background: #eac451; }
.cashout-confirm button:focus-visible { outline: 2px solid #1683bd; outline-offset: 2px; }

/* Restrained countdown: fine numerals, clear centre alignment and slim progress */
.place-order-countdown { width: auto; height: auto; min-width: 24px; color: #082f50; background: transparent; border: 0; border-radius: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .94rem; font-weight: 400; letter-spacing: .04em; box-shadow: none; }
.countdown-progress { height: 2px; background: #0b5682; }
.countdown-progress::after { background: rgba(255,255,255,.48); }

@media (max-width: 1450px) and (min-width: 1241px) {
  :root { --ticket-width: 382px; }
  .wallet-panel { width: 184px; }
}

@media (max-width: 820px) {
  .market-caption.two-way > div, .market-grid.two-way { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-grid.two-way .selection-pair:nth-child(2) { grid-column: 3; }
  .event-header { grid-template-columns: 1fr; }
  .event-status-line { order: 2; align-self: auto; justify-self: center; padding: 0; }
  .event-identity { order: 1; }
  .event-facts { order: 3; justify-content: center; padding-right: 0; text-align: center; }
}

/* Mobile exchange: compact hierarchy, native touch targets and safe-area support */
@media (max-width: 820px) {
  :root { --topbar-height: 176px; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-width: 320px; background: #e9edf1; }
  button, a, input, select { touch-action: manipulation; }

  .topbar-main {
    height: 128px;
    grid-template-columns: minmax(126px, 1fr) auto;
    grid-template-rows: 42px 38px 40px;
    grid-template-areas: "brand player" "wallet wallet" "search search";
    gap: 3px 8px;
    padding: 3px max(8px, env(safe-area-inset-right)) 3px max(8px, env(safe-area-inset-left));
  }
  .primary-nav { display: none; }
  .brand { min-width: 0; }
  .brand-symbol { width: 31px; height: 31px; }
  .brand-copy b { font-size: .92rem; }
  .brand-copy small { font-size: .46rem; }
  .account-strip { display: contents; }
  .wallet-panel {
    width: 100%; height: 36px;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr;
    padding: 0 8px;
  }
  .wallet-panel span { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 9px; border: 0; }
  .wallet-panel span + span { border-left: 1px solid #405a72; }
  .wallet-panel small { font-size: .56rem; }
  .wallet-panel b { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .player-control, .player-button { height: 36px; }
  .player-button { min-width: 92px; }
  .player-menu { position: fixed; z-index: 120; top: 45px; right: max(8px, env(safe-area-inset-right)); width: min(264px, calc(100vw - 16px)); }
  .player-menu a, .player-menu button { min-height: 44px; }
  .search-wrap { min-width: 0; }
  .global-search { height: 37px; border-radius: 4px; }
  .global-search input, .search-suggestions button { font-size: 16px; }
  .global-search kbd { display: none; }
  .search-suggestions { max-height: min(50dvh, 330px); overflow-y: auto; }

  .sportbar { height: 48px; display: block; overflow: hidden; padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right)); }
  .sport-nav { width: 100%; height: 48px; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sport-nav::-webkit-scrollbar, .sports-sidebar::-webkit-scrollbar, .market-sidebar::-webkit-scrollbar, .inplay-tools::-webkit-scrollbar { display: none; }
  .sport-nav button, .sport-nav a { flex: 0 0 auto; min-height: 46px; padding-inline: 14px; font-size: .72rem; }
  .sport-nav .inplay-count { min-width: 18px; height: 18px; }

  .sports-sidebar { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .sport-list { flex: 0 0 auto; }
  .sport-list button { min-height: 42px; padding-inline: 13px; font-size: .72rem; }
  .exchange-main { padding: 6px 5px calc(78px + env(safe-area-inset-bottom)); }
  .market-toolbar { min-height: 42px; }
  .exchange-controlbar { min-height: 43px; }
  .exchange-time-filters button { min-height: 40px; }
  .competition-band { min-height: 30px; }
  .market-caption { min-height: 30px; }
  .event-row { min-height: 108px; grid-template-rows: 48px 60px; }
  .event-name b { font-size: .78rem; line-height: 1.05; }
  .event-favourite button { width: 32px; height: 40px; }
  .market-grid { gap: 5px; padding-block: 5px; }
  .selection-pair { gap: 2px; }
  .odds-cell { min-height: 48px; }
  .suspension-banner { bottom: 6px; min-height: 48px; background: rgba(185, 25, 55, .84); backdrop-filter: blur(1px); }

  .inplay-tools { display: grid; grid-template-columns: 1fr; gap: 7px; overflow: visible; padding: 7px; }
  .inplay-sports { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 1px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .inplay-sports button { flex: 0 0 auto; min-width: 84px; height: 48px; }
  .inplay-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .inplay-selects select { width: 100%; min-width: 0; height: 42px; font-size: 16px; }

  .betslip-rail {
    top: auto; width: 100%; max-height: min(88vh, 760px); max-height: min(88dvh, 760px);
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -12px 34px rgba(4, 16, 31, .25);
  }
  .betslip-tabs { position: sticky; z-index: 6; top: 0; min-height: 48px; }
  .betslip-tabs > button[role="tab"] { min-height: 48px; font-size: .75rem; }
  .mobile-close { width: 44px; height: 44px; top: 2px; right: max(2px, env(safe-area-inset-right)); }
  .ticket-card, .betslip-notice { width: 100%; max-width: 520px; }
  .ticket-card { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .ticket-inputs { grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr); }
  .ticket-inputs input, .open-bet-editor input[type="text"], .open-bet-editor input[inputmode="decimal"] { font-size: 16px; }
  .odds-stepper button, .stake-control button { min-width: 42px; min-height: 44px; }
  .quick-stakes button { min-height: 42px; }
  .keep-live { min-height: 44px; }
  .place-order {
    position: sticky; z-index: 5; bottom: env(safe-area-inset-bottom);
    width: calc(100% - 16px); min-height: 50px; margin: 8px;
    box-shadow: 0 -4px 12px rgba(4, 16, 31, .12);
  }
  .open-bets-panel > header { position: sticky; z-index: 5; top: 48px; min-height: 42px; }
  .open-bets-group.group-unmatched > h3 { top: 90px; }
  .open-bet-title { min-height: 46px; }
  .open-bet-metrics { padding-block: 9px; }
  .open-bet dd { font-size: .7rem; }
  .open-bet-editor.compact { gap: 7px; padding-block: 9px; }
  .open-bet-edit-actions button { min-height: 42px; }

  .market-sidebar { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .market-link, .sidebar-collapsed .market-link { flex: 0 0 auto; min-width: 154px; min-height: 44px; }
  .detail-main { padding: 5px; }
  .event-header { min-height: 108px; padding: 10px 9px 12px; }
  .event-identity h1 { font-size: 1rem; }
  .event-facts { width: 100%; }
  .depth-head { min-height: 38px; }
  .runner-row { min-height: 68px; }
  .depth-grid { min-width: 0; }
  .depth-grid .odds-cell { min-width: 0; height: 48px; }
  .related-markets-heading nav { overflow-x: auto; }
  .related-markets-heading nav button { flex: 0 0 auto; min-height: 42px; padding-inline: 16px; }

  .mobile-ticket-trigger {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 48px; padding-inline: 16px;
    box-shadow: 0 5px 18px rgba(4, 16, 31, .28);
  }
}

@media (max-width: 430px) {
  .event-row { grid-template-columns: 48px minmax(0, 1fr) 30px 66px; }
  .event-time { font-size: .61rem; }
  .matched b { font-size: .65rem; }
  .market-grid { gap: 4px; }
  .odds-cell b { font-size: .78rem; }
  .odds-cell small { font-size: .54rem; }
  .open-bet-metrics { grid-template-columns: .62fr .82fr 1fr 1fr; padding-inline: 7px; }
  .open-bet-metrics div { padding-inline: 4px; }
  .open-bet-editor.compact { grid-template-columns: .72fr .92fr 1fr; padding-inline: 8px; }
  .condensed-column-head, .condensed-runner { grid-template-columns: minmax(88px, 1fr) 61px 61px; }
}

@media (max-width: 360px) {
  :root { --topbar-height: 172px; }
  .topbar-main { height: 124px; grid-template-columns: minmax(116px, 1fr) auto; grid-template-rows: 40px 37px 39px; padding-inline: 5px; }
  .brand-copy small { display: none; }
  .player-button { min-width: 80px; padding-inline: 7px; }
  .wallet-panel { padding-inline: 3px; }
  .wallet-panel span { padding-inline: 6px; }
  .wallet-panel small { font-size: .51rem; }
  .wallet-panel b { font-size: .65rem; }
  .sportbar, .sport-nav { height: 48px; }
  .exchange-main { padding-inline: 3px; }
  .exchange-control-title h1 { font-size: .76rem; }
  .exchange-total { min-width: 94px; }
  .event-row { grid-template-columns: 45px minmax(0, 1fr) 28px 61px; }
  .event-name { padding-inline: 5px; }
  .market-grid { gap: 3px; padding-inline: 1px; }
  .selection-pair { gap: 1px; }
  .odds-cell { padding-inline: 1px; }
  .ticket-inputs { grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); gap: 6px; }
  .odds-stepper button, .stake-control button { min-width: 38px; }
  .open-bet-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .open-bet-metrics div:nth-child(3) { padding-left: 0; border-left: 0; }
  .open-bet-editor.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .open-bet-pending-value { grid-column: 1 / -1; }
  .open-bet-pending-value b { justify-content: flex-start; }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  :root { --topbar-height: 104px; }
  .topbar-main { height: 58px; display: flex; gap: 7px; padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left)); }
  .brand-copy, .primary-nav, .wallet-panel { display: none; }
  .search-wrap { order: 2; flex: 1 1 auto; width: auto; }
  .player-control { order: 3; flex: 0 0 auto; }
  .sportbar, .sport-nav { height: 46px; }
  .betslip-rail { max-height: 94dvh; }
}

/* Desktop refinement: clearer order separation, compact actions and prominent brand. */
.open-bets-group { background: #fff; }
.open-bet + .open-bet { margin-top: 5px; border-top: 1px solid #fff; }
.cashout-offer { width: min(255px, calc(100% - 20px)); min-height: 36px; margin: 4px 8px 6px auto; padding: 4px 7px; border: 1px solid #d6b75d; border-radius: 2px; }
.cashout-offer button { min-width: 96px; min-height: 28px; }

@media (min-width: 901px) {
  :root { --topbar-height: 122px; }
  .topbar-main { height: 80px; }
  .brand-symbol { width: 190px; height: 60px; }
  .brand-separator { height: 42px; margin-right: -13px; }
  .primary-nav { height: 34px; align-self: center; align-items: center; gap: 0; padding-left: 0; border-radius: 7px; box-shadow: 0 0 0 1px rgba(239,203,108,.08); }
  .primary-nav a, .primary-nav .product-pill { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; color: #f5e4ab; background: rgba(213,169,52,.08); border: 1px solid #b88a20; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .025em; text-decoration: none; white-space: nowrap; }
  .primary-nav > *:not(:first-child) { border-left: 0; border-radius: 0; }
  .primary-nav > *:first-child { border-radius: 6px 0 0 6px; }
  .primary-nav > *:last-child { border-radius: 0 6px 6px 0; }
  .primary-nav a:hover { color: #fff; background: rgba(213,169,52,.17); }
  .primary-nav a.active { color: #071a2e; background: linear-gradient(180deg,#e4bd55,#c99a28); border-color: #efcb6c; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
  .primary-nav a.active::after { display: none; }
  .primary-nav .product-pill.future { color: #d5c58f; opacity: .75; cursor: default; }
  .ticket-inputs { grid-template-columns: minmax(118px,.92fr) minmax(140px,1.1fr) minmax(110px,.86fr); }
  .ticket-inputs > .indicative { min-width: 0; display: grid; grid-template-columns: 1fr; align-content: center; gap: 2px; padding: 7px 8px; background: #f4f6f8; border: 0; border-left: 1px solid var(--line-strong); }
  .ticket-card.back .ticket-inputs > .indicative { background: #d8eef9; }
  .ticket-card.lay .ticket-inputs > .indicative { background: #f6d9e3; }
  .ticket-inputs > .indicative span { color: var(--navy-800); font-size: .62rem; font-weight: 690; letter-spacing: .035em; text-transform: uppercase; }
  .ticket-inputs > .indicative b { font-size: .72rem; text-align: left; white-space: nowrap; }
  .ticket-inputs > .indicative small { display: none; }
  .ticket-actions { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 6px; padding: 8px; }
  .ticket-actions .place-order { width: 100%; height: 39px; margin: 0; }
  .cancel-ticket { height: 39px; color: #fff; background: #e21d3d; border: 1px solid #b90f2b; border-radius: 2px; font-size: .61rem; font-weight: 780; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
  .cancel-ticket:hover { color: #fff; background: #c81031; border-color: #950a23; }
  .cancel-ticket:focus-visible { outline: 2px solid #b92745; outline-offset: 1px; }
}

.matched-bet-columns, .matched-bet-row { display: grid; grid-template-columns: minmax(0,1.25fr) .42fr .9fr .9fr; align-items: center; column-gap: 6px; padding-inline: 10px; }
.matched-bet-columns { min-height: 23px; color: #244966; background: #badff1; border-bottom: 1px solid #87bfd9; font-size: .53rem; font-weight: 720; letter-spacing: .035em; text-transform: uppercase; }
.open-bet.lay .matched-bet-columns { color: #6c2440; background: #efbdd0; border-bottom-color: #d889a6; }
.matched-bet-columns span:not(:first-child) { text-align: right; }
.matched-bet-columns span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matched-bet-row { min-height: 45px; color: #081b2e; background: #e1f2fa; border-bottom: 1px solid #c2dce8; }
.open-bet.lay .matched-bet-row { background: #f8dae4; border-bottom-color: #e7becd; }
.matched-bet-selection { min-width: 0; display: grid; align-content: center; gap: 2px; }
.matched-bet-selection b { overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.matched-bet-selection a { overflow: hidden; color: #075f92; font-size: .56rem; font-weight: 620; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.matched-bet-selection a:hover { color: #034469; text-decoration: underline; }
.matched-bet-row strong { font-size: .61rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.open-bet-event-link, .open-bet-title a { overflow: hidden; color: #075f92; font-size: .58rem; font-weight: 620; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.open-bet-event-link { min-height: 25px; display: flex; align-items: center; padding: 0 10px; background: #fff; border-bottom: 1px solid #dbe3e9; }
.open-bet-event-link:hover, .open-bet-title a:hover { color: #034469; text-decoration: underline; }
.cashout-offer { width: min(292px, calc(100% - 20px)); justify-content: center; gap: 10px; margin-right: auto; margin-left: auto; }
.cashout-offer button { min-width: 142px; }
.cashout-offer > span { min-width: 86px; }
.cashout-offer > span.positive b { color: #087a4c; }
.cashout-offer > span.negative b { color: #c42543; }

/* Account records */
.records-page { width: calc(100% - 32px); max-width: 1500px; min-height: calc(100vh - var(--topbar-height)); margin-inline: auto; padding: 18px 0 38px; }
.records-heading { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: #fff; background: var(--navy-900); border-bottom: 3px solid var(--gold-500); }
.records-heading h1 { margin: 3px 0 0; font-size: 1.18rem; }
.records-heading > b { padding: 7px 10px; color: var(--navy-950); background: var(--gold-400); border-radius: 14px; font-size: .7rem; }
.records-tabs { display: flex; gap: 0; background: #fff; border: 1px solid var(--line-strong); border-top: 0; }
.records-tabs button { min-height: 40px; padding: 0 22px; color: var(--ink-700); background: #fff; border: 0; border-right: 1px solid var(--line); font-size: .72rem; font-weight: 680; }
.records-tabs button.active { color: #fff; background: var(--navy-800); box-shadow: inset 0 -3px 0 var(--gold-500); }
.records-toolbar { min-height: 62px; display: flex; align-items: end; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line-strong); border-top: 0; }
.records-toolbar label { display: grid; gap: 4px; color: var(--ink-700); font-size: .62rem; font-weight: 680; }
.records-toolbar label:first-child { width: min(420px, 50%); }
.records-toolbar input, .records-toolbar select { height: 36px; padding: 0 10px; color: var(--ink-900); background: #fff; border: 1px solid var(--line-strong); font-size: .75rem; }
.records-table { background: #fff; border: 1px solid var(--line-strong); border-top: 0; }
.records-row { min-height: 55px; display: grid; grid-template-columns: 110px minmax(240px,1fr) 70px 75px 105px 105px 92px; align-items: center; gap: 10px; padding: 7px 13px; border-bottom: 1px solid var(--line); }
.records-row:last-child { border-bottom: 0; }
.records-column-head { min-height: 34px; color: #536b80; background: #dfe6ec; font-size: .58rem; font-weight: 740; letter-spacing: .045em; text-transform: uppercase; }
.records-row time, .records-row strong, .records-row b { font-size: .69rem; font-variant-numeric: tabular-nums; }
.record-event { min-width: 0; display: grid; gap: 2px; }
.record-event a, .record-event > b { overflow: hidden; color: #075f92; font-size: .75rem; font-weight: 720; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.record-event a:hover { text-decoration: underline; }
.record-event small { color: var(--ink-500); font-size: .61rem; }
.record-status { justify-self: start; padding: 4px 6px; color: #0c6543; background: #e2f5ec; border: 1px solid #8bcdb2; border-radius: 2px; font-size: .56rem; font-style: normal; font-weight: 740; }
.record-status.status-unmatched, .record-status.status-partial { color: #725412; background: #fff4d3; border-color: #d9bd67; }
.transactions-history .credit { color: #087a4c; }
.transactions-history .debit { color: #c42543; }
.records-state { padding: 34px; color: var(--ink-700); background: #fff; border: 1px solid var(--line-strong); text-align: center; }
.records-state.error { color: #9e1934; }

@media (max-width: 900px) {
  .records-page { width: 100%; padding-top: 0; overflow-x: auto; }
  .records-heading, .records-tabs, .records-toolbar, .records-table { min-width: 760px; }
}

@media (max-width: 900px) {
  .brand-symbol { width: 128px; height: 40px; }
  .ticket-actions { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 6px; padding: 8px; }
  .ticket-actions .place-order { position: static; width: 100%; margin: 0; }
  .cancel-ticket { min-height: 50px; color: #9e1934; background: #fff; border: 1px solid #cf6e82; border-radius: 2px; font-size: .7rem; font-weight: 760; }
}

/* Secondary market expansion, matching the full-depth interaction. */
.condensed-expand { width: 100%; min-height: 27px; padding: 0 10px; color: #075f92; background: #fff; border: 0; border-top: 1px solid var(--line); font-size: .58rem; font-weight: 650; text-align: right; }
.condensed-expand:hover { color: #033e61; background: #f4f8fb; }
.expanded-market { position: relative; margin: 9px 0; overflow: hidden; background: #fff; border: 1px solid #9eb2c3; box-shadow: 0 3px 10px rgba(5,24,43,.12); }
.expanded-market > header { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 13px; color: #fff; background: linear-gradient(90deg,#0f4770,#176995); border-left: 4px solid var(--gold-500); }
.expanded-market > header h2 { margin: 0; font-size: .78rem; }
.expanded-market > header button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); }
.expanded-market > header svg { width: 14px; height: 14px; }
.expanded-market-meta { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #f4f6f8; border-bottom: 1px solid var(--line); }
.expanded-market-meta span { color: #5b6e80; font-size: .57rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.expanded-market-meta b { font-size: .62rem; }
.expanded-market .runner-row { min-height: 48px; }

/* Match-time keeps sport grouping without the heavy navy competition bars. */
.event-groups.inplay-time-mode .competition-block { margin-top: 6px; }
.event-groups.inplay-time-mode .competition-band { min-height: 24px; color: #173d63; background: #e5ebf0; border-top: 1px solid #c6d1da; border-bottom: 1px solid #aebdca; }
.event-groups.inplay-time-mode .competition-band h2 { font-size: .61rem; }
.event-groups.inplay-time-mode .competition-band h2 svg { color: #173d63; }
.event-groups.inplay-time-mode .competition-band > b { color: #607386; }

/* One-piece premium cash-out offer. */
.cashout-offer { min-height: 38px; padding: 0; overflow: hidden; background: linear-gradient(135deg,#f8df88 0%,#dcae35 52%,#efcc67 100%); border: 1px solid #a97d14; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 5px rgba(76,52,4,.16); }
.cashout-offer button { min-height: 36px; color: #10243a; background: transparent; border: 0; border-right: 1px solid rgba(112,76,4,.34); border-radius: 0; font-weight: 800; }
.cashout-offer button:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.cashout-offer > span { padding: 4px 8px; }
.cashout-offer small { color: #4f421d; }
.cashout-offer > span.positive b { color: #087046; }
.cashout-offer > span.negative b { color: #b51d37; }

/* Clear separation between editable and executed orders. */
.open-bets-group + .open-bets-group { margin-top: 12px; border-top: 5px solid #fff; box-shadow: 0 -7px 0 #e3e8ed; }

/* Refined operational betslip. */
.ticket-card { width: calc(100% - 18px); margin: 9px; overflow: hidden; background: #fff; border: 1px solid #8ea5b7; border-radius: 7px; box-shadow: 0 4px 12px rgba(5,24,43,.12); }
.ticket-card.back, .ticket-card.lay { background: #fff; }
.ticket-market { min-height: 35px; padding-inline: 11px; color: #fff; background: linear-gradient(90deg,#09223b,#123b5c) !important; border-bottom: 2px solid var(--gold-500); letter-spacing: .035em; }
.ticket-market b { font-size: .66rem; text-transform: uppercase; }
.ticket-close { color: #fff !important; }
.ticket-identity, .ticket-card.back .ticket-identity, .ticket-card.lay .ticket-identity { min-height: 66px; padding: 10px 11px; background: #f8fafc !important; border-bottom: 1px solid #cbd6df; }
.ticket-identity span { font-size: .82rem; font-weight: 760; }
.ticket-identity strong { padding: 4px 7px; border-radius: 3px; font-size: .58rem; letter-spacing: .03em; }
.ticket-inputs { margin: 8px; overflow: hidden; background: #fff; border: 1px solid #adbdc9; border-radius: 4px; }
.ticket-inputs label, .ticket-card.back .ticket-inputs label, .ticket-card.back .ticket-inputs label + label { background: #edf7fd; }
.ticket-card.lay .ticket-inputs label, .ticket-card.lay .ticket-inputs label + label { background: #fcecf2; }
.ticket-inputs > .indicative { background: #f4f6f8 !important; }
.ticket-card > .quick-stakes { margin: 0 8px; padding: 0 0 8px; background: #fff; border: 0; }
.ticket-card > .quick-stakes button { border: 1px solid #b7c4ce; border-radius: 3px; font-weight: 700; }
.ticket-actions { padding: 8px; background: #eef2f5; border-top: 1px solid #c9d4dc; }
.ticket-actions .place-order { color: #07182d; background: linear-gradient(180deg,#e9c65f,#d2a332); border: 1px solid #a97a11; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5) !important; font-weight: 820; }
.ticket-actions .place-order:hover:not(:disabled) { background: linear-gradient(180deg,#f0d276,#d9ab3d); }
.ticket-actions .cancel-ticket { border-radius: 4px; }
.betslip-notice { width: calc(100% - 18px); margin: 7px 9px; border-radius: 4px; }

/* Premium desktop rail, favourites and precise secondary-market navigation. */
@media (min-width: 1201px) {
  .primary-nav { margin-left: 57px; }
  .ticket-card { width: calc(100% - 24px); margin: 12px; border-color: #8099ad; border-radius: 5px; box-shadow: 0 5px 16px rgba(3,20,37,.13); }
  .ticket-market { min-height: 34px; padding-inline: 13px; background: linear-gradient(100deg,#061a2e,#0d3554) !important; }
  .ticket-identity, .ticket-card.back .ticket-identity, .ticket-card.lay .ticket-identity { min-height: 58px; padding: 9px 13px; }
  .ticket-inputs { grid-template-columns: 126px minmax(168px,1fr) 105px; margin: 10px 12px 8px; border-radius: 3px; }
  .ticket-inputs label { padding: 7px 8px 8px; }
  .ticket-inputs input { height: 34px; font-size: .78rem; }
  .odds-stepper button, .stake-control button { width: 30px; height: 34px; }
  .ticket-inputs > .indicative { padding: 7px 9px; }
  .ticket-card > .quick-stakes { grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0 12px; padding-bottom: 9px; }
  .ticket-card > .quick-stakes button { min-height: 31px; }
  .ticket-actions { gap: 8px; padding: 9px 12px 11px; }
  .ticket-actions .place-order, .ticket-actions .cancel-ticket { height: 37px; }
}

.favourites-panel { background: #f7f9fb; border-bottom: 1px solid #c4cfd8; }
.favourites-heading { min-height: 34px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 0 11px; color: #17334e; background: #fff; border-bottom: 1px solid #d4dce3; }
.favourites-heading svg { width: 15px; height: 15px; color: #c79216; fill: #efc14b; }
.favourites-heading b { font-size: .68rem; }
.favourites-heading small { min-width: 18px; height: 18px; display: grid; place-items: center; color: #092139; background: #efc14b; border-radius: 10px; font-size: .54rem; font-weight: 760; }
.favourites-panel:not(.has-items) .favourites-heading small { color: #607184; background: #e8edf1; }
.favourite-link { min-height: 37px; display: grid; grid-template-columns: minmax(0,1fr) 28px; align-items: stretch; background: #fffdf6; border-bottom: 1px solid #e3e6e8; border-left: 3px solid #d9aa35; }
.favourite-link > button:first-child { min-width: 0; display: grid; align-content: center; gap: 1px; padding: 4px 6px 4px 9px; color: #17334e; background: transparent; border: 0; text-align: left; }
.favourite-link > button:first-child span { overflow: hidden; font-size: .6rem; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.favourite-link > button:first-child:hover { color: #075f92; background: #fff8df; }
.favourite-link .remove-favourite { color: #8795a2; background: transparent; border: 0; font-size: 1rem; }
.favourite-link .remove-favourite:hover { color: #d31336; background: #fff0f2; }
.sidebar-collapsed .favourites-heading { display: grid; grid-template-columns: 1fr; justify-items: center; padding: 0; }
.sidebar-collapsed .favourites-heading b, .sidebar-collapsed .favourites-heading small, .sidebar-collapsed .favourite-link { display: none; }

.expanded-market { scroll-margin-top: calc(var(--topbar-height) + 8px); }

.open-bet-edit-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
.open-bet-edit-actions .cancel { color: #fff; background: #e11d3f; border-color: #b90d2d; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.open-bet-edit-actions .cancel:hover { color: #fff; background: #c90e31; }
.open-bet-edit-actions .update { color: #07182d; background: linear-gradient(180deg,#e9c75e,#d3a42f); border-color: #a97b13; }

.cashout-offer { width: min(318px, calc(100% - 24px)); min-height: 39px; gap: 0; margin: 7px auto 8px; overflow: hidden; background: linear-gradient(105deg,#063449 0%,#07556a 56%,#07384d 100%); border: 1px solid #0e7085; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 3px 8px rgba(2,32,45,.18); }
.cashout-offer button { min-width: 176px; min-height: 38px; color: #fff; background: transparent; border-right: 1px solid rgba(170,226,235,.28); font-size: .64rem; letter-spacing: .035em; }
.cashout-offer button:hover:not(:disabled) { background: rgba(98,211,224,.13); }
.cashout-offer > span { min-width: 108px; padding: 4px 11px; }
.cashout-offer small { color: #b8d7dd; }
.cashout-offer > span.positive b { color: #67e3ad; }
.cashout-offer > span.negative b { color: #ff9bae; }

/* Approved Cash Out 3 and Betslip 3. */
.cashout-offer { width: min(318px, calc(100% - 24px)); min-height: 31px; margin: 4px auto 7px; background: linear-gradient(90deg,#147557 0%,#2a9b76 100%); border: 1px solid #0f684c; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 5px rgba(6,68,50,.14); }
.cashout-offer button { min-width: 210px; min-height: 29px; color: #fff; border-right: 1px solid rgba(255,255,255,.25); font-size: .64rem; }
.cashout-offer button:hover:not(:disabled) { background: rgba(255,255,255,.09); }
.cashout-offer > span { min-width: 88px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; }
.cashout-offer > span.positive b, .cashout-offer > span.negative b { color: #fff; font-size: .7rem; font-weight: 780; }

.ticket-card { border-color: #173d63; border-radius: 4px; }
.ticket-market { background: linear-gradient(90deg,#06182b 0%,#123b5b 100%) !important; }
.ticket-inputs > .indicative { align-content: stretch; padding: 7px 8px !important; background: #f4f6f8 !important; }
.ticket-inputs > .indicative span { align-self: start; margin-bottom: 4px; }
.ticket-inputs > .indicative b { min-height: 34px; display: flex; align-items: center; padding: 0 8px; color: #fff; background: #123b5b; border-radius: 2px; font-size: .71rem; }
.ticket-card.lay .ticket-inputs > .indicative b { color: #fff; background: #a92f5e; }
.ticket-card.back .ticket-identity { background: #e1f2fa !important; }
.ticket-card.lay .ticket-identity { background: #f8dae4 !important; }
.ticket-card > .quick-stakes button { min-height: 28px; border-radius: 0; }
.ticket-actions .place-order { border-radius: 2px; }

.open-bet-editor.compact > label, .open-bet-editor.compact > .open-bet-pending-value { min-width: 0; display: grid; grid-template-rows: 14px 28px; align-items: end; }
.open-bet-editor.compact > label > span, .open-bet-editor.compact > .open-bet-pending-value > span { align-self: start; margin: 0; line-height: 11px; }
.open-bet-editor.compact > .open-bet-pending-value b { align-self: end; width: 100%; }

/* Approved Open Bets 1A: compact editable columns and aligned result. */
.open-bet-editor.compact {
  grid-template-columns: 74px 112px minmax(100px, 1fr);
  gap: 7px;
  padding: 7px 8px 8px;
}
.open-bet-editor.compact > label,
.open-bet-editor.compact > .open-bet-pending-value {
  grid-template-rows: 14px 29px;
}
.open-bet-editor input[type="text"],
.open-bet-editor input[inputmode="decimal"],
.open-bet-pending-value b {
  height: 29px;
}
.open-bet-pending-value b {
  justify-content: flex-end;
  text-align: right;
}
.open-bet.pending-order.back::before { background: #087baa; }
.open-bet.pending-order.lay::before { background: #b42f62; }
.open-bets-group.group-unmatched .open-bet + .open-bet {
  margin-top: 8px;
  border-top: 1px solid #fff;
}
.open-bet-edit-actions {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* Cash Out uses the full offer surface to communicate positive or negative P&L. */
.cashout-offer.cashout-positive,
.cashout-offer.cashout-negative {
  color: #fff;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 5px rgba(5,30,25,.14);
}
.cashout-offer.cashout-positive {
  background: linear-gradient(90deg,#197858 0%,#35a27c 100%);
  border-color: #126346;
}
.cashout-offer.cashout-negative {
  background: linear-gradient(90deg,#a91f3d 0%,#d6425d 100%);
  border-color: #8c132d;
}
.cashout-offer.cashout-positive button,
.cashout-offer.cashout-negative button,
.cashout-offer.cashout-positive > span b,
.cashout-offer.cashout-negative > span b {
  color: #fff;
}
.cashout-offer.cashout-positive button,
.cashout-offer.cashout-negative button {
  border-right-color: rgba(255,255,255,.3);
}
.cashout-offer.cashout-positive button:hover:not(:disabled),
.cashout-offer.cashout-negative button:hover:not(:disabled) {
  background: rgba(255,255,255,.1);
}
.open-bets-group .open-bet + .open-bet {
  margin-top: 8px;
  border-top: 1px solid #fff;
}

@media (max-width: 900px) {
  .open-bet-editor.compact {
    grid-template-columns: 62px 94px minmax(90px, 1fr);
    gap: 5px;
  }
  .open-bet-pending-value {
    grid-column: auto;
  }
  .open-bet-pending-value b {
    justify-content: flex-end;
  }
}

@media (min-width: 1201px) {
  .ticket-inputs input { height: 31px; }
  .odds-stepper button, .stake-control button { height: 31px; }
  .ticket-inputs > .indicative b { min-height: 31px; }
}

/* Full betting and transaction ledgers. */
.ledger-page { width: calc(100% - 32px); max-width: 1500px; min-height: calc(100vh - var(--topbar-height)); margin-inline: auto; padding: 16px 0 36px; }
.ledger-title { min-height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #fff; background: #171b20; border-radius: 7px 7px 0 0; }
.ledger-title h1 { margin: 0; font-size: .9rem; }
.ledger-title button { min-height: 31px; padding: 0 12px; color: #fff; background: #30363d; border: 1px solid #6c757e; border-radius: 4px; font-size: .65rem; font-weight: 700; }
.ledger-summary { min-height: 68px; display: grid; grid-template-columns: repeat(5,1fr); background: #f7f8f9; border: 1px solid #c7cdd3; border-top: 0; }
.ledger-summary > span { display: grid; place-content: center; gap: 4px; text-align: center; border-right: 1px solid #d9dee3; }
.ledger-summary > span:last-child { border-right: 0; }
.ledger-summary small { font-size: .61rem; font-weight: 760; letter-spacing: .045em; text-transform: uppercase; }
.ledger-summary b { font-size: .7rem; font-variant-numeric: tabular-nums; }
.positive { color: #07834f !important; }
.negative { color: #d31336 !important; }
.ledger-filters { min-height: 55px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 8px 14px; background: #fff; border: 1px solid #c7cdd3; border-top: 0; }
.segmented { display: flex; overflow: hidden; padding: 3px; background: #f4f5f6; border: 1px solid #c9ced3; border-radius: 6px; }
.segmented button { min-height: 29px; padding: 0 13px; color: #455565; background: transparent; border: 0; border-radius: 4px; font-size: .63rem; }
.segmented button.active.dark { color: #fff; background: #171b20; }
.segmented button.active.gold { color: #17130a; background: #f0b91f; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.ledger-filters label { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px; color: #5a6977; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.ledger-filters input, .ledger-filters select { height: 35px; padding: 0 9px; color: #14293c; background: #fff; border: 1px solid #aeb9c3; border-radius: 4px; font-size: .68rem; }
.ledger-search { margin-left: auto; }
.ledger-search input { width: 250px; }
.ledger-table { background: #fff; border: 1px solid #c7cdd3; border-top: 0; }
.ledger-row { min-height: 58px; display: grid; align-items: center; gap: 9px; padding: 7px 12px; border-bottom: 1px solid #d9dde1; }
.bets-table .ledger-row { grid-template-columns: 120px minmax(230px,1fr) 65px 70px 90px 90px 65px 95px 90px 70px; }
.transactions-table .ledger-row { grid-template-columns: 155px 125px minmax(300px,1fr) 70px 110px 115px; }
.ledger-column-head { min-height: 34px; color: #33485b; background: #e6e8ea; font-size: .56rem; font-weight: 770; letter-spacing: .035em; text-transform: uppercase; }
.ledger-row time { display: grid; gap: 1px; font-size: .62rem; }
.ledger-row time small { color: #5f7181; font-size: .57rem; }
.ledger-row time em { width: max-content; margin-top: 2px; padding: 2px 5px; background: #f2f3f4; border: 1px solid #d0d4d8; border-radius: 3px; font-size: .52rem; font-style: normal; }
.ledger-row > b { font-size: .64rem; font-variant-numeric: tabular-nums; }
.ledger-description { min-width: 0; display: grid; gap: 3px; }
.ledger-description a { overflow: hidden; color: #075fbd; font-size: .66rem; font-weight: 720; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.ledger-description a:hover { text-decoration: underline; }
.ledger-description > b { font-size: .65rem; }
.ledger-description small { color: #7a8792; font-size: .56rem; font-weight: 500; }
.side-tag, .flow-tag { width: max-content; padding: 4px 7px; border-radius: 3px; font-size: .56rem; }
.side-tag.back { color: #044e77; background: #8ed0ef; }
.side-tag.lay { color: #791d3c; background: #f4a8c1; }
.flow-tag.in { color: #08734a; background: #d8f5e7; }
.flow-tag.out { color: #ba1d37; background: #ffe0e5; }
.ledger-action { color: #075f92; font-size: .6rem; font-weight: 700; }
.ledger-empty { margin: 0; padding: 18px; color: #7a8792; text-align: center; font-size: .68rem; }
.transaction-summary { grid-template-columns: repeat(5,1fr); }

@media (max-width: 900px) {
  .ledger-page { width: 100%; padding-top: 0; overflow-x: auto; }
  .ledger-title, .ledger-summary, .ledger-filters, .ledger-table { min-width: 1050px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Player preferences and definitive compact order editor. */
.player-menu { width: 286px; }
.player-menu .player-menu-action { width: 100%; justify-content: space-between; }
.player-menu .player-menu-action svg { width: 13px; transition: transform .16s ease; }
.player-menu .player-menu-action svg.open { transform: rotate(180deg); }
.player-settings { display: grid; gap: 10px; padding: 11px 13px 12px; background: #f3f7fa; border-bottom: 1px solid var(--line); }
.player-settings > label:not(.placement-setting) { display: grid; grid-template-columns: 1fr 108px; align-items: center; gap: 8px; color: #263d52; font-size: .65rem; font-weight: 700; }
.player-settings select, .player-settings input { min-width: 0; height: 31px; padding: 0 7px; color: #102439; background: #fff; border: 1px solid #9eb0be; border-radius: 3px; font: inherit; }
.player-settings fieldset { margin: 0; padding: 8px; border: 1px solid #cbd5de; }
.player-settings legend { padding: 0 4px; color: #526578; font-size: .56rem; font-weight: 760; letter-spacing: .045em; text-transform: uppercase; }
.player-settings fieldset > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.player-settings fieldset label { min-width: 0; display: grid; gap: 3px; }
.player-settings fieldset label span { overflow: hidden; color: #65788a; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.player-settings fieldset input { width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.player-settings .save-stakes { min-height: 29px; width: 100%; justify-content: center; margin-top: 7px; padding: 0 8px; color: #091827; background: #e0b13f; border: 1px solid #b38418; border-radius: 3px; font-size: .6rem; font-weight: 780; }
.player-settings .placement-setting { display: flex; align-items: center; gap: 7px; color: #263d52; font-size: .61rem; font-weight: 690; }
.player-settings .placement-setting input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold-600); }

.open-bets-group.group-unmatched .open-bet-editor.compact { grid-template-columns: 72px 112px 116px; justify-content: space-between; gap: 7px; padding: 7px 8px 8px; }
.open-bets-group.group-unmatched .open-bet-editor.compact > label,
.open-bets-group.group-unmatched .open-bet-editor.compact > .open-bet-pending-value { min-width: 0; display: grid; grid-template-rows: 14px 29px; align-items: end; }
.open-bets-group.group-unmatched .open-bet-editor.compact > label > span,
.open-bets-group.group-unmatched .open-bet-editor.compact > .open-bet-pending-value > span { align-self: start; margin: 0; line-height: 11px; white-space: nowrap; }
.open-bets-group.group-unmatched .open-bet-editor input[type="text"],
.open-bets-group.group-unmatched .open-bet-editor input[inputmode="decimal"],
.open-bets-group.group-unmatched .open-bet-pending-value b { width: 100%; height: 29px; }
.open-bets-group.group-unmatched .open-bet-pending-value b { display: flex; align-items: center; justify-content: flex-end; padding: 0 7px; text-align: right; }

.ticket-card.back .ticket-inputs > .indicative { background: #d9eef9 !important; }
.ticket-card.back .ticket-inputs > .indicative b { color: #fff; background: #123b5b; }
.ticket-card.lay .ticket-inputs > .indicative { background: #f5d9e3 !important; }
.ticket-card.lay .ticket-inputs > .indicative b { color: #fff; background: #a92f5e; }

.account-dialog-backdrop, .placement-confirm-backdrop { position: fixed; z-index: 230; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2,10,20,.62); backdrop-filter: blur(2px); }
.account-dialog, .placement-confirm { width: min(430px,calc(100vw - 32px)); overflow: hidden; color: #102439; background: #fff; border: 1px solid #8799aa; border-top: 4px solid var(--gold-500); border-radius: 6px; box-shadow: 0 22px 55px rgba(1,10,19,.36); }
.placement-confirm.back { border-top-color: var(--back-600); }
.placement-confirm.lay { border-top-color: var(--lay-600); }
.account-dialog > header, .placement-confirm > header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; background: var(--navy-900); }
.account-dialog > header span, .placement-confirm > header span { font-size: .72rem; font-weight: 790; letter-spacing: .035em; text-transform: uppercase; }
.account-dialog > header button, .placement-confirm > header button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: #fff; background: transparent; border: 0; }
.account-dialog > header svg, .placement-confirm > header svg { width: 15px; }
.account-dialog-body, .placement-confirm-body { display: grid; gap: 11px; padding: 17px 18px; }
.account-dialog-body p { margin: 0 0 2px; color: #536678; font-size: .7rem; }
.account-dialog-body label { display: grid; gap: 5px; color: #31495f; font-size: .62rem; font-weight: 720; }
.account-dialog-body input { height: 38px; padding: 0 10px; color: #102439; background: #fff; border: 1px solid #9fb0be; border-radius: 3px; font-size: .78rem; }
.account-dialog-message { padding: 9px 10px; border-radius: 3px; font-size: .64rem; font-weight: 720; }
.account-dialog-message.success { color: #08734a; background: #e1f5ec; border: 1px solid #8ecdb3; }
.account-dialog-message.error { color: #a51f39; background: #fff0f3; border: 1px solid #edabb8; }
.account-dialog > footer, .placement-confirm > footer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; padding: 11px 18px 15px; background: #f3f6f8; border-top: 1px solid #d4dce3; }
.account-dialog > footer button, .placement-confirm > footer button { min-height: 37px; border: 1px solid #9eacb8; border-radius: 3px; font-size: .67rem; font-weight: 760; }
.account-dialog > footer .confirm, .placement-confirm > footer .confirm { color: #102439; background: linear-gradient(#e9c157,#d9a82f); border-color: #b38316; }
.placement-confirm-body > small { color: #63778a; font-size: .62rem; }
.placement-confirm-body h2 { margin: 0; font-size: 1.04rem; }
.placement-confirm-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 2px 0 0; }
.placement-confirm-body dl div { display: grid; gap: 3px; padding: 8px 10px; background: #eef4f8; border: 1px solid #d2dce4; }
.placement-confirm-body dt { color: #627588; font-size: .53rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.placement-confirm-body dd { margin: 0; color: #0c273e; font-size: .72rem; font-weight: 760; font-variant-numeric: tabular-nums; }

html[data-theme="dark"] body, html[data-theme="dark"] .exchange-main { color: #e7eef5; background: #091827; }
html[data-theme="dark"] .sports-sidebar, html[data-theme="dark"] .betslip-rail, html[data-theme="dark"] .betslip-tabs, html[data-theme="dark"] .empty-ticket, html[data-theme="dark"] .open-bets-list { color: #e7eef5; background: #102235; }
html[data-theme="dark"] .event-list, html[data-theme="dark"] .event-row, html[data-theme="dark"] .detail-market, html[data-theme="dark"] .market-caption { color: #e7eef5; background: #13283a; }
html[data-theme="dark"] .runner-market-card, html[data-theme="dark"] .runner-market-summary, html[data-theme="dark"] .runner-list-row { color: #e7eef5; background: #13283a; }
html[data-theme="dark"] .runner-list-head { color: #aab9c6; background: #0d2031; }
html[data-theme="dark"] .runner-market-name, html[data-theme="dark"] .runner-list-row > button:first-child { color: #e7eef5; }
html[data-theme="dark"] .event-name b, html[data-theme="dark"] .event-name a, html[data-theme="dark"] .sidebar-list button { color: #e7eef5; }
html[data-theme="dark"] .player-menu, html[data-theme="dark"] .player-menu::before, html[data-theme="dark"] .player-menu header, html[data-theme="dark"] .player-menu a, html[data-theme="dark"] .player-menu > button { color: #e7eef5; background: #102235; border-color: #496075; }
html[data-theme="dark"] .player-menu a:hover, html[data-theme="dark"] .player-menu button:hover { color: #fff; background: #1b3449; }
html[data-theme="dark"] .player-settings { background: #162b3e; border-color: #496075; }
html[data-theme="dark"] .player-settings > label, html[data-theme="dark"] .player-settings .placement-setting { color: #e7eef5; }

@media (max-width: 900px) {
  .open-bets-group.group-unmatched .open-bet-editor.compact { grid-template-columns: 62px 94px 100px; gap: 5px; }
  .player-menu { width: min(286px,calc(100vw - 16px)); }
}

/* Final value alignment: Profit/Liability belong to the ticket surface. */
.ticket-inputs > .indicative,
.ticket-card.back .ticket-inputs > .indicative,
.ticket-card.lay .ticket-inputs > .indicative {
  align-content: center;
  padding-inline: 10px !important;
}
.ticket-inputs > .indicative span,
.ticket-inputs > .indicative b {
  width: 100%;
  padding: 0;
  text-align: left;
}
.ticket-card.back .ticket-inputs > .indicative,
.ticket-card.back .ticket-inputs > .indicative b {
  color: #0a466b;
  background: #d9eef9 !important;
}
.ticket-card.lay .ticket-inputs > .indicative,
.ticket-card.lay .ticket-inputs > .indicative b {
  color: #8c234d;
  background: #f5d9e3 !important;
}
.ticket-inputs > .indicative b {
  min-height: 29px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  font-size: .74rem;
  font-weight: 720;
}
.open-bets-group.group-unmatched .open-bet-pending-value > span,
.open-bets-group.group-unmatched .open-bet-pending-value > b {
  padding-right: 7px;
  text-align: right;
}
.ticket-actions .place-order {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .065em;
}

@media (min-width: 1201px) {
  .ticket-inputs { grid-template-columns: 126px minmax(155px,1fr) 116px; }
}

/* Compact Unmatched inputs and neutral monetary values. */
.ticket-card.back .ticket-inputs > .indicative b,
.ticket-card.lay .ticket-inputs > .indicative b {
  color: #07182d !important;
}
.open-bets-group.group-unmatched .open-bet-editor.compact {
  grid-template-columns: 72px 88px minmax(100px,1fr);
  justify-content: initial;
  column-gap: 10px;
}

@media (max-width: 900px) {
  .open-bets-group.group-unmatched .open-bet-editor.compact {
    grid-template-columns: 62px 82px minmax(90px,1fr);
    column-gap: 7px;
  }
}

/* Center the three operational columns in the single betslip. */
.ticket-inputs label > span,
.ticket-inputs > .indicative span {
  text-align: center;
}
.ticket-inputs > .indicative b {
  justify-content: center;
  text-align: center;
}

/* NEXA bet history workspace. */
.bets-ledger { padding-top: 18px; background: #e9eef3; }
.bets-ledger .ledger-title { position: relative; min-height: 58px; justify-content: flex-start; gap: 10px; padding: 0 18px; background: linear-gradient(100deg,#06172a 0%,#0d2c48 100%); border-radius: 5px 5px 0 0; border-bottom: 3px solid var(--gold-500); }
.bets-ledger .ledger-title-mark { width: 28px; height: 28px; display: grid; place-items: center; color: #07182d; background: linear-gradient(145deg,#f1d176,#c99726); border-radius: 3px; font-size: .8rem; font-weight: 850; }
.bets-ledger .ledger-title h1 { font-size: .88rem; letter-spacing: .02em; }
.bets-ledger .ledger-title > small { color: #9fb3c6; font-size: .56rem; letter-spacing: .09em; text-transform: uppercase; }
.bets-ledger .ledger-title > button { margin-left: auto; background: #143650; border-color: #647c90; }
.bets-ledger .ledger-summary { min-height: 76px; background: #fff; border-color: #aebdca; box-shadow: 0 2px 5px rgba(4,24,42,.08); }
.bets-ledger .ledger-summary > span { position: relative; border-color: #d5dde4; }
.bets-ledger .ledger-summary > span::before { position: absolute; top: 0; right: 18px; left: 18px; height: 2px; content: ''; background: #d5a83c; opacity: .75; }
.bets-ledger .ledger-summary small { color: #526b82; font-size: .58rem; }
.bets-ledger .ledger-summary b { color: #071c30; font-size: .78rem; }
.bets-ledger .ledger-filters { min-height: 72px; align-items: flex-end; gap: 8px 10px; padding: 10px 13px 11px; background: #f8fafb; border-color: #aebdca; box-shadow: 0 2px 5px rgba(4,24,42,.05); }
.ledger-filter-block { display: grid; gap: 4px; }
.ledger-filter-block > span, .ledger-date-range label > span { color: #526b82; font-size: .51rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.bets-ledger .segmented { min-height: 35px; padding: 0; background: #fff; border-color: #9eafbd; border-radius: 2px; box-shadow: inset 0 -2px 0 #dbe2e8; }
.bets-ledger .segmented button { min-height: 34px; padding: 0 13px; color: #3c5267; border-right: 1px solid #d5dde4; border-radius: 0; font-size: .58rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.bets-ledger .segmented button:last-child { border-right: 0; }
.bets-ledger .segmented button:hover { background: #eef3f6; }
.bets-ledger .segmented button.active.dark { color: #fff; background: linear-gradient(#123a5a,#08233a); box-shadow: inset 0 -3px 0 #d9ad3d; }
.bets-ledger .segmented button.active.gold { color: #08192a; background: #f6e4aa; box-shadow: inset 0 -3px 0 #d3a12b; }
.bets-ledger .side-options button.active.back-choice { color: #063d5c; background: var(--back-200); }
.bets-ledger .side-options button.active.lay-choice { color: #75203f; background: var(--lay-200); }
.ledger-date-range { display: flex; align-items: flex-end; gap: 6px; }
.ledger-date-range label { display: grid !important; grid-template-columns: 1fr !important; gap: 4px !important; }
.ledger-date-range input { width: 126px; height: 34px !important; border-color: #9fb0bf !important; font-variant-numeric: tabular-nums; }
.ledger-date-range > i { height: 34px; display: grid; place-items: center; color: #718396; font-size: .72rem; font-style: normal; }
.ledger-date-range .clear-dates { height: 34px; padding: 0 10px; color: #9e203a; background: #fff; border: 1px solid #d69aaa; border-radius: 3px; font-size: .58rem; font-weight: 720; }
.bets-ledger .ledger-table { margin-top: 10px; border-color: #aebdca; box-shadow: 0 4px 12px rgba(4,24,42,.07); }
.bets-ledger .ledger-column-head { min-height: 38px; color: #e9f2f8; background: #102d46; border-bottom: 2px solid var(--gold-500); }
.bets-ledger .bet-ledger-row { position: relative; min-height: 64px; background: #fff; }
.bets-ledger .bet-ledger-row:nth-of-type(odd) { background: #f7fafc; }
.bets-ledger .bet-ledger-row.record-win { box-shadow: inset 4px 0 0 #18a365; }
.bets-ledger .bet-ledger-row.record-loss { box-shadow: inset 4px 0 0 #e32645; }
.bets-ledger .bet-ledger-row.record-unmatched { box-shadow: inset 4px 0 0 #8b98a3; }
.bets-ledger .bet-ledger-row.record-cashout { box-shadow: inset 4px 0 0 #e58b22; }
.bets-ledger .bet-ledger-row.record-matched { box-shadow: inset 4px 0 0 #d5aa3d; }
.bets-ledger .bet-ledger-row.record-neutral { box-shadow: inset 4px 0 0 #bdc5cc; }
.bets-ledger .ledger-description a { color: #075f98; font-size: .68rem; }
.bets-ledger .record-status { border-radius: 10px; padding: 4px 8px; }
.bets-ledger .record-status.status-won { color: #08734a; background: #d9f4e7; border-color: #80c9aa; }
.bets-ledger .record-status.status-lost { color: #ad1e39; background: #ffe2e7; border-color: #e9a1ae; }
.bets-ledger .record-status.status-cash-out { color: #684b08; background: #f8e6a9; border-color: #d2ae44; }
.bets-ledger .record-status.status-cancelled, .bets-ledger .record-status.status-void { color: #596979; background: #edf0f2; border-color: #c1c9d0; }
.bets-ledger .ledger-empty { min-height: 90px; display: grid; place-items: center; background: #f8fafb; }
.ledger-pagination { min-height: 58px; display: grid; grid-template-columns: 116px 1fr 116px; align-items: center; gap: 14px; padding: 9px 14px; background: #eef3f6; border-top: 1px solid #b9c6d0; }
.ledger-pagination button { min-height: 34px; color: #fff; background: #0b2b45; border: 1px solid #46627a; border-radius: 2px; font-size: .56rem; font-weight: 760; letter-spacing: .05em; }
.ledger-pagination button:not(:disabled):hover { background: #164766; border-color: #d3a12b; }
.ledger-pagination button:disabled { color: #84919c; background: #e1e6ea; border-color: #c8d0d6; cursor: default; }
.ledger-pagination > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 5px; color: #233f56; font-size: .66rem; font-weight: 700; letter-spacing: .04em; }
.ledger-pagination > span small { width: 100%; color: #708395; font-size: .56rem; font-weight: 650; text-align: center; }

html[data-theme="dark"] .bets-ledger { background: #091827; }
html[data-theme="dark"] .bets-ledger .ledger-summary, html[data-theme="dark"] .bets-ledger .ledger-filters, html[data-theme="dark"] .bets-ledger .ledger-table, html[data-theme="dark"] .bets-ledger .bet-ledger-row { color: #e7eef5; background: #102235; border-color: #40566a; }
html[data-theme="dark"] .bets-ledger .bet-ledger-row:nth-of-type(odd) { background: #13283a; }
html[data-theme="dark"] .bets-ledger .ledger-summary b, html[data-theme="dark"] .bets-ledger .ledger-description > b { color: #e7eef5; }
html[data-theme="dark"] .ledger-pagination { background: #0d2031; border-color: #40566a; }
html[data-theme="dark"] .ledger-pagination > span { color: #dce7ef; }

/* Account movements uses the same NEXA ledger language, without outcome rails. */
.transactions-ledger { padding-top: 18px; background: #e9eef3; }
.transactions-ledger .ledger-title { min-height: 58px; justify-content: flex-start; gap: 10px; padding: 0 18px; background: linear-gradient(100deg,#06172a 0%,#0d2c48 100%); border-radius: 5px 5px 0 0; border-bottom: 3px solid var(--gold-500); }
.transactions-ledger .ledger-title-mark { width: 28px; height: 28px; display: grid; place-items: center; color: #07182d; background: linear-gradient(145deg,#f1d176,#c99726); border-radius: 3px; font-size: .8rem; font-weight: 850; }
.transactions-ledger .ledger-title h1 { font-size: .88rem; letter-spacing: .02em; }
.transactions-ledger .ledger-title > small { color: #9fb3c6; font-size: .56rem; letter-spacing: .09em; text-transform: uppercase; }
.transactions-ledger .ledger-title > button { margin-left: auto; background: #143650; border-color: #647c90; }
.transactions-ledger .ledger-summary { min-height: 76px; background: #fff; border-color: #aebdca; box-shadow: 0 2px 5px rgba(4,24,42,.08); }
.transactions-ledger .ledger-summary > span { position: relative; border-color: #d5dde4; }
.transactions-ledger .ledger-summary > span::before { position: absolute; top: 0; right: 18px; left: 18px; height: 2px; content: ''; background: #d5a83c; opacity: .75; }
.transactions-ledger .ledger-summary small { color: #526b82; font-size: .58rem; }
.transactions-ledger .ledger-summary b { color: #071c30; font-size: .78rem; }
.transactions-ledger .ledger-filters { min-height: 72px; align-items: flex-end; gap: 8px 10px; padding: 10px 13px 11px; background: #f8fafb; border-color: #aebdca; box-shadow: 0 2px 5px rgba(4,24,42,.05); }
.transactions-ledger .segmented { min-height: 35px; padding: 0; background: #fff; border-color: #9eafbd; border-radius: 2px; box-shadow: inset 0 -2px 0 #dbe2e8; }
.transactions-ledger .segmented button { min-height: 34px; padding: 0 13px; color: #3c5267; border-right: 1px solid #d5dde4; border-radius: 0; font-size: .58rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.transactions-ledger .segmented button:last-child { border-right: 0; }
.transactions-ledger .segmented button:hover { background: #eef3f6; }
.transactions-ledger .segmented button.active.gold { color: #08192a; background: #f6e4aa; box-shadow: inset 0 -3px 0 #d3a12b; }
.transactions-ledger .ledger-table { margin-top: 10px; border-color: #aebdca; box-shadow: 0 4px 12px rgba(4,24,42,.07); }
.transactions-ledger .ledger-column-head { min-height: 38px; color: #e9f2f8; background: #102d46; border-bottom: 2px solid var(--gold-500); }
.transactions-ledger .transaction-ledger-row { min-height: 64px; background: #fff; box-shadow: none; }
.transactions-ledger .transaction-ledger-row:nth-of-type(odd) { background: #f7fafc; }
html[data-theme="dark"] .transactions-ledger { background: #091827; }
html[data-theme="dark"] .transactions-ledger .ledger-summary, html[data-theme="dark"] .transactions-ledger .ledger-filters, html[data-theme="dark"] .transactions-ledger .ledger-table, html[data-theme="dark"] .transactions-ledger .transaction-ledger-row { color: #e7eef5; background: #102235; border-color: #40566a; }
html[data-theme="dark"] .transactions-ledger .transaction-ledger-row:nth-of-type(odd) { background: #13283a; }
html[data-theme="dark"] .transactions-ledger .ledger-summary b, html[data-theme="dark"] .transactions-ledger .ledger-description > b { color: #e7eef5; }

/* Desktop ledger readability and stable field alignment. */
.bets-ledger .ledger-title, .transactions-ledger .ledger-title { min-height: 64px; }
.bets-ledger .ledger-title h1, .transactions-ledger .ledger-title h1 { font-size: 1rem; }
.bets-ledger .ledger-title > small, .transactions-ledger .ledger-title > small { font-size: .62rem; }
.bets-ledger .ledger-title > button, .transactions-ledger .ledger-title > button { min-height: 35px; font-size: .7rem; }
.bets-ledger .ledger-summary, .transactions-ledger .ledger-summary { min-height: 84px; }
.bets-ledger .ledger-summary small, .transactions-ledger .ledger-summary small { font-size: .65rem; }
.bets-ledger .ledger-summary b, .transactions-ledger .ledger-summary b { font-size: .88rem; }
.bets-ledger .ledger-filters, .transactions-ledger .ledger-filters { min-height: 78px; }
.ledger-filter-block > span, .ledger-date-range label > span { font-size: .57rem; }
.bets-ledger .segmented button, .transactions-ledger .segmented button { font-size: .64rem; }
.ledger-filters input, .ledger-filters select { min-height: 36px; font-size: .73rem; }
.bets-ledger .ledger-column-head, .transactions-ledger .ledger-column-head { min-height: 42px; font-size: .62rem; }
.bets-ledger .bet-ledger-row, .transactions-ledger .transaction-ledger-row { min-height: 70px; }
.ledger-row time { font-size: .68rem; }
.ledger-row time small { font-size: .61rem; }
.ledger-row time em { font-size: .56rem; }
.ledger-row > b { font-size: .7rem; }
.ledger-description > b { font-size: .72rem; }
.ledger-description a { font-size: .74rem; }
.ledger-description small { font-size: .61rem; }
.side-tag, .flow-tag { font-size: .61rem; }
.bets-ledger .record-status { font-size: .6rem; }
.ledger-action { font-size: .66rem; }

@media (max-width: 1100px) {
  .bets-ledger .ledger-filters, .transactions-ledger .ledger-filters { min-width: 1050px; }
  .ledger-date-range { margin-left: 0; }
}

/* Betfair-style compact market navigator in event detail. */
.market-sidebar-event { min-height: 42px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 5px 9px; color: #fff; background: #14334f; border-bottom: 2px solid var(--gold-500); }
.market-sidebar-event b { overflow: hidden; font-size: .67rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.market-sidebar-event small { color: #aebfce; font-size: .54rem; font-variant-numeric: tabular-nums; }
.market-sidebar .market-link-compact { width: calc(100% - 8px); min-height: 27px; height: 27px; display: grid; grid-template-columns: minmax(0, 1fr) 17px; align-items: center; gap: 5px; margin: 0 4px; padding: 0 5px 0 8px; color: #075f98; background: #fff; border: 0; border-bottom: 1px solid #d8dfe5; border-radius: 0; box-shadow: none; text-align: left; }
.market-sidebar .market-link-compact:hover { color: #034b78; background: #eef5f9; }
.market-sidebar .market-link-compact.selected { color: #061d32; background: #fff4cf; border-color: #d8dfe5; box-shadow: inset 3px 0 0 var(--gold-500); }
.market-sidebar .market-link-compact b { min-width: 0; overflow: hidden; font-size: .64rem; font-weight: 560; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.market-sidebar .market-link-compact.primary-market-link b { font-weight: 730; }
.market-sidebar .market-link-compact > .market-status-mark { grid-row: auto; width: 15px; height: 15px; display: grid; place-items: center; color: #fff; background: #64bb0f; border: 1px solid #4b9a07; border-radius: 1px; font-size: .58rem; font-weight: 850; }
.market-sidebar .market-link-compact > .market-status-mark.suspended,
.market-sidebar .market-link-compact > .market-status-mark.closed { color: #6a7782; background: #e2e7eb; border-color: #b9c3cb; }
.sidebar-collapsed .market-sidebar-event { display: none; }
.sidebar-collapsed .market-sidebar .market-link-compact { width: 48px; grid-template-columns: 1fr; justify-items: center; margin-inline: 7px; padding: 0; }
.sidebar-collapsed .market-sidebar .market-link-compact b { display: none; }

html[data-theme="dark"] .market-sidebar .market-link-compact { color: #9bcce9; background: #102235; border-color: #30475a; }
html[data-theme="dark"] .market-sidebar .market-link-compact:hover { color: #d9edf8; background: #173249; }
html[data-theme="dark"] .market-sidebar .market-link-compact.selected { color: #fff; background: #2b3c43; }

@media (max-width: 820px) {
  .market-sidebar-event { display: none; }
  .market-sidebar .market-link-compact,
  .sidebar-collapsed .market-sidebar .market-link-compact { width: auto; min-width: 150px; min-height: 36px; height: 36px; flex: 0 0 auto; grid-template-columns: minmax(0,1fr) 17px; justify-items: initial; margin: 0; padding: 0 6px 0 9px; border: 1px solid #d8dfe5; }
  .sidebar-collapsed .market-sidebar .market-link-compact b { display: block; }
}

/* Market state overlays keep prices legible while preventing interaction. */
.detail-suspension { top: 50%; left: 0; width: 100%; min-width: 0; min-height: 42px; display: grid; place-items: center; padding: 0 12px; border-width: 1px 0; border-radius: 0; box-shadow: none; pointer-events: none; transform: translateY(-50%); }
.detail-suspension.is-suspended { color: #9f1530; background: rgba(207,23,53,.13); border-color: rgba(169,14,40,.28); text-shadow: 0 1px 0 rgba(255,255,255,.9); }
.detail-suspension.is-finished { color: #485767; background: rgba(222,227,232,.86); border-color: rgba(126,140,153,.46); text-shadow: 0 1px 0 #fff; }
.market-suspended .odds-cell { opacity: .82; filter: saturate(.82); }
.market-finished .odds-cell { opacity: .64; filter: grayscale(.5); }
.condensed-suspension.is-finished { color: #405061; background: #dfe4e8; border: 1px solid #bac4cc; }
.market-sidebar .market-link-compact > .market-status-mark.unavailable { color: #6a7782; background: #e2e7eb; border-color: #b9c3cb; }

/* Missing price levels are neutral, never mistaken for an active Back/Lay quote. */
.odds-cell.unavailable,
.depth-grid .odds-cell.unavailable,
.condensed-runner .odds-cell.unavailable,
.score-selection .odds-cell.unavailable { color: #778491; background: #e3e7ea; border-color: #cbd2d8; opacity: 1; filter: none; }
.odds-cell.unavailable b, .odds-cell.unavailable small { color: #778491; }

/* The most liquid handicap/total line is promoted without hiding alternatives. */
.runner-row.principal-line { background: linear-gradient(90deg,rgba(226,179,55,.13),rgba(226,179,55,.035)); box-shadow: inset 3px 0 0 var(--gold-500); }
.runner-row.principal-line .runner-name small { color: #8a650b; font-weight: 760; letter-spacing: .025em; text-transform: uppercase; }
.condensed-runner.principal-line { background: rgba(226,179,55,.1); box-shadow: inset 3px 0 0 var(--gold-500); }
.condensed-runner > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.condensed-runner > span small { color: #8a650b; font-size: .48rem; font-weight: 760; letter-spacing: .025em; line-height: 1; text-transform: uppercase; }

/* Approved compact Betslip and Open Bets presentation. */
.ticket-inputs { grid-template-columns: minmax(118px,.9fr) minmax(145px,1.1fr); margin-bottom: 6px; }
@media (min-width: 1201px) {
  .ticket-inputs { grid-template-columns: minmax(118px,.9fr) minmax(145px,1.1fr); margin-bottom: 6px; }
}
.ticket-potential { min-height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 10px; margin: 0 12px 7px; padding: 6px 10px; color: #173d5b; background: #eef4f7; border: 1px solid #c0ccd5; border-radius: 3px; }
.ticket-potential span { font-size: .58rem; font-weight: 760; letter-spacing: .055em; text-transform: uppercase; }
.ticket-potential b { font-size: .79rem; font-variant-numeric: tabular-nums; }
.ticket-potential small { grid-column: 1 / -1; color: #6b7d8d; font-size: .49rem; letter-spacing: .04em; text-transform: uppercase; }
.ticket-card.back .ticket-potential { color: #0a466b; background: #e2f2fa; border-color: #a9cfdf; }
.ticket-card.lay .ticket-potential { color: #842449; background: #f9e2ea; border-color: #dfb1c1; }
.unmatched-keep { grid-column: 1 / -1; min-height: 29px; display: flex; align-items: center; gap: 7px; padding: 4px 7px; color: #17364f; background: rgba(255,255,255,.72); border: 1px solid #ccd6de; cursor: pointer; }
.unmatched-keep input { width: 15px; height: 15px; margin: 0; accent-color: #168a59; }
.unmatched-keep span { font-size: .58rem; font-weight: 740; letter-spacing: .035em; text-transform: uppercase; }
.unmatched-keep small { margin-left: auto; color: #08704a; font-size: .5rem; font-weight: 760; text-transform: uppercase; }
.unmatched-keep:has(input:disabled) { cursor: default; background: #e8f4ee; border-color: #a9cfbc; }
.average-price-toggle { min-height: 22px; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0 7px; color: #dce8f1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 2px; font-size: .52rem; font-weight: 700; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.average-price-toggle input { width: 13px; height: 13px; margin: 0; accent-color: var(--gold-400); }
.open-bets-group > h3 { gap: 7px; }
.open-bets-group > h3 > b { flex: 0 0 auto; }
.open-bet::before { display: none; }
.open-bet + .open-bet { margin-top: 2px; border-top: 1px solid #d6dee5; }
.matched-bet-columns { font-size: .49rem; }
.open-bet-edit-actions { grid-template-columns: 1fr 1fr; }
.primary-suspension-badge { position: absolute; z-index: 4; top: 7px; right: 8px; padding: 3px 7px; color: #fff; background: #cf1735; border: 1px solid #a90e28; border-radius: 2px; box-shadow: 0 1px 3px rgba(77,9,20,.15); pointer-events: none; font-size: .57rem; font-weight: 760; letter-spacing: .055em; }

@media (max-width: 900px) {
  .ticket-potential { margin-inline: 8px; }
  .average-price-toggle { padding-inline: 5px; }
}

/* Open Bets v2 — compact professional order workspace. */
.open-bets-panel > header {
  height: 40px;
  padding-inline: 10px;
  background: linear-gradient(100deg,#06182b,#102f49);
  border-bottom: 2px solid var(--gold-500);
}
.open-bets-panel > header span { font-size: .61rem; letter-spacing: .075em; }
.open-bets-panel > header button { min-height: 26px; color: #dce8f1; border-color: #62798d; font-size: .57rem; }
.open-bets-list { padding: 7px; background: #e8edf1; }
.open-bets-group { background: transparent; }
.open-bets-group + .open-bets-group { margin-top: 9px; border: 0; box-shadow: none; }
.open-bets-group > h3,
.open-bets-group.group-unmatched > h3 {
  position: static;
  min-height: 30px;
  gap: 6px;
  margin: 0 0 5px;
  padding: 0 7px 0 9px;
  color: #17344c;
  background: #f8fafb;
  border: 1px solid #b9c5cf;
  border-left: 3px solid #168a59;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(4,24,42,.05);
  font-size: .62rem;
  letter-spacing: .07em;
}
.open-bets-group.group-unmatched > h3 { color: #403817; border-left-color: var(--gold-500); }
.open-bets-group > h3 > b,
.open-bets-group.group-unmatched > h3 > b {
  min-width: 18px;
  height: 18px;
  color: #fff;
  background: #17344c;
  font-size: .52rem;
}
.open-bets-group.group-unmatched > h3 > b { color: #172335; background: var(--gold-400); }
.average-price-toggle {
  min-height: 20px;
  margin-left: auto;
  color: #365168;
  background: #eef3f6;
  border-color: #c2cdd5;
  font-size: .49rem;
}
.open-bets-group > p { margin-bottom: 4px; padding: 9px; border: 1px solid #c4ced6; border-radius: 3px; }

.open-bet.order-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 6px !important;
  padding: 0;
  color: #0b2236;
  background: #fff !important;
  border: 1px solid #b8c4ce;
  border-left: 3px solid #2b95c6;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(5,28,47,.07);
}
.open-bet.order-card.lay { border-left-color: #c25a82; }
.open-bet.order-card::before { display: none; }
.open-bet.order-card + .open-bet.order-card { margin-top: 0; border-top: 1px solid #b8c4ce; }
.order-card-head {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 7px;
  background: #f6f8fa;
  border-bottom: 1px solid #d6dee5;
}
.order-card-tags { min-width: 0; display: flex; align-items: center; gap: 4px; }
.order-side,
.order-state,
.order-count {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border: 1px solid #c5d0d8;
  border-radius: 9px;
  font-size: .48rem;
  font-weight: 790;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-card.back .order-side { color: #07527a; background: #dceff8; border-color: #9bc9df; }
.order-card.lay .order-side { color: #7b2145; background: #f6dde7; border-color: #daa6ba; }
.order-state { color: #08704a; background: #e3f3eb; border-color: #acd2bf; }
.status-unmatched .order-state,
.status-partial .order-state { color: #75560b; background: #fff4d5; border-color: #dcc276; }
.order-count { color: #526679; background: #fff; }
.order-card-head > small {
  min-width: 0;
  overflow: hidden;
  color: #718190;
  font-size: .45rem;
  font-weight: 680;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-card-identity {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #fff !important;
  border-bottom: 1px solid #e0e6eb;
}
.order-card-identity > span { min-width: 0; display: grid; gap: 2px; }
.order-card-identity b,
.order-card-identity small,
.order-card-identity a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-identity b { color: #0a2135; font-size: .7rem; }
.order-card-identity small { color: #627487; font-size: .54rem; }
.order-card-identity a { color: #076091; font-size: .57rem; font-weight: 650; text-align: right; text-decoration: none; }
.order-card-identity a:hover { text-decoration: underline; }
.order-card-metrics {
  display: grid;
  grid-template-columns: .7fr .95fr 1.25fr;
  margin: 0;
  background: #f8fafb;
}
.order-card-metrics > div { min-width: 0; padding: 6px 8px 7px; border-right: 1px solid #d8e0e6; }
.order-card-metrics > div:last-child { border-right: 0; text-align: right; }
.order-card-metrics dt { color: #657789; font-size: .46rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.order-card-metrics dd { margin: 2px 0 0; color: #0c263d; font-size: .69rem; font-weight: 780; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-card.back .order-card-metrics > div:first-child { background: rgba(77,174,218,.1); }
.order-card.lay .order-card-metrics > div:first-child { background: rgba(214,106,147,.1); }
.order-card-metrics .order-result dd { color: #08704a; }
.order-card.lay .order-card-metrics .order-result dd { color: #a62950; }
.open-bet.order-card .cashout-offer {
  width: calc(100% - 14px);
  min-height: 30px;
  margin: 5px 7px 7px;
  box-shadow: none;
}
.open-bet.order-card .cashout-offer button { min-width: 0; min-height: 29px; flex: 1; font-size: .58rem; }
.open-bet.order-card .cashout-offer > span { min-width: 84px; font-size: .64rem; }

.open-bet.order-card .open-bet-editor.compact {
  grid-template-columns: 66px 82px minmax(94px,1fr);
  gap: 6px 8px;
  padding: 6px 7px 7px;
  background: #f7f9fa;
  border: 0;
}
.open-bet.order-card .open-bet-editor.compact > label,
.open-bet.order-card .open-bet-editor.compact > .open-bet-pending-value { grid-template-rows: 13px 28px; }
.open-bet.order-card .open-bet-editor input[inputmode="decimal"],
.open-bet.order-card .open-bet-pending-value b { height: 28px; }
.open-bet.order-card .unmatched-keep {
  min-height: 27px;
  padding: 3px 6px;
  background: #fff;
  border-color: #cbd5dc;
  border-radius: 2px;
}
.open-bet.order-card .unmatched-keep span { font-size: .53rem; }
.open-bet.order-card .open-bet-edit-actions { gap: 6px; }
.open-bet.order-card .open-bet-edit-actions button { min-height: 28px; }

.cashout-confirm-body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.cashout-confirm-body dl div { min-width: 0; display: grid; gap: 3px; padding: 8px 9px; background: #eef3f6; border: 1px solid #d0d9e0; }
.cashout-confirm-body dt { color: #63778a; font-size: .5rem; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.cashout-confirm-body dd { overflow: hidden; margin: 0; color: #102a41; font-size: .69rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.cancel-order-confirm { border-top-color: #c42643; }
.cancel-order-confirm > footer .confirm.danger { color: #fff; background: #c92343; border-color: #9e1530; }
.cancel-order-confirm > footer .confirm.danger:hover:not(:disabled) { background: #ad1735; }

html[data-theme="dark"] .open-bets-list { background: #091827; }
html[data-theme="dark"] .open-bets-group > h3,
html[data-theme="dark"] .open-bets-group.group-unmatched > h3,
html[data-theme="dark"] .open-bet.order-card,
html[data-theme="dark"] .order-card-identity { color: #e7eef5; background: #102235 !important; border-color: #40566a; }
html[data-theme="dark"] .order-card-head,
html[data-theme="dark"] .order-card-metrics,
html[data-theme="dark"] .open-bet.order-card .open-bet-editor.compact { background: #13283a; border-color: #40566a; }
html[data-theme="dark"] .order-card-identity b,
html[data-theme="dark"] .order-card-metrics dd { color: #e7eef5; }

@media (max-width: 900px) {
  .open-bets-list { padding: 6px; }
  .order-card-identity { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .order-card-identity a { text-align: left; }
  .open-bet.order-card .open-bet-editor.compact { grid-template-columns: 60px 78px minmax(88px,1fr); gap: 5px; }
}

/* Open Bets v2.1 — dense terminal layout. */
.open-bets-panel > header { height: 34px; }
.open-bets-list { padding: 5px; }
.open-bets-group + .open-bets-group { margin-top: 6px; }
.open-bets-group > h3,
.open-bets-group.group-unmatched > h3 {
  min-height: 25px;
  margin-bottom: 3px;
  padding-inline: 7px;
  font-size: .53rem;
}
.open-bets-group > h3 > b,
.open-bets-group.group-unmatched > h3 > b { min-width: 16px; height: 16px; font-size: .47rem; }
.average-price-toggle { min-height: 18px; padding-inline: 5px; }

.open-bet.order-card { margin-bottom: 4px !important; border-radius: 2px; box-shadow: none; }
.order-card-head { min-height: 21px; padding: 2px 6px; }
.order-side,
.order-state,
.order-count { min-height: 15px; padding-inline: 5px; border-radius: 2px; font-size: .43rem; }
.order-card-head > small { font-size: .41rem; }
.order-card-identity {
  min-height: 32px;
  grid-template-columns: minmax(0,1fr) minmax(0,.95fr);
  gap: 6px;
  padding: 4px 6px;
}
.order-card-identity > span { gap: 0; }
.order-card-identity b { font-size: .63rem; line-height: 1.1; }
.order-card-identity small { font-size: .48rem; line-height: 1.1; }
.order-card-identity a { font-size: .51rem; line-height: 1.1; }
.order-card-metrics > div { min-height: 33px; display: grid; align-content: center; padding: 3px 6px 4px; }
.order-card-metrics dt { font-size: .41rem; line-height: 1; }
.order-card-metrics dd { margin-top: 1px; font-size: .62rem; line-height: 1.05; }
.open-bet.order-card .cashout-offer { min-height: 25px; margin: 3px 5px 4px; width: calc(100% - 10px); }
.open-bet.order-card .cashout-offer button { min-height: 24px; font-size: .52rem; }
.open-bet.order-card .cashout-offer > span { min-width: 76px; font-size: .57rem; }

.open-bet.order-card .open-bet-editor.compact {
  grid-template-columns: 58px 70px minmax(88px,1fr);
  gap: 4px 6px;
  padding: 4px 5px 5px;
}
.open-bet.order-card .open-bet-editor.compact > label,
.open-bet.order-card .open-bet-editor.compact > .open-bet-pending-value { grid-template-rows: 10px 25px; }
.open-bet.order-card .open-bet-editor.compact > label > span,
.open-bet.order-card .open-bet-editor.compact > .open-bet-pending-value > span {
  font-size: .43rem;
  line-height: 9px;
}
.open-bet.order-card .open-bet-editor input[inputmode="decimal"],
.open-bet.order-card .open-bet-pending-value b { height: 25px; padding-inline: 5px; font-size: .59rem; }
.open-bet.order-card .unmatched-keep {
  grid-column: 1;
  min-height: 25px;
  gap: 4px;
  padding: 2px 4px;
}
.open-bet.order-card .unmatched-keep input { width: 13px; height: 13px; }
.open-bet.order-card .unmatched-keep span { overflow: hidden; font-size: .44rem; text-overflow: ellipsis; white-space: nowrap; }
.open-bet.order-card .unmatched-keep small { display: none; }
.open-bet.order-card .open-bet-edit-actions { grid-column: 2 / -1; gap: 4px; }
.open-bet.order-card .open-bet-edit-actions button { min-height: 25px; font-size: .51rem; }

@media (max-width: 900px) {
  .open-bets-list { padding: 4px; }
  .order-card-identity { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 5px; }
  .order-card-identity a { text-align: right; }
  .open-bet.order-card .open-bet-editor.compact { grid-template-columns: 56px 68px minmax(82px,1fr); gap: 4px; }
}

/* Open Bets v3 — Betfair-inspired exchange table, no decorative cards. */
.open-bets-panel > header {
  height: 32px;
  color: #fff;
  background: #07253d;
  border-bottom: 1px solid #041827;
}
.open-bets-panel > header button { min-height: 23px; border-color: #61778a; border-radius: 0; }
.open-bets-list { padding: 0; background: #fff; }
.open-bets-group,
.open-bets-group + .open-bets-group { margin: 0; border: 0; box-shadow: none; }
.open-bets-group > h3,
.open-bets-group.group-unmatched > h3 {
  min-height: 27px;
  margin: 0;
  padding: 0 6px 0 8px;
  color: #fff;
  background: #17344c;
  border: 0;
  border-bottom: 1px solid #071d30;
  border-left: 3px solid #e0b13f;
  border-radius: 0;
  box-shadow: none;
  font-size: .52rem;
}
.open-bets-group.group-matched > h3 { border-left-color: #20a16a; }
.open-bets-group > h3 > b,
.open-bets-group.group-unmatched > h3 > b {
  min-width: 17px;
  height: 17px;
  color: #071c30;
  background: #fff;
  border-radius: 9px;
}
.average-price-toggle {
  min-height: 19px;
  color: #eef5fa;
  background: rgba(255,255,255,.08);
  border-color: #718495;
  border-radius: 0;
}
.average-price-toggle input { accent-color: #e0b13f; }
.open-bets-group > p { margin: 0; border: 0; border-bottom: 1px solid #c7d0d7; border-radius: 0; }

.open-bet.order-card,
.open-bet.order-card + .open-bet.order-card {
  display: block;
  margin: 0 !important;
  overflow: visible;
  background: #fff !important;
  border: 0;
  border-bottom: 1px solid #b9c4cc;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}
.open-bet.order-card.execution {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(142px,.8fr);
}
.order-card-head { display: none; }
.order-card-identity {
  min-height: 36px;
  display: grid;
  grid-template-columns: 43px minmax(90px,1fr) minmax(75px,.9fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #fff !important;
  border-bottom: 0;
}
.order-card-tags {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 0;
}
.order-side,
.order-state,
.order-count {
  min-height: 18px;
  justify-content: center;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  font-size: .43rem;
}
.order-card.back .order-side { color: #073b57; background: #9ed9f1; }
.order-card.lay .order-side { color: #681d39; background: #f2b6cb; }
.order-state { color: #176946; background: #eef5f1; border-right: 1px solid #cbd6dd; }
.status-unmatched .order-state,
.status-partial .order-state { color: #6d530e; background: #fff5d6; }
.order-selection {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 3px 6px;
  border-right: 1px solid #d5dde3;
}
.order-card-identity .order-selection b,
.order-card-identity .order-selection small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-identity .order-selection b { color: #0b2134; font-size: .59rem; line-height: 1.05; }
.order-card-identity .order-selection small { color: #627487; font-size: .43rem; line-height: 1.05; }
.order-card-identity > a {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  color: #075f92;
  background: #f7f9fa;
  font-size: .49rem;
  line-height: 1.1;
  text-align: left;
  white-space: normal;
}

.open-bet.execution .order-card-identity {
  grid-template-columns: 41px minmax(0,1fr);
  grid-template-rows: 21px 18px;
}
.open-bet.execution .order-card-tags { grid-row: 1 / 3; }
.open-bet.execution .order-selection { border-right: 0; border-bottom: 1px solid #e0e6ea; }
.open-bet.execution .order-card-identity > a { padding-block: 2px; }
.open-bet.execution .order-card-metrics {
  min-height: 39px;
  grid-template-columns: .62fr .88fr 1.15fr;
  border-left: 1px solid #c7d1d8;
}
.open-bet.execution .order-card-metrics > div {
  min-height: 39px;
  padding: 3px 4px;
  background: #fff;
  border-color: #d5dde3;
}
.open-bet.execution .order-card-metrics dt { font-size: .37rem; line-height: 1; }
.open-bet.execution .order-card-metrics dd { margin-top: 2px; font-size: .57rem; }
.open-bet.execution.back .order-card-metrics > div:first-child { background: #dff2fa; }
.open-bet.execution.lay .order-card-metrics > div:first-child { background: #fae1ea; }
.open-bet.execution .cashout-offer {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 25px;
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 0;
  margin: 0;
  background: #edf7f2;
  border: 0;
  border-top: 1px solid #b9d8c8;
  border-radius: 0;
}
.open-bet.execution .cashout-offer.cashout-negative { background: #fff0f3; border-top-color: #e1bac3; }
.open-bet.execution .cashout-offer button {
  min-height: 24px;
  color: #075c3b;
  background: transparent;
  border: 0;
  border-right: 1px solid #b9d8c8;
  font-size: .51rem;
}
.open-bet.execution .cashout-offer.cashout-negative button { color: #9d1f3b; border-right-color: #e1bac3; }
.open-bet.execution .cashout-offer > span { min-width: 0; color: #075c3b; font-size: .55rem; }
.open-bet.execution .cashout-offer > span b { color: inherit; }
.open-bet.execution .cashout-offer.cashout-negative > span { color: #9d1f3b; }

.open-bet.pending-order .open-bet-editor.compact {
  grid-template-columns: 57px 70px minmax(86px,1fr);
  gap: 3px 5px;
  padding: 3px 5px 4px 48px;
  background: #f2f4f5;
  border-top: 1px solid #d2dae0;
}
.open-bet.pending-order .open-bet-editor.compact > label,
.open-bet.pending-order .open-bet-editor.compact > .open-bet-pending-value { grid-template-rows: 9px 23px; }
.open-bet.pending-order .open-bet-editor input[inputmode="decimal"],
.open-bet.pending-order .open-bet-pending-value b { height: 23px; font-size: .56rem; border-radius: 0; }
.open-bet.pending-order .unmatched-keep { min-height: 23px; border-radius: 0; }
.open-bet.pending-order .open-bet-edit-actions button { min-height: 23px; border-radius: 0; font-size: .48rem; }
.open-bet.pending-order .open-bet-edit-actions .update { background: #e1b442; }

html[data-theme="dark"] .open-bets-list { background: #102235; }
html[data-theme="dark"] .open-bet.order-card,
html[data-theme="dark"] .order-card-identity,
html[data-theme="dark"] .open-bet.execution .order-card-metrics > div { background: #13283a !important; border-color: #40566a; }
html[data-theme="dark"] .order-selection { border-color: #40566a; }
html[data-theme="dark"] .order-card-identity .order-selection b { color: #e7eef5; }
html[data-theme="dark"] .order-card-identity > a { color: #9bcce9; background: #102235; }

@media (max-width: 900px) {
  .open-bet.order-card.execution { grid-template-columns: minmax(0,1.1fr) minmax(132px,.9fr); }
  .order-card-identity { grid-template-columns: 41px minmax(86px,1fr) minmax(70px,.85fr); }
  .order-card-identity > a { text-align: left; }
  .open-bet.pending-order .open-bet-editor.compact { padding-left: 46px; }
}

/* Approved proposal 1 — Exchange Classic. */
.ticket-card {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(105px,1fr);
  background: #eef1f3;
  border-color: #9eacb8;
}
.ticket-card > .ticket-market,
.ticket-card > .ticket-identity,
.ticket-card > .ticket-options,
.ticket-card > .quick-stakes,
.ticket-card > .ticket-feedback,
.ticket-card > .ticket-actions { grid-column: 1 / -1; }
.ticket-card .ticket-market { min-height: 29px; padding-inline: 8px; background: #edf1f4; border-bottom-color: #bac6cf; }
.ticket-card.back .ticket-market,
.ticket-card.lay .ticket-market { background: #edf1f4; }
.ticket-card .ticket-identity { min-height: 39px; padding: 5px 8px; background: #fff !important; }
.ticket-card .ticket-identity span { font-size: .69rem; }
.ticket-card .ticket-identity small { font-size: .53rem; }
.ticket-card .ticket-identity strong { min-width: 66px; padding: 4px 6px; border-radius: 0; text-align: center; }
.ticket-card.back .ticket-identity strong { color: #074163; background: #9ed9f1; }
.ticket-card.lay .ticket-identity strong { color: #711e3f; background: #f2b6cb; }
.ticket-card .ticket-inputs {
  grid-column: 1;
  grid-template-columns: minmax(82px,.8fr) minmax(105px,1.2fr);
  gap: 5px;
  margin: 0;
  padding: 6px 3px 6px 7px;
  background: #eef1f3;
}
.ticket-card .ticket-inputs label,
.ticket-card.back .ticket-inputs label,
.ticket-card.lay .ticket-inputs label { padding: 0; background: transparent; border: 0; }
.ticket-card .ticket-inputs label > span,
.ticket-card .ticket-potential span { min-height: 11px; margin: 0 0 3px; color: #5e7081; font-size: .49rem; text-align: left; }
.ticket-card .ticket-inputs input,
.ticket-card .odds-stepper button,
.ticket-card .stake-control button { height: 29px; }
.ticket-card .ticket-potential,
.ticket-card.back .ticket-potential,
.ticket-card.lay .ticket-potential {
  grid-column: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 0;
  margin: 0;
  padding: 6px 7px 6px 3px;
  color: #102235;
  background: #eef1f3;
  border: 0;
  border-radius: 0;
}
.ticket-card .ticket-potential b {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 7px;
  color: #102235;
  background: #fff;
  border: 1px solid #9eacb8;
  font-size: .68rem;
}
.ticket-card .ticket-potential small { display: none; }
.ticket-options {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 7px;
  color: #29445b;
  background: #f8f9fa;
  border-top: 1px solid #d3dce2;
  border-bottom: 1px solid #d3dce2;
}
.ticket-options label { display: flex; align-items: center; gap: 5px; font-size: .55rem; font-weight: 700; }
.ticket-options input { width: 14px; height: 14px; margin: 0; accent-color: #168a59; }
.ticket-options small { color: #718190; font-size: .48rem; }
.ticket-card .quick-stakes { padding-block: 5px; background: #fff; }
.ticket-card .ticket-actions { padding: 6px 7px; background: #eef1f3; }
.ticket-card .ticket-actions button { height: 32px; border-radius: 0; }
.ticket-card .ticket-actions .place-order,
.ticket-card .ticket-actions .place-order.back,
.ticket-card .ticket-actions .place-order.lay { color: #07182a; background: #e0b13f; border-color: #b78818; }

.open-bets-panel > header { height: 33px; padding-inline: 8px; background: #071e33; border-bottom: 2px solid #e0b13f; }
.open-bets-list { padding: 0; background: #fff; }
.open-bets-group > h3,
.open-bets-group.group-unmatched > h3 {
  min-height: 27px;
  margin: 0;
  padding: 0 7px;
  color: #fff;
  background: #17344c;
  border: 0;
  border-bottom: 1px solid #092036;
  border-left: 0;
  border-radius: 0;
}
.open-bets-group + .open-bets-group { margin: 0; }
.open-bets-group > h3 > b,
.open-bets-group.group-unmatched > h3 > b { color: #102235; background: #fff; }
.classic-order,
.classic-order.execution,
.classic-order.pending-order,
.classic-order + .classic-order {
  display: block;
  margin: 0 !important;
  overflow: hidden;
  background: #fff !important;
  border: 0;
  border-bottom: 1px solid #b9c4cc;
  border-radius: 0;
  box-shadow: none;
}
.classic-order-row {
  min-height: 43px;
  display: grid;
  grid-template-columns: 43px minmax(90px,1fr) minmax(155px,1.12fr);
  background: #fff;
}
.classic-order-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  padding: 0 2px;
  border-right: 1px solid #c5d0d8;
}
.classic-order-side.back { color: #074163; background: #9ed9f1; }
.classic-order-side.lay { color: #711e3f; background: #f2b6cb; }
.classic-order-side strong { font-size: .51rem; }
.classic-order-side small { max-width: 100%; overflow: hidden; font-size: .39rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.classic-order-identity {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 3px 6px;
  border-right: 1px solid #d5dde3;
}
.classic-order-identity b,
.classic-order-identity a,
.classic-order-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classic-order-identity b { color: #102235; font-size: .59rem; }
.classic-order-identity a { color: #075f92; font-size: .49rem; font-weight: 650; text-decoration: none; }
.classic-order-identity small { color: #657687; font-size: .4rem; }
.classic-order-metrics,
.classic-order-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: .72fr .9fr 1.18fr;
  margin: 0;
  background: #f8fafb;
}
.classic-order-metrics > div,
.classic-order-editor > label,
.classic-order-editor > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 3px 4px;
  border-right: 1px solid #d5dde3;
}
.classic-order-metrics > div:last-child,
.classic-order-editor > div:last-child { border-right: 0; }
.classic-order-metrics dt,
.classic-order-editor span { overflow: hidden; color: #657687; font-size: .39rem; font-weight: 720; letter-spacing: .02em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.classic-order-metrics dd,
.classic-order-editor b { margin: 0; color: #102235; font-size: .55rem; font-weight: 760; text-align: right; white-space: nowrap; }
.classic-order-editor input {
  width: 100%;
  height: 24px;
  padding: 0 4px;
  color: #102235;
  background: #fff;
  border: 1px solid #9eacb8;
  border-radius: 0;
  font-size: .55rem;
  font-weight: 720;
  text-align: right;
}
.classic-order-actions {
  min-height: 29px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 3px 5px 4px 48px;
  background: #eef1f3;
  border-top: 1px solid #d3dce2;
}
.classic-order-actions .unmatched-keep,
.classic-order-actions button { min-height: 23px; margin: 0; border-radius: 0; font-size: .47rem; }
.classic-order-actions .unmatched-keep { padding: 2px 4px; }
.classic-order-actions .unmatched-keep span { font-size: .43rem; }
.classic-order-actions .unmatched-keep small { display: none; }
.classic-order-actions button { color: #17344c; background: #fff; border: 1px solid #a8b5bf; font-weight: 700; }
.classic-order-actions .cancel { color: #9d1f3b; }
.classic-order-actions .update { color: #07182a; background: #e0b13f; border-color: #b78818; }
.classic-order .cashout-offer,
.classic-order.execution .cashout-offer {
  width: 100%;
  min-height: 27px;
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 0;
  margin: 0;
  color: #08704a;
  background: #e5f4ec;
  border: 0;
  border-top: 1px solid #acd0bd;
  border-radius: 0;
  box-shadow: none;
}
.classic-order .cashout-offer.cashout-negative { color: #9d1f3b; background: #fff0f3; border-top-color: #e1bac3; }
.classic-order .cashout-offer button { min-height: 26px; color: inherit; background: transparent; border: 0; border-right: 1px solid currentColor; font-size: .51rem; }
.classic-order .cashout-offer > span,
.classic-order .cashout-offer > span b { min-width: 0; color: inherit; font-size: .56rem; }

html[data-theme="dark"] .ticket-card,
html[data-theme="dark"] .ticket-card .ticket-inputs,
html[data-theme="dark"] .ticket-card .ticket-potential,
html[data-theme="dark"] .ticket-card .ticket-actions,
html[data-theme="dark"] .classic-order-row,
html[data-theme="dark"] .classic-order-metrics,
html[data-theme="dark"] .classic-order-editor { background: #13283a !important; }
html[data-theme="dark"] .ticket-options,
html[data-theme="dark"] .classic-order-actions { color: #dce7ef; background: #102235; border-color: #40566a; }
html[data-theme="dark"] .classic-order-identity b,
html[data-theme="dark"] .classic-order-metrics dd,
html[data-theme="dark"] .classic-order-editor b { color: #e7eef5; }

@media (max-width: 900px) {
  .classic-order-row { grid-template-columns: 41px minmax(86px,1fr) minmax(145px,1.1fr); }
  .classic-order-actions { padding-left: 46px; }
  .ticket-card { grid-template-columns: minmax(0,2fr) minmax(96px,1fr); }
}

/* Betslip scale correction — aligned with the rest of the exchange UI. */
.ticket-card .ticket-market {
  min-height: 34px;
  padding-inline: 10px;
}
.ticket-card .ticket-market b { font-size: .64rem; }
.ticket-card .ticket-identity {
  min-height: 46px;
  padding: 6px 10px;
}
.ticket-card .ticket-identity span { font-size: .76rem; }
.ticket-card .ticket-identity small { font-size: .59rem; }
.ticket-card .ticket-identity strong {
  min-width: 76px;
  padding: 5px 8px;
  font-size: .58rem;
}
.ticket-card .ticket-inputs {
  grid-template-columns: minmax(92px,.82fr) minmax(118px,1.18fr);
  gap: 7px;
  padding: 8px 4px 8px 9px;
}
.ticket-card .ticket-inputs label > span,
.ticket-card .ticket-potential span {
  min-height: 13px;
  margin-bottom: 4px;
  font-size: .55rem;
}
.ticket-card .ticket-inputs input,
.ticket-card .odds-stepper button,
.ticket-card .stake-control button { height: 34px; }
.ticket-card .ticket-inputs input { font-size: .74rem; }
.ticket-card .odds-stepper button,
.ticket-card .stake-control button { font-size: .72rem; }
.ticket-card .ticket-potential,
.ticket-card.back .ticket-potential,
.ticket-card.lay .ticket-potential { padding: 8px 9px 8px 4px; }
.ticket-card .ticket-potential b {
  min-height: 34px;
  padding-inline: 9px;
  font-size: .76rem;
}
.ticket-options {
  min-height: 33px;
  padding-inline: 9px;
}
.ticket-options label { font-size: .6rem; }
.ticket-options input { width: 15px; height: 15px; }
.ticket-options small { font-size: .53rem; }
.ticket-card .quick-stakes { min-height: 40px; padding: 6px 9px; }
.ticket-card .quick-stakes button { min-height: 28px; font-size: .58rem; }
.ticket-card .ticket-actions { gap: 7px; padding: 8px 9px; }
.ticket-card .ticket-actions button,
.ticket-card .ticket-actions .place-order { height: 37px; font-size: .64rem; }

@media (max-width: 900px) {
  .ticket-card { grid-template-columns: minmax(0,2fr) minmax(108px,1fr); }
  .ticket-card .ticket-identity { min-height: 44px; }
  .ticket-card .ticket-inputs { grid-template-columns: minmax(86px,.82fr) minmax(108px,1.18fr); gap: 5px; }
}

/* NEXA compact exchange ticket — aligned to the approved operational reference. */
.betslip-tabs {
  height: 44px;
  background: #f7f7f7;
  border-top: 3px solid var(--gold-500);
  border-bottom: 1px solid #c3c8cc;
}
.betslip-tabs > button[role="tab"] {
  color: #101820;
  background: #f7f7f7;
  border-right-color: #d8dcdf;
  font-size: .72rem;
  font-weight: 760;
}
.betslip-tabs > button[role="tab"].active {
  color: #071522;
  background: #fff;
}
.betslip-tabs > button[role="tab"].active::after { height: 2px; background: #15191c; }
.betslip-tabs > button[role="tab"] b { display: none; }

.ticket-card,
.ticket-card.back,
.ticket-card.lay {
  display: block;
  margin: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #aeb6bd;
  border-radius: 0;
}
.ticket-card .ticket-market {
  min-height: 36px;
  padding: 0 10px;
  color: #071522;
  background: #fff;
  border-bottom: 1px solid #c2c9cf;
}
.ticket-card .ticket-market b {
  font-size: .69rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}
.ticket-side-heading {
  min-height: 37px;
  display: grid;
  grid-template-columns: minmax(105px,1fr) 74px 82px 64px;
  align-items: center;
  padding: 0 7px;
  color: #102235;
  border-bottom: 1px solid #9fb8ca;
  font-size: .52rem;
  font-weight: 720;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}
.ticket-card.back .ticket-side-heading { background: #afd5f2; }
.ticket-card.lay .ticket-side-heading { background: #f2bfd0; border-bottom-color: #d7a5b6; }
.ticket-side-heading strong { text-align: left; font-size: .55rem; }

.ticket-bet-row {
  min-height: 55px;
  display: grid;
  grid-template-columns: 24px minmax(81px,1fr) 74px 82px 64px;
  align-items: center;
  gap: 4px;
  padding: 6px 7px;
  border-bottom: 1px solid #c7ced4;
}
.ticket-card.back .ticket-bet-row { background: #eaf4fd; }
.ticket-card.lay .ticket-bet-row { background: #fcecf1; }
.ticket-bet-row .ticket-close {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #5e6b76;
  background: #e2e7ea;
  border: 0;
  border-radius: 1px;
}
.ticket-bet-row .ticket-close svg { width: 11px; height: 11px; }
.ticket-bet-row .ticket-identity {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 0;
  background: transparent !important;
  border: 0;
}
.ticket-bet-row .ticket-identity span,
.ticket-bet-row .ticket-identity small {
  grid-column: 1;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-bet-row .ticket-identity span { grid-row: 1; color: #101820; font-size: .65rem; font-weight: 690; }
.ticket-bet-row .ticket-identity small { grid-row: 2; color: #446175; font-size: .48rem; }
.ticket-inline-control { min-width: 0; }
.ticket-inline-control .odds-stepper,
.ticket-inline-control .stake-control { grid-template-columns: minmax(0,1fr) 18px; }
.ticket-inline-control .odds-stepper button:first-child,
.ticket-inline-control .stake-control button:first-child { display: none; }
.ticket-inline-control .odds-stepper input,
.ticket-inline-control .stake-control input {
  height: 30px;
  padding: 0 4px;
  background: #fff;
  border: 1px solid #aeb8c0;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  font-size: .69rem;
  font-weight: 700;
  text-align: center;
}
.ticket-inline-control .odds-stepper button:last-child,
.ticket-inline-control .stake-control button:last-child {
  min-width: 18px;
  height: 30px;
  color: #506170;
  background: #fff;
  border: 1px solid #aeb8c0;
  border-radius: 0 2px 2px 0;
  font-size: .72rem;
}
.ticket-bet-row .ticket-potential,
.ticket-card.back .ticket-bet-row .ticket-potential,
.ticket-card.lay .ticket-bet-row .ticket-potential {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
}
.ticket-bet-row .ticket-potential b {
  min-height: 0;
  padding: 0;
  color: #101820;
  background: transparent;
  border: 0;
  font-size: .66rem;
  font-style: italic;
  font-weight: 760;
  text-align: center;
}
.ticket-card .quick-stakes {
  min-height: 39px;
  gap: 6px;
  padding: 5px 9px;
  background: #fff;
  border-bottom: 1px solid #c7ced4;
}
.ticket-card .quick-stakes button {
  min-height: 28px;
  color: #263b4d;
  background: #fff;
  border: 1px solid #b8c1c8;
  border-radius: 2px;
  font-size: .62rem;
  font-weight: 600;
}
.ticket-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 0 10px;
  color: #21384a;
  background: #fff;
  border-bottom: 1px solid #c7ced4;
  font-size: .67rem;
}
.ticket-summary b { color: #071522; font-size: .77rem; }
.ticket-card .ticket-actions {
  display: grid;
  grid-template-columns: 122px minmax(0,1fr);
  gap: 8px;
  padding: 9px 10px;
  background: #f1f2f3;
  border-bottom: 1px solid #c7ced4;
}
.ticket-card .ticket-actions button,
.ticket-card .ticket-actions .place-order {
  width: 100%;
  height: 36px;
  margin: 0;
  border-radius: 2px;
  font-size: .65rem;
  font-weight: 720;
}
.ticket-card .ticket-actions .cancel-ticket { color: #263746; background: #e3e5e7; border: 1px solid #b8bec3; }
.ticket-card .ticket-actions .place-order,
.ticket-card .ticket-actions .place-order.back,
.ticket-card .ticket-actions .place-order.lay { color: #071522; background: #ffb80b; border-color: #da9600; }
.ticket-card .ticket-options {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 3px 10px;
  padding: 6px 10px;
  color: #fff;
  background: #292d30;
  border: 0;
  border-bottom: 1px solid #16191b;
}
.ticket-card .ticket-options > strong {
  grid-column: 1 / -1;
  font-size: .56rem;
  font-weight: 760;
  letter-spacing: .01em;
}
.ticket-card .ticket-options label { color: #fff; }
.ticket-card .ticket-options small { color: #d4dade; }

/* Faithful compact ticket proportions: override legacy high-specificity card rules. */
.betslip-rail,
.betslip-rail * { box-sizing: border-box; }
.ticket-card.back .ticket-market,
.ticket-card.lay .ticket-market {
  min-height: 36px;
  color: #071522;
  background: #fff !important;
  border-bottom: 1px solid #c2c9cf;
}
.betslip-rail .ticket-card,
.betslip-rail .betslip-notice {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
.ticket-side-heading {
  min-height: 38px;
  grid-template-columns: clamp(117px, calc(100% - 284px), 158px) 78px 86px minmax(68px, 1fr);
  padding-inline: 8px;
}
.ticket-bet-row {
  min-height: 47px;
  grid-template-columns: 20px clamp(94px, calc(100% - 307px), 135px) 78px 86px minmax(68px, 1fr);
  gap: 3px;
  padding: 5px 8px;
}
.ticket-card.back .ticket-bet-row .ticket-identity,
.ticket-card.lay .ticket-bet-row .ticket-identity {
  min-height: 0;
  height: auto;
  display: block;
  padding: 0;
  background: transparent !important;
  border: 0;
}
.ticket-card.back .ticket-bet-row .ticket-potential,
.ticket-card.lay .ticket-bet-row .ticket-potential { grid-column: auto; }
.ticket-bet-row .ticket-identity span { display: block; font-size: .67rem; }
.ticket-bet-row .ticket-identity small { display: none; }
.ticket-inline-control .odds-stepper,
.ticket-inline-control .stake-control {
  position: relative;
  display: block;
}
.ticket-inline-control .odds-stepper input,
.ticket-inline-control .stake-control input {
  width: 100%;
  padding-right: 18px;
  border-right: 1px solid #aeb8c0;
  border-radius: 2px;
}
.ticket-inline-control .odds-stepper button:first-child,
.ticket-inline-control .odds-stepper button:last-child,
.ticket-inline-control .stake-control button:first-child,
.ticket-inline-control .stake-control button:last-child {
  position: absolute;
  right: 0;
  width: 18px;
  min-width: 18px;
  height: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  font-size: 0;
}
.ticket-inline-control .odds-stepper button:last-child { top: 0; border-bottom: 0; }
.ticket-inline-control .odds-stepper button:first-child { bottom: 0; border-top: 0; }
.ticket-inline-control .stake-control button:last-child { top: 0; border-bottom: 0; }
.ticket-inline-control .stake-control button:first-child { bottom: 0; border-top: 0; }
.ticket-inline-control .odds-stepper button:last-child::before,
.ticket-inline-control .stake-control button:last-child::before { content: '▲'; font-size: .42rem; }
.ticket-inline-control .odds-stepper button:first-child::before,
.ticket-inline-control .stake-control button:first-child::before { content: '▼'; font-size: .42rem; }
.ticket-inline-control .stake-control input {
  border: 1px solid #e1a400;
  border-radius: 2px;
}
.ticket-card .ticket-options {
  height: 49px;
  min-height: 49px;
  display: block;
  padding: 7px 10px 6px;
  color: #fff;
  background: #071e33;
}
.ticket-card .ticket-options > strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: .61rem;
  text-transform: none;
}
.ticket-persistence { display: flex; align-items: center; gap: 8px; }
.ticket-persistence > small { color: #fff !important; font-size: .53rem; }
.ticket-persistence label { display: flex; align-items: center; gap: 8px; }
.ticket-persistence input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.ticket-persistence label span {
  position: relative;
  padding-left: 13px;
  color: #fff;
  font-size: .51rem;
  font-weight: 700;
}
.ticket-persistence label span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  content: '';
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket-persistence input:not(:checked) ~ .persistence-cancel::after,
.ticket-persistence input:checked ~ .persistence-keep::after {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 7px;
  height: 7px;
  content: '';
  background: #d7aa35;
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket-summary { min-height: 42px; }
.ticket-card .ticket-actions {
  grid-template-columns: 140px minmax(0,1fr);
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
}
.ticket-card .ticket-actions button,
.ticket-card .ticket-actions .place-order { height: 38px; }
.ticket-preferences {
  height: 47px;
  min-height: 47px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #626a70;
  background: #f7f7f7;
  border-bottom: 1px solid #c7ced4;
}
.ticket-preferences label { display: flex; align-items: flex-start; gap: 5px; }
.ticket-preferences input { width: 13px; height: 13px; flex: 0 0 auto; margin: 0; accent-color: #1681e8; }
.ticket-preferences span { font-size: .48rem; font-weight: 650; letter-spacing: .035em; line-height: 1.15; text-transform: uppercase; }

@media (min-width: 1181px) {
  .exchange-layout {
    width: calc(100% - 16px);
    margin-right: 0;
    margin-left: 16px;
  }
}

.open-bets-panel > header { height: 35px; background: #fff; border-bottom: 1px solid #c2c9cf; }
.open-bets-panel > header span { color: #071522; font-size: .67rem; }
.open-bets-panel > header button { min-height: 28px; color: #17344c; background: #f2f3f4; border-color: #b5bec5; font-size: .6rem; }
.open-bets-group > h3,
.open-bets-group.group-unmatched > h3 {
  min-height: 30px;
  padding: 0 8px;
  color: #fff;
  background: #071e33;
  border: 0;
  border-bottom: 1px solid #03111f;
  font-size: .58rem;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.open-bets-group.group-matched > h3 { border-left: 0; }
.open-bets-group > h3 > b,
.open-bets-group.group-unmatched > h3 > b { display: none; }
.average-price-toggle {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 8px 0 10px;
  color: #edf4f8;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(170,190,205,.55);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  font-size: .59rem;
  font-weight: 720;
  letter-spacing: .025em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.average-price-toggle > span { color: #fff; }
.average-price-toggle > i { width: 32px; height: 16px; position: relative; flex: 0 0 auto; background: #66798a; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; box-shadow: inset 0 1px 3px rgba(0,0,0,.3); transition: background .16s ease, border-color .16s ease; }
.average-price-toggle > i > b { width: 12px; height: 12px; position: absolute; top: 1px; left: 1px; background: #f7fafc; border: 1px solid rgba(7,24,42,.18); border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.38); transition: transform .16s ease; }
.average-price-toggle:hover { background: rgba(255,255,255,.1); border-color: #aabcca; }
.average-price-toggle:focus-visible { outline: 2px solid #f2c85b; outline-offset: 2px; }
.average-price-toggle.active { background: rgba(224,177,63,.1); border-color: rgba(224,177,63,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(224,177,63,.08); }
.average-price-toggle.active > i { background: #e0b13f; border-color: #f2cb68; }
.average-price-toggle.active > i > b { transform: translateX(16px); }
.classic-order-marketline {
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 66px 78px 86px;
  align-items: center;
  color: #07466f;
  background: #cfe4f6;
  border-bottom: 1px solid #b2ccdf;
}
.classic-order-marketline.lay { color: #7a2345; background: #f5d3df; border-bottom-color: #deb6c5; }
.classic-order-marketline strong,
.classic-order-marketline span { min-width: 0; padding: 0 6px; font-size: .58rem; font-weight: 760; }
.classic-order-marketline strong { overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.classic-order-marketline span { text-align: center; text-transform: uppercase; }
.open-bet.order-card.classic-order.execution,
.open-bet.order-card.classic-order.pending-order { display: block; grid-template-columns: none; }
.classic-order-row { min-height: 40px; grid-template-columns: minmax(0,1fr) 230px; }
.classic-order-metrics,
.classic-order-editor { grid-template-columns: 66px 78px 86px; }
.classic-order-identity { position: relative; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 3px; border-right: 1px solid #d5dde3; }
.classic-order-identity i { color: #c71734; font-size: .68rem; font-style: normal; }
.classic-order-identity b { grid-column: 2; }
.classic-order-identity small { grid-column: 3; padding-left: 3px; color: #617486; font-size: .39rem; font-weight: 720; }
.classic-order-meta { min-height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-top: 1px dashed #c7d1d9; background: #fff; }
.classic-order-meta a { overflow: hidden; color: #075f92; font-size: .63rem; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.classic-order-meta span { color: #617486; font-size: .49rem; white-space: nowrap; }
.classic-order-side strong { font-size: .56rem; }
.classic-order-side small { font-size: .43rem; }
.classic-order-identity b { font-size: .76rem; }
.classic-order-identity a { font-size: .52rem; }
.classic-order-identity small { font-size: .44rem; }
.classic-order-metrics dt,
.classic-order-editor span { font-size: .47rem; text-align: center; }
.classic-order-metrics dd,
.classic-order-editor b { font-size: .78rem; text-align: center; }
.classic-order-editor input { font-size: .78rem; text-align: center; }
.classic-order-identity,
.classic-order-metrics > div,
.classic-order-editor > label,
.classic-order-editor > div { border-right: 0; }
.classic-order-editor > label.stepper-input { grid-template-columns: minmax(0,1fr) 16px; align-content: center; gap: 0; padding: 3px 3px; }
.stepper-input input { min-width: 0; height: 27px; padding-inline: 2px; border-color: #9fb1bf; border-radius: 2px 0 0 2px; }
.stepper-input .stepper-buttons { height: 27px; display: grid; grid-template-rows: 1fr 1fr; margin: 0; font-style: normal; }
.stepper-input button {
  width: 16px;
  height: 14px;
  padding: 0;
  color: #0b3553;
  background: #e8f0f5;
  border: 1px solid #9fb1bf;
  font-size: .42rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.stepper-input .stepper-increase { border-left: 0; border-radius: 0 2px 0 0; }
.stepper-input .stepper-decrease { height: 13px; border-top: 0; border-left: 0; border-radius: 0 0 2px 0; }
.stepper-input button:hover { color: #07182a; background: #d7e7f2; }
.stepper-input button:active { color: #07182a; background: #e0b13f; }
.stepper-input button:focus-visible { position: relative; z-index: 1; outline: 2px solid #e0b13f; outline-offset: 1px; }
.ticket-inline-control .ticket-stepper-input {
  position: static;
  display: grid;
  grid-template-columns: minmax(0,1fr) 18px;
  align-items: center;
}
.ticket-inline-control .ticket-stepper-input input,
.ticket-inline-control .stake-control.ticket-stepper-input input {
  width: 100%;
  height: 30px;
  padding: 0 3px;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}
.ticket-inline-control .ticket-stepper-input .stepper-buttons {
  height: 30px;
  display: grid;
  grid-template-rows: 15px 15px;
  margin: 0;
  font-style: normal;
}
.ticket-inline-control .ticket-stepper-input .stepper-buttons button {
  position: static;
  width: 18px;
  min-width: 18px;
  height: 15px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: #0b3553;
  background: #e8f0f5;
  border: 1px solid #9fb1bf;
  border-left: 0;
  border-radius: 0;
  font-size: .43rem;
  line-height: 1;
  cursor: pointer;
  touch-action: none;
}
.ticket-inline-control .ticket-stepper-input .stepper-buttons button::before { content: none; }
.ticket-inline-control .ticket-stepper-input .stepper-buttons .stepper-increase { border-bottom: 0; border-radius: 0 2px 0 0; }
.ticket-inline-control .ticket-stepper-input .stepper-buttons .stepper-decrease { border-top: 1px solid #9fb1bf; border-radius: 0 0 2px 0; }
.ticket-inline-control .ticket-stepper-input .stepper-buttons button:hover { color: #07182a; background: #d7e7f2; }
.ticket-inline-control .ticket-stepper-input .stepper-buttons button:active { background: #e0b13f; }
.open-bet.order-card.classic-order + .open-bet.order-card.classic-order { margin-top: 5px !important; border-top: 4px solid #fff; }
.classic-order-actions { min-height: 38px; grid-template-columns: minmax(0,1.35fr) .8fr .8fr; padding: 4px 6px 5px; }
.classic-order-actions .unmatched-keep,
.classic-order-actions button { min-height: 29px; font-size: .6rem; font-weight: 760; }
.classic-order-actions .unmatched-keep { display: flex; align-items: center; gap: 5px; color: #31495d; background: transparent; border: 0; }
.classic-order-actions .unmatched-keep > span { font-size: .46rem; font-weight: 760; }
.classic-order-actions .unmatched-keep > small,
.classic-order-actions .unmatched-keep > b { font-size: .43rem; font-weight: 720; }
.classic-order-actions .unmatched-keep > small { color: #647481; }
.classic-order-actions .unmatched-keep > b { color: #075f92; }
.classic-order-actions .unmatched-keep input { width: 13px; height: 13px; margin: 0; accent-color: #1681e8; }
.classic-order-actions .update { background: #ffb80b; border-color: #da9600; }
/* Gold Pulse cash-out: full-width action with restrained moving light. */
.classic-order .cashout-offer,
.classic-order.execution .cashout-offer {
  position: relative;
  isolation: isolate;
  width: calc(100% - 16px);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 7px;
  overflow: hidden;
  padding: 0 14px;
  color: #071522;
  background: linear-gradient(110deg,#c99016 0%,#e5b83d 28%,#f8dd86 50%,#e5b83d 72%,#c99016 100%);
  background-size: 180% 100%;
  border: 1px solid #9d700c;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 3px 8px rgba(7,30,51,.2), 0 0 0 rgba(221,177,61,0);
  cursor: pointer;
  animation: gold-pulse 2.8s ease-in-out infinite;
}
.classic-order .cashout-offer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg,transparent 25%,rgba(255,255,255,.42) 46%,rgba(255,255,255,.12) 55%,transparent 72%);
  transform: translateX(-115%);
  animation: gold-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
.classic-order .cashout-offer:hover:not(:disabled) {
  background-color: #efc95a;
  border-color: #825a05;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 11px rgba(7,30,51,.24), 0 0 0 2px rgba(221,177,61,.2);
}
.classic-order .cashout-offer:active:not(:disabled) {
  transform: translateY(1px);
  background: linear-gradient(110deg,#bd8412,#e2af32 50%,#bd8412);
  box-shadow: inset 0 2px 4px rgba(82,56,4,.28);
}
.classic-order .cashout-offer:focus-visible { outline: 2px solid #1683bd; outline-offset: 2px; }
.classic-order .cashout-offer:disabled { cursor: wait; opacity: .72; animation: none; }
.classic-order .cashout-offer:disabled::before { animation: none; }
.open-bet.order-card.classic-order.execution .cashout-offer > span {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #071522;
  background: transparent;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-align: center;
}
.open-bet.order-card.classic-order.execution .cashout-offer > .cashout-mark {
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  color: #f7d980;
  background: #061a2f;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(2,15,27,.3);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
.classic-order .cashout-offer > span b { font-size: .69rem; font-weight: 820; }
.classic-order .cashout-offer.cashout-positive > span b { color: #075f3b; }
.classic-order .cashout-offer.cashout-negative > span b { color: #b20e2d; }

@keyframes gold-pulse {
  0%,100% { background-position: 0% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 3px 8px rgba(7,30,51,.2), 0 0 0 rgba(221,177,61,0); }
  50% { background-position: 100% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px rgba(7,30,51,.22), 0 0 0 3px rgba(221,177,61,.14); }
}
@keyframes gold-sweep {
  0%,30% { transform: translateX(-115%); }
  68%,100% { transform: translateX(115%); }
}
@media (prefers-reduced-motion: reduce) {
  .classic-order .cashout-offer,
  .classic-order .cashout-offer::before { animation: none; }
}

html[data-theme="dark"] .betslip-tabs,
html[data-theme="dark"] .betslip-tabs > button[role="tab"],
html[data-theme="dark"] .ticket-card .ticket-market,
html[data-theme="dark"] .ticket-summary,
html[data-theme="dark"] .open-bets-panel > header { color: #e7eef5; background: #13283a; border-color: #40566a; }
html[data-theme="dark"] .betslip-tabs > button[role="tab"].active { color: #fff; background: #0b1f31; }
html[data-theme="dark"] .open-bets-panel > header span { color: #e7eef5; }
html[data-theme="dark"] .classic-order-marketline { color: #dceaf4; background: #17344c; border-color: #40566a; }
html[data-theme="dark"] .classic-order-meta { background: #13283a; border-color: #40566a; }

@media (max-width: 420px) {
  .ticket-card { padding-bottom: 0; }
  .ticket-side-heading { grid-template-columns: minmax(82px,1fr) 68px 76px 58px; }
  .ticket-bet-row { grid-template-columns: 20px minmax(58px,1fr) 68px 76px 58px; gap: 3px; padding-inline: 5px; }
  .ticket-card .ticket-actions { grid-template-columns: 108px minmax(0,1fr); }
}


/* Demo access gate */
.demo-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 28px 18px;
  color: #0a2033;
  background:
    radial-gradient(circle at 18% 16%, rgba(221,177,61,.14), transparent 29rem),
    radial-gradient(circle at 86% 84%, rgba(22,131,189,.13), transparent 32rem),
    linear-gradient(145deg,#03111f 0%,#071d30 48%,#092842 100%);
}
.demo-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .19;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.demo-login-card {
  position: relative;
  z-index: 1;
  width: min(410px,100%);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(220,231,239,.76);
  border-top: 3px solid #ddb13d;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0,8,18,.48);
}
.demo-login-brand {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  color: #dcb344;
  background: #061a2f;
  border-bottom: 1px solid #284056;
}
.demo-login-brand img { width: 178px; height: 38px; object-fit: contain; object-position: left center; }
.demo-login-brand span { font-size: .59rem; font-weight: 760; letter-spacing: .12em; white-space: nowrap; }
.demo-login-heading { padding: 26px 28px 17px; }
.demo-login-heading small { color: #a47610; font-size: .63rem; font-weight: 800; letter-spacing: .12em; }
.demo-login-heading h1 { margin: 5px 0 6px; color: #0a2033; font-size: 1.34rem; line-height: 1.25; }
.demo-login-heading p { margin: 0; color: #607487; font-size: .78rem; line-height: 1.55; }
.demo-login-form { display: grid; gap: 15px; padding: 0 28px 26px; }
.demo-login-form > label { display: grid; gap: 6px; }
.demo-login-form > label > span { color: #344e63; font-size: .67rem; font-weight: 760; letter-spacing: .035em; text-transform: uppercase; }
.demo-login-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #0a2033;
  background: #f7fafc;
  border: 1px solid #aab9c5;
  border-radius: 3px;
  font: inherit;
  font-size: .83rem;
  outline: none;
}
.demo-login-form input:focus { background: #fff; border-color: #0d709f; box-shadow: 0 0 0 3px rgba(22,131,189,.13); }
.demo-password-field { position: relative; }
.demo-password-field input { padding-right: 76px; }
.demo-password-field button {
  position: absolute;
  inset: 1px 1px 1px auto;
  min-width: 70px;
  padding: 0 8px;
  color: #31516a;
  background: transparent;
  border: 0;
  border-left: 1px solid #cfdae2;
  font-size: .55rem;
  font-weight: 780;
  letter-spacing: .04em;
}
.demo-password-field button:hover { color: #071d30; background: #edf4f8; }
.demo-login-error {
  margin-top: -3px;
  padding: 9px 11px;
  color: #9f1730;
  background: #fff0f3;
  border: 1px solid #e8a9b5;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 680;
}
.demo-login-submit {
  min-height: 44px;
  margin-top: 2px;
  color: #071522;
  background: linear-gradient(110deg,#c99016,#f4d36f 50%,#c99016);
  border: 1px solid #9d700c;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58),0 4px 10px rgba(9,31,48,.18);
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .09em;
}
.demo-login-submit:hover { background: linear-gradient(110deg,#d6a024,#f8df8e 50%,#d6a024); }
.demo-login-submit:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(82,56,4,.23); }
.demo-login-submit:focus-visible,.demo-password-field button:focus-visible { outline: 2px solid #1683bd; outline-offset: 2px; }
.demo-login-card > footer {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #708292;
  background: #f2f6f8;
  border-top: 1px solid #d9e2e8;
  font-size: .55rem;
  font-weight: 740;
  letter-spacing: .075em;
}
.demo-login-card > footer i { width: 6px; height: 6px; background: #159765; border-radius: 50%; box-shadow: 0 0 0 3px rgba(21,151,101,.12); }
@media (max-width: 480px) {
  .demo-login-page { padding: 18px 12px; }
  .demo-login-card { border-radius: 4px; }
  .demo-login-brand { min-height: 64px; padding-inline: 20px; }
  .demo-login-brand img { width: 155px; }
  .demo-login-brand span { font-size: .52rem; }
  .demo-login-heading { padding: 23px 22px 16px; }
  .demo-login-form { padding: 0 22px 23px; }
}
