/* Outcome Market decision UI (PRICE_THRESHOLD) */

.om-decision-host[hidden] {
  display: none !important;
}

body.om-decision-active .pm-chart-toolbar,
body.om-decision-active .pm-chart-wrap,
body.om-decision-active #detailStats,
body.om-decision-active .pm-research-tabs,
body.om-decision-active .pm-chart-hero {
  display: none !important;
}

@media (min-width: 1100px) {
  body.om-decision-active .pm-chart-wrap {
    display: block !important;
  }
}

.om-decision {
  display: grid;
  gap: 14px;
  padding: 12px 14px 18px;
  color: #e8f2f0;
  font-variant-numeric: tabular-nums;
}

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

.om-header__title {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.om-header__title strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
}

.om-header__title small {
  color: rgba(180, 200, 196, 0.78);
  font-size: 0.75rem;
}

.om-header__countdown {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 16, 0.72);
  font: 650 0.9rem/1.2 var(--font-mono, ui-monospace, monospace);
}

.om-trust {
  display: flex;
  gap: 8px;
}

.om-trust-lamp {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 16, 0.65);
  color: rgba(220, 232, 228, 0.9);
  font-size: 0.72rem;
}

.om-trust-lamp i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  display: inline-block;
}

.om-trust-lamp[data-shape="full"] i {
  background: #66d1a2;
  border-color: #66d1a2;
}

.om-trust-lamp[data-shape="half"] i {
  background: linear-gradient(90deg, #e7c263 50%, transparent 50%);
  border-color: #e7c263;
  color: #e7c263;
}

.om-trust-lamp[data-shape="empty"] i {
  background: transparent;
  border-color: rgba(180, 200, 196, 0.55);
}

.om-trust-lamp[data-shape="x"] i {
  background: #d36b6b;
  border-color: #d36b6b;
  border-radius: 2px;
}

.om-trust-lamp[data-shape="pulse"] i {
  background: rgba(180, 200, 196, 0.45);
  animation: om-pulse 1.4s ease-in-out infinite;
}

@keyframes om-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .om-trust-lamp[data-shape="pulse"] i { animation: none; }
}

.om-rail {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 14, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.om-rail__zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.om-rail__zone--yes {
  color: #66d1a2;
  text-align: right;
}

.om-rail__zone--no {
  color: #9b8cff;
}

.om-rail__track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(155, 140, 255, 0.22), rgba(155, 140, 255, 0.08) 48%, rgba(102, 209, 162, 0.08) 52%, rgba(102, 209, 162, 0.22));
}

.om-rail__threshold,
.om-rail__current {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.om-rail__threshold {
  width: 2px;
  height: 28px;
  background: #f2f7f6;
}

.om-rail__current {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #50e3c2;
  box-shadow: 0 0 0 3px rgba(80, 227, 194, 0.22);
  transition: left 180ms ease;
}

.om-rail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(180, 200, 196, 0.82);
  font-size: 0.72rem;
}

.om-price-band {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(6, 12, 14, 0.55);
}

.om-price-band__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.om-price-band__bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(155, 140, 255, 0.55), rgba(102, 209, 162, 0.55));
}

.om-price-band__bar[data-liquidity="wide"],
.om-price-band__bar[data-liquidity="very_wide"] {
  height: 14px;
  opacity: 0.85;
}

.om-price-band__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(180, 200, 196, 0.78);
}

.om-price-band__mid {
  color: rgba(200, 210, 208, 0.7);
}

.om-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.om-outcome {
  min-height: 88px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 16, 0.72);
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.om-outcome.is-selected[data-om-outcome="YES"] {
  border-color: rgba(102, 209, 162, 0.55);
  background: rgba(20, 48, 40, 0.55);
}

.om-outcome.is-selected[data-om-outcome="NO"] {
  border-color: rgba(155, 140, 255, 0.55);
  background: rgba(36, 28, 64, 0.45);
}

.om-outcome strong {
  font-size: 1.15rem;
}

