#oddsmonitor-app {
  --om-bg: #0f172a;
  --om-bg-soft: #131c31;
  --om-panel: rgba(15, 23, 42, .9);
  --om-panel-soft: #162033;
  --om-line: rgba(255,255,255,.08);
  --om-text: #e5e7eb;
  --om-muted: #94a3b8;
  --om-green: #22c55e;
  --om-red: #ef4444;
  --om-blue: #38bdf8;
  --om-amber: #f59e0b;
  color: var(--om-text);
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(34,197,94,.10), transparent 26%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(2,6,23,.35);
}

#oddsmonitor-app * { box-sizing: border-box; }

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

.oddsmonitor-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--om-blue);
}

.oddsmonitor-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  color: #fff;
}

.oddsmonitor-subtitle,
.oddsmonitor-last-update,
.om-muted {
  color: var(--om-muted);
}

.oddsmonitor-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.om-card,
.om-panel,
.om-mini-card,
.om-pill,
.om-signal-box {
  background: rgba(17,24,39,.92);
  border: 1px solid var(--om-line);
  border-radius: 18px;
}

.om-kpi { padding: 16px; }

.om-kpi span,
.om-mini-card span,
.om-pill span,
.om-signal-label,
.om-cell-sub {
  display: block;
  font-size: 11px;
  color: var(--om-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.om-kpi strong,
.om-mini-card strong {
  font-size: 24px;
  color: #fff;
}

.oddsmonitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, .95fr);
  gap: 18px;
}

.om-panel {
  padding: 14px;
  backdrop-filter: blur(8px);
}

.om-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.om-toolbar-group {
  display: flex;
  gap: 10px;
}

.om-toolbar-group--grow { flex: 1; }

.om-toolbar input,
.om-toolbar select {
  width: 100%;
  background: var(--om-panel-soft);
  border: 1px solid var(--om-line);
  color: var(--om-text);
  border-radius: 12px;
  padding: 10px 12px;
}

.om-results-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--om-line);
  color: #dbe4f0;
  font-size: 13px;
}

.om-table-wrap {
  overflow: auto;
  max-height: 72vh;
  border-radius: 14px;
  border: 1px solid var(--om-line);
  background: #0f172a;
}

.om-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
  background: #0f172a;
}

.om-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: #dbe4f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.om-table th,
.om-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--om-line);
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
  vertical-align: middle;
}

.om-table td:nth-child(1) { min-width: 118px; }
.om-table td:nth-child(2) {
  text-align: left;
  min-width: 290px;
}
.om-table td:nth-child(3) { min-width: 110px; }
.om-table td:nth-child(5) { min-width: 80px; }

.om-date-time-cell strong,
.om-match-stack strong,
.om-score,
.om-top-side {
  font-weight: 700;
}

.om-date-time-cell,
.om-match-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.om-cell-sub {
  margin-bottom: 0;
  font-size: 10px;
}

.om-match-cell .om-cell-sub {
  white-space: normal;
  text-transform: none;
  letter-spacing: .02em;
  font-size: 11px;
}

