/* ======================================================================
   AI Sector Dashboard CSS — Stage 2 cleanup
   Scope:
   - frontpage market blocks
   - AI taxonomy dashboard
   - AI Sector Heatmap on frontpage
   - trend / volume dashboard tables

   Rules:
   - no random colors, only design-system variables
   - no JS/data selectors changed
   - mobile Top100/term cards are not touched here
   ====================================================================== */

/* ----------------------------------------------------------------------
   Shared dashboard basics
   ---------------------------------------------------------------------- */

#marketCapChart {
  margin: auto;
}

.market-dynamics-block .chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-crypto-analysis-block,
.market-dynamics-block,
.block-crypto-top100-ai-taxonomy-pulse h2 {
  padding: var(--as-space-5) var(--as-space-6) var(--as-space-6);
}

.ai-change,
.price-cell,
.volume-cell,
.change-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ai-change.is-positive,
.change-cell.positive,
.trending-coins-block .crypto-table td.change-cell.positive,
.top-volume-block .crypto-table td.change-cell.positive {
  color: var(--as-positive);
}

.ai-change.is-negative,
.change-cell.negative,
.trending-coins-block .crypto-table td.change-cell.negative,
.top-volume-block .crypto-table td.change-cell.negative {
  color: var(--as-negative);
}

.crypto-table .muted {
  display: inline-block;
  margin-left: 8px;
  color: var(--as-text-faint);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ----------------------------------------------------------------------
   Top-10 market cap distribution
   ---------------------------------------------------------------------- */

.ai-crypto-analysis-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.ai-crypto-analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--as-text-muted);
  font-size: 13px;
}

.ai-crypto-analysis-meta .meta-value {
  color: var(--as-accent-hover);
  font-weight: 700;
}

.ai-crypto-analysis-body {
  display: flex;
  gap: var(--as-space-6);
  align-items: center;
}

.market-structure-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: var(--as-space-5);
  align-items: stretch;
}

.market-structure-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.market-structure-panel--cap .ai-crypto-analysis-header {
  margin-bottom: 0;
}

.market-structure-block .ai-crypto-analysis-block {
  padding: 0;
}

.market-structure-table-wrap {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
  box-sizing: border-box;
}

.market-structure-cap-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
  padding: var(--as-space-4);
}

.market-structure-cap-wrap .ai-crypto-analysis-meta {
  justify-content: center;
  margin-bottom: calc(var(--as-space-5) * 2);
}

.ai-crypto-analysis-block .chart-container {
  flex: 0 0 40%;
  height: 240px;
}

.ai-crypto-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.ai-crypto-row {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--as-border);
}

.ai-crypto-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ai-crypto-symbol {
  color: var(--as-text-strong);
  font-weight: 700;
}

.ai-crypto-cap {
  text-align: right;
  color: var(--as-text);
}

.ai-crypto-share {
  text-align: right;
  color: var(--as-accent-hover);
  font-weight: 700;
}

/* ----------------------------------------------------------------------
   Trending / Top volume tables
   ---------------------------------------------------------------------- */

.trending-coins-block .crypto-table,
.top-volume-block .crypto-table {
  width: 100%;
  table-layout: fixed;
  background: transparent;
}

.trending-coins-block .crypto-table th,
.trending-coins-block .crypto-table td,
.top-volume-block .crypto-table th,
.top-volume-block .crypto-table td {
  text-align: center;
  vertical-align: middle;
}

.trending-coins-block .crypto-table th:first-child,
.trending-coins-block .crypto-table td:first-child,
.top-volume-block .crypto-table th:first-child,
.top-volume-block .crypto-table td:first-child {
  text-align: center;
}

.trending-coins-block .crypto-table th:nth-child(2),
.trending-coins-block .crypto-table td:nth-child(2),
.top-volume-block .crypto-table th:nth-child(2),
.top-volume-block .crypto-table td:nth-child(2) {
  text-align: left;
}

.trending-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--as-space-4);
  align-items: start;
  margin-top: 14px;
}

.trending-coins-block .crypto-table td.change-cell,
.top-volume-block .crypto-table td.change-cell,
.change-cell {
  font-weight: 600;
}

.trending-coins-block .crypto-table tbody tr,
.top-volume-block .crypto-table tbody tr {
  transition: background-color .15s ease;
}

