.crypto-pulse-page {
  --pulse-bg: #08090b;
  --pulse-bg-2: #0e1116;
  --pulse-panel: rgba(17, 21, 28, 0.92);
  --pulse-panel-2: rgba(12, 17, 23, 0.9);
  --pulse-line: rgba(139, 156, 171, 0.2);
  --pulse-line-strong: rgba(255, 122, 24, 0.44);
  --pulse-text: #f4f7f8;
  --pulse-muted: rgba(229, 236, 241, 0.72);
  --pulse-subtle: rgba(229, 236, 241, 0.52);
  --pulse-accent: #ff7a18;
  --pulse-accent-2: #ffad55;
  --pulse-up: #35d46b;
  --pulse-down: #ff4d43;
  --pulse-neutral: #8793a4;
  --pulse-radius: 8px;
  background:
    linear-gradient(180deg, #070a0e 0%, #08090b 42%, #06080b 100%);
  color: var(--pulse-text);
}

/* Detail panel: price dynamics from the approved right-side mockup. */
.pulse-coin-panel {
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(820px, calc(100% - 32px));
  height: auto;
  max-height: none;
  padding: 22px;
  display: block;
  overflow: hidden;
  border-color: rgba(128, 151, 171, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 38%, rgba(255, 122, 24, 0.035), transparent 34%),
    linear-gradient(145deg, rgba(18, 27, 37, 0.985), rgba(10, 17, 24, 0.985));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.pulse-coin-panel__close {
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: rgba(224, 232, 239, 0.76);
  background: transparent;
  box-shadow: none;
  font-size: 30px;
  font-weight: 300;
}

.pulse-coin-panel__close:hover,
.pulse-coin-panel__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.pulse-chart-detail {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(210px, 1fr) auto auto;
  gap: 14px;
}

.pulse-chart-detail__header {
  min-width: 0;
  padding-right: 48px;
}

.pulse-chart-detail__header h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(235, 241, 246, 0.9);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
}

.pulse-chart-info {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(190, 204, 215, 0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(218, 227, 234, 0.72);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1;
  font-style: normal;
}

.pulse-chart-detail__header p {
  margin: 7px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(219, 228, 235, 0.48);
  font-size: 12px;
  line-height: 1.3;
}

.pulse-chart-detail__header p strong {
  max-width: 45%;
  overflow: hidden;
  color: rgba(242, 246, 249, 0.86);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-chart-detail__header p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-chart-periods {
  width: min(344px, 100%);
  min-height: 44px;
  border: 1px solid rgba(125, 146, 164, 0.16);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(7, 13, 19, 0.34);
}

.pulse-chart-periods button {
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(125, 146, 164, 0.1);
  padding: 0 14px;
  color: rgba(213, 223, 231, 0.58);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pulse-chart-periods button:last-child {
  border-right: 0;
}

.pulse-chart-periods button:hover,
.pulse-chart-periods button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.pulse-chart-periods button.is-active {
  color: #ff8a24;
  background: linear-gradient(180deg, rgba(255, 138, 36, 0.13), rgba(255, 122, 24, 0.055));
  box-shadow: inset 0 -1px 0 #ff7a18, inset 0 1px 0 rgba(255, 138, 36, 0.42);
}

.pulse-chart-summary {
  min-width: 0;
  min-height: 92px;
  border: 1px solid rgba(125, 146, 164, 0.17);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  overflow: hidden;
  background: rgba(8, 14, 20, 0.3);
}

.pulse-chart-summary > div {
  min-width: 0;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid rgba(125, 146, 164, 0.13);
}

.pulse-chart-summary > div:last-child {
  border-right: 0;
}

.pulse-chart-summary span,
.pulse-chart-stats span {
  color: rgba(213, 223, 231, 0.54);
  font-size: 12px;
  line-height: 1.2;
}

.pulse-chart-summary strong,
.pulse-chart-stats strong {
  min-width: 0;
  color: #f4f7f9;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.pulse-chart-summary strong b {
  font: inherit;
}

.pulse-chart-summary strong small {
  color: rgba(230, 237, 242, 0.82);
  font-size: 12px;
}

.pulse-chart-summary strong.is-up {
  color: var(--pulse-up);
}

.pulse-chart-summary strong.is-down {
  color: var(--pulse-down);
}

.pulse-chart-summary strong.is-accent {
  color: #ff8a24;
}

.pulse-chart-card {
  grid-column: auto;
  grid-row: auto;
  position: relative;
  min-width: 0;
  min-height: 210px;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.pulse-sparkline {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 0;
  background: transparent;
}

.pulse-chart-stats {
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(125, 146, 164, 0.15);
  border-radius: 11px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(8, 14, 20, 0.3);
}

.pulse-chart-stats > div {
  min-width: 0;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid rgba(125, 146, 164, 0.12);
}

.pulse-chart-stats > div:last-child {
  border-right: 0;
}

.pulse-chart-stats strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-chart-trend strong {
  position: relative;
  padding-left: 17px;
}

.pulse-chart-trend strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc04c;
  box-shadow: 0 0 12px rgba(255, 192, 76, 0.72);
  transform: translateY(-50%);
}

.pulse-chart-trend strong.is-up::before {
  background: var(--pulse-up);
  box-shadow: 0 0 12px rgba(53, 212, 107, 0.62);
}

.pulse-chart-trend strong.is-down::before {
  background: var(--pulse-down);
  box-shadow: 0 0 12px rgba(255, 77, 67, 0.58);
}

.pulse-chart-updated strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-chart-updated strong b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
}

.pulse-chart-updated strong i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pulse-up);
  box-shadow: 0 0 10px rgba(53, 212, 107, 0.65);
}

.pulse-chart-footnote {
  margin: 0 4px;
  color: rgba(203, 215, 225, 0.25);
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .pulse-coin-panel {
    width: min(720px, calc(100% - 28px));
    grid-template-columns: none;
    grid-template-rows: none;
  }

  .pulse-chart-summary > div {
    padding-inline: 16px;
  }

  .pulse-chart-stats > div {
    padding-inline: 14px;
  }
}

@media (max-width: 820px) {
  .pulse-coin-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    height: min(86vh, 720px);
    max-height: min(86vh, 720px);
    padding: 18px;
    display: block;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }

  .pulse-coin-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pulse-coin-panel__close {
    top: 14px;
    right: 14px;
  }

  .pulse-chart-detail {
    min-height: 610px;
  }
}

