/* DependaBet static-site interaction layer */
.mb-selected-odd,
.mb-odds.mb-selected-odd {
  outline: 2px solid var(--core-secondary, #d6ff00) !important;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(214, 255, 0, .12);
}

.mb-count-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-left: 4px;
  background: var(--core-secondary, #d6ff00);
  color: #111;
  font-size: 10px;
  line-height: 18px;
  font-weight: 800;
}

.mb-backdrop,
.mb-modal-backdrop,
.mb-event-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 8, 10, .72);
  backdrop-filter: blur(2px);
}

.mb-backdrop[hidden],
.mb-modal-backdrop[hidden],
.mb-event-backdrop[hidden] { display: none !important; }

.mb-modal-backdrop,
.mb-event-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.mb-modal,
.mb-event-browser {
  width: min(100%, 520px);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 16px;
  background: var(--bg-body, #071a31);
  color: var(--text-primary, #fff);
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
}

.mb-event-browser { width: min(100%, 920px); }

.mb-modal-head,
.mb-event-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-primary, #274c77);
  background: var(--core-primary, #0b2848);
}

.mb-modal-title,
.mb-event-title { font-size: 18px; font-weight: 800; }
.mb-modal-subtitle { color: var(--text-secondary, #9da8b3); font-size: 12px; margin-top: 3px; }

.mb-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-primary, #274c77);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

.mb-modal-body { padding: 18px; }
.mb-field { display: grid; gap: 7px; margin-bottom: 14px; }
.mb-field label { font-size: 12px; font-weight: 700; color: var(--text-secondary, #b8c1c9); }
.mb-field input,
.mb-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 8px;
  background: var(--surface-moderate, #0d294b);
  color: var(--text-primary, #fff);
  outline: none;
  font-size: 16px;
}
.mb-field input:focus,
.mb-field select:focus { border-color: var(--core-secondary, #d6ff00); }

.mb-primary,
.mb-secondary,
.mb-danger-link {
  min-height: 44px;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.mb-primary {
  width: 100%;
  background: var(--core-secondary, #d6ff00);
  color: #111;
  border: 0;
}
.mb-secondary {
  background: transparent;
  color: var(--text-primary, #fff);
  border: 1px solid var(--border-primary, #274c77);
}
.mb-danger-link {
  background: transparent;
  color: #9cb8d7;
  border: 0;
  padding: 4px;
  min-height: auto;
}

.mb-form-message {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(80, 180, 90, .14);
  border: 1px solid rgba(80, 180, 90, .35);
  font-size: 13px;
}

.mb-event-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-primary, #274c77);
}
.mb-event-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text-primary, #fff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mb-event-tab[aria-selected="true"] {
  background: var(--core-secondary, #d6ff00);
  color: #111;
  border-color: transparent;
}
.mb-event-list { display: grid; gap: 12px; padding: 16px; }
.mb-event-card {
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-moderate, #0d294b);
}
.mb-event-card-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-secondary, #173b62);
}
.mb-event-league { color: var(--text-secondary, #aab4bd); font-size: 11px; font-weight: 700; }
.mb-event-name { font-size: 14px; font-weight: 800; margin-top: 3px; }
.mb-market-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.mb-odds {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 8px;
  background: var(--bg-button-odds-default, #173b62);
  color: var(--text-button-odds-default, #fff);
  cursor: pointer;
}
.mb-odds small { font-size: 10px; color: var(--text-secondary, #b3bdc6); }
.mb-odds strong { font-size: 14px; }

.mb-slip-items { display: grid; gap: 8px; padding: 12px; }
.mb-slip-item {
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 9px;
  padding: 10px;
  background: var(--surface-moderate, #0d294b);
}
.mb-slip-top { display: flex; justify-content: space-between; gap: 10px; }
.mb-slip-event { color: var(--text-secondary, #9faab3); font-size: 10px; margin-bottom: 3px; }
.mb-slip-selection { font-size: 13px; font-weight: 800; line-height: 1.25; }
.mb-slip-market { color: var(--text-secondary, #aab4bd); font-size: 11px; margin-top: 4px; }
.mb-slip-odds { font-size: 14px; font-weight: 900; white-space: nowrap; }
.mb-slip-stake-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 9px; }
.mb-slip-stake-row label { display: grid; gap: 4px; color: var(--text-secondary, #aab4bd); font-size: 10px; }
.mb-slip-stake-row input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 7px;
  padding: 7px 9px;
  background: var(--bg-body, #071a31);
  color: var(--text-primary, #fff);
  font-size: 16px;
}
.mb-slip-summary {
  margin: 0 12px 12px;
  border-top: 1px solid var(--border-primary, #274c77);
  padding-top: 12px;
}
.mb-summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin: 6px 0; }
.mb-summary-line strong { font-size: 13px; }
.mb-slip-actions { display: grid; gap: 8px; margin-top: 12px; }
.mb-empty-slip {
  min-height: 250px;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.mb-empty-slip strong { font-size: 14px; }
.mb-empty-slip span { font-size: 11px; color: var(--text-secondary, #aab4bd); }

.mb-toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 11000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.mb-toast {
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 13px;
  border-radius: 9px;
  background: #12191f;
  color: #fff;
  border: 1px solid #274c77;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1279px) {
  div[class*="_betslip_"] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    width: min(92vw, 360px) !important;
    max-width: 360px !important;
    transform: translateX(105%);
    transition: transform .2s ease;
    background: var(--bg-body, #071a31);
  }
  div[class*="_betslip_"].mb-open { transform: translateX(0); }
  div[class*="_betslip_"] > div { width: 100% !important; height: 100% !important; }
}

@media (max-width: 560px) {
  .mb-modal-backdrop,
  .mb-event-backdrop { align-items: flex-end; padding: 0; }
  .mb-modal,
  .mb-event-browser {
    width: 100%;
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .mb-market-row { grid-template-columns: 1fr; }
}

.mb-betslip-trigger {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.mb-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 8, 10, .68);
}
.mb-nav-backdrop[hidden] { display: none !important; }
.mb-nav-close {
  display: none;
}
@media (min-width: 768px) and (max-width: 1279px) {
  nav[class*="_navigation_"].mb-nav-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 10001 !important;
    width: min(86vw, 300px) !important;
    min-width: min(86vw, 300px) !important;
    overflow-y: auto !important;
    border-right: 1px solid var(--border-primary, #274c77) !important;
    box-shadow: 18px 0 50px rgba(0,0,0,.35);
  }
  nav[class*="_navigation_"].mb-nav-open .mb-nav-close {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    padding: 6px 12px;
    background: var(--core-primary, #0b2848);
    color: var(--text-primary, #fff);
    border: 0;
    border-bottom: 1px solid var(--border-primary, #274c77);
    font-size: 26px;
    cursor: pointer;
  }
}

/* In-page Featured sports switcher */
main.mb-sports-mode > :not(.mb-inline-sports) {
  display: none !important;
}

.mb-inline-sports {
  width: 100%;
  min-width: 0;
  padding: 14px 16px 36px;
  color: var(--text-primary, #fff);
}
.mb-inline-sports[hidden] { display: none !important; }

.mb-inline-top {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.mb-inline-segment {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-segment-main, #0c2a4d);
}
.mb-inline-segment button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 24px;
  background: transparent;
  color: var(--text-primary, #fff);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.mb-inline-segment .mb-inline-sports-active {
  background: var(--bg-segment-active, #fff);
  color: var(--text-segment-active, #111);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.mb-inline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 14px 14px 0 0;
  background: var(--core-primary, #0b2848);
}
.mb-inline-kicker {
  color: var(--text-secondary, #aab4bd);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mb-inline-title {
  margin: 3px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 900;
}
.mb-inline-subtitle {
  margin: 7px 0 0;
  color: var(--text-secondary, #aab4bd);
  font-size: 12px;
}

.mb-inline-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 14px;
  border-right: 1px solid var(--border-primary, #274c77);
  border-left: 1px solid var(--border-primary, #274c77);
  border-bottom: 1px solid var(--border-primary, #274c77);
  background: var(--bg-body, #071a31);
  scrollbar-width: none;
}
.mb-inline-tabs::-webkit-scrollbar { display: none; }
.mb-inline-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--border-primary, #274c77);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--surface-moderate, #0d294b);
  color: var(--text-primary, #fff);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mb-inline-tab[aria-selected="true"] {
  border-color: transparent;
  background: var(--core-secondary, #d6ff00);
  color: #111;
}
.mb-inline-list {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
}
.mb-inline-sports .mb-event-card {
  background: var(--bg-widget, var(--surface-moderate, #0d294b));
}
.mb-inline-sports .mb-market-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

nav a.mb-featured-active {
  position: relative;
  background: var(--bg-navigation-leftnav-hover, rgba(255,255,255,.06));
  font-weight: 800;
}
nav a.mb-featured-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--core-secondary, #d6ff00);
}

@media (max-width: 767px) {
  .mb-inline-sports { padding: 12px 12px 28px; }
  .mb-inline-head { padding: 15px 14px; }
  .mb-inline-subtitle { font-size: 11px; }
  .mb-inline-tabs { padding: 10px 12px; }
  .mb-inline-sports .mb-market-row { gap: 6px; padding: 10px; }
  .mb-inline-sports .mb-odds { min-height: 58px; padding: 5px; }
  .mb-inline-sports .mb-odds small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .mb-inline-segment { width: 100%; grid-template-columns: 1fr 1fr; }
  .mb-inline-segment button { padding-left: 12px; padding-right: 12px; }
  .mb-inline-title { font-size: 22px; }
}

/* v3 contrast fixes: the original theme defines --core-secondary as #112b50. */
.mb-slip-item,
.mb-slip-item *,
.mb-slip-summary,
.mb-slip-summary *,
.mb-empty-slip,
.mb-empty-slip * {
  color: #f2f2f2;
}

.mb-slip-event,
.mb-slip-market,
.mb-slip-stake-row label,
.mb-empty-slip span {
  color: #c5c5c5 !important;
}

.mb-slip-selection,
.mb-slip-odds,
.mb-summary-line,
.mb-summary-line strong {
  color: #f2f2f2 !important;
}

.mb-slip-stake-row input,
.mb-field input,
.mb-field select {
  background: #102f52 !important;
  color: #f2f2f2 !important;
  caret-color: #f2f2f2;
  border-color: #444 !important;
}

.mb-slip-stake-row input::placeholder,
.mb-field input::placeholder {
  color: #9b9b9b !important;
  opacity: 1;
}

.mb-slip-stake-row input:focus,
.mb-field input:focus,
.mb-field select:focus {
  border-color: #587faa !important;
  box-shadow: 0 0 0 2px rgba(88, 127, 170, .20);
}

.mb-primary {
  background: #587faa !important;
  color: #fff !important;
  border: 1px solid #587faa !important;
}
.mb-primary:hover { background: #45698f !important; }
.mb-primary:disabled {
  background: #587faa !important;
  color: #fff !important;
  opacity: .72;
}

.mb-secondary {
  background: transparent !important;
  color: #f2f2f2 !important;
  border-color: #444 !important;
}

.mb-danger-link {
  color: #9cb8d7 !important;
}

.mb-modal,
.mb-modal-head,
.mb-modal-body,
.mb-modal-title,
.mb-modal-subtitle,
.mb-field,
.mb-field label {
  color: #f2f2f2;
}
.mb-modal-subtitle,
.mb-field label { color: #c5c5c5 !important; }
.mb-modal-title { color: #f2f2f2 !important; }
.mb-icon-btn { color: #f2f2f2 !important; }

.mb-form-message {
  color: #f2f2f2 !important;
  background: rgba(79, 163, 9, .13) !important;
  border-color: rgba(79, 163, 9, .45) !important;
}

.mb-success-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 16px 30px;
  color: #f2f2f2;
}
.mb-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #587faa;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}
.mb-success-title {
  margin: 0 0 10px;
  color: #f2f2f2 !important;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}
.mb-success-text {
  max-width: 400px;
  margin: 0;
  color: #c5c5c5 !important;
  font-size: 15px;
  line-height: 1.55;
}
.mb-success-email {
  color: #f2f2f2 !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Dark native controls for the dark DependaBet UI */
.mb-slip-stake-row input, .mb-field input, .mb-field select { color-scheme: dark; }


/* v4 interaction and visual fixes */
:root {
  --mb-accent: #587faa;
  --mb-accent-hover: #45698f;
  --mb-panel: #0c213e;
  --mb-input: #0f2d50;
  --mb-border: #3a3a3a;
  --mb-text: #f5f5f5;
  --mb-muted: #b8b8b8;
}

/* Active tabs: always visible against the dark DependaBet theme. */
.mb-inline-segment {
  background: #0c2747 !important;
  border: 1px solid #353535;
}
.mb-inline-segment button {
  color: #d7d7d7 !important;
  background: transparent !important;
}
.mb-inline-segment .mb-inline-sports-active {
  background: var(--mb-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.mb-inline-tab,
.mb-event-tab {
  background: #102f52 !important;
  border-color: #3d3d3d !important;
  color: #f2f2f2 !important;
}
.mb-inline-tab[aria-selected="true"],
.mb-event-tab[aria-selected="true"] {
  background: var(--mb-accent) !important;
  border-color: var(--mb-accent) !important;
  color: #fff !important;
}
nav a.mb-featured-active {
  background: rgba(88, 127, 170, .14) !important;
  color: #fff !important;
}
nav a.mb-featured-active::before { background: var(--mb-accent) !important; }

/* Cleaner login / join modal. */
.mb-modal {
  width: min(100%, 560px) !important;
  border-color: #17395f !important;
  border-radius: 20px !important;
  background: #06172c !important;
  box-shadow: 0 26px 80px rgba(0,0,0,.6) !important;
}
.mb-modal-head {
  padding: 22px 24px 18px !important;
  background: #0d2342 !important;
  border-color: #17395f !important;
}
.mb-modal-title {
  font-size: 26px !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em;
}
.mb-modal-subtitle {
  margin-top: 6px !important;
  font-size: 14px !important;
  color: #bdbdbd !important;
}
.mb-modal-body { padding: 24px !important; }
.mb-auth-form { display: grid; gap: 16px; }
.mb-form-grid { display: grid; gap: 14px; }
.mb-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mb-auth-form .mb-field { margin: 0 !important; gap: 8px; }
.mb-auth-form .mb-field label {
  display: block;
  color: #e6e6e6 !important;
  font-size: 13px !important;
  font-weight: 750;
}
.mb-auth-form .mb-field input,
.mb-auth-form .mb-field select,
.mb-auth-form .mb-field textarea {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid #444 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: #0d294b !important;
  color: #fff !important;
  font: inherit;
  font-size: 16px !important;
  outline: none;
}
.mb-auth-form .mb-field textarea { min-height: 110px; resize: vertical; }
.mb-auth-form .mb-field input:focus,
.mb-auth-form .mb-field textarea:focus,
.mb-auth-form .mb-field select:focus {
  border-color: var(--mb-accent) !important;
  box-shadow: 0 0 0 3px rgba(88,127,170,.20) !important;
}
.mb-field-help {
  color: #929292;
  font-size: 11px;
  line-height: 1.35;
}
.mb-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}
.mb-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.mb-check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: var(--mb-accent);
}
.mb-check-compact { align-items: center; }
.mb-text-action {
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: #9cb8d7;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.mb-auth-submit {
  min-height: 54px !important;
  margin-top: 2px;
  border-radius: 12px !important;
  font-size: 16px;
}
.mb-success-state { min-height: 300px !important; padding: 20px 12px 10px !important; }
.mb-success-text { max-width: 440px !important; }
.mb-success-note {
  margin: 12px 0 0;
  color: #909090;
  font-size: 12px;
}
.mb-success-close {
  width: min(100%, 280px) !important;
  margin-top: 24px;
}

/* Next Up rows are real controls now. */
h2 + * a[href="#"] { cursor: pointer; }
.mb-race-detail-host {
  margin: -10px 16px 8px;
  scroll-margin-top: 16px;
}
.mb-race-detail-host[hidden] { display: none !important; }
.mb-race-detail {
  overflow: hidden;
  border: 1px solid #17395f;
  border-radius: 14px;
  background: #091d37;
  color: #f4f4f4;
}
.mb-race-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #17395f;
  background: #0a2342;
}
.mb-race-kicker {
  color: #9cb8d7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mb-race-detail-head h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}
.mb-race-detail-head p {
  margin: 6px 0 0;
  color: #aaa;
  font-size: 12px;
}
.mb-race-market-head,
.mb-race-runner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px;
  gap: 10px;
  align-items: center;
}
.mb-race-market-head {
  padding: 10px 16px;
  border-bottom: 1px solid #303030;
  color: #8f8f8f;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.mb-race-market-head span:not(:first-child) { text-align: center; }
.mb-race-runner-row {
  padding: 10px 16px;
  border-bottom: 1px solid #0f2d50;
}
.mb-race-runner-row:last-child { border-bottom: 0; }
.mb-race-runner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mb-race-runner strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4f4f4;
  font-size: 13px;
}
.mb-race-runner-no {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #102f52;
  color: #d0d0d0;
  font-size: 11px;
  font-weight: 800;
}
.mb-race-odd {
  min-height: 48px !important;
  border-radius: 9px !important;
  background: #102f52 !important;
  border-color: #3c3c3c !important;
  color: #fff !important;
}
.mb-race-odd.mb-selected-odd {
  background: rgba(88,127,170,.18) !important;
  border-color: var(--mb-accent) !important;
  outline-color: var(--mb-accent) !important;
}

@media (hover: hover) and (pointer: fine) {
  .mb-inline-tab:hover,
  .mb-event-tab:hover,
  .mb-race-odd:hover { border-color: #666 !important; }
  .mb-inline-tab[aria-selected="true"]:hover,
  .mb-event-tab[aria-selected="true"]:hover { border-color: var(--mb-accent) !important; background: var(--mb-accent-hover) !important; }
}

@media (max-width: 640px) {
  .mb-form-grid-2 { grid-template-columns: 1fr; }
  .mb-modal-body { padding: 18px !important; }
  .mb-modal-head { padding: 18px !important; }
  .mb-modal-title { font-size: 22px !important; }
  .mb-form-meta { align-items: flex-start; flex-direction: column; }
  .mb-race-detail-host { margin: -8px 12px 8px; }
  .mb-race-market-head,
  .mb-race-runner-row { grid-template-columns: minmax(0, 1fr) 72px 72px; gap: 6px; padding-left: 10px; padding-right: 10px; }
  .mb-race-detail-head { padding: 15px 14px; }
  .mb-race-runner strong { font-size: 12px; }
}

.mb-terms-note { margin: -2px 0 0; color: #8f8f8f; font-size: 11px; line-height: 1.45; }


/* DependaBet V4: icon-only remove control + unified steel-blue accent */
.mb-danger-link.mb-remove-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(156,184,215,.22) !important;
  border-radius: 10px !important;
  background: rgba(88,127,170,.10) !important;
  color: #b9cee5 !important;
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}
.mb-danger-link.mb-remove-btn:hover {
  background: rgba(88,127,170,.20) !important;
  border-color: rgba(156,184,215,.42) !important;
  color: #eef5fc !important;
  transform: translateY(-1px);
}
.mb-danger-link.mb-remove-btn:active { transform: translateY(0); }
