/* MeloTools professional shell.
   This file owns only the default-theme header, discovery and navigation shell.
   Tool-specific layouts remain in melotools-extra-tabs.css. */

html[data-ui-theme="xp"] .workspace-intro,
html[data-ui-theme="xp"] .nav-rail-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[data-ui-theme="xp"] #toolSearchWrap.tool-search {
  width: min(100%, 520px) !important;
  margin: 5px auto 7px !important;
}

html[data-ui-theme="xp"] #toolSearchWrap .tool-search-row {
  display: flex !important;
  height: 34px !important;
  min-height: 34px !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 3px !important;
  padding: 2px 4px !important;
  border-radius: 2px !important;
}

html[data-ui-theme="xp"] #toolSearchWrap .tool-search-submit {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 2px !important;
}

html[data-ui-theme="xp"] #toolSearchWrap #toolSearchInput {
  width: 0 !important;
  min-height: 28px !important;
  height: 28px !important;
  flex: 1 1 auto !important;
  padding: 2px 4px !important;
  font-size: 12px !important;
}

html[data-ui-theme="xp"] #toolSearchClear:not([hidden]) {
  display: inline-flex !important;
  min-height: 26px !important;
  align-items: center !important;
  padding: 0 8px !important;
  border: 1px solid #8f8d82 !important;
  border-radius: 2px !important;
  background: #ece9d8 !important;
  color: #000 !important;
  font: 11px Tahoma, sans-serif !important;
}

html[data-ui-theme="xp"] #toolSearchClear[hidden],
html[data-ui-theme="xp"] #toolSearchMeta:empty {
  display: none !important;
}

.tool-launcher[hidden] {
  display: none !important;
}

html[data-ui-theme="xp"] #toolSearchShortcut,
html[data-ui-theme="xp"] .tool-launcher-footer {
  display: none !important;
}

html[data-ui-theme="xp"] #toolLauncher.tool-launcher {
  position: absolute !important;
  z-index: 1200 !important;
  top: calc(100% + 3px) !important;
  left: 0 !important;
  width: 100% !important;
  padding: 4px !important;
  border: 2px solid !important;
  border-color: #fff #404040 #404040 #fff !important;
  background: #ece9d8 !important;
  color: #000 !important;
  font: 11px Tahoma, sans-serif !important;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .25) !important;
}

html[data-ui-theme="xp"] .tool-launcher-head {
  display: flex !important;
  justify-content: space-between !important;
  padding: 3px 4px 5px !important;
}

html[data-ui-theme="xp"] .tool-launcher-option {
  display: grid !important;
  grid-template-columns: 32px 1fr auto !important;
  gap: 6px !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 3px 5px !important;
  cursor: default !important;
}

html[data-ui-theme="xp"] .tool-launcher-option.is-highlighted {
  background: #316ac5 !important;
  color: #fff !important;
}

