/* NEXUS phone layer. Applies at 960px and below only; desktop is unchanged. */
#mobile-menu-btn { display: none; }
#mobile-nav-backdrop { display: none; }
@media (max-width: 960px) {
  #mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 6px; border: 0.5px solid var(--border, #ddd); border-radius: 10px; background: var(--surface, #fff); font-size: 20px; cursor: pointer; flex: 0 0 auto; }
  .sidebar { display: flex !important; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw; z-index: 1000; transform: translateX(-105%); transition: transform .2s ease; overflow-y: auto; background: var(--surface, #fff); box-shadow: 0 0 24px rgba(15,23,42,.25); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open #mobile-nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 999; }
  .main > main { padding: 8px 12px 16px; }
  .topbar { gap: 6px; }
  .topbar-search { flex: 1; min-width: 0; }
  .modal-overlay { padding: 0; align-items: stretch; justify-content: stretch; }
  .modal { max-width: 100%; width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; padding: 16px; }
  #nexus-dialog-layer .modal-overlay { padding: 16px; align-items: center; justify-content: center; }
  #nexus-dialog-layer .modal { min-height: 0; border-radius: 14px; }
  .main main table, .modal table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea { font-size: 16px !important; max-width: 100%; box-sizing: border-box; }
  .main button, .modal button { min-height: 40px; }
  .modal-actions { gap: 8px; }
  .modal-actions button { flex: 1 1 auto; }
}
@media (max-width: 600px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .donut-wrap { flex-direction: column; align-items: stretch; }
}
