/* ==========================================================================
   Melotools lite — Utilitário limpo, sem sopa de pílulas, com micro-animações
   fluidas (spring physics, cascade entrance, hover sheen, foco vivo)
   ========================================================================== */

:root {
  --mt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mt-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-ui-theme="saas"],
html[data-ui-theme="saas"] body {
  background: #f4f4f5 !important;
  background-image: radial-gradient(circle at 50% 0%, #ffffff 0%, #f4f4f5 65%) !important;
  color: #18181b !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[data-ui-theme="saas"] body::before,
html[data-ui-theme="saas"] body::after {
  display: none !important;
  content: none !important;
}

/* Transição inicial suave no carregamento da página */
body.mt-ui-loading .nav-shell,
body.mt-ui-loading .section {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden !important;
}
body.mt-ui-ready .nav-shell {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .32s var(--mt-ease-out), transform .32s var(--mt-ease-out);
}

/* Keyframes de entrada fluida e micro-interações */
@keyframes mtSectionIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mtChipCascade {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mtTabPop {
  0% { transform: scale(0.95); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes mtIconFloat {
  0% { opacity: 0; transform: translateY(6px) scale(0.85); }
  100% { opacity: 0.9; transform: translateY(0) scale(1); }
}

@keyframes mtSpin {
  to { transform: rotate(360deg); }
}

@keyframes mtShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Header único, vivo e sem moldura dupla */
.mt-tools-badge-dot,
.mt-tools-badge-dot-saas {
  display: none !important;
}

html[data-ui-theme="saas"] body .header {
  padding: 0 !important;
  margin: 14px auto 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body .header::before,
html[data-ui-theme="saas"] body .header::after {
  display: none !important;
  content: none !important;
}

html[data-ui-theme="saas"] body .header-top {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 62px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #e4e4e7 !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: box-shadow .25s var(--mt-ease-out), border-color .25s ease !important;
}

.theme-switcher,
.lang-picker,
#langPicker,
.saas-header-spacer {
  display: none !important;
}

html[data-ui-theme="saas"] body .header-top:hover {
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .07) !important;
}

html[data-ui-theme="saas"] body .saas-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none;
}

html[data-ui-theme="saas"] body .saas-brand-logo {
  height: 48px !important;
  transition: transform .28s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body .saas-brand:hover .saas-brand-logo {
  transform: translateY(-1.5px) rotate(-1.5deg) scale(1.02) !important;
}

html[data-ui-theme="saas"] body .saas-brand-lite {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f4f4f5;
  border: 1px solid #d4d4d8;
  color: #3f3f46;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: .03em;
  line-height: 1.1;
  transform: translateY(2px);
  transition: all .22s var(--mt-ease-spring);
}

html[data-ui-theme="saas"] body .saas-brand:hover .saas-brand-lite {
  background: #18181b;
  border-color: #18181b;
  color: #ffffff;
  transform: translateY(1px) scale(1.05);
}

html[data-ui-theme="xp"] .saas-brand-lite {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 2px;
  background: #1f5fd2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Seletor de tema tipo segmented control real com transição elástica */
html[data-ui-theme="saas"] body .theme-switcher {
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 7px !important;
  padding: 3px !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body .theme-option {
  min-height: 28px !important;
  padding: 0 11px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #52525b !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background-color .18s ease, color .18s ease, transform .18s var(--mt-ease-spring), box-shadow .18s ease !important;
}

html[data-ui-theme="saas"] body .theme-option:hover:not(.active) {
  color: #18181b !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body .theme-option.active,
html[data-ui-theme="saas"] body .theme-option[aria-pressed="true"] {
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important;
}

html[data-ui-theme="saas"] body .lang-current {
  border-radius: 7px !important;
  border: 1px solid #e4e4e7 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  width: 34px !important;
  height: 34px !important;
  transition: transform .2s var(--mt-ease-spring), border-color .18s ease !important;
}

html[data-ui-theme="saas"] body .lang-current:hover {
  transform: translateY(-1.5px) scale(1.04) !important;
  border-color: #a1a1aa !important;
}

/* Card principal: papel branco nítido, borda neutra */
html[data-ui-theme="saas"] body .card {
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .03) !important;
  padding: 20px 24px 28px !important;
}

/* Remover clichês de hero de IA */
html[data-ui-theme="saas"] body .workspace-kicker,
html[data-ui-theme="saas"] body .privacy-status,
html[data-ui-theme="saas"] body .nav-rail-label span,
html[data-ui-theme="saas"] body .mt-field-help {
  display: none !important;
}

html[data-ui-theme="saas"] body .workspace-intro {
  margin: 0 auto 12px !important;
  padding: 0 !important;
}

html[data-ui-theme="saas"] body .workspace-intro h1 {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  color: #18181b !important;
  margin: 0 0 3px !important;
}

html[data-ui-theme="saas"] body .workspace-intro p {
  font-size: 13px !important;
  color: #71717a !important;
  margin: 0 !important;
}

/* Busca estilo Command Bar com elevação viva no foco */
html[data-ui-theme="saas"] body #toolSearchWrap.tool-search {
  max-width: 540px !important;
  margin: 0 auto 10px !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-row {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid #d4d4d8 !important;
  background: #fafafa !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02) !important;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .24s var(--mt-ease-out), transform .24s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-row:hover {
  border-color: #a1a1aa !important;
  background: #ffffff !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-row:focus-within {
  background: #ffffff !important;
  border-color: #18181b !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08), 0 8px 20px -6px rgba(0, 0, 0, .08) !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-submit {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 4px !important;
  background: transparent !important;
  border: 0 !important;
  color: #71717a !important;
  box-shadow: none !important;
  transition: transform .2s var(--mt-ease-spring), color .15s ease !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-row:focus-within .tool-search-submit,
html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-submit:hover {
  background: transparent !important;
  color: #18181b !important;
  box-shadow: none !important;
  transform: scale(1.1) !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-row input {
  font-size: 13.5px !important;
  color: #18181b !important;
}

html[data-ui-theme="saas"] body #toolSearchWrap .tool-search-shortcut kbd,
html[data-ui-theme="saas"] body #toolLauncher kbd {
  border-radius: 4px !important;
  background: #f4f4f5 !important;
  border: 1px solid #d4d4d8 !important;
  color: #52525b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11px !important;
  box-shadow: 0 1px 0 #d4d4d8 !important;
}

html[data-ui-theme="saas"] body #toolLauncher.tool-launcher {
  border-radius: 8px !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12) !important;
  animation: mtSectionIn .2s var(--mt-ease-out) both;
}

html[data-ui-theme="saas"] body #toolLauncher .tool-launcher-option,
html[data-ui-theme="saas"] body #toolLauncher .tool-search-option {
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  transition: background-color .14s ease, transform .14s var(--mt-ease-out), border-color .14s ease !important;
}

html[data-ui-theme="saas"] body #toolLauncher .tool-launcher-option:hover,
html[data-ui-theme="saas"] body #toolLauncher .tool-launcher-option.is-highlighted,
html[data-ui-theme="saas"] body #toolLauncher .tool-search-option:hover,
html[data-ui-theme="saas"] body #toolLauncher .tool-search-option.is-active {
  background: #f4f4f5 !important;
  border-color: #e4e4e7 !important;
  transform: translateX(2px) !important;
}

html[data-ui-theme="saas"] body #toolLauncher .tool-launcher-badge,
html[data-ui-theme="saas"] body #toolLauncher .tool-search-option-category {
  border-radius: 4px !important;
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  color: #3f3f46 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 10.5px !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body #toolLauncher .tool-launcher-action {
  color: #18181b !important;
  font-weight: 600 !important;
}

/* Atalhos pessoais e favoritos com micro-interação */
html[data-ui-theme="saas"] body .tool-shortcuts {
  margin: 0 auto 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-ui-theme="saas"] body .tool-favorite-toggle,
html[data-ui-theme="saas"] body .tool-shortcut-chip {
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 4px 10px !important;
  background: transparent !important;
  border: 1px solid #e4e4e7 !important;
  color: #52525b !important;
  box-shadow: none !important;
  transition: all .2s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body .tool-favorite-toggle:hover,
html[data-ui-theme="saas"] body .tool-shortcut-chip:hover {
  background: #f4f4f5 !important;
  color: #18181b !important;
  border-color: #d4d4d8 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04) !important;
}

html[data-ui-theme="saas"] body .tool-favorite-toggle:active {
  transform: scale(0.96) !important;
}

/* Navegação de Categorias e Ferramentas com física elástica e cascata */
html[data-ui-theme="saas"] body .nav-shell {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
}

html[data-ui-theme="saas"] body .nav-rail-label {
  margin: 0 0 4px !important;
  padding: 0 !important;
}

html[data-ui-theme="saas"] body .nav-rail-label strong {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #71717a !important;
}

html[data-ui-theme="saas"] body #mainTabs.main-tabs {
  scrollbar-width: none;
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 8px !important;
  padding: 4px !important;
  margin-bottom: 10px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03) !important;
}

html[data-ui-theme="saas"] body #toolTabs.tool-tabs {
  scrollbar-width: none;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #e4e4e7 !important;
  border-radius: 0 !important;
  padding: 0 0 10px !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body #mainTabs::-webkit-scrollbar,
html[data-ui-theme="saas"] body #toolTabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  html[data-ui-theme="saas"] body #mainTabs.main-tabs,
  html[data-ui-theme="saas"] body #toolTabs.tool-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
    justify-content: center !important;
    gap: 5px !important;
    height: auto !important;
    max-height: none !important;
  }
}

