@media (max-width: 1000px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .operational-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    margin-left: 0;
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    padding: 15px 15px 12px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .content {
    padding: 18px 14px;
  }
  .profile-switcher {
    max-width: 135px;
  }
  .profile-switcher label {
    display: none;
  }
  .profile-switcher select {
    max-width: 135px;
    min-width: 0;
  }
  .metrics,
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .toolbar {
    align-items: flex-start;
  }
  .toolbar,
  .top-actions {
    gap: 8px;
  }
  .metric strong {
    font-size: 24px;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 18px;
  }
  body {
    padding-bottom: 66px;
  }
  .mobile-fab {
    display: block;
    bottom: 77px;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    z-index: 34;
    height: 62px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 18px rgba(21, 35, 31, 0.08);
    justify-content: space-around;
  }
  .mobile-bottom-nav button {
    flex: 1;
    border: 0;
    background: #fff;
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 7px 2px;
    cursor: pointer;
  }
  .mobile-bottom-nav button span {
    font-size: 17px;
  }
  .mobile-bottom-nav button small {
    font-size: 9px;
  }
  .mobile-bottom-nav button.active {
    color: var(--green);
    font-weight: 900;
  }
  .form-stepper {
    justify-content: space-between;
  }
  .step-dot {
    width: auto;
    flex: 1;
  }
  .step-dot:not(:last-child):after {
    left: 65%;
    width: 70%;
  }
  .step-dot small {
    font-size: 8px;
    text-align: center;
  }
  .viewer-toolbar {
    align-items: flex-start;
    padding: 9px;
  }
  .viewer-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .viewer-actions button,
  .viewer-actions a {
    padding: 5px 7px;
    font-size: 11px;
  }
  .process-step small {
    display: none;
  }
  .quick-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 7px;
  }
  .quick-filters button {
    white-space: nowrap;
  }
  .step-navigation > span {
    display: none;
  }
  .operational-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .active-profile-card {
    grid-template-columns: auto 1fr;
    padding: 13px;
  }
  .access-status {
    display: none;
  }
  .active-profile-card p {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-row {
    grid-template-columns: auto 1fr auto;
  }
  .role-pill {
    grid-column: 2;
  }
  .protected-profile,
  .delete-user {
    grid-column: 3;
    grid-row: 1/3;
  }
}