.trending-coins-block .crypto-table tbody tr:nth-child(even),
.top-volume-block .crypto-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .018);
}

.trending-coins-block .crypto-table tbody tr:hover,
.top-volume-block .crypto-table tbody tr:hover {
  background-color: var(--as-surface-2);
}

.trending-coins-block .crypto-table th:nth-child(1),
.trending-coins-block .crypto-table td:nth-child(1),
.top-volume-block .crypto-table th:nth-child(1),
.top-volume-block .crypto-table td:nth-child(1) {
  width: 46px;
}

.trending-section {
  position: relative;
  margin-top: 14px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
}

.trending-sections-grid .trending-section {
  margin-top: 0;
}

.trending-coins-block .coin-info,
.top-volume-block .coin-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trending-coins-block .coin-logo,
.top-volume-block .coin-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
}

.trending-coins-block .coin-info a,
.top-volume-block .coin-info a {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------------------------------------------------------------
   AI taxonomy distribution block / dashboard table
   ---------------------------------------------------------------------- */

.ai-taxonomy-block {
  margin-bottom: var(--as-space-8);
  padding: var(--as-space-6) 28px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-lg);
  background: var(--as-bg-deep);
}

.ai-taxonomy-header,
.ai-taxonomy-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--as-space-4);
  margin-bottom: var(--as-space-4);
}

.ai-taxonomy-header h2,
.ai-taxonomy-dashboard-title {
  margin: 0;
  color: var(--as-heading);
  font-size: var(--as-h2-size);
  font-weight: 900;
  line-height: 1.18;
}

.ai-taxonomy-dashboard {
  margin-top: 1.5rem;
}

.ai-taxonomy-summary,
.ai-taxonomy-dashboard-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--as-text-muted);
  font-size: 13px;
}

.ai-taxonomy-summary span,
.ai-taxonomy-dashboard-summary .summary-item {
  white-space: nowrap;
}

.ai-taxonomy-dashboard-summary .summary-value,
.ai-taxonomy-dashboard-summary [data-summary-total-count],
.ai-taxonomy-dashboard-summary [data-summary-total-cap],
.ai-taxonomy-dashboard-summary [data-summary-total-volume] {
  color: var(--as-text-strong);
  font-weight: 800;
}

.ai-taxonomy-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-xs);
  background: var(--as-surface-2);
}

.ai-taxonomy-switcher__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--as-radius-xs);
  background: transparent;
  color: var(--as-text-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.ai-taxonomy-switcher__item:hover {
  color: var(--as-text-strong);
  text-decoration: none;
}

.ai-taxonomy-switcher__item.is-active {
  background: var(--as-accent-active);
  color: #151515;
  border-color: transparent;
}

.ai-taxonomy-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
  background: var(--as-surface-1);
}

.ai-taxonomy-table td a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.ai-taxonomy-table {
  width: 100%;
  border-collapse: collapse;
}

.ai-taxonomy-table thead tr {
  border-bottom: 1px solid var(--as-border);
}

.ai-taxonomy-table th,
.ai-taxonomy-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--as-border-soft);
  white-space: nowrap;
}

.ai-taxonomy-table th {
  color: var(--as-text-muted);
  text-align: center;
}

.ai-taxonomy-table td {
  text-align: center;
}

.ai-taxonomy-table td:nth-child(2) {
  text-align: left;
}

.ai-taxonomy-table tbody tr:nth-child(odd) {
  background: transparent;
}

.ai-taxonomy-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .018);
}

.ai-taxonomy-table tbody tr:hover {
  background: var(--as-surface-2);
}

.ai-taxonomy-table a {
  text-decoration: none;
}

.ai-taxonomy-empty {
  padding: var(--as-space-4);
  text-align: center;
  color: var(--as-text-muted);
  font-size: 14px;
}

/* Old dashboard pulse is intentionally hidden: heatmap is the primary view. */
.ai-taxonomy-pulse {
  display: none;
}

/* ----------------------------------------------------------------------
   Legacy AI pulse tabs block
   Kept because it can still be used by older frontpage placement/live layer.
   ---------------------------------------------------------------------- */

.ai-top-pulse {
  padding: 0 var(--as-space-6);
  margin-bottom: var(--as-space-4);
  font-size: .9rem;
}

.ai-top-pulse__header {
  margin-bottom: 6px;
}

