:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-dark: #0f172a;
  --text: #172033;
  --text-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0b76ff;
  --primary-dark: #0758c8;
  --primary-soft: #eaf3ff;
  --success: #07967c;
  --success-soft: #e7f8f4;
  --impact: #e90064;
  --impact-soft: #fff0f6;
  --video: #df7600;
  --video-soft: #fff5e8;
  --special: #038d7d;
  --special-soft: #e9f9f6;
  --shadow-sm: 0 8px 28px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 18px 55px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 34px 90px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 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;
}

[hidden] {
  display: none !important;
}

.brand-line {
  position: fixed;
  z-index: 1100;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #009df7 0%, #00ba9e 20%, #7bd600 38%, #ffb100 56%, #ff6c00 72%, #fb2717 86%, #ff0076 100%);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 118px;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--primary-soft);
  color: var(--primary-dark);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select select {
  min-height: 42px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.filter-chip:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(11, 118, 255, 0.2);
  outline-offset: 2px;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 118, 255, 0.22);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(11, 118, 255, 0.28);
}

.button-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.header-export {
  position: relative;
}

.header-export strong {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 157, 247, 0.12), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 0, 118, 0.09), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.hero::after {
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(11, 118, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(11, 118, 255, 0.035), 0 0 0 140px rgba(11, 118, 255, 0.025);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 74px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(2.7rem, 5.8vw, 5.35rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.hero-copy > p {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-search,
.catalog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-search {
  max-width: 660px;
  min-height: 62px;
  padding: 0 16px 0 19px;
  border-radius: 17px;
}

.hero-search svg,
.catalog-search svg {
  width: 21px;
  fill: none;
  stroke: #64748b;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero-search input,
.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.hero-search input {
  font-size: 1rem;
}

.hero-search kbd {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 750;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.hero-preview {
  position: relative;
  min-height: 480px;
}

.preview-window {
  position: absolute;
  inset: 30px 22px 20px 10px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.preview-toolbar {
  display: flex;
  height: 55px;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: #fbfdff;
}

.preview-toolbar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dbe3ed;
}

.preview-toolbar strong {
  margin-left: 10px;
  font-size: 0.82rem;
}

.preview-body {
  padding: 32px;
}

.preview-label,
.category-label {
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creative-frame {
  display: grid;
  min-height: 250px;
  place-items: center;
  margin: 19px 0;
  border: 1px solid rgba(11, 118, 255, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(11, 118, 255, 0.14), rgba(0, 186, 158, 0.08)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.55) 12px 13px);
}

.creative-frame div {
  display: grid;
  gap: 5px;
  text-align: center;
}

.creative-frame strong {
  font-size: 2.05rem;
  letter-spacing: -0.04em;
}

.creative-frame span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.preview-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preview-specs div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.preview-specs small {
  color: var(--text-soft);
}

.preview-specs strong {
  font-size: 0.9rem;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
  font-size: 0.76rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.floating-chip-one {
  top: 9px;
  right: 0;
}

.floating-chip-two {
  bottom: 6px;
  left: 0;
}

.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metrics-grid > div {
  display: grid;
  gap: 2px;
  padding: 25px 28px;
  border-right: 1px solid var(--border);
}

.metrics-grid > div:last-child {
  border-right: 0;
}

.metrics-grid strong {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.metrics-grid span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.catalog-section,
.best-practices-section,
.tools-section {
  padding: 15px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2,
.best-practices-grid h2 {
  margin: 11px 0 9px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
}

.section-heading p,
.best-practices-grid > div > p {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.result-count {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-chip.padrao{
  background: var(--primary-soft);
}

.filter-chip.impacto{
  background: var(--impact-soft);
}

.filter-chip.video{
  background: var(--video-soft);
}

.filter-chip.especial{
  background: var(--special-soft);
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: #fff;
}

.catalog-search {
  width: min(100%, 310px);
  min-height: 44px;
  padding: 0 14px;
  border-radius: 13px;
  box-shadow: none;
}

.format-index {
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.format-index__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.format-index__heading h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.format-index__heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.format-index__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.format-index__group {
  --index-color: var(--primary);
  --index-soft: var(--primary-soft);
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.format-index__group[data-category="impacto"] {
  --index-color: var(--impact);
  --index-soft: var(--impact-soft);
}

.format-index__group[data-category="video"] {
  --index-color: var(--video);
  --index-soft: var(--video-soft);
}

.format-index__group[data-category="especial"] {
  --index-color: var(--special);
  --index-soft: var(--special-soft);
}

.format-index__group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.format-index__group-heading h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.format-index__group-heading h3::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--index-color);
  content: "";
}

.format-index__group-heading span {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--index-soft);
  color: var(--index-color);
  font-size: 0.75rem;
  font-weight: 800;
}

.format-index__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-index__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.format-index__link:hover,
.format-index__link:focus-visible {
  border-color: var(--index-color);
  background: var(--index-soft);
  color: var(--index-color);
  outline: none;
  transform: translateY(-1px);
}

.catalog-filters {
  margin: 0 0 18px;
}

.format-filter-toggle {
  display: flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.format-filter-toggle::-webkit-details-marker {
  display: none;
}

.format-filter-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.format-filter-toggle:focus-visible {
  outline: 3px solid rgba(11, 118, 255, 0.2);
  outline-offset: 2px;
}

.catalog-filters[open] .format-filter-toggle {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: #fff;
}

.format-filter-toggle__icon,
.format-filter-toggle__chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.format-filter-toggle__chevron {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.catalog-filters[open] .format-filter-toggle__chevron {
  transform: rotate(180deg);
}

.catalog-toolbar--filters {
  justify-content: flex-end;
  margin: 12px 0 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.catalog-toolbar--filters .filter-chips {
  justify-content: flex-end;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.format-card {
  --format-highlight: var(--primary);
  --format-highlight-ring: rgba(11, 118, 255, 0.22);
  min-width: 0;
  scroll-margin-top: 110px;
}

.format-card[data-category="impacto"] {
  --format-highlight: var(--impact);
  --format-highlight-ring: rgba(233, 0, 100, 0.2);
}

.format-card[data-category="video"] {
  --format-highlight: var(--video);
  --format-highlight-ring: rgba(223, 118, 0, 0.22);
}

.format-card[data-category="especial"] {
  --format-highlight: var(--special);
  --format-highlight-ring: rgba(3, 141, 125, 0.22);
}

.format-card[hidden] {
  display: none;
}

.format-card__link {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
  text-decoration: none;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.format-card__link:hover,
.format-card__link:focus-visible {
  border-color: #b7c7dc;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  outline: none;
}

.format-card.is-highlighted .format-card__link {
  animation: format-card-highlight 1.35s ease-out;
}

@keyframes format-card-highlight {
  0%,
  100% {
    border-color: var(--border);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
    transform: translateY(0);
  }

  24% {
    border-color: var(--format-highlight);
    box-shadow: 0 0 0 5px var(--format-highlight-ring), var(--shadow-md);
    transform: translateY(-4px);
  }

  48% {
    border-color: var(--border);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
    transform: translateY(0);
  }

  70% {
    border-color: var(--format-highlight);
    box-shadow: 0 0 0 3px var(--format-highlight-ring), var(--shadow-sm);
    transform: translateY(-2px);
  }
}

.format-card__visual {
  position: relative;
  display: grid;
  min-height: 168px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--primary-soft);
}

.format-card__visual[data-category="impacto"] {
  background: var(--impact-soft);
}

.format-card__visual[data-category="video"] {
  background: var(--video-soft);
}

.format-card__visual[data-category="especial"] {
  background: var(--special-soft);
}

.format-card__visual::before,
.format-card__visual::after {
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: rgba(11, 118, 255, 0.14);
  content: "";
}

.format-card__visual::before {
  width: 210px;
  height: 210px;
  top: -120px;
  right: -70px;
}

.format-card__visual::after {
  width: 120px;
  height: 120px;
  bottom: -76px;
  left: -30px;
}

.creative-shape {
  position: absolute;
  width: 122px;
  height: 86px;
  border: 2px solid rgba(11, 118, 255, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 17px 17px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-5deg);
}

[data-category="impacto"] .creative-shape {
  border-color: rgba(233, 0, 100, 0.28);
}

[data-category="video"] .creative-shape {
  border-color: rgba(223, 118, 0, 0.32);
}

[data-category="especial"] .creative-shape {
  border-color: rgba(3, 141, 125, 0.28);
}

.format-card__visual strong {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 20px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}

.format-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px;
}

.format-card__body h3 {
  margin: 8px 0 10px;
  font-size: 1.23rem;
}

.format-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 0.89rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.format-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.format-card__meta span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.format-card__action span {
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.format-card__link:hover .format-card__action span {
  transform: translateX(4px);
}

.empty-state {
  padding: 64px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
}

.best-practices-section {
  background: var(--surface-dark);
  color: #fff;
}

.best-practices-section .eyebrow {
  color: #75b8ff;
}

.best-practices-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 80px;
}

.best-practices-grid > div > p {
  color: #aebbd0;
}

.practice-list {
  display: grid;
  gap: 10px;
}

.practice-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.practice-list article:first-child {
  padding-top: 0;
}

.practice-list article > strong {
  color: #75b8ff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.practice-list h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.practice-list p {
  margin: 0;
  color: #aebbd0;
  font-size: 0.88rem;
}

.tools-section {
  background: #eef4fb;
}

.tool-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 23px;
  max-width: 820px;
  padding: 29px;
  border: 1px solid #d7e2f0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tool-card__icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), #00ad9e);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}

.tool-card h3 {
  margin: 7px 0 8px;
  font-size: 1.45rem;
}

.tool-card p {
  margin-bottom: 12px;
  color: var(--text-soft);
}

.tool-card div:last-child > span:last-child {
  color: var(--primary-dark);
  font-size: 0.87rem;
  font-weight: 800;
}

.site-footer {
  padding: 58px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: start;
  gap: 50px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a:not(.brand),
.footer-meta {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer-grid > div:nth-child(2) {
  display: grid;
  gap: 7px;
}

.footer-grid > div:nth-child(2) strong {
  margin-bottom: 5px;
}

.footer-grid > div:nth-child(2) a {
  text-decoration: none;
}

.footer-grid > div:nth-child(2) a:hover {
  color: var(--primary-dark);
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

/* Full format page and reusable format component */
.format-page {
  padding: 46px 0 88px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary-dark);
}

.format-detail {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.format-detail__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.category-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-pill[data-category="impacto"] {
  background: var(--impact-soft);
  color: #c00051;
}

.category-pill[data-category="video"] {
  background: var(--video-soft);
  color: #b85d00;
}

.category-pill[data-category="especial"] {
  background: var(--special-soft);
  color: #027466;
}

.format-detail__header h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
}

.format-detail__header p {
  max-width: 790px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.format-detail__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spec-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0;
}

.spec-summary-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.spec-summary-card span {
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 750;
  text-transform: uppercase;
}

.spec-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 27px;
  padding: 17px 19px;
  border: 1px solid #cde8e2;
  border-radius: 15px;
  background: var(--success-soft);
}

.portal-card span {
  color: #09bda2;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.portal-card p {
  margin: 0;
  font-size: 0.88rem;
}

.format-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
}

.format-specification {
  min-width: 0;
}

.section-title-inline {
  margin-bottom: 18px;
}

.section-title-inline h2 {
  margin: 7px 0 0;
  font-size: 1.55rem;
}

.detail-aside {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 102px;
}

.detail-accordion {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
}

.detail-accordion summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.detail-accordion summary::-webkit-details-marker {
  display: none;
}

.detail-accordion summary span:last-child {
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.detail-accordion[open] summary span:last-child {
  transform: rotate(45deg);
}

.detail-accordion__content {
  padding: 0 17px 18px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.83rem;
}

.detail-accordion__content ol {
  margin: 15px 0 0;
  padding-left: 20px;
}

.detail-accordion__content li + li {
  margin-top: 8px;
}

.detail-accordion__content p {
  margin-top: 15px;
}

.detail-accordion__content pre {
  overflow: auto;
  max-height: 360px;
  padding: 14px;
  border-radius: 10px;
  background: #101827;
  color: #d8e3f2;
  font-size: 0.72rem;
  line-height: 1.65;
}

.detail-accordion__content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.not-found {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  padding: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.not-found h1 {
  margin: 12px 0 8px;
  font-size: 2.5rem;
}

.not-found p {
  color: var(--text-soft);
}

/* Imported legacy specification content */
.format-content {
  min-width: 0;
  color: #334155;
  font-size: 0.89rem;
}

.format-content > *:first-child {
  margin-top: 0;
}

.format-content h4 {
  margin: 25px 0 12px;
  font-size: 1.05rem;
}

.format-content p {
  color: inherit;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface);
}

.spec-table th,
.spec-table td {
  min-width: 110px;
  padding: 14px 15px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table th:last-child,
.spec-table td:last-child {
  border-right: 0;
}

.spec-table tr:last-child > th,
.spec-table tr:last-child > td {
  border-bottom: 0;
}

.spec-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.spec-table td {
  color: #475569;
  line-height: 1.55;
  vertical-align: middle;
  text-align: center;
}

.spec-table a,
.format-content > a {
  color: var(--primary-dark);
  font-weight: 750;
  text-underline-offset: 3px;
}

.format-content img {
  display: block;
  max-height: 620px;
  margin: 18px auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  object-fit: contain;
}

.format-size-preview {
  position: relative;
  display: grid;
  width: min(100%, 240px);
  min-height: 180px;
  place-items: end center;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
}

.format-size-preview--desktop {
  width: 150px;
  min-height: 300px;
}

.format-size-preview--mobile {
  width: 240px;
  min-height: 200px;
}

.format-size-preview span {
  position: absolute;
  top: 10px;
  left: 10px;
}

.format-size-preview strong {
  display: grid;
  width: 100%;
  min-height: 55%;
  place-items: center;
  padding: 14px;
  border-top: 1px dashed rgba(197, 22, 61, 0.55);
  background: rgba(197, 22, 61, 0.11);
  color: var(--primary-dark);
  text-align: center;
}

.format-size-preview--mobile strong {
  min-height: 36%;
}

.format-content font[color="red"] {
  color: #c5163d;
}

.modelo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 14px 0 28px;
}

.legacy-action,
.format-content .btn,
.format-content .btn-regular,
.format-content .btn-demo-small {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--primary-dark) !important;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body[data-language="pt"] .text-en,
body[data-language="pt"] .text-es,
body[data-language="en"] .text-pt,
body[data-language="en"] .text-es,
body[data-language="es"] .text-pt,
body[data-language="es"] .text-en {
  display: none !important;
}

/* Native dialogs */
dialog {
  padding: 0;
  border: 0;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(7px);
}

.format-dialog {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  max-height: min(92vh, 980px);
  overflow: hidden;
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.format-dialog__shell {
  display: grid;
  max-height: min(92vh, 980px);
  grid-template-rows: auto minmax(0, 1fr);
}

.format-dialog__toolbar {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.format-dialog__toolbar > span {
  font-size: 0.84rem;
  font-weight: 800;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.format-dialog__content {
  overflow-y: auto;
  padding: 22px;
  overscroll-behavior: contain;
}

.format-dialog .format-detail {
  border: 0;
  box-shadow: none;
}

.loading-state {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--text-soft);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #dce8f8;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 720ms linear infinite;
}

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

.export-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: 88vh;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.export-dialog form {
  display: grid;
  max-height: 88vh;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  padding: 26px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 8px 0 0;
  font-size: 1.65rem;
}

.export-dialog form > p {
  margin: 14px 0;
  color: var(--text-soft);
  font-size: 0.89rem;
}

.export-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
}

.dialog-list {
  display: grid;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 3px 5px 3px 0;
  overscroll-behavior: contain;
}

.export-option {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}

.export-option:hover {
  border-color: #b8c8dc;
  background: var(--surface-soft);
}

.export-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.export-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.export-option strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-option small {
  color: var(--text-soft);
  font-size: 0.7rem;
}

.form-error {
  color: #c5163d !important;
  font-weight: 750;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  z-index: 2000;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 0.84rem;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 38px;
  }

  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .format-detail__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand img {
    width: 102px;
  }

  .brand span {
    display: none;
  }

  .header-export span {
    display: none;
  }

  .header-export::before {
    content: "CSV";
  }

  .hero {
    padding: 64px 0 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: 430px;
  }

  .preview-window {
    inset: 20px 12px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid > div:nth-child(2) {
    border-right: 0;
  }

  .metrics-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .catalog-section,
  .best-practices-section,
  .tools-section {
    padding: 72px 0;
  }

  .catalog-toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .format-index__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .format-index__heading .result-count {
    align-self: flex-start;
  }

  .format-index__groups {
    grid-template-columns: 1fr;
  }

  .catalog-search {
    width: 100%;
  }

  .best-practices-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .format-detail {
    padding: 24px;
  }

  .format-detail__header {
    flex-direction: column;
  }

  .format-detail__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .spec-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-card {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .format-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .format-dialog__shell {
    height: 100dvh;
    max-height: none;
  }

  .format-dialog__content {
    padding: 14px;
  }

  .format-dialog .format-detail {
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .language-select select {
    min-height: 40px;
    padding-left: 10px;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .hero-search kbd {
    display: none;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .hero-links .button {
    width: 100%;
  }

  .hero-preview {
    min-height: 365px;
  }

  .preview-window {
    inset: 12px 4px;
  }

  .preview-body {
    padding: 21px;
  }

  .creative-frame {
    min-height: 190px;
  }

  .floating-chip {
    display: none;
  }

  .metrics-grid > div {
    padding: 18px;
  }

  .format-grid {
    grid-template-columns: 1fr;
  }

  .format-index {
    padding: 16px;
  }

  .format-index__group {
    padding: 13px;
  }

  .format-index__link {
    font-size: 0.74rem;
  }

  .catalog-toolbar--filters {
    align-items: stretch;
    padding: 12px;
  }

  .catalog-toolbar--filters .filter-chips {
    justify-content: flex-start;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .tool-card__icon {
    width: 60px;
    height: 60px;
  }

  .format-page {
    padding-top: 26px;
  }

  .format-detail {
    padding: 18px;
    border-radius: 20px;
  }

  .format-detail__header h1 {
    font-size: 2.35rem;
  }

  .format-detail__actions,
  .format-detail__actions .button {
    width: 100%;
  }

  .spec-summary-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .spec-table {
    min-width: 520px;
  }

  .dialog-list {
    grid-template-columns: 1fr;
  }

  .export-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .export-dialog form {
    height: 100dvh;
    max-height: none;
    padding: 18px;
  }
}

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

/* Light and dark theme */
.theme-toggle {
  flex: 0 0 auto;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-icon-moon {
  display: none;
}

.brand img {
  filter: brightness(0) saturate(100%);
}

html[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-soft: #172033;
  --surface-dark: #050914;
  --text: #e7eef8;
  --text-soft: #9eacc0;
  --border: #263449;
  --border-strong: #3a4b63;
  --primary: #5ba6ff;
  --primary-dark: #91c4ff;
  --primary-soft: #132b49;
  --success: #4fd1b5;
  --success-soft: #0c302a;
  --impact: #ff5ba4;
  --impact-soft: #3a1027;
  --video: #ffad52;
  --video-soft: #392711;
  --special: #4bd3c0;
  --special-soft: #0c312d;
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 18px 55px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

html[data-theme="dark"] .brand img {
  filter: none;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(38, 52, 73, 0.9);
  background: rgba(11, 17, 32, 0.9);
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .format-card__meta span {
  color: var(--text-soft);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(91, 166, 255, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(255, 91, 164, 0.1), transparent 26%),
    linear-gradient(180deg, #0d1526 0%, var(--bg) 100%);
}

html[data-theme="dark"] .hero::after {
  border-color: rgba(91, 166, 255, 0.17);
  box-shadow: 0 0 0 70px rgba(91, 166, 255, 0.035), 0 0 0 140px rgba(91, 166, 255, 0.022);
}

html[data-theme="light"] .portal-card p{
  color: #000;
}

html[data-theme="dark"] .portal-card p{
  color: #b8c6d9;
}

html[data-theme="dark"] .preview-window,
html[data-theme="dark"] .floating-chip {
  border-color: var(--border);
  background: rgba(17, 24, 39, 0.94);
}

html[data-theme="dark"] .preview-toolbar {
  background: #141e2f;
}

html[data-theme="dark"] .preview-toolbar > span {
  background: #43516a;
}

html[data-theme="dark"] .creative-frame {
  border-color: rgba(91, 166, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(91, 166, 255, 0.12), rgba(75, 211, 192, 0.07)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.035) 12px 13px);
}

html[data-theme="dark"] .tools-section {
  background: #0d1627;
}

html[data-theme="dark"] .tool-card {
  border-color: var(--border);
}

html[data-theme="dark"] .format-card__link:hover,
html[data-theme="dark"] .format-card__link:focus-visible,
html[data-theme="dark"] .export-option:hover {
  border-color: var(--border-strong);
}

html[data-theme="dark"] .creative-shape {
  background: rgba(231, 238, 248, 0.08);
  box-shadow: 17px 17px 0 rgba(231, 238, 248, 0.06);
}

html[data-theme="dark"] .format-card__visual strong {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 39, 0.82);
  color: var(--text);
}

html[data-theme="dark"] .best-practices-section {
  background: #050914;
}

html[data-theme="dark"] .format-content {
  color: #cbd7e8;
}

html[data-theme="dark"] .spec-table th {
  background: #182337;
  color: #dce7f5;
}

html[data-theme="dark"] .spec-table td {
  color: #b8c6d9;
  vertical-align: middle;
  text-align: center;
}

html[data-theme="dark"] .format-size-preview {
  background: linear-gradient(180deg, #172033, #101827);
  color: var(--text-soft);
}

html[data-theme="dark"] .format-dialog__toolbar {
  background: rgba(17, 24, 39, 0.97);
}

html[data-theme="dark"] .spinner {
  border-color: #29405e;
  border-top-color: var(--primary);
}

html[data-theme="dark"] dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

html[data-theme="dark"] .form-error,
html[data-theme="dark"] .format-content font[color="red"] {
  color: #ff7895 !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color-scheme: dark;
}