/* ── Responsive tweaks (mobile) ─────────────────────────────────── */
@media(max-width:768px){
  /* Sidebar becomes an overlay drawer toggled by the ☰ button */
  #sidebar{position:fixed;left:0;top:var(--topbar-h);bottom:0;z-index:300;box-shadow:var(--shadow-md)}
  #sidebar-hotzone{display:none}
  #sidebar-backdrop{position:fixed;inset:0;top:var(--topbar-h);background:var(--overlay);z-index:290;display:none}
  #sidebar-backdrop.open{display:block}
  .sb-item{padding:14px 16px;font-size:14px}

  /* Landing: taller than the viewport on phones — top-align so the
     brand/headline aren't clipped by centered overflow */
  #landing{justify-content:flex-start}

  #topbar{padding:0 12px;gap:10px}
  #topbar-subtitle{display:none}

  .tab-panel{padding:12px}
  /* Asset register: swap the wide table for stacked cards */
  #tab-assets .table-wrap{display:none}
  #assets-cards{display:flex}
  .grid-2{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr 1fr}
  .form-row,.form-row-3{grid-template-columns:1fr}
  .card-header{flex-wrap:wrap;gap:8px}
  .stat-value{font-size:22px}

  .scan-steps{gap:6px}
  .scan-step{height:34px;padding:0 10px;font-size:11px;gap:6px}

  .modal,.modal-sm,.modal-lg,.modal-xl{padding:16px;border-radius:14px;max-width:100vw;width:calc(100vw - 16px);max-height:92vh}
  .modal-footer{flex-wrap:wrap}

  /* Bigger touch targets */
  .btn{padding:10px 16px}
  .form-input,.form-select,.form-textarea{padding:11px 12px;font-size:16px}
}