.ai-top-pulse__title,
.ai-top-pulse__col-title {
  color: var(--as-text-strong);
  font-weight: 800;
}

.ai-top-pulse__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ai-top-pulse__tab {
  padding: 4px 10px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-xs);
  background: transparent;
  color: var(--as-text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.ai-top-pulse__tab.is-active {
  border-color: transparent;
  background: var(--as-accent);
  color: #151515;
}

.ai-top-pulse__panel {
  display: none;
}

.ai-top-pulse__panel.is-active {
  display: block;
}

.ai-top-pulse__cols {
  gap: var(--as-space-4);
  justify-content: space-between;
}

.ai-top-pulse__col {
  flex: 1 1 0;
  margin-top: 10px;
}

.ai-top-pulse__col-title {
  margin-bottom: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--as-border);
}

.ai-top-pulse__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-top-pulse__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--as-border);
}

.ai-top-pulse__name {
  flex: 1 1 auto;
}

.ai-top-pulse__delta {
  min-width: 70px;
  text-align: right;
}

.ai-top-pulse__cap {
  min-width: 80px;
  text-align: right;
  color: var(--as-text-muted);
}

/* ----------------------------------------------------------------------
   Shared heatmap controls
   ---------------------------------------------------------------------- */

.ai-taxonomy-heatmap__modes,
.ai-taxonomy-front-heatmap__modes,
.ai-taxonomy-front-heatmap__tabs {
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-xs);
  background: var(--as-surface-2);
}

.ai-taxonomy-heatmap__modes button,
.ai-taxonomy-front-heatmap__modes button,
.ai-taxonomy-front-heatmap__tabs button {
  appearance: none;
  min-width: 40px;
  min-height: 40px;
  padding: 4px 7px;
  border: 0;
  border-radius: var(--as-radius-xs);
  background: transparent;
  color: var(--as-text-muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.ai-taxonomy-heatmap__modes button.is-active,
.ai-taxonomy-front-heatmap__modes button.is-active,
.ai-taxonomy-front-heatmap__tabs button.is-active {
  background: var(--as-accent-active);
  color: #151515;
}

.ai-taxonomy-heatmap__tile,
.ai-taxonomy-front-heatmap__tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--as-text-strong);
  background: var(--as-surface-2);
  border: 1px solid var(--as-border-soft);
  text-decoration: none;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, filter .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.ai-taxonomy-heatmap__tile:hover,
.ai-taxonomy-front-heatmap__tile:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--as-accent-rgb), .36);
  text-decoration: none;
}

.ai-taxonomy-heatmap__tile--span-1,
.ai-taxonomy-front-heatmap__tile--span-1 {
  grid-column: span 1;
}

.ai-taxonomy-heatmap__tile--span-2,
.ai-taxonomy-front-heatmap__tile--span-2 {
  grid-column: span 2;
}

.ai-taxonomy-heatmap__tile--span-3,
.ai-taxonomy-front-heatmap__tile--span-3 {
  grid-column: span 3;
}

.ai-taxonomy-heatmap__tile--span-4,
.ai-taxonomy-front-heatmap__tile--span-4 {
  grid-column: span 4;
}

.ai-taxonomy-heatmap__tile.is-positive,
.ai-taxonomy-front-heatmap__tile.is-positive {
  background:
    linear-gradient(
      135deg,
      rgba(18, 220, 153, var(--heat-alpha, .12)),
      rgba(255, 255, 255, .025) 55%,
      rgba(0, 0, 0, .08)
    );
  box-shadow:
    inset 0 0 0 1px rgba(18, 220, 153, calc(var(--heat-alpha, .12) * .45)),
    0 0 24px rgba(18, 220, 153, var(--heat-glow, .04));
}

.ai-taxonomy-heatmap__tile.is-negative,
.ai-taxonomy-front-heatmap__tile.is-negative {
  background:
    linear-gradient(
      135deg,
      rgba(255, 82, 94, var(--heat-alpha, .12)),
      rgba(255, 255, 255, .025) 55%,
      rgba(0, 0, 0, .08)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 82, 94, calc(var(--heat-alpha, .12) * .45)),
    0 0 24px rgba(255, 82, 94, var(--heat-glow, .04));
}

.ai-taxonomy-heatmap__tile.is-neutral,
.ai-taxonomy-front-heatmap__tile.is-neutral {
  background: var(--as-surface-2);
}