@media (max-width: 620px) {
  .pulse-coin-panel {
    height: min(90vh, 740px);
    max-height: min(90vh, 740px);
    padding: 16px;
    border-radius: 14px;
  }

  .pulse-chart-detail {
    min-height: 680px;
    grid-template-rows: auto auto auto minmax(250px, 1fr) auto auto;
    gap: 12px;
  }

  .pulse-chart-detail__header h2 {
    font-size: 20px;
  }

  .pulse-chart-detail__header p {
    padding-right: 12px;
  }

  .pulse-chart-periods {
    width: 100%;
  }

  .pulse-chart-periods button {
    padding-inline: 8px;
  }

  .pulse-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-chart-summary > div {
    padding: 13px 14px;
  }

  .pulse-chart-summary > div:first-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 146, 164, 0.13);
  }

  .pulse-chart-summary > div:nth-child(2) {
    border-right: 1px solid rgba(125, 146, 164, 0.13);
  }

  .pulse-chart-summary strong {
    font-size: 16px;
  }

  .pulse-chart-card,
  .pulse-sparkline {
    min-height: 250px;
  }

  .pulse-chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-chart-stats > div {
    padding: 11px 13px;
    border-bottom: 1px solid rgba(125, 146, 164, 0.12);
  }

  .pulse-chart-stats > div:nth-child(2n) {
    border-right: 0;
  }

  .pulse-chart-stats > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.crypto-pulse-page .tools-header {
  background: transparent;
}

.pulse-main {
  min-height: 100vh;
  padding: 18px 0 44px;
  overflow: hidden;
}

.pulse-shell {
  width: calc(100% - 24px);
  margin: 0 auto;
}

.pulse-hero {
  position: relative;
  padding: 14px 0 18px;
}

.pulse-hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 360px;
  background:
    linear-gradient(180deg, rgba(255, 122, 24, 0.12), transparent 66%),
    linear-gradient(90deg, rgba(53, 212, 107, 0.08), transparent 32%, rgba(255, 77, 67, 0.08));
  opacity: 0.72;
  pointer-events: none;
}

.pulse-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}

.pulse-hero__copy {
  min-width: 0;
}

.pulse-breadcrumbs {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pulse-subtle);
  font-size: 14px;
  line-height: 1.4;
}

.pulse-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.pulse-breadcrumbs a:hover {
  color: var(--pulse-accent);
}

.pulse-breadcrumbs span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(255, 122, 24, 0.64);
}

