    @media (max-width: 980px) {
      input,
      select,
      textarea {
        font-size: 16px;
      }
      html:not(.light-theme) body,
      body.dark-theme {
        background:
          radial-gradient(circle at top right, rgba(28,143,132,0.08), transparent 30%),
          linear-gradient(180deg, #0c0f12 0%, var(--bg) 100%);
      }
      .app {
        grid-template-columns: 1fr;
      }
      .app,
      .main {
        background: transparent;
      }
      .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(86vw, 320px);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        border-right: 1px solid var(--nav-line);
        border-radius: 0;
        box-shadow: none;
        padding-top: calc(18px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        z-index: 30;
      }
      .app.mobile-sidebar-open .sidebar {
        transform: translateX(0);
      }
      .mobile-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(6, 10, 15, 0.62);
        z-index: 20;
      }
      .app.mobile-sidebar-open .mobile-sidebar-backdrop {
        display: block;
      }
      .sidebar-close-mobile {
        display: none;
      }
      .main {
        padding: 0 14px 0;
      }
      .overview-grid {
        display: flex;
        flex-direction: column;
      }
      body.admin-auth-guest .overview-grid,
      body.admin-auth-guest .staff-workspace-grid {
        grid-template-columns: 1fr;
      }
      .overview-wide {
        grid-column: auto;
      }
      .brand {
        display: block;
        padding: 14px 14px 18px;
        margin-bottom: 12px;
      }
      .sidebar-scroll {
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      .nav-group:last-of-type,
      .sidebar-status {
        flex-shrink: 0;
      }
      .nav-group:first-of-type {
        margin-top: 0;
      }
      .brand + .nav-group {
        margin-top: 0;
      }
      .nav-group,
      .sidebar-status {
        overflow-anchor: none;
      }
      .sidebar-scroll > .nav-group:first-of-type,
      .sidebar-scroll > .nav-group:nth-of-type(2),
      .sidebar-scroll > .nav-group:nth-of-type(3),
      .sidebar-scroll > .sidebar-status {
        width: 100%;
      }
      .sidebar-scroll {
        min-height: 0;
      }
      .sidebar-scroll .nav-group:first-of-type {
        overflow: visible;
      }
      .sidebar-scroll .nav-group-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .sidebar-scroll .nav-group-wrap::-webkit-scrollbar {
        display: none;
      }
      .auth-card {
        max-width: 560px;
        width: 100%;
        justify-self: center;
      }
      .auth-fields {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .auth-actions {
        grid-template-columns: 1fr;
      }
      .topbar {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 38px 44px auto;
        align-items: center;
        gap: 8px;
        padding: 14px 0 12px;
      }
      .topbar-actions {
        width: auto;
        display: contents;
      }
      .admin-search-wrap {
        width: 100%;
      }
      .admin-search {
        min-width: 0;
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
      }
      .admin-mobile-menu {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 10px;
      }
      .theme-toggle,
      .admin-profile,
      .admin-logout-button {
        width: auto;
        min-width: 0;
      }
      .theme-toggle {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 0;
        white-space: nowrap;
      }
      .admin-profile {
        width: 44px;
        min-width: 44px;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        justify-items: center;
      }
      .admin-profile-avatar {
        width: 38px;
        height: 38px;
        font-size: 18px;
      }
      .admin-profile-meta {
        display: none;
      }
      .admin-logout-button {
        height: 38px;
        min-width: 64px;
        padding: 0 10px;
        font-size: 13px;
      }
      .analysis-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }
      .analysis-stat {
        padding: 10px;
      }
      .analysis-stat .v {
        font-size: 18px;
      }
      .analysis-layout {
        grid-template-columns: minmax(0, 1fr);
      }
      .analysis-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
      .analysis-table {
        min-width: 820px;
      }
      .analysis-detail {
        padding: 12px;
      }
      .analysis-meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
      }
      .analysis-meta-row .v {
        text-align: left;
      }
    }