.om-table tbody tr {
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.om-table tbody tr:hover {
  background: rgba(56,189,248,.08);
}

.om-table tbody tr.is-selected {
  background: rgba(56,189,248,.12);
}

.om-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.om-badge.is-live {
  background: rgba(34,197,94,.18);
  color: #86efac;
}

.om-badge.is-pre {
  background: rgba(245,158,11,.18);
  color: #fcd34d;
}

.is-pos { color: #7dd3fc !important; }
.is-neg { color: #f9a8d4 !important; }
.is-neutral { color: #cbd5e1 !important; }

.om-table td.is-pos {
  background: transparent !important;
  color: #7dd3fc !important;
  font-weight: 700;
}

.om-table td.is-neg {
  background: transparent !important;
  color: #f9a8d4 !important;
  font-weight: 700;
}

.om-table td.is-neutral {
  color: #cbd5e1 !important;
}

.om-top-side.is-pos,
.om-pill.is-pos,
.om-mini-card.is-pos {
  background: rgba(125, 211, 252, .16) !important;
  color: #7dd3fc !important;
}

.om-top-side.is-neg,
.om-pill.is-neg,
.om-mini-card.is-neg {
  background: rgba(249, 168, 212, .16) !important;
  color: #f9a8d4 !important;
}

.om-event-header h3,
.om-chart-box h4,
.om-modal__header h3 {
  color: #fff;
  margin: 0;
}

.om-event-header { margin-bottom: 12px; }
.om-event-header p { margin: 0 0 6px; }

.om-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.om-mini-card { padding: 12px; }
.om-mini-card strong { font-size: 18px; }

.om-signal-box {
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(56,189,248,.08), rgba(255,255,255,.02));
}

.om-signal-text {
  margin: 0;
  color: #dbe4f0;
  line-height: 1.5;
}

.om-odds-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.om-pill {
  padding: 11px 12px;
  min-height: 68px;
}

.om-pill strong { color: #fff; }

.om-toggle-row {
  margin-bottom: 12px;
  color: var(--om-muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.om-chart-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.om-chart-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.om-chart-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.om-chart-tab,
.om-tool-btn,
.om-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--om-muted);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
}

.om-chart-tab.is-active {
  background: rgba(56,189,248,.12);
  color: #fff;
}

.om-tool-btn {
  border: 1px solid rgba(56,189,248,.22);
  background: rgba(56,189,248,.08);
  color: #dff7ff;
}

.om-chart-stage { min-height: 320px; }

.om-chart-box {
  display: none;
  height: 320px;
  padding: 14px;
  background: #0f172a;
  border: 1px solid var(--om-line);
  border-radius: 16px;
}

.om-chart-box.is-active { display: block; }
.om-chart-head {
  margin-bottom: 10px;
}

.om-chart-box h4 {
  margin-bottom: 4px;
  font-size: 15px;
}

.om-chart-subtitle {
  margin: 0 0 8px;
  color: var(--om-muted);
  font-size: 12px;
  line-height: 1.35;
}

.om-empty {
  text-align: center;
  padding: 24px;
  color: var(--om-muted);
}

.om-empty--inline {
  border: 1px dashed var(--om-line);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.om-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.om-modal.is-open { display: block; }

.om-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .72);
}

.om-modal__dialog {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  height: min(82vh, 860px);
  margin: 4vh auto;
  background: #0f172a;
  border: 1px solid var(--om-line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(2,6,23,.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.om-modal__header,
.om-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.om-modal__header {
  justify-content: flex-end;
  min-height: 0;
}

.om-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}


.om-modal__meta {
  display: grid;
  gap: 10px;
}

.om-chart-head__main {
  min-width: 0;
}

.om-chart-head--modal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.om-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-inline-meta--modal {
  justify-content: flex-end;
}

.om-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: #d6dbe4;
  line-height: 1;
  white-space: nowrap;
}

.om-inline-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--om-muted);
}

.om-inline-chip strong {
  font-size: 12px;
  color: #f8fafc;
}

.om-modal__canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.om-modal__canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

body.om-modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .oddsmonitor-layout {
    grid-template-columns: 1fr;
  }

  .om-table-wrap {
    max-height: 58vh;
  }
}

@media (max-width: 900px) {
  .oddsmonitor-topbar,
  .om-toolbar,
  .om-toolbar-group,
  .om-chart-tools,
  .om-modal__header,
  .om-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .om-chart-head--modal {
    align-items: stretch;
  }

  .om-inline-meta--modal {
    justify-content: flex-start;
  }

  .oddsmonitor-kpis,
  .om-odds-strip,
  .om-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .om-toggle-row { flex-direction: column; gap: 8px; }
}

@media (max-width: 700px) {
  #oddsmonitor-app {
    padding: 14px;
    border-radius: 16px;
  }

  .om-kpi strong { font-size: 20px; }

  .oddsmonitor-kpis,
  .om-odds-strip,
  .om-mini-grid {
    grid-template-columns: 1fr;
  }

  .om-chart-box {
    height: 270px;
  }

  .om-modal__dialog {
    width: calc(100vw - 16px);
    margin: 2vh auto;
    height: 90vh;
    padding: 12px;
  }
}