html[data-ui-theme="saas"] body #mainTabs .main-tab,
html[data-ui-theme="saas"] body #mainTabs .tabbtn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #52525b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: background-color .18s ease, color .18s ease, transform .2s var(--mt-ease-spring), box-shadow .2s ease !important;
}

html[data-ui-theme="saas"] body #mainTabs .main-tab:not(.active):hover,
html[data-ui-theme="saas"] body #mainTabs .tabbtn:not(.active):hover {
  background: rgba(24, 24, 27, .06) !important;
  color: #18181b !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body #mainTabs .main-tab:active,
html[data-ui-theme="saas"] body #mainTabs .tabbtn:active {
  transform: scale(0.95) !important;
}

html[data-ui-theme="saas"] body #mainTabs .main-tab.active,
html[data-ui-theme="saas"] body #mainTabs .tabbtn.active {
  background: #ffffff !important;
  color: #18181b !important;
  font-weight: 600 !important;
  border: 1px solid #e4e4e7 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .08) !important;
  animation: mtTabPop .26s var(--mt-ease-spring);
}

html[data-ui-theme="saas"] body #toolTabs .tabbtn,
html[data-ui-theme="saas"] body #toolTabs .tool-tab {
  min-height: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid #e4e4e7 !important;
  background: #ffffff !important;
  color: #52525b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02) !important;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .22s var(--mt-ease-spring), box-shadow .2s ease !important;
  animation: mtChipCascade .24s var(--mt-ease-out) backwards;
}