.om-outcome small {
  color: rgba(180, 200, 196, 0.78);
}

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

.om-amount__presets button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 16, 0.72);
  color: inherit;
}

.om-amount__presets button.is-active {
  border-color: rgba(80, 227, 194, 0.5);
}

.om-payout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.om-payout__cell {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  opacity: 0.55;
  display: grid;
  gap: 4px;
}

.om-payout__cell.is-emphasis {
  opacity: 1;
}

.om-risk__bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.om-risk__loss {
  background: rgba(155, 140, 255, 0.75);
  min-width: 4px;
}

.om-risk__profit {
  background: rgba(102, 209, 162, 0.75);
  min-width: 4px;
}

.om-risk__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: rgba(180, 200, 196, 0.82);
}

.om-cta-helper {
  margin: 0;
  color: #e7c263;
  font-size: 0.78rem;
}

.om-cta {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: #50e3c2;
  color: #041014;
  font: 700 0.95rem/1.2 var(--font-body, system-ui);
}

.om-cta:disabled {
  background: rgba(120, 140, 136, 0.35);
  color: rgba(220, 232, 228, 0.55);
}

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

.om-chart {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 14, 0.55);
  overflow: hidden;
  max-height: 170px;
}

.om-chart--reference {
  max-height: 150px;
}

.om-chart-band {
  fill: rgba(80, 227, 194, 0.08);
}

.om-chart-ask { stroke: #66d1a2; stroke-width: 1.5; }
.om-chart-bid { stroke: #9b8cff; stroke-width: 1.5; }
.om-chart-mid { stroke: rgba(220, 232, 228, 0.45); stroke-width: 1; stroke-dasharray: 3 4; }
.om-chart-ref { stroke: #50e3c2; stroke-width: 1.6; }
.om-chart-threshold { stroke: #f2f7f6; stroke-width: 1.5; stroke-dasharray: 4 3; }
.om-chart-refdot { fill: #50e3c2; }
.om-chart-trade { fill: rgba(231, 194, 99, 0.95); }
.om-chart-label {
  fill: rgba(180, 200, 196, 0.82);
  font-size: 10px;
}

.om-chart-ranges {
  display: flex;
  gap: 6px;
  padding: 8px 8px 0;
}

.om-chart-ranges button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(180, 200, 196, 0.85);
  font-size: 0.68rem;
}

.om-chart-ranges button.is-active {
  border-color: rgba(80, 227, 194, 0.45);
  color: #e8f2f0;
}

.om-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(2, 6, 8, 0.62);
}

.om-sheet[hidden] {
  display: none !important;
}

.om-sheet__panel {
  max-height: min(78dvh, 720px);
  overflow: auto;
  border-radius: 20px 20px 0 0;
  background: #0b1416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 14px 24px;
}

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

.om-sheet__header h2 {
  margin: 0;
  font-size: 1rem;
}

.om-sheet__close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 16, 0.72);
  color: inherit;
}

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

@media (max-width: 1099px) {
  body.om-decision-active .pm-research-tabs,
  body.om-decision-active .pm-book-panel:not(.pm-book-panel--coin-space),
  body.om-decision-active #detailRecentTrades {
    display: none !important;
  }

  body.om-decision-active .pm-book-panel--coin-space {
    display: flex !important;
  }
}

.om-quality {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.om-quality h3 {
  margin: 0;
  font-size: 0.85rem;
}

.om-quality ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(180, 200, 196, 0.82);
  font-size: 0.75rem;
}

.om-quality dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.om-quality dl > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
}

.om-sheet-triggers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.om-sheet-triggers button {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 14, 16, 0.72);
  color: inherit;
  font-size: 0.75rem;
}

@media (max-width: 1099px) {
  body.om-decision-active .pm-research-tabs,
  body.om-decision-active .pm-book-panel:not(.pm-book-panel--coin-space),
  body.om-decision-active #detailRecentTrades {
    display: none !important;
  }

  body.om-decision-active .pm-book-panel--coin-space {
    display: flex !important;
  }
}