.om-table,
.om-table th,
.om-table td,
.om-panel,
.om-card,
.om-mini-card,
.om-pill,
.om-results-note,
.om-event-header p,
.om-signal-text {
  color: var(--om-text) !important;
}

.om-table td strong,
.om-table th strong,
.om-card strong,
.om-mini-card strong,
.om-pill strong,
.om-score {
  color: #fff !important;
}

.om-top-side {
  font-weight: 700;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


.om-toggle-row--mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.om-mode-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--om-line);
  background: rgba(255,255,255,.03);
  color: var(--om-text);
  cursor: pointer;
  transition: .18s ease;
  font-size: 13px;
  font-weight: 600;
}

.om-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.om-mode-option.is-active {
  background: rgba(53,194,255,.14);
  border-color: rgba(53,194,255,.45);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(53,194,255,.18);
}

.om-modal__dialog {
  height: min(88vh, 920px);
  gap: 8px;
  padding: 12px;
}

.om-modal__header {
  padding: 0;
}

.om-modal__header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.om-tool-btn--modal {
  padding: 8px 12px;
}

.om-modal__close {
  width: 38px;
  height: 38px;
}

.om-modal__meta {
  gap: 6px;
}

.om-chart-head--modal {
  gap: 10px;
}

.om-chart-head--modal h4 {
  margin-bottom: 2px;
}

.om-chart-head--modal .om-chart-subtitle {
  font-size: 12px;
  line-height: 1.35;
}

.om-inline-meta--modal {
  gap: 6px;
}

.om-inline-chip {
  padding: 6px 9px;
}

.om-modal__canvas-wrap {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .om-modal__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .om-toggle-row--mode {
    display: grid;
    grid-template-columns: 1fr;
  }

  .om-mode-option {
    width: 100%;
  }
}


/* v2.0.9 modal compact header */
.om-modal__dialog {
  position: relative;
}

.om-modal__header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  width: auto;
  min-height: 0;
  padding: 0;
}

.om-modal__meta {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 120px;
  z-index: 4;
  margin: 0;
  display: block;
}

.om-chart-head--modal {
  display: block;
  margin: 0;
}

.om-chart-head--modal h4 {
  margin: 0 0 2px;
}

.om-chart-head--modal .om-chart-subtitle {
  margin: 0;
  max-width: none;
}

.om-inline-meta--modal {
  margin-top: 8px;
  justify-content: flex-start;
}

.om-modal__canvas-wrap {
  flex: 1;
  min-height: 0;
  margin-top: 0;
}

@media (max-width: 900px) {
  .om-modal__header {
    top: 10px;
    right: 10px;
  }

  .om-modal__meta {
    top: 10px;
    left: 10px;
    right: 86px;
  }

  .om-inline-meta--modal {
    justify-content: flex-start;
  }
}

/* v2.0.14 modal layout: separate rows for meta and selectors */
.om-modal__dialog {
  position: relative;
  height: min(90vh, 960px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.om-modal__header {
  position: relative;
  top: auto;
  right: auto;
  z-index: 8;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
}

.om-modal__meta {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 6;
  margin: 0;
  flex: 0 0 auto;
}

.om-modal__controls {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  flex: 0 0 auto;
}

.om-inline-meta--modal {
  margin-top: 8px;
  gap: 6px;
  flex-wrap: wrap;
}

.om-toggle-row--modal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.om-chart-tabs--modal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.om-chart-tab--modal {
  min-width: 92px;
}

.om-modal__canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
}

.om-modal__canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 720px) {
  .om-toggle-row--modal,
  .om-chart-tabs--modal {
    width: 100%;
    justify-content: flex-start;
  }

  .om-chart-tab--modal,
  .om-toggle-row--modal .om-mode-option {
    min-width: 0;
  }
}