.ai-taxonomy-heatmap__tile.is-cap,
.ai-taxonomy-front-heatmap__tile.is-cap {
  background: linear-gradient(135deg, rgba(var(--as-accent-rgb), .15), var(--as-surface-1));
}

.heat-strength-xs {
  --heat-alpha: .07;
  --heat-glow: 0;
}

.heat-strength-sm {
  --heat-alpha: .11;
  --heat-glow: .04;
}

.heat-strength-md {
  --heat-alpha: .17;
  --heat-glow: .07;
}

.heat-strength-lg {
  --heat-alpha: .24;
  --heat-glow: .11;
}

.heat-strength-xl {
  --heat-alpha: .32;
  --heat-glow: .16;
}

/* ----------------------------------------------------------------------
   Taxonomy dashboard heatmap
   ---------------------------------------------------------------------- */

.ai-taxonomy-heatmap {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
  background: var(--as-surface-1);
}

.ai-taxonomy-heatmap__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.ai-taxonomy-heatmap__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ai-taxonomy-heatmap__title {
  margin: 0;
  color: var(--as-heading);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.ai-taxonomy-heatmap__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  color: var(--as-text-muted);
  font-size: 10px;
  line-height: 1.25;
}

.ai-taxonomy-heatmap__hint .summary-item {
  white-space: nowrap;
}

.ai-taxonomy-heatmap__hint [data-summary-total-count],
.ai-taxonomy-heatmap__hint [data-summary-total-cap],
.ai-taxonomy-heatmap__hint [data-summary-total-volume] {
  color: var(--as-text-strong);
  font-weight: 800;
}

.ai-taxonomy-heatmap__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 2.75rem;
  gap: .3125rem;
}

.ai-taxonomy-heatmap__tile {
  min-height: 2.75rem;
  padding: .25rem .4rem;
  border-radius: var(--as-radius-xs);
  gap: .2rem;
}

.ai-taxonomy-heatmap__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: .6875rem;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ai-taxonomy-heatmap__value {
  display: block;
  color: var(--as-text-strong);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
}

/* ----------------------------------------------------------------------
   Frontpage AI Sector Heatmap
   ---------------------------------------------------------------------- */

.ai-taxonomy-front-heatmap {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
  background: var(--as-surface-1);
}

.ai-taxonomy-front-heatmap__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ai-taxonomy-front-heatmap__head h2 {
  margin: 0;
  color: var(--as-heading);
  font-size: 14px;
  line-height: 1.15;
}

.ai-taxonomy-front-heatmap__head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--as-text-muted);
  font-size: 10px;
  line-height: 1.25;
}

.ai-taxonomy-front-heatmap__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.ai-taxonomy-front-heatmap__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-taxonomy-front-heatmap__groups--single {
  display: block;
}

.ai-taxonomy-front-heatmap__groups--single .ai-taxonomy-front-heatmap__group {
  display: none;
}

.ai-taxonomy-front-heatmap__groups--single .ai-taxonomy-front-heatmap__group.is-active {
  display: block;
}

.ai-taxonomy-front-heatmap__group {
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-md);
}