html[data-ui-theme="xp"] .tool-launcher-badge {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

html[data-ui-theme="xp"] .tool-launcher-copy {
  display: grid !important;
}

html[data-ui-theme="xp"] .tool-launcher-copy small {
  opacity: .78 !important;
}

html[data-ui-theme="xp"] .tool-launcher-action {
  font-size: 10px !important;
}

html[data-ui-theme="saas"] {
  --ui-ink: #17324a;
  --ui-muted: #60758a;
  --ui-line: #d6e1ec;
  --ui-soft: #f4f7fb;
  --ui-blue: #2563eb;
  --ui-blue-dark: #1d4ed8;
  --ui-blue-soft: #edf4ff;
}

html[data-ui-theme="saas"] .header {
  width: min(1160px, calc(100% - 24px)) !important;
  margin-top: 10px !important;
  top: 8px !important;
}

html[data-ui-theme="saas"] .header-top {
  min-height: 80px !important;
  padding: 8px 16px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 12px 34px rgba(23, 50, 74, .07) !important;
}

html[data-ui-theme="saas"] .saas-brand-logo {
  height: 62px !important;
  max-width: 260px !important;
  filter: none !important;
}

html[data-ui-theme="saas"] .mt-tools-badge-dot-saas {
  width: 27px !important;
  height: 27px !important;
  border: 2px solid #fff !important;
  background: var(--ui-blue) !important;
  color: #fff !important;
  font-size: 10px !important;
  box-shadow: 0 5px 13px rgba(37, 99, 235, .25) !important;
}

html[data-ui-theme="saas"] .theme-switcher {
  margin-right: 54px !important;
  padding: 4px !important;
  border-radius: 14px !important;
}

html[data-ui-theme="saas"] .theme-option {
  min-height: 34px !important;
  padding: 0 12px !important;
}

html[data-ui-theme="saas"] .lang-current {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
}

html[data-ui-theme="saas"] .wrap {
  width: min(1160px, calc(100% - 24px)) !important;
  margin: 18px auto 40px !important;
}

html[data-ui-theme="saas"] .card {
  padding: 24px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 18px 52px rgba(23, 50, 74, .075) !important;
}

html[data-ui-theme="saas"] .workspace-intro {
  display: block !important;
  max-width: 760px !important;
  margin: 0 auto 18px !important;
  padding: 4px 16px 14px !important;
  text-align: center !important;
}

html[data-ui-theme="saas"] .workspace-kicker {
  display: inline-flex !important;
  min-height: 26px !important;
  align-items: center !important;
  padding: 0 10px !important;
  border: 1px solid #c7d9f8 !important;
  border-radius: 999px !important;
  background: var(--ui-blue-soft) !important;
  color: var(--ui-blue-dark) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}

html[data-ui-theme="saas"] .workspace-intro h1 {
  margin: 9px 0 6px !important;
  color: var(--ui-ink) !important;
  font-size: clamp(1.65rem, 1.35rem + 1vw, 2.25rem) !important;
  font-weight: 850 !important;
  letter-spacing: -.035em !important;
  line-height: 1.08 !important;
}

html[data-ui-theme="saas"] .workspace-intro p {
  margin: 0 !important;
  color: var(--ui-muted) !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
}

html[data-ui-theme="saas"] #toolSearchWrap.tool-search {
  position: relative !important;
  z-index: 80 !important;
  width: min(720px, 100%) !important;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] #toolSearchWrap .tool-search-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[data-ui-theme="saas"] #toolSearchWrap .tool-search-row {
  position: relative !important;
  z-index: 2 !important;
  min-height: 56px !important;
  gap: 8px !important;
  padding: 7px 9px !important;
  border: 1px solid #b9c9da !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 10px 30px rgba(23, 50, 74, .09), inset 0 1px 0 #fff !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

html[data-ui-theme="saas"] #toolSearchWrap .tool-search-row:focus-within {
  border-color: #6f99ed !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11), 0 14px 34px rgba(23, 50, 74, .12) !important;
}

html[data-ui-theme="saas"] #toolSearchWrap.is-open .tool-search-row {
  border-color: #6f99ed !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11), 0 14px 34px rgba(23, 50, 74, .12) !important;
}

html[data-ui-theme="saas"] #toolSearchWrap .tool-search-submit {
  display: inline-grid !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #edf4ff, #e4edff) !important;
  color: var(--ui-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08) !important;
  cursor: pointer !important;
}

html[data-ui-theme="saas"] #toolSearchWrap .tool-search-submit svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

html[data-ui-theme="saas"] #toolSearchWrap #toolSearchInput {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--ui-ink) !important;
  font-size: 15.5px !important;
  font-weight: 620 !important;
  box-shadow: none !important;
  appearance: none !important;
}

html[data-ui-theme="saas"] #toolSearchWrap #toolSearchInput::placeholder {
  color: #75899c !important;
  font-weight: 520 !important;
  opacity: 1 !important;
}

html[data-ui-theme="saas"] #toolSearchWrap #toolSearchInput::-webkit-search-cancel-button {
  display: none !important;
}

html[data-ui-theme="saas"] .tool-search-shortcut {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: #718398 !important;
  white-space: nowrap !important;
}

html[data-ui-theme="saas"] .tool-search-shortcut kbd,
html[data-ui-theme="saas"] .tool-launcher-footer kbd {
  display: inline-grid !important;
  min-width: 23px !important;
  height: 23px !important;
  padding: 0 5px !important;
  place-items: center !important;
  border: 1px solid #d4dfeb !important;
  border-bottom-color: #bccbd9 !important;
  border-radius: 6px !important;
  background: #f7f9fc !important;
  color: #526b81 !important;
  font: 700 10px/1 ui-sans-serif, system-ui, sans-serif !important;
  box-shadow: 0 1px 0 #e0e8f0 !important;
}

html[data-ui-theme="saas"] #toolSearchWrap.has-query .tool-search-shortcut {
  display: none !important;
}

html[data-ui-theme="saas"] #toolSearchClear:not([hidden]) {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef3f8 !important;
  color: #3e5870 !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
}

html[data-ui-theme="saas"] #toolSearchClear[hidden] {
  display: none !important;
}