.pulse-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.pulse-summary-grid,
[data-pulse-option="filter"][data-value="against"] {
  display: none !important;
}

.pulse-title-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 122, 24, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 122, 24, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(8, 12, 17, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.pulse-title-icon::before,
.pulse-title-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--pulse-accent);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.42);
}

.pulse-title-icon::after {
  left: 18px;
  right: auto;
  top: 15px;
  width: 18px;
  height: 24px;
  border: 3px solid var(--pulse-accent);
  border-left: 0;
  border-right: 0;
  background: transparent;
  transform: skewX(-16deg);
}

.pulse-kicker {
  margin: 0 0 7px;
  color: var(--pulse-accent-2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pulse-hero h1 {
  margin: 0;
  max-width: 820px;
  color: var(--pulse-text);
  font-size: clamp(34px, 3.55vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.pulse-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--pulse-muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.58;
}

.pulse-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pulse-summary {
  min-width: 0;
  min-height: 132px;
  border: 1px solid var(--pulse-line);
  border-radius: var(--pulse-radius);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 9px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.01)),
    var(--pulse-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 38px rgba(0, 0, 0, 0.26);
}

.pulse-summary__label {
  color: rgba(226, 235, 241, 0.66);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
}

.pulse-positive {
  color: var(--pulse-up);
}

.pulse-negative {
  color: var(--pulse-down);
}

.pulse-summary strong {
  color: var(--pulse-text);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 900;
}

.pulse-summary--mode {
  position: relative;
  overflow: hidden;
}

.pulse-summary--mode > span:not(.pulse-summary__label) {
  color: var(--pulse-muted);
  font-size: 13px;
  line-height: 1.4;
}

.pulse-gauge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 58px;
  height: 30px;
  border: 6px solid rgba(135, 147, 164, 0.28);
  border-bottom: 0;
  border-radius: 58px 58px 0 0;
}

.pulse-gauge i {
  position: absolute;
  left: 23px;
  bottom: -4px;
  width: 6px;
  height: 30px;
  border-radius: 999px;
  background: #e5edf4;
  transform: rotate(-24deg);
  transform-origin: bottom center;
  transition: transform 220ms ease;
}

.pulse-summary-list {
  display: grid;
  gap: 6px;
}

.pulse-summary-list__row {
  display: grid;
  grid-template-columns: minmax(44px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--pulse-muted);
  font-size: 14px;
  line-height: 1.25;
}

.pulse-summary-list__row b {
  color: var(--pulse-text);
  font-weight: 900;
}

.pulse-summary-list__row span {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pulse-summary-list__row .is-up {
  color: var(--pulse-up);
}

.pulse-summary-list__row .is-down {
  color: var(--pulse-down);
}

.pulse-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 10px;
  border: 1px solid var(--pulse-line);
  border-radius: var(--pulse-radius);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(245px, 0.95fr) minmax(130px, 0.48fr) minmax(260px, 1fr) minmax(170px, 0.62fr);
  gap: 8px;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(20, 26, 33, 0.96), rgba(12, 17, 23, 0.96)),
    var(--pulse-panel);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.pulse-control {
  min-width: 0;
  border-right: 1px solid rgba(139, 156, 171, 0.12);
  padding-right: 8px;
  display: grid;
  gap: 4px;
}

.pulse-control:last-of-type {
  border-right: 0;
}

.pulse-control label,
.pulse-control__label {
  color: var(--pulse-subtle);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.pulse-control select {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(139, 156, 171, 0.22);
  border-radius: 7px;
  padding: 0 30px 0 10px;
  color: var(--pulse-text);
  background: rgba(5, 9, 13, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.pulse-control select option {
  color: #111827;
  background: #f7fafc;
}

.pulse-rank-select {
  min-width: 0;
}

.pulse-rank-select__trigger {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(139, 156, 171, 0.22);
  border-radius: 7px;
  padding: 0 9px 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pulse-text);
  background:
    linear-gradient(180deg, rgba(30, 38, 48, 0.94), rgba(17, 23, 31, 0.94)),
    #111820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pulse-rank-select__trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--pulse-subtle);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease, stroke 160ms ease;
}

.pulse-rank-select__trigger:hover,
.pulse-rank-select__trigger:focus-visible,
.pulse-rank-select__trigger[aria-expanded="true"] {
  border-color: rgba(255, 122, 24, 0.68);
  background:
    linear-gradient(180deg, rgba(45, 38, 31, 0.96), rgba(25, 23, 21, 0.96)),
    #17130f;
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  outline: none;
}

.pulse-rank-select__trigger[aria-expanded="true"] svg {
  stroke: var(--pulse-accent);
  transform: rotate(180deg);
}

.pulse-rank-menu {
  position: fixed;
  z-index: 120;
  min-width: 150px;
  max-height: 360px;
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 122, 24, 0.42);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(23, 30, 38, 0.99), rgba(10, 14, 19, 0.99)),
    #0d1218;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 24, 0.56) rgba(255, 255, 255, 0.04);
}

.pulse-rank-menu[hidden] {
  display: none;
}

.pulse-rank-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: rgba(239, 244, 247, 0.78);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: color 130ms ease, background 130ms ease;
}

