@media (max-width: 900px) {
  input,
  select,
  textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    inline-size: 100%;
    max-inline-size: 100%;
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  body.desktop-app .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
  }

  body.desktop-app .desktop-command-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 34px;
  }

  body.desktop-app .desktop-global-search {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
  }

  body.desktop-app :is(.desktop-global-search, .desktop-refresh-button) svg {
    display: block;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body.desktop-app .desktop-global-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    inline-size: auto;
  }

  body.desktop-app .topbar-actions {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 34px;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    scrollbar-width: none;
  }

  body.desktop-app .topbar-actions::-webkit-scrollbar { display: none; }
  body.desktop-app .topbar-actions :is(.build-pill, .operator-pill) { display: none !important; }
  body.desktop-app .topbar-actions :is(.notification-pill, .status-pill, .compact-button) { flex: 0 0 auto; }
  body.desktop-app .topbar-actions .status-pill { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