html[data-ui-theme="saas"] body #toolTabs .tool-tab:not(.active):hover {
  background: #fafafa !important;
  color: #18181b !important;
  border-color: #a1a1aa !important;
  box-shadow: 0 3px 8px -2px rgba(0, 0, 0, .07) !important;
  transform: translateY(-2px) !important;
}

html[data-ui-theme="saas"] body #toolTabs .tool-tab:active {
  transform: translateY(0) scale(0.95) !important;
}

html[data-ui-theme="saas"] body #toolTabs .tabbtn.active,
html[data-ui-theme="saas"] body #toolTabs .tool-tab.active {
  background: #18181b !important;
  color: #ffffff !important;
  border-color: #18181b !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 10px -2px rgba(24, 24, 27, .28) !important;
  animation: mtTabPop .28s var(--mt-ease-spring);
}

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

/* Transição fluida ao trocar de ferramenta (.section) */
html[data-ui-theme="saas"] body .section.active,
html[data-ui-theme="saas"] body .section.show {
  animation: mtSectionIn .3s var(--mt-ease-out) both !important;
}

/* Títulos e subtítulos das ferramentas */
html[data-ui-theme="saas"] body .section > .title {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  color: #18181b !important;
  text-align: center !important;
  margin: 0 auto 4px !important;
}

html[data-ui-theme="saas"] body .section > .sub {
  font-size: 13px !important;
  color: #71717a !important;
  text-align: center !important;
  margin: 0 auto 14px !important;
}

/* Ícones das plataformas com efeito elástico vivo no hover */
html[data-ui-theme="saas"] body #tab-youtube .media-brand-title,
html[data-ui-theme="saas"] body .media-brand-title {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 2px auto 14px !important;
  gap: 10px 14px !important;
}

html[data-ui-theme="saas"] body .media-brand-title img {
  width: 22px !important;
  height: 22px !important;
  opacity: .88;
  padding: 2px !important;
  border-radius: 6px !important;
  box-sizing: content-box !important;
  transition: transform .26s var(--mt-ease-spring), opacity .2s ease, filter .2s ease, box-shadow .2s ease !important;
  animation: mtIconFloat .35s var(--mt-ease-spring) backwards;
}

html[data-ui-theme="saas"] body .media-brand-title img:nth-child(1) { animation-delay: .03s; }
html[data-ui-theme="saas"] body .media-brand-title img:nth-child(2) { animation-delay: .07s; }
html[data-ui-theme="saas"] body .media-brand-title img:nth-child(3) { animation-delay: .11s; }
html[data-ui-theme="saas"] body .media-brand-title img:nth-child(4) { animation-delay: .15s; }

html[data-ui-theme="saas"] body .media-brand-title img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.18) rotate(-4deg) !important;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12));
}

/* Downloader, Clipe e Instagram: alinhamento 640px, cantos 8px, visual sóbrio com foco vivo */
html[data-ui-theme="saas"] body .media-tool-shell,
html[data-ui-theme="saas"] body .media-tool-shell-narrow,
html[data-ui-theme="saas"] body .youtube-panel,
html[data-ui-theme="saas"] body .media-field-stack,
html[data-ui-theme="saas"] body .media-field-stack .mt-field,
html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-workbench {
  max-width: 640px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-ui-theme="saas"] body .media-field-stack .mt-field > label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #3f3f46 !important;
  margin-bottom: 6px !important;
}