.pulse-rank-menu button:hover,
.pulse-rank-menu button:focus-visible {
  color: #fff;
  background: rgba(255, 122, 24, 0.12);
  outline: none;
}

.pulse-rank-menu button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(180deg, #ff962e, #ef6f0d);
  box-shadow: 0 6px 16px rgba(255, 111, 18, 0.2);
}

.pulse-segment {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 4px;
}

.pulse-segment,
.pulse-summary-grid,
.pulse-toolbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pulse-segment::-webkit-scrollbar,
.pulse-summary-grid::-webkit-scrollbar,
.pulse-toolbar::-webkit-scrollbar {
  display: none;
}

.pulse-control--wide .pulse-segment {
  grid-auto-columns: minmax(68px, 1fr);
}

.pulse-control--favorite {
  border-right: 0;
  padding-right: 0;
}

.pulse-segment button,
.pulse-refresh button,
.pulse-favorites-toggle {
  min-width: 0;
  min-height: 32px;
  border: 1px solid rgba(139, 156, 171, 0.18);
  border-radius: 7px;
  color: rgba(239, 244, 247, 0.84);
  background: rgba(28, 35, 44, 0.72);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.pulse-favorites-toggle {
  width: 100%;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pulse-favorites-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.pulse-favorites-toggle b {
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0f14;
  background: rgba(239, 244, 247, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.pulse-segment button:hover,
.pulse-segment button:focus-visible,
.pulse-refresh button:hover,
.pulse-refresh button:focus-visible,
.pulse-favorites-toggle:hover,
.pulse-favorites-toggle:focus-visible {
  border-color: var(--pulse-line-strong);
  color: #fff;
  outline: none;
}

.pulse-segment button.is-active,
.pulse-favorites-toggle.is-active {
  border-color: rgba(255, 122, 24, 0.7);
  background: linear-gradient(180deg, #ff982f, #f07410);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 111, 18, 0.22);
}

.pulse-favorites-toggle.is-active svg {
  fill: currentColor;
}

.pulse-favorites-toggle.is-active b {
  color: #f07410;
  background: #fff;
}

.pulse-favorites-toggle:disabled {
  cursor: default;
  opacity: 0.62;
}

.pulse-refresh {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.pulse-refresh span {
  color: var(--pulse-subtle);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.pulse-refresh b {
  display: block;
  margin-top: 3px;
  color: var(--pulse-up);
  font-size: 15px;
  font-weight: 900;
}

.pulse-refresh button {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 22px;
}

.pulse-workspace {
  position: relative;
  margin-top: 10px;
  display: block;
}

.pulse-map-panel,
.pulse-coin-panel {
  border: 1px solid var(--pulse-line);
  border-radius: var(--pulse-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    var(--pulse-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pulse-map-panel {
  min-width: 0;
  min-height: 0;
  height: clamp(660px, calc(100vh - 250px), 840px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: transparent;
  overflow: hidden;
}

.pulse-map-status {
  min-width: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(139, 156, 171, 0.14);
  color: var(--pulse-subtle);
  font-size: 12px;
  font-weight: 800;
}

.pulse-map-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.pulse-stage canvas[data-pulse-canvas] {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.pulse-loader,
.pulse-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  color: var(--pulse-muted);
  background: rgba(8, 12, 17, 0.68);
  backdrop-filter: blur(5px);
}

.pulse-loader span {
  grid-row: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(139, 156, 171, 0.2);
  background: rgba(139, 156, 171, 0.12);
  animation: pulseSkeleton 1.25s ease-in-out infinite;
}

.pulse-loader span:nth-child(2) {
  width: 74px;
  height: 74px;
  animation-delay: 0.08s;
}

.pulse-loader span:nth-child(3) {
  width: 58px;
  height: 58px;
  animation-delay: 0.16s;
}

.pulse-loader span:nth-child(4) {
  width: 88px;
  height: 88px;
  animation-delay: 0.24s;
}

.pulse-loader span:nth-child(5) {
  width: 52px;
  height: 52px;
  animation-delay: 0.32s;
}

.pulse-loader p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--pulse-muted);
  font-weight: 800;
}

@keyframes pulseSkeleton {
  0%,
  100% {
    opacity: 0.32;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.78;
    transform: scale(1);
  }
}

.pulse-empty[hidden],
.pulse-loader[hidden] {
  display: none;
}

.pulse-empty strong {
  color: var(--pulse-text);
  font-size: 20px;
}

.pulse-empty span {
  color: var(--pulse-muted);
}

.pulse-coin-panel {
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 30;
  width: min(780px, calc(100% - 24px));
  max-height: calc(100% - 66px);
  min-width: 0;
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(360px, 1.1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pulse-coin-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.pulse-coin-panel__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: rgba(238, 244, 247, 0.9);
  background: rgba(8, 12, 17, 0.94);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.46);
}

.pulse-coin-panel__close:hover,
.pulse-coin-panel__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.pulse-coin-head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 34px;
}

.pulse-coin-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 122, 24, 0.32);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #05080d;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(255, 122, 24, 0.12);
}

.pulse-coin-head h2 {
  margin: 0;
  color: var(--pulse-text);
  font-size: 22px;
  line-height: 1.15;
}

.pulse-coin-head p {
  margin: 4px 0 8px;
  color: var(--pulse-subtle);
  font-size: 13px;
  line-height: 1.35;
}

.pulse-status-pill {
  min-height: 25px;
  border-radius: 6px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  color: var(--pulse-muted);
  background: rgba(139, 156, 171, 0.12);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.pulse-status-pill.is-up {
  color: var(--pulse-up);
  background: rgba(53, 212, 107, 0.13);
}

.pulse-status-pill.is-down {
  color: var(--pulse-down);
  background: rgba(255, 77, 67, 0.13);
}

.pulse-price-row {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.pulse-price-row strong {
  color: var(--pulse-text);
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 0.95;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pulse-price-row span {
  color: var(--pulse-muted);
  font-size: 13px;
  font-weight: 800;
}

.pulse-price-row b {
  color: var(--pulse-neutral);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pulse-price-row b.is-up {
  color: var(--pulse-up);
}

.pulse-price-row b.is-down {
  color: var(--pulse-down);
}

.pulse-coin-body {
  min-width: 0;
  min-height: 0;
  display: contents;
}

.pulse-coin-data {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
}

.pulse-chart-card {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  min-width: 0;
  min-height: 260px;
  border: 1px solid rgba(139, 156, 171, 0.18);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 122, 24, 0.08), transparent 32%),
    radial-gradient(circle at 78% 72%, rgba(53, 212, 107, 0.08), transparent 34%),
    rgba(5, 9, 13, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -30px 70px rgba(0, 0, 0, 0.18);
}

.pulse-sparkline {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 6px;
  background: transparent;
}

.pulse-coin-metrics {
  margin: 0;
  display: grid;
  gap: 9px;
}

.pulse-coin-metrics div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.pulse-coin-metrics dt {
  color: var(--pulse-subtle);
  font-size: 13px;
  line-height: 1.3;
}

.pulse-coin-metrics dd {
  margin: 0;
  color: var(--pulse-text);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pulse-score-row dd b {
  color: var(--pulse-up);
  font-size: 18px;
}

.pulse-score-row dd span {
  color: var(--pulse-subtle);
}

.pulse-score-line {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(139, 156, 171, 0.18);
}

.pulse-score-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pulse-down), var(--pulse-accent), var(--pulse-up));
  transition: width 220ms ease;
}

.pulse-coin-actions {
  display: grid;
  gap: 8px;
}

.pulse-action {
  min-height: 40px;
  border: 1px solid rgba(139, 156, 171, 0.22);
  border-radius: 7px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pulse-text);
  background: rgba(9, 14, 20, 0.62);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.pulse-action:hover,
.pulse-action:focus-visible {
  border-color: var(--pulse-line-strong);
  outline: none;
}

.pulse-action--primary {
  border-color: rgba(255, 122, 24, 0.72);
  background: linear-gradient(180deg, #ff982f, #f07410);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 111, 18, 0.24);
}

.pulse-action--favorite {
  gap: 8px;
}

.pulse-action--favorite svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.pulse-action--favorite.is-active {
  border-color: rgba(255, 122, 24, 0.62);
  color: #fff;
  background: rgba(255, 122, 24, 0.15);
}

.pulse-action--favorite.is-active svg {
  fill: currentColor;
  color: var(--pulse-accent);
}

.pulse-market-table-section {
  margin-top: 12px;
}

.pulse-market-table-card {
  min-width: 0;
  border: 1px solid rgba(139, 156, 171, 0.16);
  border-radius: var(--pulse-radius);
  background: #0c0f13;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.pulse-market-table-head {
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(139, 156, 171, 0.13);
}

.pulse-market-table-head h2 {
  margin: 3px 0 0;
  color: var(--pulse-text);
  font-size: 20px;
  line-height: 1.2;
}

.pulse-market-table-head span {
  color: var(--pulse-subtle);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.pulse-market-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pulse-market-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  color: var(--pulse-muted);
  font-size: 13px;
  line-height: 1.25;
}

.pulse-market-table th,
.pulse-market-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139, 156, 171, 0.09);
  text-align: right;
  white-space: nowrap;
}

.pulse-market-table th {
  color: rgba(229, 236, 241, 0.54);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.012);
}

.pulse-market-table th button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.pulse-market-table th button::after {
  content: "↕";
  margin-left: 5px;
  color: rgba(229, 236, 241, 0.28);
  font-size: 10px;
}

.pulse-market-table th[aria-sort="ascending"] button,
.pulse-market-table th[aria-sort="descending"] button,
.pulse-market-table th button:hover,
.pulse-market-table th button:focus-visible {
  color: var(--pulse-text);
  outline: none;
}

.pulse-market-table th[aria-sort="ascending"] button::after {
  content: "↑";
  color: var(--pulse-accent);
}

.pulse-market-table th[aria-sort="descending"] button::after {
  content: "↓";
  color: var(--pulse-accent);
}

.pulse-market-table th:first-child,
.pulse-market-table td:first-child,
.pulse-market-table th:nth-child(2),
.pulse-market-table td:nth-child(2),
.pulse-market-table th:nth-child(3),
.pulse-market-table td:nth-child(3) {
  text-align: left;
}

.pulse-market-table tbody tr {
  transition: background 150ms ease;
}

.pulse-market-table tbody tr[data-symbol] {
  cursor: pointer;
}

.pulse-market-table tbody tr:hover,
.pulse-market-table tbody tr.is-selected {
  background: rgba(255, 255, 255, 0.035);
}

.pulse-market-table tbody tr.is-favorite .pulse-market-watch {
  color: var(--pulse-accent);
  text-shadow: 0 0 14px rgba(255, 122, 24, 0.36);
}

.pulse-market-rank {
  width: 36px;
  color: var(--pulse-subtle);
  font-weight: 800;
}

.pulse-market-watch {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(229, 236, 241, 0.58);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pulse-market-watch:hover {
  color: var(--pulse-accent);
  background: rgba(255, 122, 24, 0.1);
}

.pulse-market-name {
  min-width: 270px;
}

.pulse-market-name,
.pulse-market-name > span:last-child {
  display: flex;
  align-items: center;
}

.pulse-market-name {
  gap: 12px;
}

.pulse-market-name > span:last-child {
  min-width: 0;
  gap: 8px;
}

.pulse-market-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(139, 156, 171, 0.14);
  color: var(--pulse-text);
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
}

.pulse-market-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulse-market-name strong {
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pulse-text);
  font-size: 14px;
  font-weight: 900;
}

.pulse-market-name em {
  color: var(--pulse-subtle);
  font-style: normal;
  font-weight: 800;
}

.pulse-market-table .is-up {
  color: var(--pulse-up);
  font-weight: 900;
}

.pulse-market-table .is-down {
  color: var(--pulse-down);
  font-weight: 900;
}

.pulse-market-table .is-muted {
  color: var(--pulse-subtle);
}

.pulse-market-empty {
  padding: 30px 16px;
  color: var(--pulse-subtle);
  text-align: center !important;
}

.pulse-disclaimer {
  margin-top: 18px;
  color: var(--pulse-subtle);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .pulse-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pulse-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-control {
    border-right: 0;
    padding-right: 0;
  }

  .pulse-refresh span {
    text-align: left;
  }
}

@media (max-width: 1180px) {
  .pulse-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pulse-map-panel {
    height: clamp(620px, calc(100vh - 230px), 780px);
  }

  .pulse-coin-panel {
    min-height: 0;
    width: min(700px, calc(100% - 24px));
    grid-template-columns: minmax(210px, 0.9fr) minmax(300px, 1.1fr);
    grid-template-rows: auto auto minmax(240px, 1fr);
  }

  .pulse-chart-card {
    min-height: 240px;
  }

  .pulse-sparkline {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  .pulse-main {
    padding-top: 10px;
  }

  .pulse-shell {
    width: calc(100% - 20px);
  }

  .pulse-title-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .pulse-title-icon {
    width: 46px;
    height: 46px;
  }

  .pulse-hero h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .pulse-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pulse-toolbar {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: clip;
  }

  .pulse-segment {
    grid-auto-columns: minmax(74px, max-content);
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pulse-control--wide .pulse-segment {
    grid-auto-columns: minmax(116px, max-content);
  }

  .pulse-segment button {
    padding: 0 12px;
  }

  .pulse-map-panel {
    height: 620px;
  }

  .pulse-coin-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 80;
    max-height: min(82vh, 720px);
    min-height: 0;
    padding: 16px;
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 180ms ease, transform 220ms ease;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .pulse-coin-panel__close {
    top: 12px;
    right: 12px;
  }

  .pulse-coin-body {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .pulse-coin-head,
  .pulse-price-row,
  .pulse-coin-data,
  .pulse-chart-card {
    grid-column: 1;
    grid-row: auto;
  }

  .pulse-chart-card {
    min-height: 220px;
  }

  .pulse-sparkline {
    min-height: 200px;
  }

  .pulse-coin-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pulse-market-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pulse-market-table-head span {
    text-align: left;
  }

}

@media (max-width: 520px) {
  .pulse-shell {
    width: calc(100% - 16px);
  }

  .pulse-hero {
    padding-top: 4px;
  }

  .pulse-title-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pulse-title-icon {
    display: none;
  }

  .pulse-lead {
    font-size: 14px;
  }

  .pulse-summary {
    flex: 0 0 216px;
    min-height: 118px;
  }

  .pulse-summary-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .pulse-summary-grid .pulse-summary {
    scroll-snap-align: start;
  }

  .pulse-toolbar {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .pulse-control {
    flex: 0 0 198px;
    scroll-snap-align: start;
  }

  .pulse-control--select {
    flex-basis: 142px;
  }

  .pulse-control--wide {
    flex-basis: 286px;
  }

  .pulse-control--favorite {
    flex-basis: 174px;
  }

  .pulse-refresh {
    flex: 0 0 156px;
    min-height: 58px;
    scroll-snap-align: start;
  }

  .pulse-control select,
  .pulse-segment button {
    min-height: 32px;
  }

  .pulse-map-panel {
    height: 600px;
  }

  .pulse-map-status {
    display: grid;
    align-content: center;
    gap: 3px;
  }

  .pulse-map-status span {
    white-space: normal;
  }

  .pulse-coin-panel__close {
    top: 12px;
    right: 12px;
  }

  .pulse-price-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pulse-price-row b {
    justify-self: start;
  }

  .pulse-market-table-head {
    padding: 14px;
  }

  .pulse-market-table-head h2 {
    font-size: 18px;
  }

  .pulse-market-table th,
  .pulse-market-table td {
    padding: 12px 13px;
  }

}

/* Preserve the original coin details on the left; the new chart occupies only the right side. */
.pulse-coin-panel {
  position: fixed;
  top: 82px;
  right: 18px;
  bottom: auto;
  z-index: 80;
  width: min(730px, calc(100% - 36px));
  height: clamp(420px, calc(70vh - 70px), 600px);
  max-height: calc(100vh - 100px);
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  overflow: hidden;
  border-color: rgba(128, 151, 171, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 38%, rgba(255, 122, 24, 0.035), transparent 34%),
    linear-gradient(145deg, rgba(18, 27, 37, 0.985), rgba(10, 17, 24, 0.985));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.pulse-coin-head {
  padding-right: 0;
}

.pulse-price-value {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pulse-price-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.pulse-price-row > b {
  justify-self: start;
  font-size: 17px;
}

.pulse-coin-data {
  height: 100%;
  min-height: 0;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.pulse-coin-scroll {
  min-height: 0;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 156, 171, 0.28) transparent;
}

.pulse-coin-scroll::-webkit-scrollbar {
  width: 4px;
}

.pulse-coin-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 156, 171, 0.28);
}

.pulse-coin-actions {
  width: 100%;
  align-self: end;
  align-content: start;
  grid-auto-rows: max-content;
}

.pulse-coin-actions .pulse-action {
  height: auto;
  min-height: 40px;
  padding-block: 10px;
}

.pulse-coin-metrics {
  padding: 6px 8px;
  gap: 4px;
  border: 1px solid rgba(139, 156, 171, 0.16);
  border-radius: 10px;
  background: rgba(8, 14, 20, 0.28);
}

.pulse-coin-metrics div {
  gap: 6px;
}

.pulse-coin-metrics dt {
  font-size: 11px;
  line-height: 1.2;
}

.pulse-coin-metrics dd {
  font-size: 12px;
  line-height: 1.2;
}

.pulse-coin-metrics > div:nth-child(3) {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.pulse-coin-metrics > div:nth-child(3) dd {
  text-align: left;
}

.pulse-score-row dd b {
  font-size: 16px;
}

.pulse-market-facts {
  margin: 8px 0 0;
  border: 1px solid rgba(139, 156, 171, 0.16);
  border-radius: 8px;
  background: rgba(5, 9, 13, 0.32);
  overflow: hidden;
}

.pulse-market-facts > div {
  min-height: 28px;
  padding: 4px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(139, 156, 171, 0.13);
}

.pulse-market-facts > div:last-child {
  border-bottom: 0;
}

.pulse-market-facts dt {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(218, 226, 233, 0.62);
  font-size: 11px;
  line-height: 1.2;
}

.pulse-market-facts dd {
  margin: 0;
  color: #f4f7f9;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pulse-metric-info {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1px solid rgba(196, 207, 216, 0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(214, 223, 230, 0.68);
  font-family: Georgia, serif;
  font-size: 9px;
  line-height: 1;
}

.pulse-chart-detail {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
  padding-left: 18px;
  grid-template-rows: auto 36px auto minmax(110px, 1fr) auto auto;
  gap: 8px;
  border-left: 1px solid rgba(139, 156, 171, 0.14);
}

.pulse-chart-periods {
  min-height: 36px;
}

.pulse-chart-summary {
  min-height: 68px;
}

.pulse-chart-summary > div {
  padding: 9px 10px;
  gap: 5px;
}

.pulse-chart-card,
.pulse-sparkline {
  min-height: 110px;
}

.pulse-chart-stats {
  min-height: 54px;
}

.pulse-chart-stats > div {
  padding: 8px 9px;
  gap: 4px;
}

.pulse-coin-panel__close {
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.pulse-chart-card {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  min-height: 210px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.pulse-sparkline {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border-radius: 0;
}

@media (max-width: 1180px) {
  .pulse-coin-panel {
    width: min(730px, calc(100% - 28px));
    right: 14px;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    column-gap: 18px;
  }

  .pulse-chart-detail {
    padding-left: 18px;
  }
}

@media (max-width: 760px) {
  .pulse-coin-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    height: min(90vh, 860px);
    max-height: min(90vh, 860px);
    padding: 18px;
    display: block;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }

  .pulse-coin-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .pulse-coin-panel__close {
    top: 14px;
    right: 14px;
  }

  .pulse-coin-head,
  .pulse-price-row,
  .pulse-coin-data,
  .pulse-chart-detail {
    grid-column: auto;
    grid-row: auto;
  }

  .pulse-price-row,
  .pulse-coin-data {
    margin-top: 18px;
  }

  .pulse-chart-detail {
    min-height: 650px;
    margin-top: 24px;
    padding: 24px 0 0;
    grid-template-rows: auto auto auto minmax(250px, 1fr) auto auto;
    gap: 12px;
    border-top: 1px solid rgba(139, 156, 171, 0.14);
    border-left: 0;
  }

  .pulse-coin-data {
    height: auto;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .pulse-coin-scroll {
    overflow: visible;
  }

  .pulse-chart-periods {
    min-height: 44px;
  }

  .pulse-chart-summary {
    min-height: 92px;
  }

  .pulse-chart-summary > div {
    padding: 13px 14px;
    gap: 8px;
  }

  .pulse-chart-stats {
    min-height: 74px;
  }

  .pulse-chart-stats > div {
    padding: 11px 13px;
    gap: 7px;
  }
}

@media (max-width: 620px) {
  .pulse-coin-panel {
    height: min(90vh, 740px);
    max-height: min(90vh, 740px);
    padding: 16px;
    border-radius: 14px;
  }

  .pulse-chart-card,
  .pulse-sparkline {
    min-height: 250px;
  }
}
