.motive-power {
  margin: 16px 0 4px;
  padding: 14px;
  border: 1px solid #203651;
  border-radius: 12px;
  background: linear-gradient(180deg, #0d1b2d 0%, #091422 100%);
  color: #f3f7ff;
}

.motive-power__head,
.motive-power__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.motive-power__head strong {
  color: #4fdcff;
  font-size: 11px;
  letter-spacing: .11em;
}

.motive-power__head span,
.motive-power__note {
  color: #8293aa;
  font-size: 10px;
}

.motive-power__labels {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 700;
}

.motive-power__yes { color: #b8ff2c; }
.motive-power__no { color: #ff647c; text-align: right; }

.motive-power__bar {
  display: flex;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #263850;
}

.motive-power__bar-yes {
  background: linear-gradient(90deg, #7ddc00, #b8ff2c);
  transition: width .35s ease;
}

.motive-power__bar-no {
  background: linear-gradient(90deg, #ff8b62, #ff416c);
  transition: width .35s ease;
}

.motive-power__chart {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 9px;
  border-radius: 7px;
  background: repeating-linear-gradient(to right, transparent 0, transparent 24%, rgba(87,112,143,.14) 25%);
}

.motive-power__mid {
  stroke: #31445d;
  stroke-width: .6;
  stroke-dasharray: 3 3;
}

.motive-power__line {
  fill: none;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motive-power__line--yes { stroke: #b8ff2c; }
.motive-power__line--no { stroke: #ff526f; }

.motive-power__note {
  margin: 5px 0 0;
  text-align: right;
}

.motive-power__open {
  display: none;
  width: 100%;
  margin-top: 7px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #57d9ff;
  font-size: 10px;
}

.panel .motive-power:not(.motive-power--compact) .motive-power__chart {
  height: 180px;
  background-color: #08111d;
  background-image:
    linear-gradient(rgba(78, 103, 134, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 103, 134, .16) 1px, transparent 1px);
  background-size: 25% 25%;
}

.motive-power__actions {
  margin-bottom: 0;
}

.motive-market-clickable {
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.motive-market-clickable:hover,
.motive-market-clickable:focus-within {
  border-color: #3b5878;
  box-shadow: 0 12px 35px #0005;
  transform: translateY(-1px);
}

.motive-power--compact {
  margin-top: 12px;
  padding: 10px;
}

.motive-power--compact .motive-power__chart { height: 38px; }
.motive-power--compact .motive-power__note { display: none; }

@media (max-width: 700px) {
  header {
    position: sticky !important;
    top: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 94px !important;
    min-height: 94px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  header .logo {
    position: absolute !important;
    top: 13px !important;
    left: 12px !important;
    z-index: 3 !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
    font-size: 16px !important;
    line-height: 32px !important;
    white-space: nowrap !important;
  }

  header #account {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 3 !important;
    display: block !important;
    max-width: calc(100% - 130px) !important;
    margin: 0 !important;
    transform: none !important;
  }

  header #account .accountBtn,
  header #account .primary {
    display: block !important;
    max-width: 205px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    overflow: hidden;
    font-size: 11px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  header nav {
    position: absolute !important;
    top: auto !important;
    right: 12px !important;
    bottom: 8px !important;
    left: 12px !important;
    z-index: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    width: auto !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 6px !important;
    border: 0 !important;
    background: transparent !important;
  }

  header nav button {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .hero {
    gap: 10px !important;
    padding: 18px 12px 14px !important;
  }

  .hero .eyebrow {
    margin: 0;
    font-size: 9px !important;
  }

  .hero h1 {
    margin: 7px 0 !important;
    font-size: 34px !important;
    line-height: 1 !important;
  }

  .hero .sub {
    display: -webkit-box;
    margin: 8px 0 !important;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.4 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero .actions {
    gap: 7px !important;
  }

  .hero .actions button {
    padding: 9px 11px !important;
    font-size: 11px !important;
  }

  .hero .spotlight {
    margin-top: 0 !important;
    padding: 11px 12px !important;
    border-radius: 11px !important;
  }

  .hero .spotlight .badge {
    padding: 4px 6px;
    font-size: 9px;
  }

  .hero .spotlight h3 {
    display: -webkit-box;
    margin: 7px 0 !important;
    overflow: hidden;
    font-size: 14px !important;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .hero .spotlight .sub {
    display: block;
    margin: 5px 0 !important;
    font-size: 10px !important;
    white-space: nowrap;
  }

  .hero .spotlight .odds {
    gap: 6px;
    margin: 7px 0 0 !important;
  }

  .hero .spotlight .odds button {
    padding: 8px 5px !important;
    font-size: 11px !important;
  }

  .hero .spotlight .motive-power {
    margin: 7px 0 0;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .hero .spotlight .motive-power__head span,
  .hero .spotlight .motive-power__chart,
  .hero .spotlight .motive-power__note {
    display: none;
  }

  .hero .spotlight .motive-power__head strong,
  .hero .spotlight .motive-power__labels {
    font-size: 9px;
  }

  .hero .spotlight .motive-power__labels {
    margin: 4px 0;
  }

  .hero .spotlight .motive-power__bar {
    height: 5px;
  }

  .hero .spotlight .motive-power__open {
    display: block;
  }

  .ticker {
    padding: 8px 12px !important;
    font-size: 10px !important;
  }

  .marketSection {
    padding: 24px 10px 82px;
  }

  .marketSection .sectionHead h2 {
    margin-bottom: 10px;
    font-size: 25px;
  }

  .marketSection .tabs {
    margin-bottom: 10px;
  }

  .grid {
    gap: 8px;
  }

  .card {
    padding: 11px 12px;
    border-radius: 11px;
  }

  .card .meta,
  .card .stats {
    font-size: 10px;
  }

  .card .badge {
    padding: 4px 6px;
    font-size: 9px;
  }

  .card h3 {
    display: -webkit-box;
    min-height: 36px;
    margin: 7px 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card .odds {
    gap: 6px;
    margin: 5px 0 7px;
  }

  .card .odds button {
    padding: 8px 5px;
    font-size: 11px;
  }

  .card .bar {
    height: 5px;
  }

  .card .stats {
    margin-top: 5px;
  }

  .card .share {
    display: none;
  }

  .card .motive-power {
    margin: 7px 0 0;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .card .motive-power__head span,
  .card .motive-power__chart,
  .card .motive-power__note {
    display: none;
  }

  .card .motive-power__head strong,
  .card .motive-power__labels {
    font-size: 9px;
  }

  .card .motive-power__labels {
    margin: 4px 0;
  }

  .card .motive-power__bar {
    height: 5px;
  }

  .card .motive-power__open {
    display: block;
  }

  .panel .motive-power {
    padding: 12px;
  }

  .panel .motive-power__head span {
    font-size: 9px;
  }

  .panel .motive-power__labels {
    font-size: 10px;
  }

  #modal.modal {
    z-index: 2147483000 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  #modal.modal.hidden {
    display: none !important;
  }

  #modal .panel {
    width: 100% !important;
    max-height: calc(100dvh - 20px) !important;
    margin: 0 !important;
    padding: 54px 14px 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  #modal .close {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 2147483647 !important;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid #36506f !important;
    border-radius: 50% !important;
    background: #14243a !important;
    color: #ffffff !important;
    box-shadow: 0 8px 30px #000a;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body:has(#modal:not(.hidden)) {
    overflow: hidden !important;
  }
}