html[data-ui-theme="saas"] body .youtube-url-textarea {
  width: 100% !important;
  max-width: 640px !important;
  min-height: 104px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  border: 1px solid #d4d4d8 !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02) !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, box-shadow .24s var(--mt-ease-out), transform .24s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body .youtube-url-textarea:hover {
  border-color: #a1a1aa !important;
}

html[data-ui-theme="saas"] body .youtube-url-textarea:focus {
  border-color: #18181b !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08), 0 8px 20px -6px rgba(0, 0, 0, .07) !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body .media-action-strip,
html[data-ui-theme="saas"] body .youtube-options,
html[data-ui-theme="saas"] body .clip-control-grid {
  max-width: 640px !important;
  width: 100% !important;
  margin: 8px auto 0 !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #fafafa !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, background-color .2s ease !important;
}

html[data-ui-theme="saas"] body .media-action-strip:hover,
html[data-ui-theme="saas"] body .youtube-options:hover {
  border-color: #d4d4d8 !important;
  background: #f4f4f5 !important;
}

html[data-ui-theme="saas"] body .youtube-options .youtube-inline-row {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

html[data-ui-theme="saas"] body input[type=radio],
html[data-ui-theme="saas"] body input[type=checkbox],
html[data-ui-theme="saas"] body input[type=range] {
  accent-color: #18181b !important;
  cursor: pointer;
}

/* Instagram Tools com elevação viva nos cards */
html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-pro-header {
  padding: 0 0 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  justify-items: center !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-pro-header::before,
html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-step-badge {
  display: none !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-input-panel,
html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-actions-panel {
  border-radius: 8px !important;
  border: 1px solid #e4e4e7 !important;
  background: #fafafa !important;
  box-shadow: none !important;
  padding: 14px !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-card {
  border-radius: 7px !important;
  border: 1px solid #e4e4e7 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02) !important;
  transition: transform .22s var(--mt-ease-spring), border-color .18s ease, box-shadow .22s ease, background-color .18s ease !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-card:hover {
  border-color: #18181b !important;
  background: #ffffff !important;
  transform: translateY(-2.5px) !important;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .09) !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-card:active {
  transform: translateY(0) scale(0.98) !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-icon {
  border-radius: 6px !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
  transition: transform .22s var(--mt-ease-spring), background-color .18s ease, color .18s ease !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-card:hover .instagram-action-icon {
  background: #18181b !important;
  color: #ffffff !important;
  transform: scale(1.08) rotate(-3deg) !important;
}

html[data-ui-theme="saas"] body #tab-instagram-tools .instagram-action-format {
  border-radius: 4px !important;
  background: #f4f4f5 !important;
  border: 1px solid #d4d4d8 !important;
  color: #52525b !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 10.5px !important;
}

/* Botões principais com sheen luminoso sutil, elevação elástica e clique tátil */
html[data-ui-theme="saas"] body .btn,
html[data-ui-theme="saas"] body .youtube-panel .btn,
html[data-ui-theme="saas"] body .media-action-strip .btn {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  background: #18181b !important;
  border: 1px solid #18181b !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1) !important;
  transition: background-color .18s ease, transform .22s var(--mt-ease-spring), box-shadow .22s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body .btn::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%) !important;
  transform: skewX(-20deg) !important;
  transition: left .45s var(--mt-ease-out) !important;
  pointer-events: none !important;
}

html[data-ui-theme="saas"] body .btn:hover::after {
  left: 140% !important;
}

html[data-ui-theme="saas"] body .btn:hover,
html[data-ui-theme="saas"] body .youtube-panel .btn:hover,
html[data-ui-theme="saas"] body .media-action-strip .btn:hover {
  background: #27272a !important;
  border-color: #27272a !important;
  box-shadow: 0 6px 14px -3px rgba(24, 24, 27, .25) !important;
  transform: translateY(-1.5px) !important;
}

html[data-ui-theme="saas"] body .btn:active,
html[data-ui-theme="saas"] body .youtube-panel .btn:active,
html[data-ui-theme="saas"] body .media-action-strip .btn:active {
  transform: translateY(0) scale(0.96) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1) !important;
}

html[data-ui-theme="saas"] body .btn.alt {
  background: #ffffff !important;
  border: 1px solid #d4d4d8 !important;
  color: #18181b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03) !important;
}

html[data-ui-theme="saas"] body .btn.alt:hover {
  background: #f4f4f5 !important;
  border-color: #a1a1aa !important;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, .07) !important;
  transform: translateY(-1.5px) !important;
}

html[data-ui-theme="saas"] body .media-action-strip .btn {
  min-width: 136px !important;
  min-height: 36px !important;
}

/* Dropzones com ícone animado no hover */
html[data-ui-theme="saas"] body .drop,
html[data-ui-theme="saas"] body .mt-drop {
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 1px dashed #d4d4d8 !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  box-shadow: none !important;
  transition: border-color .2s ease, background-color .2s ease, transform .24s var(--mt-ease-out), box-shadow .24s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body .drop:hover,
html[data-ui-theme="saas"] body .mt-drop:hover {
  border-color: #52525b !important;
  background: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .08) !important;
}

html[data-ui-theme="saas"] body .drop .icon {
  color: #52525b !important;
  transition: transform .28s var(--mt-ease-spring), color .2s ease !important;
}

html[data-ui-theme="saas"] body .drop:hover .icon {
  color: #18181b !important;
  transform: translateY(-4px) scale(1.1) !important;
}

html[data-ui-theme="saas"] body .mt-card-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body .mt-result-card,
html[data-ui-theme="saas"] body .mt-inline-result:not(:empty),
html[data-ui-theme="saas"] body .youtube-result:not(.hidden) {
  max-width: 640px !important;
  margin: 12px auto 0 !important;
  border-radius: 8px !important;
  border: 1px solid #e4e4e7 !important;
  background: #fafafa !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .04) !important;
  animation: mtSectionIn .25s var(--mt-ease-out) both !important;
}

html[data-ui-theme="saas"] body textarea,
html[data-ui-theme="saas"] body input[type=url],
html[data-ui-theme="saas"] body input[type=text],
html[data-ui-theme="saas"] body input[type=number],
html[data-ui-theme="saas"] body input[type=password],
html[data-ui-theme="saas"] body input[type=date],
html[data-ui-theme="saas"] body select {
  border-radius: 7px !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  color: #18181b !important;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .22s var(--mt-ease-out), transform .2s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body textarea:focus,
html[data-ui-theme="saas"] body input:focus,
html[data-ui-theme="saas"] body select:focus {
  border-color: #18181b !important;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08) !important;
  outline: none;
}

/* Telas de carregamento suaves com barra de progresso real e brilho animado */
html[data-ui-theme="saas"] body #youtubeProgressRow,
html[data-ui-theme="saas"] body .youtube-progress-row,
html[data-ui-theme="saas"] body .mt-live-progress {
  max-width: 640px !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 10px auto 6px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  background: #fafafa !important;
  border: 1px solid #e4e4e7 !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .05) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s var(--mt-ease-out);
  animation: mtSectionIn .22s var(--mt-ease-out) both;
}

html[data-ui-theme="saas"] body #youtubeProgressRow.hidden,
html[data-ui-theme="saas"] body .youtube-progress-row.hidden,
html[data-ui-theme="saas"] body .mt-live-progress.hidden {
  display: none !important;
}

html[data-ui-theme="saas"] body .youtube-progress-row.is-fading,
html[data-ui-theme="saas"] body .mt-live-progress.is-fading {
  opacity: 0;
  transform: translateY(-3px) scale(0.99);
}

html[data-ui-theme="saas"] body .youtube-progress-row .name,
html[data-ui-theme="saas"] body .mt-live-progress .name {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  gap: 10px !important;
  width: 100% !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #27272a !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mt-progress-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mt-progress-spinner {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1.75px solid #d4d4d8;
  border-top-color: #18181b;
  animation: mtSpin .7s linear infinite;
  flex-shrink: 0;
}

.mt-progress-pct {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

html[data-ui-theme="saas"] body #youtubeProgressRow .progress,
html[data-ui-theme="saas"] body .youtube-progress-row .progress,
html[data-ui-theme="saas"] body .youtube-progress-bar,
html[data-ui-theme="saas"] body .mt-live-progress .progress {
  flex: 0 0 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 8px !important;
  min-height: 8px !important;
  max-height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #e4e4e7 !important;
  overflow: hidden !important;
  position: relative !important;
  border: 0 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06) !important;
}

html[data-ui-theme="saas"] body #youtubeProgressRow .progress > div,
html[data-ui-theme="saas"] body .youtube-progress-row .progress > div,
html[data-ui-theme="saas"] body .youtube-progress-bar > div,
html[data-ui-theme="saas"] body .mt-live-progress .progress > div {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 8px !important;
  width: 0%;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #18181b 0%, #3f3f46 50%, #18181b 100%) !important;
  transition: width .28s var(--mt-ease-out) !important;
  position: relative !important;
  animation: none !important;
}

html[data-ui-theme="saas"] body .youtube-progress-row .progress > div::after,
html[data-ui-theme="saas"] body .mt-live-progress .progress > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.32) 50%, rgba(255,255,255,0) 100%);
  animation: mtShimmer 1.4s infinite;
}

/* Rodapé limpo e alinhado ao restante da identidade */
html[data-ui-theme="saas"] body #footerContent {
  box-shadow: none !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #52525b !important;
  font-size: 13px !important;
  transition: border-color .2s ease !important;
}

html[data-ui-theme="saas"] body #footerContent button,
html[data-ui-theme="saas"] body #footerContent .pix-copy-btn {
  border-radius: 5px !important;
  border: 1px solid #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  box-shadow: none !important;
  transition: all .18s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body #footerContent button:hover,
html[data-ui-theme="saas"] body #footerContent .pix-copy-btn:hover {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body #footerContent a {
  color: #18181b !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ==========================================================================
   Status das ferramentas, Fila de Arquivos, Detecção de Link e Vitrine de Resultados
   ========================================================================== */

@keyframes mtStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0); }
}

