/* Markets page, on top of plej.css + landing.css. */
.mk { padding-block: 56px 0; display: grid; gap: 24px }
.display.small { font-size: clamp(38px, 5.4vw, 64px) }
.mk-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap }
.mk-head .lead { max-width: 52ch }
.mk-session { display: grid; gap: 6px; justify-items: end; text-align: right; max-width: 300px }
.mk-session .chip { font-size: 13px; padding: 5px 12px }
.mk-one { display: grid; gap: 6px; padding: 28px; position: relative; transition: opacity .2s }
.mk-one.loading #chartBox { opacity: .5 }
.mk-one-top { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.mk-sym { font-weight: 600; font-size: 20px; letter-spacing: -.02em }
.mk-pick { position: relative; min-width: 0 }
.mk-picker { display: inline-flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px 8px 16px; max-width: 100% }
.mk-picker:hover, .mk-picker[aria-expanded="true"] { border-color: var(--ink) }
.mk-picker .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mk-picker svg { width: 18px; height: 18px; align-self: center; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none }
.mk-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(420px, calc(100vw - 40px)); background: var(--card); border-radius: 20px; box-shadow: 0 24px 48px -12px #12131433, 0 0 0 1px var(--line); padding: 10px; display: grid; gap: 6px }
.mk-panel[hidden] { display: none }
.mk-panel input { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 16px; outline: none; background: var(--bg) }
.mk-panel input:focus { border-color: var(--ink) }
.mk-list { max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain }
.mk-group { font-size: 12px; color: var(--dim); padding: 10px 10px 4px }
.mk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 12px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 10px; font-size: 15px }
.mk-row > span:first-child { display: flex; gap: 8px; align-items: baseline; min-width: 0 }
.mk-row > span:first-child .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mk-row b { font-weight: 600 }
.mk-row:hover, .mk-row:focus-visible { background: var(--panel) }
.mk-row[aria-selected="true"] { background: var(--blue-soft) }
.mk-row-chg { text-align: right; font-size: 14px }
.mk-price { font-weight: 300; font-size: clamp(52px, 7vw, 84px); letter-spacing: -.055em; line-height: 1; margin-top: 18px }
.mk-price small { font-size: .5em; color: var(--dim); letter-spacing: -.02em }
.mk-delta { margin: 6px 0 0; min-height: 20px }
.mk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px }
.mk-range { margin: 0 auto 0 0; width: 180px; grid-template-columns: repeat(3, 1fr) }
.mk-kind { margin: 0; width: 180px }
.mk-bar { flex-wrap: wrap }
.mk-picker { align-items: center !important; padding-left: 8px !important }
.mk-picker #pickLogo { display: inline-flex }
.mk-row > span:first-child { align-items: center !important }
.mv-name { display: flex; align-items: center; gap: 8px; min-width: 0 }
.mk-chart { position: relative; margin: 18px 0 4px; touch-action: pan-y; cursor: crosshair; user-select: none }
.mk-chart svg { display: block; overflow: visible; font: 400 11px var(--font); font-variant-numeric: tabular-nums }
.mk-grid { stroke: var(--line); stroke-width: 1 }
.mk-grid.v { stroke-dasharray: 2 4 }
.mk-ylab, .mk-xlab { fill: var(--dim) }
.mk-blab { fill: var(--dim); font-size: 10px }
.mk-last { stroke-width: 1; stroke-dasharray: 1 3; opacity: .7 }
.mk-lastlab, .mk-cross .cyt { fill: #fff; font-weight: 500 }
.mk-cross .cyt { fill: var(--on-ink) }
.mk-cross line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .45 }
.mk-cross .cyb { fill: var(--ink) }
.mk-cross[hidden] { display: none }
.mk-cross .cd { stroke: var(--card); stroke-width: 2 }
#chartBox { min-width: 0 }
.mk-chart.empty { height: 240px; display: grid; place-items: center; background: var(--panel); border-radius: 14px; cursor: default }
.mk-base { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: .6 }
.mk-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px }
.mk-facts div { display: grid; gap: 2px; min-width: 0 }
.mk-facts b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mk-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px }

.mk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start }
.mk-two .card { display: grid; gap: 8px; align-content: start }
.mk-two .section { margin: 0 }
.mk-sub { margin: 0 0 8px }
.mk-two .btn { justify-self: start; margin-top: 10px }
.movers { display: grid; gap: 12px }
.mover { width: 100%; border: 0; background: none; padding: 4px 0; text-align: left; display: grid; grid-template-columns: 92px minmax(0, 1fr) 80px; align-items: center; gap: 12px; font-size: 15px }
.mover b { font-weight: 600 }
.mover > .num { text-align: right }
.mover:hover b { color: var(--blue) }
.mv-track { height: 10px; background: var(--panel); border-radius: 99px; overflow: hidden }
.mv-bar { display: block; height: 100%; border-radius: 99px; transition: width .4s }
.mv-bar.u { background: var(--up) } .mv-bar.d { background: var(--down) }
.mk-uses .stat b { text-align: right; font-size: 14px }
.mk-fine { text-align: left; margin: 8px 0 0 }

@media (max-width: 820px) {
  .mk-two { grid-template-columns: minmax(0, 1fr) }
  .mk-one { padding: 20px }
  .mk-chart { height: 200px }
  .mk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .mk-session { justify-items: start; text-align: left }
  .mk { padding-top: 36px }
}
@media (max-width: 560px) {
  .mk-bar { flex-wrap: nowrap; gap: 8px }
  .mk-range, .mk-kind { width: auto; flex: 1 1 0; margin: 0 }
  .mk-range button, .mk-kind button { padding: 7px 4px; font-size: 14px }
  .mk-pick { position: static }
  .mk-panel { left: 10px; right: 10px; width: auto; top: 76px }
  .mk-uses .stat { flex-direction: column; gap: 2px }
  .mk-uses .stat b { text-align: left }
}
.mk-checked { margin: 8px 0 0; font-size: 12px }
.mk-price .mk-wait { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--dim); padding: 18px 0 }
