/* === CABINET BUTTON SAFETY === */
.cab-body button:not(.cab-theme-option),
.cab-body .btn,
.cab-body a.btn,
#cabToolsGrid button,
#cabToolsGrid .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  text-align: center;
  line-height: 1.25;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 0.8em;
}

.cab-body .cab-tool-card button,
.cab-body .cab-tool-card .btn,
#cabToolsGrid .cab-tool-card button,
#cabToolsGrid .cab-tool-card .btn {
  width: 100%;
  align-self: stretch;
  margin-left: 0;
  margin-right: 0;
}

.cab-body .tool-task button,
.cab-body .sb-action button,
.cab-body .tm-form button,
.cab-body .hyp-form button,
.cab-body .sb-form button,
.cab-body .anchor-btn-done,
.cab-body #bsSaveBtn {
  padding: 13px 22px;
}

.cab-body .cab-sidebar button,
.cab-body .cab-topbar button,
.cab-body .prof-card__header button {
  width: auto;
}

.cab-body .cab-nav__item {
  justify-content: flex-start;
  text-align: left;
}

.cab-body .cab-nav__item span,
.cab-body .cab-nav__item .cab-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cab-body .cab-avatar-upload__btn,
.cab-body .cab-avatar-upload__remove {
  padding-left: 14px;
  padding-right: 14px;
}

.cab-body .cab-theme-option,
#cabThemeSelect .cab-theme-option {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 28px;
  line-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1366px) {
  .cab-tools-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
  }

  .cab-tool-card {
    padding: 24px;
  }

  .cab-body button:not(.cab-theme-option),
  .cab-body .btn,
  #cabToolsGrid button,
  #cabToolsGrid .btn {
    padding: 12px 18px;
    font-size: 0.656rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 760px) {
  .cab-body .cab-theme-option,
  #cabThemeSelect .cab-theme-option {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px;
  }
}

@media (max-width: 480px) {
  .cab-body button:not(.cab-theme-option),
  .cab-body .btn,
  #cabToolsGrid button,
  #cabToolsGrid .btn {
    padding: 11px 16px;
    font-size: 0.608rem;
  }
}
