/* Normal dashboard only. Two soft elevations avoid stacking heavy shadows
   around fields, result wrappers, document previews, and their parent cards. */
html:root body.dashboard-page:not(.md-easy-active) {
  --md-shadow-panel: 0 2px 4px -2px rgb(62 46 29 / .10), 0 10px 28px -15px rgb(62 46 29 / .20);
  --md-shadow-inset-card: 0 1px 2px rgb(62 46 29 / .035), 0 5px 14px -9px rgb(62 46 29 / .14);
  --md-shadow-hover: 0 2px 5px -2px rgb(62 46 29 / .10), 0 14px 30px -15px rgb(62 46 29 / .24);
}
html:root[data-theme=dark] body.dashboard-page:not(.md-easy-active) {
  --md-shadow-panel: 0 2px 5px -2px rgb(0 0 0 / .24), 0 10px 26px -16px rgb(0 0 0 / .42);
  --md-shadow-inset-card: 0 1px 2px rgb(0 0 0 / .12), 0 5px 14px -10px rgb(0 0 0 / .28);
  --md-shadow-hover: 0 2px 5px -2px rgb(0 0 0 / .26), 0 14px 30px -16px rgb(0 0 0 / .48);
}

/* Account summary, search forms, packages, history, account/admin panels. */
html:root body.dashboard-page:not(.md-easy-active) .dashboard-main :is(
  .dash-form-card, .dash-stat-card, .dash-novedades, .dash-ranking-wrap,
  .dash-rank-card, .mc-card, .adm-card, .adm-kpi, .tg-card,
  .rank-card, .rank-hero-card, .soporte-selfhelp-card,
  .md-package
) {
  box-shadow: var(--md-shadow-panel);
}

/* Nested surfaces stay quieter than their surrounding panel. */
html:root body.dashboard-page:not(.md-easy-active) .dashboard-main :is(
  .md-document-card, .api-doc-block, .api-token-reveal,
  .geo-profile-card, .geo-map-card, .geo-history-card,
  .generator-section, .generator-device-card, .generator-customize-card,
  .dash-form-guide-card
) {
  box-shadow: var(--md-shadow-inset-card);
}

/* Interactive cards get a small lift in shadow, without moving the layout. */
@media (hover:hover) {
  html:root body.dashboard-page:not(.md-easy-active) .dashboard-main :is(.md-package,.tut-card):hover {
    box-shadow: var(--md-shadow-hover);
  }
  html:root body.dashboard-page:not(.md-easy-active) .dashboard-main .md-document-card:hover {
    box-shadow: var(--md-shadow-panel);
  }
}
html:root body.dashboard-page:not(.md-easy-active) .dashboard-main :is(.md-package,.tut-card,.md-document-card) {
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
@media (prefers-reduced-motion:reduce) {
  html:root body.dashboard-page:not(.md-easy-active) .dashboard-main :is(.md-package,.tut-card,.md-document-card) {
    transition:none;
  }
}
