@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .metric-row > div,
  .chart,
  .usage-mix,
  .recent {
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
  }

  .metric-row > div:hover,
  .metric-row > div:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(25, 28, 23, .10);
  }

  .metric-row > div:hover b {
    color: #668113;
    transform: translateX(2px);
  }

  .metric-row b {
    transition: color .18s ease, transform .18s ease;
  }

  .chart:hover,
  .usage-mix:hover,
  .recent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(14, 16, 13, .11);
  }

  .bars i {
    position: relative;
    transform-origin: bottom;
    transition: transform .16s ease, filter .16s ease;
    cursor: crosshair;
  }

  .bars i:hover {
    transform: scaleY(1.07);
    filter: brightness(.92) saturate(1.3);
  }

  .bars i:hover::after {
    content: attr(data-value);
    position: absolute;
    z-index: 2;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(.94);
    padding: 4px 5px;
    background: #20221f;
    color: #eff0e8;
    font: 9px var(--mono);
    white-space: nowrap;
    animation: dashboard-tooltip .16s ease forwards;
    pointer-events: none;
  }

  .usage-mix:hover .donut {
    transform: scale(1.06) rotate(7deg);
    box-shadow: 0 0 0 5px rgba(210, 243, 68, .16);
  }

  .usage-mix:hover .donut span {
    transform: rotate(-7deg);
  }

  .donut,
  .donut span,
  .usage-mix p {
    transition: transform .24s ease, box-shadow .24s ease, color .2s ease;
  }

  .usage-mix p:hover {
    transform: translateX(3px);
    color: #5e7a10;
  }

  .request-row:not(.header-row) {
    transition: background-color .18s ease, transform .18s ease, padding-left .18s ease;
  }

  .request-row:not(.header-row):hover {
    background: #f2f6dd;
    transform: translateX(3px);
    padding-left: 7px;
  }
}

@keyframes dashboard-tooltip {
  to { transform: translateX(-50%) scale(1); }
}