/* v2.0.16 modal: slightly higher chart area */
.om-modal__dialog {
  height: min(92vh, 980px);
  padding-top: 8px;
  gap: 6px;
}

.om-modal__header {
  position: absolute;
  top: 6px;
  right: 10px;
  width: auto;
  z-index: 12;
  margin: 0;
}

.om-modal__meta {
  margin: 0;
  padding-right: 84px;
}

.om-chart-head--modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.om-chart-head__main--modal {
  width: 100%;
}

.om-chart-head__main--modal .om-chart-subtitle {
  margin: 0;
  line-height: 1.18;
}

.om-modal__controls {
  display: none;
}

.om-chart-tabs--modal {
  order: 0;
  margin: 0;
  gap: 5px;
}

.om-inline-meta--modal {
  order: 2;
  margin-top: 0;
  gap: 5px;
}

.om-toggle-row--modal {
  order: 3;
  gap: 5px;
}

.om-chart-tab--modal {
  min-width: 84px;
  padding: 7px 12px;
}

.om-inline-chip {
  padding: 6px 9px;
}

.om-mode-option {
  padding: 7px 10px;
}

.om-modal__canvas-wrap {
  margin-top: 0;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 720px) {
  .om-modal__meta {
    padding-right: 52px;
  }
  .om-chart-tabs--modal,
  .om-inline-meta--modal,
  .om-toggle-row--modal {
    width: 100%;
  }
}

/* v2.1.0 desktop re-layout: monitor full width, detail/charts below */
#oddsmonitor-app.oddsmonitor-shell {
  width: min(96vw, 1820px);
  max-width: none;
  margin: 0 auto;
}

.oddsmonitor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.om-panel--table {
  padding-bottom: 10px;
}

.om-toolbar {
  align-items: center;
}

.om-toolbar-group:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.om-toolbar input,
.om-toolbar select {
  min-height: 42px;
}

.om-table-wrap {
  max-height: 58vh;
}

.om-table {
  min-width: 1460px;
}

.om-panel--detail {
  padding: 14px;
}

.om-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.om-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.om-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.om-detail-toprow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.om-chart-tools {
  justify-content: flex-end;
  margin-bottom: 0;
}

.om-toggle-row--mode {
  margin-bottom: 0;
}

.om-chart-stage {
  min-height: 460px;
}

.om-chart-box {
  height: 460px;
}

.om-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.om-chart-head h4 {
  margin-right: auto;
}

.om-chart-subtitle {
  flex: 1 1 420px;
  max-width: 100%;
}

@media (max-width: 1400px) {
  #oddsmonitor-app.oddsmonitor-shell {
    width: min(98vw, 1700px);
  }

  .om-detail-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  #oddsmonitor-app.oddsmonitor-shell {
    width: 100%;
    max-width: none;
  }

  .om-detail-layout {
    grid-template-columns: 1fr;
  }

  .om-detail-toprow {
    grid-template-columns: 1fr;
  }

  .om-chart-tools {
    justify-content: space-between;
  }

  .om-table-wrap {
    max-height: 54vh;
  }
}


/* v2.1.1 desktop containment + tighter monitor widths */
#oddsmonitor-app.oddsmonitor-shell,
#oddsmonitor-app.oddsmonitor-shell .om-panel,
#oddsmonitor-app.oddsmonitor-shell .om-detail-layout,
#oddsmonitor-app.oddsmonitor-shell .om-detail-main,
#oddsmonitor-app.oddsmonitor-shell .om-detail-sidebar,
#oddsmonitor-app.oddsmonitor-shell .om-chart-stage,
#oddsmonitor-app.oddsmonitor-shell .om-chart-box {
  min-width: 0;
}

#oddsmonitor-app.oddsmonitor-shell {
  overflow: hidden;
}