@keyframes mtStatusPulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

/* Barra superior do campo de link (status ao vivo + Colar / Limpar) */
html[data-ui-theme="saas"] body .mt-url-toolbar {
  max-width: 640px !important;
  width: 100% !important;
  margin: 0 auto 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html[data-ui-theme="saas"] body .mt-url-toolbar-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html[data-ui-theme="saas"] body .mt-url-toolbar-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #27272a !important;
  margin: 0 !important;
}

html[data-ui-theme="saas"] body #youtubeStatus,
html[data-ui-theme="saas"] body .mt-status-host {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
}

html[data-ui-theme="saas"] body #youtubeStatus.hidden,
html[data-ui-theme="saas"] body .mt-status-host.is-empty {
  display: none !important;
}

html[data-ui-theme="saas"] body .mt-url-platform-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7 !important;
  color: #52525b !important;
  transition: all .2s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body .mt-url-platform-badge.is-ready {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

html[data-ui-theme="saas"] body .mt-url-platform-badge.is-working {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

html[data-ui-theme="saas"] body .mt-url-toolbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

html[data-ui-theme="saas"] body .mt-url-mini-btn {
  appearance: none !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  color: #27272a !important;
  border-radius: 5px !important;
  padding: 3px 9px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .18s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body .mt-url-mini-btn:hover {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body .mt-url-mini-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

/* Destaque da plataforma detectada nos ícones de mídia */
html[data-ui-theme="saas"] body .media-brand-title img.is-active-platform {
  opacity: 1 !important;
  transform: translateY(-2.5px) scale(1.16) !important;
  background: #ffffff !important;
  border: 1px solid #18181b !important;
  box-shadow: 0 4px 10px -2px rgba(24, 24, 27, 0.16) !important;
}

/* Status Pill universal (#youtubeStatus, #mergeStatus, etc.) */
html[data-ui-theme="saas"] body .mt-status-pill {
  max-width: 640px !important;
  width: 100% !important;
  margin: 8px auto 0 !important;
  padding: 7px 12px !important;
  border-radius: 7px !important;
  border: 1px solid #e4e4e7 !important;
  background: #fafafa !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  transition: all .22s var(--mt-ease-out) !important;
}

html[data-ui-theme="saas"] body .mt-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #a1a1aa !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

html[data-ui-theme="saas"] body .mt-status-main {
  font-weight: 600 !important;
  color: #27272a !important;
}

html[data-ui-theme="saas"] body .mt-status-meta {
  margin-left: auto !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #71717a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-ready,
html[data-ui-theme="saas"] body .mt-url-platform-badge.is-ready {
  border-color: #bfdbfe !important;
  background: #f8fafc !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-ready .mt-status-dot,
html[data-ui-theme="saas"] body .mt-url-platform-badge.is-ready .mt-status-dot {
  background: #2563eb !important;
  animation: mtStatusPulse 1.8s infinite;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-ready .mt-status-main {
  color: #1e40af !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-working,
html[data-ui-theme="saas"] body .mt-url-platform-badge.is-working {
  border-color: #fde68a !important;
  background: #fffbeb !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-working .mt-status-dot,
html[data-ui-theme="saas"] body .mt-url-platform-badge.is-working .mt-status-dot {
  background: #f59e0b !important;
  animation: mtStatusPulseAmber 1.4s infinite;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-working .mt-status-main {
  color: #92400e !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-done {
  border-color: #a7f3d0 !important;
  background: #ecfdf5 !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-done .mt-status-dot,
html[data-ui-theme="saas"] body .mt-res-badge .mt-status-dot {
  background: #10b981 !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-done .mt-status-main {
  color: #065f46 !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-error {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-error .mt-status-dot {
  background: #ef4444 !important;
}

html[data-ui-theme="saas"] body .mt-status-pill.is-error .mt-status-main {
  color: #991b1b !important;
}

/* Dropzone com fila de arquivos ativa */
html[data-ui-theme="saas"] body .drop.has-files,
html[data-ui-theme="saas"] body .mt-drop.has-files {
  border-style: solid !important;
  border-color: #18181b !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.06) !important;
}

html[data-ui-theme="saas"] body .mt-file-summary {
  width: 100% !important;
  margin-top: 8px !important;
}

html[data-ui-theme="saas"] body .mt-file-queue {
  width: 100% !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 7px !important;
  background: #fafafa !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  animation: mtSectionIn .2s var(--mt-ease-out) both !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding-bottom: 6px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid #e4e4e7 !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #065f46 !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-badge .mt-status-dot {
  background: #10b981 !important;
}

html[data-ui-theme="saas"] body .mt-file-clear-btn {
  appearance: none !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  color: #52525b !important;
  border-radius: 5px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
}

html[data-ui-theme="saas"] body .mt-file-clear-btn:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 6px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 5px !important;
  font-size: 12px !important;
}

html[data-ui-theme="saas"] body .mt-file-ext,
html[data-ui-theme="saas"] body .mt-res-ext {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: #18181b !important;
  color: #ffffff !important;
  letter-spacing: 0.03em !important;
  flex-shrink: 0 !important;
}

html[data-ui-theme="saas"] body .mt-file-name {
  font-weight: 500 !important;
  color: #18181b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 1 auto !important;
}

html[data-ui-theme="saas"] body .mt-file-size {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11px !important;
  color: #71717a !important;
  flex-shrink: 0 !important;
}

html[data-ui-theme="saas"] body .mt-file-queue-more {
  font-size: 11px !important;
  color: #71717a !important;
  padding: 2px 4px 0 !important;
}

/* Vitrine de Resultados (arquivos, textos, cálculos e dev) */
html[data-ui-theme="saas"] body .mt-res-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  margin-bottom: 8px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
}

html[data-ui-theme="saas"] body .mt-res-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #065f46 !important;
}

html[data-ui-theme="saas"] body .mt-res-copy-btn {
  appearance: none !important;
  border: 1px solid #d4d4d8 !important;
  background: #f4f4f5 !important;
  color: #18181b !important;
  border-radius: 5px !important;
  padding: 3px 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .18s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body .mt-res-copy-btn:hover {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body .mt-res-copy-btn.is-copied {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

html[data-ui-theme="saas"] body .mt-res-filemeta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  margin-bottom: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 6px !important;
}

html[data-ui-theme="saas"] body .mt-res-filename {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #18181b !important;
  word-break: break-all !important;
}

html[data-ui-theme="saas"] body .mt-res-body {
  padding: 4px 6px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #18181b !important;
}

html[data-ui-theme="saas"] body .mt-file-result-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  margin-top: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 7px !important;
}

/* ==========================================================================
   GARANTIA DE VISIBILIDADE DOS BOTÕES DE AÇÃO E DOWNLOAD (PDF & ARQUIVOS)
   ========================================================================== */

/* Barras de ação e botões de execução sempre visíveis e destacados */
html[data-ui-theme="saas"] body .section .inputs:not(.hidden),
html[data-ui-theme="saas"] body .section .mt-legacy-controls:not(.hidden) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  max-width: 640px !important;
  margin: 12px auto 0 !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .03) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-ui-theme="saas"] body .section .inputs.mt-form-grid:not(.hidden) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body .section .mt-action-row {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e4e4e7 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Botão de escolher arquivo (secundário/claro) vs Botão de executar (primário/preto) */
html[data-ui-theme="saas"] body .drop .mt-file-picker-button,
html[data-ui-theme="saas"] body .mt-drop .mt-file-picker-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 16px !important;
  background: #ffffff !important;
  color: #18181b !important;
  border: 1px solid #d4d4d8 !important;
  font-weight: 600 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-ui-theme="saas"] body .drop .mt-file-picker-button:hover,
html[data-ui-theme="saas"] body .mt-drop .mt-file-picker-button:hover {
  background: #f4f4f5 !important;
  border-color: #18181b !important;
}

html[data-ui-theme="saas"] body .section .mt-action-row .btn,
html[data-ui-theme="saas"] body #runOcr,
html[data-ui-theme="saas"] body #runMerge,
html[data-ui-theme="saas"] body #runRotate,
html[data-ui-theme="saas"] body #runSplit,
html[data-ui-theme="saas"] body #runCompress,
html[data-ui-theme="saas"] body #runWord2Pdf,
html[data-ui-theme="saas"] body #runProtect,
html[data-ui-theme="saas"] body #runPdf2Png,
html[data-ui-theme="saas"] body #runRemoveBg,
html[data-ui-theme="saas"] body #runVideo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  min-width: 190px !important;
  padding: 9px 20px !important;
  background: #18181b !important;
  color: #ffffff !important;
  border: 1px solid #18181b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Containers de resultado e botões de download SEMPRE visíveis quando preenchidos */
html[data-ui-theme="saas"] body #mergeResult:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #rotateOut:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #list:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #splitList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #compressList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #word2pdfList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #protectList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #pdf2pngList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #removeBgList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body #videoList:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body .section > .note.mt-extra-result:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body .section > .note.mt-output-zone:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body .mt-result-showcase:not(.hidden):not(:empty),
html[data-ui-theme="saas"] body .mt-output-zone:not(.hidden):not(:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 640px !important;
  margin: 14px auto 0 !important;
  padding: 14px !important;
  border-radius: 8px !important;
  border: 1px solid #d4d4d8 !important;
  background: #fafafa !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .06) !important;
}

html[data-ui-theme="saas"] body .mt-result-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 10px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-ui-theme="saas"] body .mt-result-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 18px !important;
  text-decoration: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==========================================================================
   RELÓGIO: CRONÔMETRO E TEMPORIZADOR (VISOR DIGITAL, VOLTAS, PRESETS & TELA CHEIA)
   ========================================================================== */

html[data-ui-theme="saas"] body #tab-calc-stopwatch .mt-card-form,
html[data-ui-theme="saas"] body #tab-calc-timer .mt-card-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: 100% !important;
}

html[data-ui-theme="saas"] body .mt-clock-visor-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 18px 20px 22px !important;
  border-radius: 10px !important;
  background: #09090b !important;
  border: 1px solid #27272a !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5), 0 4px 14px -4px rgba(0, 0, 0, .14) !important;
}

html[data-ui-theme="saas"] body .mt-clock-visor-card.is-finished {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .25), inset 0 2px 10px rgba(0, 0, 0, .5) !important;
}

html[data-ui-theme="saas"] body .mt-clock-visor-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: #18181b !important;
  border: 1px solid #27272a !important;
  color: #e4e4e7 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge .mt-status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #a1a1aa !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge.is-working .mt-status-dot {
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge.is-paused .mt-status-dot {
  background: #f59e0b !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge.is-done {
  background: rgba(239, 68, 68, .18) !important;
  border-color: #ef4444 !important;
  color: #fecaca !important;
}

html[data-ui-theme="saas"] body .mt-clock-status-badge.is-done .mt-status-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 8px #ef4444 !important;
}

html[data-ui-theme="saas"] body .mt-clock-obs-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  background: #18181b !important;
  border: 1px solid #27272a !important;
  color: #a1a1aa !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease !important;
}

html[data-ui-theme="saas"] body .mt-clock-obs-pill:hover {
  color: #ffffff !important;
  border-color: #52525b !important;
  background: #27272a !important;
}

html[data-ui-theme="saas"] body .mt-clock-inline-display {
  --clock-color: #39ff14;
  font-family: 'Digital7Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: clamp(36px, 7.5vw, 68px) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--clock-color, #39ff14) !important;
  text-shadow: 0 0 10px rgba(57, 255, 20, .28) !important;
  user-select: all !important;
  text-align: center !important;
}

html[data-ui-theme="saas"] body .mt-clock-main-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-ui-theme="saas"] body .mt-clock-main-actions .btn {
  min-width: 116px !important;
  min-height: 38px !important;
}