.ai-taxonomy-front-heatmap__group-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.ai-taxonomy-front-heatmap__group-head h3 {
  margin: 0;
  color: var(--as-heading);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.ai-taxonomy-front-heatmap__group-head span {
  display: block;
  margin-top: 2px;
  color: var(--as-text-muted);
  font-size: 10px;
  line-height: 1.2;
}

.ai-taxonomy-front-heatmap__group-head a {
  font-size: 10px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.ai-taxonomy-front-heatmap__tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 3.4375rem;
  gap: 5px;
}

.ai-taxonomy-front-heatmap--tabs .ai-taxonomy-front-heatmap__tiles {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.ai-taxonomy-front-heatmap__tile {
  min-height: 3.4375rem;
  padding: .25rem .45rem;
  border-radius: var(--as-radius-xs);
  gap: .25rem;
}

.ai-taxonomy-heatmap__tile--impulse-xs,
.ai-taxonomy-front-heatmap__tile--impulse-xs { opacity: .86; }

.ai-taxonomy-heatmap__tile--impulse-sm,
.ai-taxonomy-front-heatmap__tile--impulse-sm { opacity: .93; }

.ai-taxonomy-heatmap__tile--impulse-md,
.ai-taxonomy-heatmap__tile--impulse-lg,
.ai-taxonomy-heatmap__tile--impulse-xl,
.ai-taxonomy-front-heatmap__tile--impulse-md,
.ai-taxonomy-front-heatmap__tile--impulse-lg,
.ai-taxonomy-front-heatmap__tile--impulse-xl { opacity: 1; }

.ai-taxonomy-front-heatmap__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: .6875rem;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ai-taxonomy-front-heatmap__value {
  display: block;
  color: var(--as-text-strong);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
}

.ai-taxonomy-front-heatmap__empty {
  padding: 8px;
  color: var(--as-text-muted);
  font-size: 11px;
}

/* ----------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .market-structure-block {
    grid-template-columns: 1fr;
  }

  .ai-taxonomy-heatmap__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ai-taxonomy-front-heatmap__groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .trending-sections-grid {
    grid-template-columns: 1fr;
  }

  .ai-crypto-analysis-body,
  .ai-taxonomy-header,
  .ai-taxonomy-dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-crypto-analysis-block .chart-container {
    flex: 0 0 auto;
    height: 220px;
    margin-bottom: 12px;
  }

  #block-crypto-theme-aicryptoanalysis,
  #block-crypto-theme-marketdynamicsaicrypto,
  #block-crypto-theme-trendingcoinsaicrypto,
  #block-crypto-theme-topvolumeaicrypto {
    flex: 0 0 100%;
  }

  .ai-taxonomy-block {
    padding: var(--as-space-4) 14px;
  }

  .ai-taxonomy-front-heatmap__controls {
    align-items: flex-start;
    margin-top: 8px;
  }

  .ai-taxonomy-front-heatmap__tabs {
    flex-wrap: wrap;
    border-radius: var(--as-radius-md);
  }

  .ai-taxonomy-front-heatmap--tabs .ai-taxonomy-front-heatmap__tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ai-top-pulse__cols {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .top-volume-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .trending-coins-block .crypto-table {
    min-width: 620px;
  }

  .top-volume-block .crypto-table {
    min-width: 520px;
  }
}

@media (max-width: 760px) {
  .ai-taxonomy-heatmap__head,
  .ai-taxonomy-front-heatmap__head {
    display: block;
  }

  .ai-taxonomy-heatmap__modes,
  .ai-taxonomy-front-heatmap__modes {
    margin-top: 8px;
  }

  .ai-taxonomy-front-heatmap {
    padding: 10px;
  }

  .ai-taxonomy-heatmap__controls,
  .ai-taxonomy-front-heatmap__controls,
  .ai-taxonomy-switcher,
  .ai-taxonomy-front-heatmap__tabs,
  .ai-taxonomy-front-heatmap__modes {
    width: 100%;
  }

  .ai-taxonomy-heatmap__controls {
    align-items: flex-start;
  }

  .ai-taxonomy-switcher__item,
  .ai-taxonomy-front-heatmap__tabs button,
  .ai-taxonomy-front-heatmap__modes button {
    flex: 1;
    text-align: center;
  }

  .ai-taxonomy-heatmap__grid,
  .ai-taxonomy-front-heatmap__tiles,
  .ai-taxonomy-front-heatmap--tabs .ai-taxonomy-front-heatmap__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-taxonomy-heatmap__tile,
  .ai-taxonomy-heatmap__tile--span-1,
  .ai-taxonomy-heatmap__tile--span-2,
  .ai-taxonomy-heatmap__tile--span-3,
  .ai-taxonomy-heatmap__tile--span-4,
  .ai-taxonomy-front-heatmap__tile,
  .ai-taxonomy-front-heatmap__tile--span-1,
  .ai-taxonomy-front-heatmap__tile--span-2,
  .ai-taxonomy-front-heatmap__tile--span-3,
  .ai-taxonomy-front-heatmap__tile--span-4 {
    grid-column: span 1;
  }

  .ai-taxonomy-front-heatmap__tile {
    min-height: 3.4375rem;
  }
}

@media (max-width: 480px) {
  .ai-taxonomy-heatmap__grid,
  .ai-taxonomy-front-heatmap__tiles,
  .ai-taxonomy-front-heatmap--tabs .ai-taxonomy-front-heatmap__tiles {
    grid-template-columns: 1fr;
  }
}
