@media (max-width: 560px) {

      .brand h1 { font-size: 15.5px; }
      .brand .sub { display: none; }
      .dates { display: none; }
      .seg button { padding: 5px 13px; font-size: 12.5px; }
      .btn-ghost, .btn-primary { padding: 6px 11px; font-size: 12.5px; }
      .actions { gap: 6px; flex-wrap: wrap; }
      .syncinfo { width: 100%; text-align: right; }

      .kpis { grid-template-columns: 1fr; }
      .kpi { padding: 12px 14px; }
      .card-head { padding: 11px 14px; }
      .ai-card { padding: 14px; }
      .anomaly-row, .newold-top { padding-left: 14px; padding-right: 14px; }
      .dept-side { padding: 14px; }
      .ai-text { font-size: 13.5px; line-height: 1.7; }
      .stored-foot { padding-left: 14px; padding-right: 14px; }

      table { table-layout: fixed; width: 100%; }
      .tscroll { overflow-x: hidden; }
      .tscroll table { min-width: 0; }
      th, td { padding: 5px 3px; font-size: 10.5px; white-space: normal; overflow-wrap: anywhere; }
      th:first-child, td:first-child { padding-left: 8px; }
      th:last-child, td:last-child { padding-right: 8px; }
      .sharebar { min-width: 0; }
      .ratio-wrap svg, .rank { display: none; }

      .sheet-scroll { overflow-x: auto; max-height: calc(100vh - 254px); -webkit-overflow-scrolling: touch; }
      table.sheet { table-layout: auto; width: auto; font-size: 10.5px; }
      table.sheet thead .colh { min-width: 64px; padding: 2px 5px; }
      table.sheet thead .corner, table.sheet td.rowh { width: 22px; min-width: 22px; padding: 2px 2px; }
      table.sheet td.cell { padding: 3px 6px; white-space: nowrap; }
      .sheet-tabs button { padding: 5px 10px; font-size: 11px; }
    }
#xlsToolbar, #officialToolbar { display: none !important; }
