.dp-market {
  --dp-market-text: #e7f1ed;
  --dp-market-dim: #a1b7ae;
  --dp-market-mint: #9cf0c9;
  --dp-market-rule: #293a33;
  min-width: 0;
  overflow: hidden;
  padding: clamp(18px, 2.1vw, 28px) clamp(16px, 2.3vw, 32px) 16px;
  color: var(--dp-market-text);
  background: #101c18;
  border: 1px solid var(--dp-market-rule);
  border-radius: 16px;
  font-variant-numeric: lining-nums tabular-nums;
}
.dp-market *,
.dp-market *::before,
.dp-market *::after { box-sizing: border-box; }
.dp-market [hidden] { display: none !important; }
.dp-market-toolbar,
.dp-pair,
.dp-market-price,
.dp-market-credit {
  display: flex;
  align-items: center;
}
.dp-market-toolbar,
.dp-market-credit { justify-content: space-between; gap: 12px; }
.dp-market-kicker { color: var(--dp-market-dim); font: 550 1.125rem/1.2 var(--ui); letter-spacing: 0; }
.dp-market-ranges {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--dp-market-rule);
  border-radius: 8px;
  background: #0c1612;
}
.dp-market-ranges button {
  appearance: none;
  cursor: pointer;
  min-width: 36px;
  min-height: 31px;
  margin: 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: .86rem;
  line-height: 1.2;
  font-weight: 660;
  letter-spacing: .01em;
  color: var(--dp-market-dim);
  background: transparent;
}
.dp-market-ranges button[aria-pressed="true"] { background: #294034; color: var(--dp-market-mint); }
.dp-market-ranges button:hover { color: #d9ffe8; }
.dp-market :focus-visible { outline: 2px solid #a0f9d2; outline-offset: 3px; }
.dp-pair { margin-top: 18px; gap: 12px; }
.dp-pair h2 { margin: 0; color: var(--dp-market-text); font: 620 clamp(1.35rem, 2vw, 1.75rem)/1.15 var(--display); letter-spacing: -.035em; }
.dp-pair h2 span { color: #77948b; font-weight: 420; }
.dp-coins { display: inline-flex; align-items: center; flex-shrink: 0; }
.dp-coins img { position: relative; display: block; width: 29px; height: 29px; border: 2px solid #101c18; border-radius: 50%; }
.dp-coins img + img { margin-left: -8px; }
.dp-market-price { gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.dp-market-price > strong { color: var(--dp-market-text); font-size: clamp(2.25rem, 3.5vw, 3.15rem); line-height: 1; font-family: var(--figures); letter-spacing: -.06em; font-weight: 400; }
.dp-market-price > span:nth-child(2) { align-self: flex-end; margin-bottom: .2em; color: var(--dp-market-dim); font-size: 1rem; font-weight: 550; }
.dp-change { color: var(--dp-market-mint); font-size: .9rem; font-weight: 630; line-height: 1.05; padding: 6px 8px; margin-left: 4px; border-radius: 5px; background: #1b382b; }
.dp-change small { font: inherit; font-weight: 470; opacity: .82; }
.dp-change.dp-down { background: #362b28; color: #ffb8a1; }
.dp-chart-box { display: grid; grid-template-columns: minmax(0, 1fr) 47px; column-gap: 10px; row-gap: 10px; margin: 26px 0 20px; }
.dp-plot, .dp-yaxis { min-width: 0; position: relative; height: clamp(140px, 13vw, 195px); }
.dp-plot { touch-action: pan-y; cursor: crosshair; }
.dp-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dp-gridline { fill: none; stroke: #314239; stroke-dasharray: 3 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dp-line { fill: none; stroke: var(--dp-market-mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dp-endpoint,
.dp-crosshair span {
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid #b7ffe0;
  border-radius: 50%;
  background: var(--dp-market-mint);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dp-endpoint { left: 100%; }
.dp-yaxis span { position: absolute; right: 0; transform: translateY(-50%); }
.dp-xaxis { display: flex; justify-content: space-between; min-width: 0; }
.dp-xaxis, .dp-yaxis { color: #a7b9b0; font-size: .8125rem; line-height: 1.2; }
.dp-crosshair { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #759d87; pointer-events: none; }
.dp-crosshair span { top: var(--point-y); left: 0; }
.dp-chart-tip { position: absolute; pointer-events: none; z-index: 2; max-width: 100%; padding: 4px 7px; background: #091b13; border: 1px solid #426451; border-radius: 4px; color: #e9fff1; font-size: .78rem; line-height: 1.2; font-weight: 530; white-space: nowrap; }
.dp-market-facts { display: grid; grid-template-columns: 1fr 1fr minmax(0, 1.55fr); gap: 9px; padding-top: 15px; border-top: 1px solid var(--dp-market-rule); }
.dp-market-facts > div { display: grid; align-content: start; gap: 3px; }
.dp-market-facts span, .dp-market-credit { color: var(--dp-market-dim); font-size: .875rem; }
.dp-market-facts strong, .dp-market-facts time { color: var(--dp-market-text); font-size: 1.125rem; line-height: 1.3; font-weight: 560; }
.dp-data-source { text-align: right; }
.dp-market-credit { margin-top: 17px; font-size: .77rem; }
.dp-market-credit a { color: #a8c6b7; text-decoration-line: underline; text-decoration-color: #52695b; text-underline-offset: 3px; }
.dp-market-credit a:hover { color: var(--dp-market-mint); }
@media (max-width: 630px) {
  .dp-market { padding: 18px 16px 14px; border-radius: 14px; }
  .dp-pair { margin-top: 14px; }
  .dp-market-ranges button { min-height: 35px; min-width: 36px; }
  .dp-plot, .dp-yaxis { height: 145px; }
  .dp-chart-box { grid-template-columns: minmax(0, 1fr) 38px; column-gap: 7px; margin: 23px 0 16px; }
  .dp-market-facts { grid-template-columns: 1fr 1fr minmax(0, 1.65fr); gap: 4px; }
  .dp-market-facts time { font-size: .84rem; }
}

@property --trace-cut {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
@media (prefers-reduced-motion: no-preference) {
  .dp-trace { clip-path: inset(-2px var(--trace-cut, 0%) -2px -2px); }
}
