/* Desktop-focused cards dashboard layout: compact watchlist, stats first, large card art. */

.main-content {
  padding-top: 16px;
}

.summary-grid {
  margin-bottom: 16px;
}

.page-heading {
  align-items: center;
  margin-bottom: 16px;
  padding: 0 2px;
}

.page-heading h1 {
  font-size: clamp(25px, 3vw, 34px);
}

.workspace {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.watchlist-panel {
  width: 100%;
}

.cards-list {
  max-height: 680px;
}

.watchlist-panel .filter-row {
  padding-inline: 9px;
}

.watchlist-panel .card-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px 10px;
}

.watchlist-panel .card-thumbnail,
.watchlist-panel .card-thumbnail-fallback {
  width: 42px;
  height: 56px;
}

.watchlist-panel .card-value {
  min-width: 66px;
}

.watchlist-panel .card-copy strong,
.watchlist-panel .card-value strong {
  font-size: 11px;
}

.watchlist-panel .card-copy small,
.watchlist-panel .card-value small {
  font-size: 9px;
}

.chart-panel {
  min-height: 0;
}

.chart-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
}

.selected-card-preview {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 165, 76, 0.11), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 38%);
}

.selected-card-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 63 / 88;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3f3a31;
  border-radius: 13px;
  background: #0d0e11;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.selected-card-preview-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0d0e11;
}

.selected-card-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f3ddb1;
  background:
    radial-gradient(circle at 50% 32%, rgba(213, 165, 76, 0.22), transparent 46%),
    linear-gradient(145deg, #241916, #69491d 70%, #241916);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.selected-card-preview-copy {
  display: grid;
  gap: 4px;
  margin-top: 13px;
  text-align: center;
}

.selected-card-preview-copy span {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selected-card-preview-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chart-main-column .chart-controls {
  padding-top: 11px;
}

.chart-main-column .chart-container {
  min-height: 405px;
  flex: 1 1 auto;
}

.chart-main-column .price-chart {
  min-height: 360px;
}

@media (max-width: 1380px) {
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .chart-detail-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .selected-card-preview {
    padding: 14px;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .cards-list {
    max-height: 420px;
  }

  .chart-detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .main-content {
    padding-top: 12px;
  }

  .summary-grid {
    margin-bottom: 12px;
  }

  .page-heading {
    margin-bottom: 13px;
  }

  .chart-detail-layout {
    grid-template-columns: 1fr;
  }

  .selected-card-preview {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .selected-card-preview-frame {
    width: min(230px, 70vw);
    margin-inline: auto;
  }

  .selected-card-preview-copy {
    max-width: 260px;
    margin-inline: auto;
    margin-top: 11px;
  }

  .chart-main-column .chart-container {
    min-height: 300px;
  }

  .chart-main-column .price-chart {
    min-height: 290px;
  }
}