.om-panel--detail,
.om-detail-layout,
.om-detail-main,
.om-detail-sidebar,
.om-detail-toprow,
.om-chart-tools,
.om-chart-head,
.om-chart-stage,
.om-chart-box {
  max-width: 100%;
  overflow: hidden;
}

.om-table {
  min-width: 1320px;
}

.om-table th:nth-child(1),
.om-table td:nth-child(1) {
  width: 98px;
  min-width: 98px;
  max-width: 98px;
}

.om-table th:nth-child(2),
.om-table td:nth-child(2) {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}

.om-date-time-cell strong,
.om-date-time-cell .om-cell-sub,
.om-match-stack strong,
.om-match-stack .om-cell-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.om-match-cell .om-cell-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.om-toolbar {
  flex-wrap: wrap;
}

.om-toolbar-group,
.om-chart-tools,
.om-chart-tabs,
.om-chart-actions,
.om-detail-toprow {
  min-width: 0;
}

.om-toolbar-group:last-child,
.om-chart-tools {
  flex-wrap: wrap;
}

.om-chart-head {
  align-items: flex-start;
}

.om-chart-head h4,
.om-chart-subtitle {
  min-width: 0;
}

.om-chart-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1600px) {
  .om-table {
    min-width: 1260px;
  }

  .om-table th:nth-child(2),
  .om-table td:nth-child(2) {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
}


/* v2.1.2 layout refinement */
.om-event-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.om-event-header p,
.om-event-header h3 {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.om-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  align-items: start;
}

.om-detail-sidebar {
  grid-column: 1;
  align-self: start;
}

.om-detail-main {
  grid-column: 2;
  align-self: start;
}

.om-detail-toprow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.om-detail-toprow > * {
  min-width: 0;
}

.om-toggle-row--mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.om-chart-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.om-chart-tabs,
.om-chart-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

@media (max-width: 1180px) {
  .om-event-header {
    flex-wrap: wrap;
  }

  .om-detail-layout {
    grid-template-columns: 1fr;
  }

  .om-detail-sidebar,
  .om-detail-main {
    grid-column: auto;
  }

  .om-detail-toprow {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .om-toggle-row--mode,
  .om-chart-tools,
  .om-chart-tabs,
  .om-chart-actions {
    flex-wrap: wrap;
  }
}


/* v2.1.3 event header outside sidebar */
.om-panel--detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.om-panel--detail > .om-event-header {
  margin-bottom: 0;
}

.om-detail-layout {
  margin-top: 0;
}


/* v2.1.5 chart shell height + no axis clipping */
.om-panel--detail {
  align-self: start;
}

.om-chart-stage {
  min-height: 530px;
}

.om-chart-box {
  height: 530px;
  display: none;
  flex-direction: column;
  padding-bottom: 16px;
  overflow: visible !important;
}

.om-chart-box.is-active {
  display: flex;
}

.om-chart-head {
  flex: 0 0 auto;
}

.om-chart-canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 4px;
  padding-bottom: 10px;
}

.om-chart-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 1600px) {
  .om-chart-stage {
    min-height: 500px;
  }

  .om-chart-box {
    height: 500px;
  }
}

@media (max-width: 1180px) {
  .om-chart-stage {
    min-height: 420px;
  }

  .om-chart-box {
    height: 420px;
  }
}


.om-localtime, .omps-localtime { display:flex; flex-direction:column; gap:4px; padding:8px 12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(255,255,255,.03); min-width:fit-content; }
.om-localtime span, .omps-localtime span { font-size:11px; color:#8f99ad; text-transform:uppercase; letter-spacing:.04em; }
.om-localtime strong, .omps-localtime strong { font-size:13px; color:#f7f9fc; font-weight:700; }
.oddsmonitor-topmeta { display:flex; flex-direction:column; gap:10px; align-items:flex-end; }
.omps-shell__hero { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.omps-shell__hero > div:first-child { min-width:0; }
