@media (max-width: 760px) {
  .sidebar {
    width: min(82vw, 280px);
    box-shadow: 18px 0 48px rgba(35, 20, 15, .2);
  }

  .menu-button { margin-right: 10px; }
  .topbar { height: 72px; padding: 0 14px; }
  .page-section { padding: 15px 12px 28px; }

  .hero-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .hero-card h3 { font-size: 20px; line-height: 1.35; }
  .hero-card p { line-height: 1.65; }
  .hero-score { margin-top: 20px; padding-top: 15px; }
  .hero-score strong { font-size: 32px; }

  .metric-grid { gap: 9px; margin: 12px 0; }
  .metric-card { padding: 14px; border-radius: 14px; }
  .metric-label { font-size: 11px; }
  .metric-value { font-size: 22px; }
  .metric-icon { width: 29px; height: 29px; }

  .panel { padding: 17px; border-radius: 15px; }
  .content-grid { gap: 12px; margin-top: 12px; }
  .chart { height: 230px; }
  .funnel-row { grid-template-columns: 68px 1fr 42px; }
  .section-toolbar select { width: 100%; }

  .table-panel {
    padding: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }

  tr {
    display: block;
    margin-bottom: 11px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(69, 42, 29, .04);
  }

  td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #f1ebe7;
    text-align: right;
    white-space: normal;
  }

  td:last-child { border: 0; }
  td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
  }

  td strong, td span { text-align: right; }
  .progress { width: 90px; }
  .pager { justify-content: center; padding: 7px 0 2px; flex-wrap: wrap; }
  .event-row { grid-template-columns: 95px 1fr 60px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .definition-list div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .login-card { padding: 34px 24px 28px; border-radius: 22px; }
  .brand-mark { width: 58px; height: 58px; border-radius: 19px; }
  .login-card h1 { font-size: 22px; }
}

@media (max-width: 390px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 20px; }
  .metric-note { line-height: 1.45; }
  .topbar-actions { gap: 10px; }
}