html[data-ui-theme="saas"] body .mt-clock-presets {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

html[data-ui-theme="saas"] body .mt-clock-preset-btn {
  appearance: none !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #d4d4d8 !important;
  background: #ffffff !important;
  color: #27272a !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .18s var(--mt-ease-spring) !important;
}

html[data-ui-theme="saas"] body .mt-clock-preset-btn:hover {
  border-color: #18181b !important;
  transform: translateY(-1px) !important;
}

html[data-ui-theme="saas"] body .mt-clock-preset-btn.is-active {
  background: #18181b !important;
  border-color: #18181b !important;
  color: #ffffff !important;
}

html[data-ui-theme="saas"] body .mt-clock-laps {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  max-height: 210px !important;
  overflow-y: auto !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
}

html[data-ui-theme="saas"] body .mt-clock-laps.hidden {
  display: none !important;
}

html[data-ui-theme="saas"] body .mt-clock-lap-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  background: #fafafa !important;
  border: 1px solid #f4f4f5 !important;
  font-size: 12.5px !important;
  font-variant-numeric: tabular-nums !important;
}

html[data-ui-theme="saas"] body .mt-clock-lap-num {
  font-weight: 600 !important;
  color: #52525b !important;
}

html[data-ui-theme="saas"] body .mt-clock-lap-split {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  color: #71717a !important;
  font-size: 12px !important;
}

html[data-ui-theme="saas"] body .mt-clock-lap-total {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  color: #18181b !important;
  font-weight: 700 !important;
}

html[data-ui-theme="saas"] body .mt-clock-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 4px !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
}

html[data-ui-theme="saas"] body .mt-clock-fs-exit {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 2147483003 !important;
  background: rgba(24, 24, 27, .88) !important;
  color: #ffffff !important;
  border: 1px solid #3f3f46 !important;
}

html[data-ui-theme="saas"] body #out_calc_sw,
html[data-ui-theme="saas"] body #out_calc_timer {
  display: none !important;
}




