/* Kamale.ad Thumbnail Studio
   Interface tokens and component styles. */

:root {
  color-scheme: light;
  --brand-purple: #4b00b9;
  --brand-purple-strong: #360082;
  --brand-purple-soft: #7a2cff;
  --brand-yellow: #ffd34f;
  --brand-black: #070707;

  --canvas: #f4f2f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #f0edf5;
  --surface-strong: #e7e1ef;
  --ink: #121016;
  --text: #342f3b;
  --muted: #6e6876;
  --faint: #716a78;
  --line: rgba(34, 22, 45, .12);
  --line-strong: rgba(34, 22, 45, .24);
  --shadow: 0 24px 70px rgba(42, 22, 61, .13);
  --shadow-soft: 0 10px 28px rgba(42, 22, 61, .08);

  --success: #17854a;
  --warning: #a66b00;
  --danger: #bc3140;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1360px;
}

html.dark {
  color-scheme: dark;
  --canvas: #070707;
  --surface: #0d0d0f;
  --surface-raised: #121115;
  --surface-subtle: #17161b;
  --surface-strong: #201e25;
  --ink: #f7f3fb;
  --text: #d7d1dd;
  --muted: #99919f;
  --faint: #81798a;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .20);
  --shadow: 0 30px 90px rgba(0, 0, 0, .48);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .28);
  --success: #58d68d;
  --warning: #ffd34f;
  --danger: #ff7985;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.app-container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--brand-yellow);
  color: var(--brand-purple-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 3px;
}
html:not(.dark) :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline-color: var(--brand-purple);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  text-decoration: none;
}
.brand-mark-wrap {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-purple);
  flex: 0 0 auto;
}
.brand-mark-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-link {
  position: relative;
  padding: 25px 0 23px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color .16s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link-active { color: var(--ink); }
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-yellow);
}
html:not(.dark) .nav-link-active::after { background: var(--brand-purple); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.mobile-tools { display: none; }
.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--brand-yellow);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.header-cta:hover {
  background: var(--brand-yellow);
  color: var(--brand-purple-strong);
  transform: translateY(-1px);
}
html:not(.dark) .header-cta { border-color: var(--brand-purple); }
html:not(.dark) .header-cta:hover { background: var(--brand-purple); color: #fff; }

.utility-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .16s ease, background .16s ease;
}
.utility-button:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.utility-button-square { width: 40px; justify-content: center; padding: 0; }
.utility-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.utility-icon svg, .menu-icon, .chevron {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chevron { width: 13px; height: 13px; }
.menu-icon { width: 19px; height: 19px; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 186px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
}
.dropdown-menu:not(.hidden) button {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.dropdown-menu:not(.hidden) button:hover { background: var(--surface-subtle); }
.dropdown-menu:not(.hidden) button span { color: var(--brand-purple-soft); font-size: 10px; font-weight: 700; }
html.dark .dropdown-menu:not(.hidden) button span { color: var(--brand-yellow); }
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav:not(.hidden) nav { display: grid; padding-block: 10px 16px; }
.mobile-nav:not(.hidden) .nav-link { padding: 11px 0; }
.mobile-nav:not(.hidden) .nav-link-active::after { display: none; }

/* Main layout */
.app-main { padding-block: 40px 72px; }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(310px, .72fr) minmax(620px, 1.55fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.brand-panel {
  position: relative;
  min-height: 620px;
  padding: 34px 34px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--brand-purple);
  color: #fff;
  isolation: isolate;
}
.brand-panel-copy { position: relative; z-index: 2; margin-top: auto; padding-bottom: 32px; }
.hero-title {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 6px;
  margin-top: 22px;
  background: var(--brand-yellow);
}
.hero-subtitle {
  max-width: 44ch;
  margin: 22px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.75;
}

.workspace-panel { padding: 32px 34px 28px; min-width: 0; }
.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-purple);
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
html.dark .section-kicker { color: var(--brand-yellow); }
.workspace-head h2, .section-heading h2, .faq-intro h2, .delivery-head h3, .empty-intro h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -.03em;
  font-weight: 600;
}
.workspace-head h2 { font-size: 24px; line-height: 1.15; }
.trust-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.trust-label svg { width: 17px; height: 17px; fill: none; stroke: var(--success); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.input-details > summary {
  list-style: none;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.input-details > summary::-webkit-details-marker { display: none; }
.input-details > summary::before { content: '+'; margin-right: 8px; color: var(--brand-purple); }
html.dark .input-details > summary::before { color: var(--brand-yellow); }
.input-details[open] > summary::before { content: '−'; }
.input-stack { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.18fr); align-items: stretch; }
.input-module {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.input-module-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.module-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-purple) 10%, var(--surface-subtle));
  color: var(--brand-purple);
}
html.dark .module-icon { background: rgba(255,211,79,.09); color: var(--brand-yellow); }
.module-icon svg, .drop-graphic svg, .search-control svg, .delivery-actions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.input-module-head label { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.input-module-head > div > span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.input-separator { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 9px; font-weight: 600; text-transform: uppercase; }
.input-separator::before, .input-separator::after { content: ''; width: 1px; height: 28%; background: var(--line); }
.input-separator span { padding: 8px 0; writing-mode: vertical-rl; transform: rotate(180deg); }

.dropzone {
  min-height: 164px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.dropzone:hover, .dropzone.arrastando { border-color: var(--brand-purple); background: color-mix(in srgb, var(--brand-purple) 5%, var(--surface-subtle)); }
html.dark .dropzone:hover, html.dark .dropzone.arrastando { border-color: var(--brand-yellow); background: rgba(255,211,79,.045); }
.drop-graphic {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
}
.drop-copy { display: grid; justify-items: center; gap: 8px; }
.drop-copy > span { color: var(--muted); font-size: 10px; }
.field-help { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.field-help code { color: var(--text); }
.link-textarea, .urls-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink);
  resize: vertical;
  transition: border-color .16s ease, background .16s ease;
}
.link-textarea { min-height: 164px; padding: 14px; font-size: 11px; line-height: 1.7; }
.link-textarea::placeholder { color: var(--faint); }
.link-textarea:focus, .urls-box:focus { border-color: var(--brand-purple); background: var(--surface); }
html.dark .link-textarea:focus, html.dark .urls-box:focus { border-color: var(--brand-yellow); }
.inline-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.inline-action-row .field-help { margin: 0; }

.resume-panel {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 11px;
}
.resume-panel .campo-busca { width: auto; min-width: 190px; }

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.primary-action-group, .secondary-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action-hint { color: var(--muted); font-size: 10px; }

.btn-brand, .btn-secondary:not(.hidden), .btn-outline, .btn-soft, .btn-quiet, .btn-link, .filtro-chip, .icon-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-brand {
  min-width: 104px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--brand-yellow);
  background: var(--brand-yellow);
  color: var(--brand-purple-strong);
  font-size: 12px;
  font-weight: 700;
}
.btn-brand:hover { transform: translateY(-1px); background: #ffe078; }
.btn-secondary {
  padding: 0 16px;
  border: 1px solid var(--brand-purple);
  background: var(--brand-purple);
  color: #fff;
  font-size: 11px;
}
html.dark .btn-secondary { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--brand-purple-strong); }
.btn-outline {
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.btn-outline:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
html.dark .btn-outline:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.btn-soft {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
}
.btn-soft:hover { border-color: var(--line-strong); background: var(--surface); }
.btn-quiet, .btn-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.btn-quiet { padding: 0 10px; }
.btn-link { min-height: 34px; padding: 0 2px; border-radius: 0; border-bottom: 1px solid currentColor; }
.btn-link:hover, .btn-quiet:hover { color: var(--ink); }
button:disabled, .opacity-60 { opacity: .56; cursor: not-allowed; }

.turnstile-wrap { min-height: 1px; margin-top: 12px; }
.turnstile-wrap:empty { display: none; }

/* Progress */
.progress-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
#progInfo { color: var(--text); font-size: 11px; }
.progress-value { color: var(--ink); font-size: 20px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
#progBar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-purple), var(--brand-yellow)); transition: width .42s cubic-bezier(.22,1,.36,1); }
#progSteps { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 16px; }
#progSteps .step {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 20px 4px 0;
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
#progSteps .step:not(:last-child)::after { content: ''; position: absolute; right: 6px; width: 8px; height: 1px; background: var(--line-strong); }
#progSteps .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-strong); }
#progSteps .step.done { color: var(--muted); }
#progSteps .step.done .dot { background: var(--success); }
#progSteps .step.on { color: var(--ink); }
#progSteps .step.on .dot { background: var(--brand-yellow); box-shadow: 0 0 0 4px rgba(255,211,79,.13); }
html:not(.dark) #progSteps .step.on .dot { background: var(--brand-purple); box-shadow: 0 0 0 4px rgba(75,0,185,.10); }
.progress-count { margin-top: 5px; color: var(--muted); font-size: 9px; }

/* Results */
.results-shell { margin-top: 58px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}
.section-heading-copy { display: flex; align-items: flex-start; gap: 18px; }
.section-heading h2 { font-size: 29px; line-height: 1; }
.result-actions { display: flex; align-items: center; gap: 14px; }
.result-summary { color: var(--muted); font-size: 10px; }

.summary-metrics { margin-top: 18px; }
.metricas {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.metrica {
  flex: 1 1 0;
  min-width: 110px;
  padding: 16px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.metrica:last-child { border-right: 0; }
.metrica:hover, .metrica[aria-pressed="true"] { background: var(--surface-subtle); }
.metrica[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--brand-purple); }
html.dark .metrica[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--brand-yellow); }
.metrica .mv { display: block; font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrica .ml { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.metrica[data-filtro="ok"] .mv { color: var(--success); }
.metrica[data-filtro="provisorio"] .mv { color: var(--warning); }
.metrica[data-filtro="falhou"] .mv { color: var(--danger); }

.agrupamento-falhas { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.agrupamento-falhas > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }

.results-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.search-control { position: relative; flex: 1; min-width: 220px; }
.search-control svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); }
.campo-busca {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}
.search-control .campo-busca { padding-left: 38px; }
.campo-busca::placeholder { color: var(--faint); }
.filtro-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
}
.filtro-chip:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.filtro-chip[aria-checked="true"], .pagina-ativa { border-color: var(--brand-purple); color: var(--brand-purple); background: color-mix(in srgb, var(--brand-purple) 7%, var(--surface)); }
html.dark .filtro-chip[aria-checked="true"], html.dark .pagina-ativa { border-color: var(--brand-yellow); color: var(--brand-yellow); background: rgba(255,211,79,.05); }

/* Table */
.tb-wrap {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overscroll-behavior: contain;
}
.tb-wrap.tb-limitada { overflow: auto; max-height: min(68vh, 760px); }
.tb-wrap.tb-natural { overflow: visible; max-height: none; }
.tb { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 11px; }
.tb th {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--muted);
  text-align: left;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.tb td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.tb tbody tr:last-child td { border-bottom: 0; }
.tb tbody tr:hover td { background: var(--surface-subtle); }
.tb tbody tr[data-sel="1"] td { background: color-mix(in srgb, var(--brand-purple) 7%, var(--surface)); }
html.dark .tb tbody tr[data-sel="1"] td { background: rgba(255,211,79,.045); }
.tb tbody tr[data-sel="1"] td:first-child { box-shadow: inset 3px 0 0 var(--brand-purple); }
html.dark .tb tbody tr[data-sel="1"] td:first-child { box-shadow: inset 3px 0 0 var(--brand-yellow); }
.tb .num-col { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tb tr[data-st="falhou"] .num-col { color: var(--danger); }
.tb .trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb .url-cdn { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; }
.tb a { text-decoration: none; }
.tb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb-conf td { padding: 15px 14px; }
.thumb { width: 64px; height: 36px; display: block; object-fit: cover; border-radius: 7px; background: var(--surface-strong); }
.tb-conf .thumb { width: 96px; height: 54px; }
.thumb-link { display: block; width: fit-content; border-radius: 7px; transition: transform .16s ease; }
.thumb-link:hover { transform: scale(1.04); }
.thumb-vazia { background: var(--surface-strong); }
.acao-linha { opacity: .55; }
tr:hover .acao-linha, tr:focus-within .acao-linha, .acao-linha:focus-visible { opacity: 1; }

.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.st-ok { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.st-provisorio { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.st-falhou { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.st-processando { color: var(--text); background: var(--surface-subtle); }
.st-na_fila { color: var(--muted); background: var(--surface-subtle); }
.plat-icon { width: 17px; height: 17px; display: inline-block; color: var(--brand-purple); }
html.dark .plat-icon { color: var(--brand-yellow); }

.pagination { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.paginacao-acoes, .paginas-numeradas { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pagination-meta { color: var(--muted); font-size: 9px; }
.pagination-meta .campo-busca { width: auto; min-width: 86px; }

.delivery-panel {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-purple);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
html.dark .delivery-panel { border-left-color: var(--brand-yellow); }
.delivery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.delivery-head h3 { font-size: 20px; }
.delivery-head p { max-width: 62ch; margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.delivery-actions { display: flex; align-items: center; gap: 12px; }
.delivery-actions > span { color: var(--muted); font-size: 10px; }
.delivery-actions svg { width: 15px; height: 15px; }
.urls-box { margin-top: 17px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.alignment-option { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.urls-warning { margin: 8px 0 0; color: var(--warning); font-size: 9px; }

/* Empty state */
.empty-state {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.65fr);
  gap: 46px;
  margin-top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-intro { padding-right: 24px; border-right: 1px solid var(--line); }
.empty-intro h3 { max-width: 13ch; font-size: 26px; line-height: 1.15; }
.empty-intro p { max-width: 36ch; margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.empty-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.empty-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 0 0 20px; position: relative; }
.empty-steps li:last-child { padding-bottom: 0; }
.empty-steps li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 28px; bottom: 0; width: 1px; background: var(--line); }
.empty-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--brand-purple);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html.dark .empty-step-number { color: var(--brand-yellow); }
.empty-steps strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; }
.empty-steps p { max-width: 60ch; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.channels-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.channels-row > span { color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.canais { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.canal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 9px;
  font-weight: 500;
}
.canal .plat-icon { width: 14px; height: 14px; }
.result-card-grid { display: none; }

/* Mobile result cards generated by JS */
#grid .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
#grid .card img { border-radius: var(--radius-sm); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 9px;
  text-decoration: none;
}
.icon-btn { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); background: var(--surface-subtle); color: var(--text); font-size: 9px; }
.meta-link { display: block; margin-top: 4px; color: var(--muted); text-decoration: none; }
.meta-link:hover { color: var(--brand-purple); }
html.dark .meta-link:hover { color: var(--brand-yellow); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-shell {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);
  gap: 70px;
  margin-top: 68px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.faq-intro h2 { max-width: 12ch; margin-top: 8px; font-size: 30px; line-height: 1.1; }
.faq-intro p { max-width: 34ch; margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.faq-lista { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--brand-purple); font-size: 18px; font-weight: 300; }
html.dark .faq-item summary::after { color: var(--brand-yellow); }
.faq-item[open] summary::after { content: '−'; }
.faq-resp { max-width: 68ch; margin: -2px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.75; }

/* Batch action bar */
.batch-action-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  width: min(1040px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.batch-action-bar > span { margin-right: 8px; color: var(--ink); font-size: 10px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-main { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 13px; max-width: 370px; }
.footer-brand strong { display: block; font-size: 13px; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: var(--muted); font-size: 9px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-base { border-top: 1px solid var(--line); color: var(--faint); font-size: 8px; text-align: center; }
.footer-base .app-container { padding-block: 14px; }

.theme-button { min-width: 92px; }
.t-meta { color: var(--muted); font-size: 10px; font-weight: 500; }

/* Checkboxes */
input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; min-height: 18px; accent-color: var(--brand-purple); cursor: pointer; }
html.dark input[type="checkbox"] { accent-color: var(--brand-yellow); }

/* Technical fallback */
#serverOut { max-height: 340px; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
[hidden] { display: none !important; }
.sem-tailwind .hidden { display: none; }

/* Compact state after a batch exists */
.hero-shell:has(#painelEntrada:not([open])) { grid-template-columns: minmax(250px, .48fr) minmax(0, 1.52fr); }
.hero-shell:has(#painelEntrada:not([open])) .brand-panel { min-height: 270px; }
.hero-shell:has(#painelEntrada:not([open])) .brand-panel-copy { padding-bottom: 18px; }
.hero-shell:has(#painelEntrada:not([open])) .hero-title { font-size: 34px; }
.hero-shell:has(#painelEntrada:not([open])) .workspace-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 1180px) {
  .desktop-nav { gap: 18px; }
  .desktop-nav .nav-link { font-size: 11px; }
  .header-cta { display: none; }
  .hero-shell { grid-template-columns: minmax(280px, .66fr) minmax(560px, 1.34fr); }
  .brand-panel { padding-inline: 28px; }
  .workspace-panel { padding-inline: 28px; }
}

@media (max-width: 980px) {
  .app-container { width: min(100% - 32px, var(--container)); }
  .desktop-nav, .desktop-tools { display: none; }
  .mobile-tools { display: flex; justify-content: flex-end; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-shell, .hero-shell:has(#painelEntrada:not([open])) { grid-template-columns: 1fr; }
  .brand-panel, .hero-shell:has(#painelEntrada:not([open])) .brand-panel { min-height: 390px; }
  .hero-title, .hero-shell:has(#painelEntrada:not([open])) .hero-title { max-width: 14ch; font-size: clamp(36px, 8vw, 52px); }
  .input-stack { grid-template-columns: 1fr; gap: 12px; }
  .input-separator { height: 20px; }
  .input-separator::before, .input-separator::after { width: 28%; height: 1px; }
  .input-separator span { padding: 0 10px; writing-mode: initial; transform: none; }
  .empty-state { grid-template-columns: 1fr; }
  .empty-intro { padding-right: 0; padding-bottom: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .empty-intro h3 { max-width: 20ch; }
  .faq-shell { grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 40px; }
  .footer-main { align-items: flex-start; padding-block: 30px; }
}

@media (max-width: 760px) {
  .app-main { padding-block: 22px 54px; }
  .brand-copy span { display: none; }
  .brand-panel { min-height: 360px; padding: 26px 22px 22px; }
  .workspace-panel { padding: 24px 18px 20px; }
  .workspace-head { margin-bottom: 20px; }
  .trust-label span { display: none; }
  .input-module { padding: 15px; }
  .composer-actions { align-items: flex-start; flex-direction: column; }
  .primary-action-group, .secondary-action-group { width: 100%; }
  .secondary-action-group { justify-content: space-between; }
  .btn-brand { width: 100%; }
  .section-heading { align-items: flex-start; }
  .result-actions { align-items: flex-end; flex-direction: column; }
  .metricas { overflow-x: auto; }
  .metrica { min-width: 124px; }
  .tb-wrap, .pagination { display: none !important; }
  .result-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .delivery-head { align-items: flex-start; flex-direction: column; }
  .empty-state { padding: 24px 18px; gap: 26px; }
  .faq-shell { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .faq-intro h2 { max-width: none; }
  .footer-main { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .batch-action-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .batch-action-bar > * { flex: 0 0 auto; }
}

@media (max-width: 520px) {
  .app-container { width: min(100% - 22px, var(--container)); }
  .header-inner { min-height: 64px; }
  .brand-mark-wrap { width: 34px; height: 34px; }
  .brand-copy strong { font-size: 12px; }
  .mobile-tools { gap: 5px; }
  .utility-button-square { width: 36px; min-height: 36px; }
  .hero-shell { border-radius: 18px; }
  .brand-panel { min-height: 340px; }
  .hero-title { font-size: 38px; }
  .workspace-head h2 { font-size: 21px; }
  .dropzone { min-height: 150px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading-copy { gap: 10px; }
  .result-actions .result-summary { display: none; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .search-control { min-width: 100%; }
  .results-toolbar .filtro-chip { align-self: flex-start; }
  .empty-intro h3 { font-size: 22px; }
  .empty-steps li { grid-template-columns: 38px 1fr; gap: 12px; }
  .empty-step-number { width: 30px; height: 30px; }
  .channels-row { align-items: flex-start; flex-direction: column; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Refinamento editorial e de legibilidade
   Mantém a identidade Kamale.ad, remove ornamentos genéricos e amplia a leitura. */
:root {
  --container: 1280px;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 22px 60px rgba(31, 15, 47, .11);
  --shadow-soft: 0 8px 24px rgba(31, 15, 47, .06);
}

body {
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: -.004em;
}
body::before { display: none; }

.app-container { width: min(var(--container), calc(100% - 56px)); }

/* Cabeçalho institucional: preto em ambos os temas, como elemento de marca. */
.site-header {
  border-bottom-color: rgba(255,255,255,.10);
  background: rgba(7,7,7,.96);
  backdrop-filter: blur(16px) saturate(1.1);
}
.header-inner { min-height: 76px; gap: 30px; }
.brand-copy strong { color: #fff; font-size: 15px; }
.brand-copy span { color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .08em; }
.desktop-nav { gap: 30px; }
.nav-link { padding: 27px 0 25px; color: rgba(255,255,255,.67); font-size: 13px; }
.nav-link:hover, .nav-link-active { color: #fff; }
.nav-link-active::after, html:not(.dark) .nav-link-active::after { background: var(--brand-yellow); }
.header-cta {
  min-height: 44px;
  padding-inline: 18px;
  border-color: var(--brand-yellow);
  color: #fff;
  font-size: 13px;
}
html:not(.dark) .header-cta { border-color: var(--brand-yellow); }
.header-cta:hover, html:not(.dark) .header-cta:hover { background: var(--brand-yellow); color: var(--brand-purple-strong); }
.utility-button {
  min-height: 44px;
  padding-inline: 13px;
  border-color: rgba(255,255,255,.13);
  background: #121214;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.utility-button:hover { border-color: rgba(255,255,255,.28); background: #19191c; }
.utility-button-square { width: 44px; min-width: 44px; padding: 0; }
.utility-icon { width: 18px; height: 18px; }
.utility-icon svg, .menu-icon, .chevron { display: block; }
.dropdown-menu { top: calc(100% + 10px); min-width: 196px; padding: 7px; }
.dropdown-menu:not(.hidden) button { min-height: 44px; font-size: 13px; }
.dropdown-menu:not(.hidden) button span { font-size: 11px; }
.mobile-nav { border-top-color: rgba(255,255,255,.10); background: #0b0b0d; }
.mobile-nav:not(.hidden) .nav-link { color: rgba(255,255,255,.82); font-size: 14px; }

/* Hero: marca forte, sem grids, pixels, números cenográficos ou marcas d'água. */
.app-main { padding-block: 48px 84px; }
.hero-shell {
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.52fr);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.brand-panel {
  min-height: 590px;
  padding: 42px 40px 38px;
  background: var(--brand-purple);
}
.brand-panel-copy { margin-top: auto; padding-bottom: 28px; }
.hero-title {
  max-width: 10ch;
  font-size: clamp(42px, 3.7vw, 54px);
  line-height: 1.02;
  letter-spacing: -.042em;
  font-weight: 650;
}
.hero-title::after { width: 50px; height: 4px; margin-top: 24px; }
.hero-subtitle {
  max-width: 39ch;
  margin-top: 22px;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.68;
}
.hero-benefits {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-benefits li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.45; }
.hero-benefits svg { width: 20px; height: 20px; display: block; fill: none; stroke: var(--brand-yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.workspace-panel { padding: 40px 42px 34px; }
.workspace-head { align-items: center; margin-bottom: 26px; }
.workspace-head h2 { font-size: 29px; line-height: 1.12; }
.workspace-lead, .section-lead { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.trust-label { gap: 8px; font-size: 13px; font-weight: 500; }
.trust-label svg { width: 19px; height: 19px; display: block; flex: 0 0 19px; }

.input-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 24px; }
.input-separator { display: none; }
.input-module { padding: 22px; border-radius: var(--radius-md); }
.input-module-head { align-items: center; gap: 13px; margin-bottom: 16px; }
.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
}
.module-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
  transform: none;
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
}
.module-icon-link svg { width: 19px; height: 19px; }
.input-module-head label { font-size: 14px; font-weight: 650; }
.input-module-head > div > span { margin-top: 3px; font-size: 12px; line-height: 1.4; }
.dropzone { min-height: 184px; gap: 14px; padding: 24px; }
.drop-graphic { width: 44px; height: 44px; }
.drop-graphic svg { width: 20px; height: 20px; display: block; }
.drop-copy > span { font-size: 12px; }
.field-help { margin-top: 12px; font-size: 12px; line-height: 1.58; }
.link-textarea { min-height: 184px; padding: 15px 16px; font-size: 14px; line-height: 1.62; }
.inline-action-row { gap: 12px; margin-top: 12px; }
.resume-panel { font-size: 13px; }
.composer-actions { margin-top: 26px; padding-top: 24px; }
.action-hint { font-size: 12px; }

.btn-brand, .btn-secondary:not(.hidden), .btn-outline, .btn-soft, .btn-quiet, .btn-link, .filtro-chip, .icon-btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.btn-brand { min-width: 132px; min-height: 48px; padding-inline: 24px; font-size: 14px; }
.btn-secondary { padding-inline: 17px; font-size: 13px; }
.btn-outline, .btn-soft { padding-inline: 15px; font-size: 13px; }
.btn-quiet, .btn-link { font-size: 12px; }
.btn-link { min-height: 40px; }

/* Progresso: linguagem de processo legível, sem microtexto em caixa alta. */
.progress-panel { padding: 20px; }
#progInfo { font-size: 13px; }
.progress-value { font-size: 24px; }
#progSteps .step { padding-right: 24px; font-size: 11px; letter-spacing: 0; text-transform: none; }
#progSteps .dot { width: 7px; height: 7px; }
.progress-count { margin-top: 7px; font-size: 12px; }

/* Resultados */
.results-shell { margin-top: 64px; }
.section-heading { align-items: flex-end; padding-bottom: 20px; }
.section-heading-copy { display: block; }
.section-heading h2 { font-size: 34px; line-height: 1.08; }
.result-summary { font-size: 13px; }
.metricas { border-radius: var(--radius-md); }
.metrica { padding: 19px 20px; }
.metrica .mv { font-size: 27px; }
.metrica .ml { margin-top: 8px; font-size: 11px; letter-spacing: .04em; text-transform: none; }
.agrupamento-falhas > div { padding: 12px 14px; font-size: 13px; }
.results-toolbar { gap: 12px; margin-top: 18px; }
.search-control svg { left: 14px; width: 18px; height: 18px; display: block; }
.campo-busca { min-height: 44px; padding-inline: 14px; font-size: 13px; }
.search-control .campo-busca { padding-left: 44px; }
.filtro-chip { min-height: 42px; padding-inline: 14px; font-size: 12px; }
.tb-wrap { border-radius: var(--radius-md); box-shadow: none; }
.tb { font-size: 13px; }
.tb th { padding: 13px 12px; font-size: 11px; letter-spacing: .02em; text-transform: none; }
.tb td { padding: 12px; }
.tb .url-cdn { font-size: 12px; }
.st-chip { min-height: 28px; padding-inline: 9px; font-size: 11px; }
.plat-icon { width: 19px; height: 19px; display: block; vertical-align: middle; }
.pagination-meta { font-size: 12px; }
.delivery-panel { padding: 24px; box-shadow: none; }
.delivery-head h3 { font-size: 24px; }
.delivery-head p { margin-top: 8px; font-size: 13px; line-height: 1.55; }
.delivery-actions > span { font-size: 12px; }
.delivery-actions svg { width: 17px; height: 17px; display: block; }
.urls-box { font-size: 12px; }
.alignment-option, .urls-warning { font-size: 12px; }

/* Estado vazio: instrução humana, sem cenografia de timeline. */
.empty-state {
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.55fr);
  gap: 50px;
  padding: 38px;
  border-radius: var(--radius-md);
}
.empty-intro { padding-right: 30px; }
.empty-intro h3 { max-width: 14ch; font-size: 30px; line-height: 1.16; }
.empty-intro p { max-width: 34ch; margin-top: 15px; font-size: 14px; line-height: 1.62; }
.empty-steps { gap: 20px; }
.empty-steps li { grid-template-columns: 34px 1fr; gap: 16px; padding: 0; }
.empty-steps li:not(:last-child)::after { display: none; }
.empty-step-number {
  width: 34px;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-purple);
  font-size: 25px;
  line-height: 1;
  font-weight: 650;
}
html.dark .empty-step-number { color: var(--brand-yellow); }
.empty-steps strong { margin-top: 0; font-size: 15px; }
.empty-steps p { margin-top: 6px; font-size: 13px; line-height: 1.58; }
.channels-row { gap: 18px; padding-top: 26px; }
.channels-row > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.canais { gap: 10px 16px; }
.canal { min-height: 34px; padding: 0; border: 0; border-radius: 0; font-size: 12px; }
.canal .plat-icon { width: 17px; height: 17px; }
.chip, .icon-btn { min-height: 40px; font-size: 12px; }

/* FAQ e rodapé */
.faq-shell { grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr); gap: 72px; margin-top: 76px; padding-top: 40px; }
.faq-intro h2 { max-width: 12ch; margin-top: 0; font-size: 34px; }
.faq-intro p { max-width: 35ch; margin-top: 16px; font-size: 14px; line-height: 1.62; }
.faq-item summary { min-height: 68px; font-size: 14px; }
.faq-item summary::after { font-size: 22px; }
.faq-resp { margin-bottom: 24px; font-size: 14px; line-height: 1.68; }
.batch-action-bar > span { font-size: 12px; }
.site-footer { border-top-color: rgba(255,255,255,.10); background: #08080a; color: #fff; }
.footer-main { min-height: 146px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand p { color: rgba(255,255,255,.58); font-size: 12px; }
.footer-links a { color: rgba(255,255,255,.62); font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-base { border-top-color: rgba(255,255,255,.09); color: rgba(255,255,255,.45); font-size: 11px; }
.t-meta { font-size: 12px; }

/* Estado compacto após o envio */
.hero-shell:has(#painelEntrada:not([open])) { grid-template-columns: minmax(280px, .55fr) minmax(0, 1.45fr); }
.hero-shell:has(#painelEntrada:not([open])) .brand-panel { min-height: 290px; }
.hero-shell:has(#painelEntrada:not([open])) .hero-title { font-size: 36px; }
.hero-shell:has(#painelEntrada:not([open])) .hero-subtitle, .hero-shell:has(#painelEntrada:not([open])) .hero-benefits { display: none; }

@media (max-width: 1180px) {
  .desktop-nav { gap: 20px; }
  .desktop-nav .nav-link { font-size: 12px; }
  .hero-shell { grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); }
  .brand-panel { padding-inline: 32px; }
  .workspace-panel { padding-inline: 32px; }
}

@media (max-width: 980px) {
  .app-container { width: min(100% - 32px, var(--container)); }
  .hero-shell, .hero-shell:has(#painelEntrada:not([open])) { grid-template-columns: 1fr; }
  .brand-panel, .hero-shell:has(#painelEntrada:not([open])) .brand-panel { min-height: auto; padding-block: 38px; }
  .brand-panel-copy { margin-top: 64px; }
  .hero-title, .hero-shell:has(#painelEntrada:not([open])) .hero-title { max-width: 14ch; font-size: clamp(40px, 7vw, 52px); }
  .hero-shell:has(#painelEntrada:not([open])) .hero-subtitle, .hero-shell:has(#painelEntrada:not([open])) .hero-benefits { display: grid; }
  .hero-benefits { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hero-benefits li { grid-template-columns: 20px 1fr; }
  .input-stack { grid-template-columns: 1fr 1fr; gap: 18px; }
  .empty-state { grid-template-columns: 1fr; }
  .empty-intro { padding-right: 0; padding-bottom: 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-shell { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 42px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .app-main { padding-block: 24px 58px; }
  .header-inner { min-height: 68px; }
  .brand-copy strong { font-size: 14px; }
  .utility-button-square { width: 44px; min-height: 44px; }
  .brand-panel { padding: 32px 24px 28px; }
  .brand-panel-copy { margin-top: 48px; padding-bottom: 24px; }
  .hero-title { font-size: 41px; }
  .hero-subtitle { font-size: 14px; }
  .hero-benefits { grid-template-columns: 1fr; gap: 10px; }
  .workspace-panel { padding: 28px 22px 24px; }
  .workspace-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .trust-label span { display: inline; }
  .workspace-head h2 { font-size: 27px; }
  .input-stack { grid-template-columns: 1fr; gap: 16px; }
  .input-module { padding: 18px; }
  .composer-actions { gap: 16px; }
  .btn-brand { width: 100%; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 30px; }
  .result-actions { align-items: flex-start; }
  .empty-state { padding: 28px 22px; gap: 28px; }
  .empty-intro h3 { max-width: 18ch; font-size: 27px; }
  .faq-shell { grid-template-columns: 1fr; gap: 26px; margin-top: 54px; padding-top: 32px; }
  .faq-intro h2 { max-width: none; font-size: 30px; }
  .faq-item summary { min-height: 64px; }
  .footer-main { padding-block: 34px; }
}

@media (max-width: 520px) {
  .app-container { width: min(100% - 24px, var(--container)); }
  .header-inner { min-height: 66px; }
  .brand-mark-wrap { width: 36px; height: 36px; }
  .mobile-tools { gap: 6px; }
  .hero-shell { border-radius: 16px; }
  .brand-panel { min-height: auto; }
  .hero-product-label { font-size: 12px; }
  .hero-title { font-size: 38px; }
  .workspace-panel { padding-inline: 18px; }
  .input-module-head label { font-size: 14px; }
  .dropzone { min-height: 164px; }
  .field-help { font-size: 12px; }
  .link-textarea { font-size: 14px; }
  .secondary-action-group { gap: 18px; }
  .section-heading h2 { font-size: 29px; }
  .empty-steps li { grid-template-columns: 30px 1fr; gap: 13px; }
  .empty-step-number { width: 30px; font-size: 23px; }
  .channels-row { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 14px 22px; }
}
.module-icon-file svg { width: 20px; height: 20px; }
.inline-note { margin-top: 12px; }


/* ==========================================================================
   Refinamento de precisão visual, linguagem e legibilidade
   ========================================================================== */

/* A marca permanece forte sem recorrer a gradientes ou cenografia genérica. */
.brand-lockup { min-height: 44px; }
.brand-copy span { font-size: 11px; line-height: 1.25; }
.hero-shell { border-radius: 16px; box-shadow: 0 22px 58px rgba(26, 7, 48, .11); }
.brand-panel {
  min-height: 570px;
  background: var(--brand-purple);
}
.hero-product-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
}
.hero-subtitle { font-size: 16px; line-height: 1.65; }
.hero-facts {
  display: grid;
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.24);
}
.hero-facts p {
  display: grid;
  grid-template-columns: minmax(118px, .42fr) minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero-facts p:last-child { border-bottom: 0; }
.hero-facts strong {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}
.hero-facts span {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.52;
}

.workspace-head { align-items: center; }
.privacy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.privacy-link:hover { color: var(--ink); }

/* Corrige o desalinhamento real dos SVGs. A regra antiga de metadado atingia
   qualquer span do cabeçalho e convertia o contêiner do ícone em display:block. */
.module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 0;
  flex: 0 0 42px;
}
.module-icon > svg {
  position: static;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  transform: none;
  vertical-align: middle;
}
.input-module-head > div > span { font-size: 13px; line-height: 1.48; }
.drop-copy > span, .field-help { font-size: 13px; line-height: 1.58; }
.link-textarea { font-size: 15px; }

/* Ações secundárias continuam discretas, mas não perdem área de toque. */
.btn-link { min-height: 44px; padding-inline: 4px; }

/* Estado vazio específico do produto, sem tutorial numerado ou card cenográfico. */
.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 34px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}
.empty-copy { max-width: 760px; }
.empty-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 600;
}
.empty-copy p {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.empty-copy .empty-order-note {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--brand-yellow);
  color: var(--text);
}
.channels-row {
  grid-column: auto;
  gap: 18px;
  padding-top: 22px;
}
.channels-row > span { font-size: 13px; }
.canal { font-size: 13px; }

/* Rodapé e microtexto permanecem secundários, não microscópicos. */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-base { color: rgba(255,255,255,.58); font-size: 12px; }

/* O painel compacto mantém o novo bloco informativo. */
.hero-shell:has(#painelEntrada:not([open])) .hero-subtitle,
.hero-shell:has(#painelEntrada:not([open])) .hero-facts { display: none; }

@media (max-width: 980px) {
  .brand-panel { min-height: auto; }
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 18px;
  }
  .hero-facts p {
    display: block;
    padding: 0;
    border: 0;
  }
  .hero-facts span { display: block; margin-top: 5px; }
  .hero-shell:has(#painelEntrada:not([open])) .hero-subtitle,
  .hero-shell:has(#painelEntrada:not([open])) .hero-facts { display: grid; }
  .privacy-link { white-space: normal; }
}

@media (max-width: 720px) {
  .hero-title { font-size: clamp(38px, 11vw, 48px); }
  .hero-subtitle { font-size: 15px; }
  .hero-facts { grid-template-columns: 1fr; gap: 0; }
  .hero-facts p {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .hero-facts p:last-child { border-bottom: 0; }
  .hero-facts span { margin-top: 0; }
  .workspace-head { align-items: flex-start; }
  .privacy-link { min-height: 40px; }
  .empty-state { padding: 28px 22px; }
  .empty-copy h3 { font-size: 25px; }
  .empty-copy p { font-size: 14px; }
  .channels-row { align-items: flex-start; }
  .footer-links a { min-height: 40px; }
}

@media (max-width: 520px) {
  .brand-copy strong { font-size: 14px; }
  .hero-product-label { font-size: 12px; }
  .hero-facts p { grid-template-columns: 1fr; gap: 4px; }
  .input-module-head > div > span,
  .drop-copy > span,
  .field-help { font-size: 13px; }
  .empty-state { padding-inline: 18px; }
  .footer-base { font-size: 12px; }
}

/* Áreas de toque consistentes também no mobile. */
.skip-link, .privacy-link, .footer-links a { min-height: 44px; }
@media (max-width: 720px) {
  .privacy-link, .footer-links a { min-height: 44px; }
}

/* Contraste de textos auxiliares e placeholders. */
.link-textarea::placeholder, .campo-busca::placeholder { color: var(--muted); opacity: 1; }
#progSteps .step { color: var(--muted); }


/* ==========================================================================
   Refinamento de identidade e feedback de interação
   ========================================================================== */

/* O cabeçalho acompanha o tema: claro editorial e escuro institucional. */
.site-header {
  border-bottom-color: rgba(38, 24, 51, .12);
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(38, 24, 51, .03);
}
.brand-copy strong { color: var(--ink); }
.brand-copy span { color: var(--muted); }
.nav-link { color: var(--muted); }
.nav-link:hover, .nav-link-active { color: var(--ink); }
.nav-link-active::after { background: var(--brand-purple); }
.header-cta {
  border-color: var(--brand-purple);
  color: var(--brand-purple-strong);
}
.header-cta:hover {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: #fff;
}
.utility-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.utility-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}
.mobile-nav {
  border-top-color: var(--line);
  background: var(--surface);
}
.mobile-nav:not(.hidden) .nav-link { color: var(--text); }

html.dark .site-header {
  border-bottom-color: rgba(255,255,255,.10);
  background: rgba(7,7,7,.96);
  color: #fff;
  box-shadow: none;
}
html.dark .brand-copy strong { color: #fff; }
html.dark .brand-copy span { color: rgba(255,255,255,.58); }
html.dark .nav-link { color: rgba(255,255,255,.67); }
html.dark .nav-link:hover,
html.dark .nav-link-active { color: #fff; }
html.dark .nav-link-active::after { background: var(--brand-yellow); }
html.dark .header-cta {
  border-color: var(--brand-yellow);
  color: #fff;
}
html.dark .header-cta:hover {
  background: var(--brand-yellow);
  color: var(--brand-purple-strong);
}
html.dark .utility-button {
  border-color: rgba(255,255,255,.13);
  background: #121214;
  color: rgba(255,255,255,.86);
}
html.dark .utility-button:hover {
  border-color: rgba(255,255,255,.28);
  background: #19191c;
}
html.dark .mobile-nav {
  border-top-color: rgba(255,255,255,.10);
  background: #0b0b0d;
}
html.dark .mobile-nav:not(.hidden) .nav-link { color: rgba(255,255,255,.82); }

/* O ativo já contém o círculo roxo da marca; o contêiner não cria outro. */
.brand-mark-wrap {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.brand-mark-wrap img {
  object-fit: contain;
  border-radius: 0;
}

/* Hierarquia editorial: rótulo, título e subtítulo em cada seção principal. */
.workspace-head .section-kicker,
.section-heading .section-kicker,
.faq-intro .section-kicker {
  margin-bottom: 9px;
  color: var(--brand-purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
html.dark .workspace-head .section-kicker,
html.dark .section-heading .section-kicker,
html.dark .faq-intro .section-kicker { color: var(--brand-yellow); }
.workspace-lead,
.section-lead,
.faq-intro > p {
  max-width: 58ch;
  margin-top: 9px;
}

/* Feedback inequívoco e acessível para a cópia da lista. */
.copy-feedback-button {
  min-width: 116px;
  justify-content: center;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.copy-feedback-button .copied-icon { display: none; }
.copy-feedback-button.is-copied {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.copy-feedback-button.is-copied .copy-icon { display: none; }
.copy-feedback-button.is-copied .copied-icon { display: block; }
.copy-feedback-button.is-copy-error {
  border-color: var(--danger);
  color: var(--danger);
}
.copy-feedback-button.is-copied:hover {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
  transform: none;
}
html.dark .copy-feedback-button.is-copied,
html.dark .copy-feedback-button.is-copied:hover {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 22%, #111);
  color: var(--success);
}

@media (max-width: 720px) {
  .workspace-head .section-kicker,
  .section-heading .section-kicker,
  .faq-intro .section-kicker { font-size: 10px; }
  .copy-feedback-button { min-width: 110px; }
}

/* ==========================================================================
   Commit 262: amplitude editorial, assinatura dinâmica e feedback universal
   ========================================================================== */
:root { --container: 1520px; }
.app-container { width: min(var(--container), calc(100% - 64px)); }

.hero-shell {
  grid-template-columns: minmax(430px, .82fr) minmax(720px, 1.58fr);
  overflow: hidden;
}
.brand-panel {
  position: relative;
  min-height: 650px;
  padding: 44px 44px 40px;
  overflow: hidden;
}
.hero-product-label,
.brand-panel-copy,
.hero-facts { position: relative; z-index: 3; }
.brand-panel-copy { max-width: 460px; }
.hero-title { max-width: 11ch; font-size: clamp(48px, 4.1vw, 66px); }
.hero-subtitle { max-width: 43ch; }
.workspace-panel { padding: 44px 48px 38px; }
.input-stack { grid-template-columns: minmax(320px, .92fr) minmax(430px, 1.18fr); gap: 28px; }
.input-module { padding: 24px; }
.link-textarea, .dropzone { min-height: 202px; }

/* O movimento é construído com o símbolo oficial, sem modificar o logotipo. */
.hero-brand-system {
  position: absolute;
  z-index: 1;
  top: 42px;
  right: -54px;
  width: 430px;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .92;
  transform: rotate(-6deg);
}
.hero-brand-symbol {
  position: absolute;
  z-index: 2;
  inset: 50%;
  width: 224px;
  height: 224px;
  max-width: none;
  object-fit: contain;
  opacity: .34;
  transform: translate(-50%, -50%) rotate(6deg);
  animation: brand-float 7.5s ease-in-out infinite;
}
.hero-orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero-orbit::before,
.hero-orbit::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 5px rgba(255,211,79,.09);
}
.hero-orbit-outer {
  width: 378px;
  height: 378px;
  border-style: dashed;
  animation: brand-orbit 28s linear infinite;
}
.hero-orbit-outer::before { top: 40px; right: 58px; }
.hero-orbit-outer::after { bottom: 48px; left: 42px; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.hero-orbit-inner {
  width: 286px;
  height: 286px;
  border-color: rgba(255,211,79,.24);
  animation: brand-orbit-reverse 20s linear infinite;
}
.hero-orbit-inner::before { top: 50%; right: -4px; }
.hero-orbit-inner::after { left: 16px; top: 72px; background: rgba(255,255,255,.9); }
.hero-orbit-dot {
  position: absolute;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
}
.hero-orbit-dot-a { top: 78px; left: 62px; }
.hero-orbit-dot-b { right: 40px; bottom: 108px; border-color: var(--brand-yellow); }
.hero-pixel {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,.72);
}
.hero-pixel-a { left: 88px; bottom: 76px; }
.hero-pixel-b { left: 112px; bottom: 76px; width: 20px; background: var(--brand-yellow); }
.hero-pixel-c { right: 88px; top: 66px; height: 20px; }
.hero-pixel-d { right: 64px; top: 90px; background: var(--brand-yellow); }
.hero-pixel-e { right: 150px; bottom: 48px; width: 14px; height: 4px; }
@keyframes brand-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes brand-orbit-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes brand-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(6deg) scale(1); }
  50% { transform: translate(-50%, calc(-50% - 8px)) rotate(3deg) scale(1.025); }
}

/* O mesmo padrão de confirmação se aplica a todos os pontos de cópia. */
.copy-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.copy-feedback-button .copy-icon,
.copy-feedback-button .copied-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-feedback-button .copied-icon { display: none; }
.copy-feedback-button.is-copied .copy-icon { display: none; }
.copy-feedback-button.is-copied .copied-icon { display: block; }
.copy-action { min-height: 40px; padding: 0 11px; opacity: .72; }
tr:hover .copy-action,
tr:focus-within .copy-action,
.copy-action:focus-visible { opacity: 1; }
.batch-copy-button { min-width: 150px; }
.copy-card { min-width: 104px; }
.copy-card.is-copied { opacity: 1; }

@media (max-width: 1280px) {
  :root { --container: 1240px; }
  .app-container { width: min(var(--container), calc(100% - 40px)); }
  .hero-shell { grid-template-columns: minmax(360px, .78fr) minmax(0, 1.42fr); }
  .brand-panel { min-height: 610px; padding-inline: 38px; }
  .workspace-panel { padding-inline: 38px; }
  .input-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; }
  .hero-brand-system { right: -96px; transform: scale(.88) rotate(-6deg); }
}
@media (max-width: 980px) {
  .app-container { width: min(100% - 32px, var(--container)); }
  .hero-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 500px; }
  .hero-brand-system { top: 8px; right: -76px; transform: scale(.78) rotate(-6deg); opacity: .72; }
  .brand-panel-copy { max-width: 580px; }
  .hero-title { font-size: clamp(44px, 7vw, 62px); }
  .workspace-panel { padding: 36px 32px; }
}
@media (max-width: 720px) {
  .app-container { width: min(100% - 24px, var(--container)); }
  .brand-panel { min-height: 470px; padding: 30px 24px; }
  .hero-brand-system { width: 340px; top: -18px; right: -116px; opacity: .58; }
  .hero-brand-symbol { width: 180px; height: 180px; }
  .hero-title { font-size: clamp(39px, 11.8vw, 52px); }
  .workspace-panel { padding: 30px 22px; }
  .input-stack { grid-template-columns: 1fr; }
  .link-textarea, .dropzone { min-height: 176px; }
  .batch-copy-button { min-width: 138px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-symbol,
  .hero-orbit-outer,
  .hero-orbit-inner { animation: none !important; }
}

/* ==========================================================================
   Commit 265: marca em watermark e contenção das ações da tabela
   ========================================================================== */
/* Recupera a presença do símbolo como fundo editorial, sem as órbitas do
   experimento anterior. O ativo oficial permanece íntegro e não interativo. */
.hero-brand-system {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 86%);
  height: 100%;
  aspect-ratio: auto;
  opacity: 1;
  overflow: hidden;
  transform: none;
}
.hero-brand-system::before {
  content: '';
  position: absolute;
  top: 8%;
  right: -14%;
  width: clamp(390px, 38vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
}
.hero-brand-symbol {
  inset: auto;
  top: 50%;
  right: -24%;
  width: clamp(520px, 46vw, 760px);
  height: auto;
  max-width: none;
  object-fit: contain;
  opacity: .115;
  filter: grayscale(1) brightness(2.15) contrast(.78);
  mix-blend-mode: screen;
  transform: translateY(-50%);
  animation: brand-watermark-breathe 12s ease-in-out infinite;
}
.hero-orbit,
.hero-orbit-dot,
.hero-pixel { display: none; }
@keyframes brand-watermark-breathe {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: .105; }
  50% { transform: translateY(calc(-50% - 5px)) scale(1.015); opacity: .13; }
}

/* A coluna de ação precisa reservar a largura real do botão. O botão se
   limita ao conteúdo da célula e nunca amplia a linha para fora da moldura. */
.tb col:last-child { width: 120px !important; }
.tb th:last-child,
.tb td:last-child {
  width: 120px;
  max-width: 120px;
  padding-left: 8px;
  padding-right: 8px;
  overflow: hidden;
}
.copy-action {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 9px;
  box-sizing: border-box;
  white-space: nowrap;
}
.copy-action .copy-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1280px) {
  .hero-brand-system { right: 0; width: min(650px, 88%); transform: none; }
  .hero-brand-symbol { right: -28%; width: clamp(500px, 54vw, 680px); }
}
@media (max-width: 1120px) {
  .tb col:last-child { width: 58px !important; }
  .tb th:last-child,
  .tb td:last-child { width: 58px; max-width: 58px; padding-inline: 8px; }
  .copy-action { width: 40px; height: 40px; margin-inline: auto; padding: 0; }
  .copy-action .copy-label { display: none; }
}
@media (max-width: 980px) {
  .hero-brand-system { top: 0; right: 0; width: min(680px, 94%); opacity: 1; transform: none; }
  .hero-brand-symbol { right: -24%; width: clamp(540px, 78vw, 700px); }
}
@media (max-width: 720px) {
  .hero-brand-system { top: 0; right: 0; width: 100%; opacity: 1; }
  .hero-brand-system::before { top: 10%; right: -38%; width: 460px; }
  .hero-brand-symbol { top: 48%; right: -48%; width: 560px; height: auto; opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brand-symbol { animation: none !important; }
}