html[data-ui-theme="saas"] #toolSearchMeta.tool-search-meta {
  display: inline !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: #718398 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .035em !important;
  line-height: 1.2 !important;
  text-align: right !important;
  text-transform: uppercase !important;
}

html[data-ui-theme="saas"] #toolSearchMeta:empty {
  display: none !important;
}

html[data-ui-theme="saas"] #toolLauncher.tool-launcher {
  position: absolute !important;
  z-index: 1 !important;
  top: calc(100% + 9px) !important;
  left: 0 !important;
  width: 100% !important;
  padding: 9px !important;
  border: 1px solid rgba(162, 180, 199, .72) !important;
  border-radius: 19px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 24px 60px rgba(22, 48, 72, .2), 0 6px 16px rgba(22, 48, 72, .08) !important;
  animation: tool-launcher-in .15s ease-out both !important;
}

@keyframes tool-launcher-in {
  from { opacity: 0; transform: translateY(-5px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[data-ui-theme="saas"] .tool-launcher-head {
  display: flex !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 3px 8px 7px !important;
}

html[data-ui-theme="saas"] .tool-launcher-head strong {
  color: #496278 !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
}

html[data-ui-theme="saas"] .tool-launcher-results {
  display: grid !important;
  gap: 3px !important;
  max-height: min(420px, 52vh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: #c2cfdd transparent !important;
}

html[data-ui-theme="saas"] .tool-launcher-option {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  gap: 11px !important;
  min-height: 52px !important;
  align-items: center !important;
  padding: 6px 9px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: #28435b !important;
  cursor: pointer !important;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease !important;
}

html[data-ui-theme="saas"] .tool-launcher-option.is-highlighted {
  border-color: #c9daf8 !important;
  background: linear-gradient(100deg, #edf4ff, #f5f8ff) !important;
  color: var(--ui-blue-dark) !important;
}

html[data-ui-theme="saas"] .tool-launcher-badge {
  display: inline-grid !important;
  width: 40px !important;
  height: 40px !important;
  place-items: center !important;
  border: 1px solid #d5e1ed !important;
  border-radius: 11px !important;
  background: #f2f6fa !important;
  color: #547087 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}

html[data-ui-theme="saas"] .tool-launcher-option[data-category="pdf"] .tool-launcher-badge { background: #fff1f2 !important; border-color: #fecdd3 !important; color: #be123c !important; }
html[data-ui-theme="saas"] .tool-launcher-option[data-category="image"] .tool-launcher-badge { background: #f3e8ff !important; border-color: #e9d5ff !important; color: #7e22ce !important; }
html[data-ui-theme="saas"] .tool-launcher-option[data-category="dev"] .tool-launcher-badge { background: #ecfeff !important; border-color: #bae6fd !important; color: #0369a1 !important; }
html[data-ui-theme="saas"] .tool-launcher-option[data-category="links"] .tool-launcher-badge { background: #ecfdf5 !important; border-color: #bbf7d0 !important; color: #15803d !important; }
html[data-ui-theme="saas"] .tool-launcher-option[data-category="video"] .tool-launcher-badge,
html[data-ui-theme="saas"] .tool-launcher-option[data-category="media"] .tool-launcher-badge { background: #fff7ed !important; border-color: #fed7aa !important; color: #c2410c !important; }

html[data-ui-theme="saas"] .tool-launcher-copy {
  display: grid !important;
  min-width: 0 !important;
  gap: 2px !important;
}

html[data-ui-theme="saas"] .tool-launcher-copy strong {
  overflow: hidden !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-ui-theme="saas"] .tool-launcher-copy small {
  overflow: hidden !important;
  color: #718398 !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html[data-ui-theme="saas"] .tool-launcher-action {
  padding-right: 3px !important;
  color: #7d8ea0 !important;
  font-size: 10.5px !important;
  font-weight: 720 !important;
  opacity: 0 !important;
  transform: translateX(-3px) !important;
  transition: opacity .12s ease, transform .12s ease !important;
}

html[data-ui-theme="saas"] .tool-launcher-option.is-highlighted .tool-launcher-action {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

html[data-ui-theme="saas"] .tool-launcher-empty {
  display: grid !important;
  min-height: 112px !important;
  place-content: center !important;
  gap: 5px !important;
  padding: 20px !important;
  border-radius: 12px !important;
  background: #f7f9fc !important;
  color: #61778b !important;
  text-align: center !important;
}

html[data-ui-theme="saas"] .tool-launcher-empty strong {
  color: #38536b !important;
  font-size: 13px !important;
}

html[data-ui-theme="saas"] .tool-launcher-empty span {
  font-size: 11.5px !important;
}

html[data-ui-theme="saas"] .tool-launcher-footer {
  display: flex !important;
  min-height: 32px !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  padding: 7px 7px 1px !important;
  border-top: 1px solid #edf1f5 !important;
  color: #7b8d9e !important;
  font-size: 9.5px !important;
}

html[data-ui-theme="saas"] .tool-launcher-footer span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

html[data-ui-theme="saas"] .tool-launcher-footer kbd {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 4px !important;
  border-radius: 5px !important;
  font-size: 9px !important;
}

html[data-ui-theme="saas"] .privacy-status {
  width: max-content !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 auto 8px !important;
  padding: 5px 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #5b7186 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

html[data-ui-theme="saas"] .privacy-status::before {
  content: "\2713" !important;
  display: inline-grid !important;
  width: 17px !important;
  height: 17px !important;
  margin-right: 6px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

html[data-ui-theme="saas"] .tool-shortcuts {
  margin-bottom: 12px !important;
}

html[data-ui-theme="saas"] .nav-shell {
  display: grid !important;
  gap: 7px !important;
  width: min(100%, 1040px) !important;
  margin: 0 auto 16px !important;
}

html[data-ui-theme="saas"] .nav-rail-label {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 4px !important;
  color: var(--ui-muted) !important;
}

html[data-ui-theme="saas"] .nav-rail-label strong {
  color: var(--ui-ink) !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
}

html[data-ui-theme="saas"] .nav-rail-label span {
  font-size: 11px !important;
}

html[data-ui-theme="saas"] .nav-rail-label-tools {
  margin-top: 3px !important;
}

html[data-ui-theme="saas"] .main-tabs,
html[data-ui-theme="saas"] .tool-tabs,
html[data-ui-theme="saas"] body.mt-category-media .tool-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  align-items: stretch !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 15px !important;
  background: var(--ui-soft) !important;
  box-shadow: inset 0 1px 0 #fff !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  scroll-snap-type: none !important;
}

html[data-ui-theme="saas"] .tool-tabs,
html[data-ui-theme="saas"] body.mt-category-media .tool-tabs {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  background: #fff !important;
}

html[data-ui-theme="saas"] .main-tabs::-webkit-scrollbar,
html[data-ui-theme="saas"] .tool-tabs::-webkit-scrollbar {
  height: 5px !important;
}

html[data-ui-theme="saas"] .main-tabs::-webkit-scrollbar-thumb,
html[data-ui-theme="saas"] .tool-tabs::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: #b6c6d7 !important;
}

html[data-ui-theme="saas"] .main-tabs .tabbtn,
html[data-ui-theme="saas"] .tool-tabs .tabbtn,
html[data-ui-theme="saas"] body.mt-category-media .tool-tabs .tool-tab {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #496278 !important;
  font-size: 12.5px !important;
  font-weight: 740 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
  transform: none !important;
}

html[data-ui-theme="saas"] .main-tabs .tabbtn:hover,
html[data-ui-theme="saas"] .tool-tabs .tabbtn:hover {
  border-color: #d4dfeb !important;
  background: #fff !important;
  color: #29435c !important;
}

html[data-ui-theme="saas"] .main-tabs .tabbtn.active {
  border-color: var(--ui-blue) !important;
  background: var(--ui-blue) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .18) !important;
}

html[data-ui-theme="saas"] .tool-tabs .tabbtn.active,
html[data-ui-theme="saas"] body.mt-category-media .tool-tabs .tool-tab.active {
  border-color: #a9c2f3 !important;
  background: var(--ui-blue-soft) !important;
  color: var(--ui-blue-dark) !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .04) !important;
}

html[data-ui-theme="saas"] .main-tabs .tabbtn:focus-visible,
html[data-ui-theme="saas"] .tool-tabs .tabbtn:focus-visible,
html[data-ui-theme="saas"] #toolSearchClear:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .27) !important;
  outline-offset: 2px !important;
}

html[data-ui-theme="saas"] .tool-tab.is-hidden,
html[data-ui-theme="saas"] .main-tab.is-hidden {
  display: none !important;
}

html[data-ui-theme="saas"] .section.show {
  width: min(100%, 1040px) !important;
  margin: 10px auto 0 !important;
}

html[data-ui-theme="saas"] .section.show > .sub {
  display: block !important;
  margin-bottom: 16px !important;
}

html[data-ui-theme="saas"] .section.show .mt-card-form small {
  display: block !important;
  margin-top: 5px !important;
  color: #667b90 !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

@media (max-width: 720px) {
  html[data-ui-theme="saas"] .header,
  html[data-ui-theme="saas"] .wrap {
    width: calc(100% - 14px) !important;
  }

  html[data-ui-theme="saas"] .header {
    position: relative !important;
    top: auto !important;
    margin-top: 7px !important;
  }

  html[data-ui-theme="saas"] .header-top {
    min-height: 0 !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
  }

  html[data-ui-theme="saas"] .saas-brand-logo {
    height: 48px !important;
    max-width: min(190px, 52vw) !important;
  }

  html[data-ui-theme="saas"] .theme-switcher {
    margin: 4px 0 0 !important;
  }

  html[data-ui-theme="saas"] .wrap {
    margin: 10px auto 28px !important;
  }

  html[data-ui-theme="saas"] .card {
    padding: 13px !important;
    border-radius: 18px !important;
  }

  html[data-ui-theme="saas"] .workspace-intro {
    margin-bottom: 13px !important;
    padding: 5px 3px 10px !important;
    text-align: left !important;
  }

  html[data-ui-theme="saas"] .workspace-kicker {
    min-height: 24px !important;
    font-size: 9.5px !important;
  }

  html[data-ui-theme="saas"] .workspace-intro h1 {
    margin-top: 8px !important;
    font-size: clamp(1.55rem, 7.7vw, 2rem) !important;
  }

  html[data-ui-theme="saas"] .workspace-intro p {
    font-size: 13.5px !important;
  }

  html[data-ui-theme="saas"] #toolSearchWrap.tool-search {
    width: 100% !important;
  }

  html[data-ui-theme="saas"] #toolSearchWrap .tool-search-row {
    min-height: 50px !important;
    padding: 5px 7px !important;
    border-radius: 15px !important;
  }

  html[data-ui-theme="saas"] #toolSearchWrap .tool-search-submit {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  html[data-ui-theme="saas"] #toolSearchWrap #toolSearchInput {
    min-height: 38px !important;
    font-size: 14px !important;
  }

  html[data-ui-theme="saas"] .tool-search-shortcut {
    display: none !important;
  }

  html[data-ui-theme="saas"] #toolLauncher.tool-launcher {
    top: calc(100% + 7px) !important;
    padding: 7px !important;
    border-radius: 16px !important;
  }

  html[data-ui-theme="saas"] .tool-launcher-option {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    min-height: 48px !important;
    padding: 5px 7px !important;
  }

  html[data-ui-theme="saas"] .tool-launcher-badge {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }

  html[data-ui-theme="saas"] .tool-launcher-action {
    display: none !important;
  }

  html[data-ui-theme="saas"] .tool-launcher-footer {
    display: none !important;
  }

  html[data-ui-theme="saas"] .privacy-status {
    width: 100% !important;
    padding-inline: 3px !important;
    font-size: 11.5px !important;
    text-align: left !important;
  }

  html[data-ui-theme="saas"] .nav-rail-label span {
    display: none !important;
  }

  html[data-ui-theme="saas"] .main-tabs,
  html[data-ui-theme="saas"] .tool-tabs,
  html[data-ui-theme="saas"] body.mt-category-media .tool-tabs {
    display: grid !important;
    padding: 5px !important;
    border-radius: 13px !important;
  }

  html[data-ui-theme="saas"] .main-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html[data-ui-theme="saas"] .tool-tabs,
  html[data-ui-theme="saas"] body.mt-category-media .tool-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-ui-theme="saas"] .main-tabs .tabbtn,
  html[data-ui-theme="saas"] .tool-tabs .tabbtn,
  html[data-ui-theme="saas"] body.mt-category-media .tool-tabs .tool-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 9px 8px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  html[data-ui-theme="saas"] .section.show {
    margin-top: 7px !important;
  }

  html[data-ui-theme="saas"] .section.show > .title {
    font-size: 21px !important;
  }

  html[data-ui-theme="saas"] .section.show > .sub {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 340px) {
  html[data-ui-theme="saas"] .main-tabs,
  html[data-ui-theme="saas"] .tool-tabs,
  html[data-ui-theme="saas"] body.mt-category-media .tool-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-ui-theme="saas"] .main-tabs,
  html[data-ui-theme="saas"] .tool-tabs {
    scroll-behavior: auto !important;
  }

  html[data-ui-theme="saas"] #toolLauncher.tool-launcher {
    animation: none !important;
  }
}
