/* Mobile navigation and drawer corrections for the September 2026 reliability pass. */
.default-feedback-text {
  color: var(--muted);
}

.empty-state {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .sidebar {
    z-index: 40;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-section {
    gap: 4px;
    padding: 7px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-section::-webkit-scrollbar {
    display: none;
  }

  .nav-title {
    display: none;
  }

  .nav-button {
    min-width: max-content;
    min-height: 44px;
    padding: 9px 12px;
    gap: 0;
    justify-content: center;
    touch-action: manipulation;
    pointer-events: auto;
  }

  .nav-button .nav-dot {
    display: none;
  }

  .nav-button span:last-child {
    display: inline;
    white-space: nowrap;
  }

  .topbar {
    position: relative;
    z-index: 20;
  }

  .top-actions,
  .top-actions select,
  .top-actions button {
    pointer-events: auto;
  }

  .drawer-overlay {
    z-index: 80;
  }

  .drawer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .drawer-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
  }

  .drawer-head > div {
    min-width: 0;
  }

  .drawer-head h2 {
    font-size: 24px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .drawer-head [data-close-drawer] {
    position: static;
    width: auto;
    min-width: 74px;
    margin: 0;
    align-self: start;
  }

  .drawer-body {
    overflow-x: hidden;
  }

  .drawer-body .form-grid,
  .drawer-body .template-item,
  .drawer-body .criteria-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
