.ffvt {
  --ffvt-ink: #17171d;
  --ffvt-muted: #626271;
  --ffvt-line: #dedee7;
  --ffvt-soft: #f5f6fb;
  --ffvt-card: #ffffff;
  --ffvt-brand: #2231d1;
  --ffvt-brand-dark: #17249d;
  --ffvt-good: #157347;
  --ffvt-warn: #9a5b00;
  --ffvt-bad: #b42318;
  --ffvt-radius: 20px;
  color: var(--ffvt-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 1540px;
  padding: 28px 24px 80px;
}

.ffvt-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Legacy full-width content on the established inspector page used 100vw,
   which included the scrollbar and created a small horizontal page shift. */
body.page-id-24609 {
  overflow-x: clip;
}

body.page-id-24609 .entry-content .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  width: 100%;
}

/* The shared dark footer uses old accent colors that fail contrast on tool
   pages. Improve them here while this conditional stylesheet is present. */
.gb-headline-d62221bc {
  color: #aeb5ff !important;
}

.site-footer a,
body:has(.ffvt) .gb-container a[href*="/dmca/"],
body:has(.ffvt) .gb-container a[href*="/privacy-policy/"],
body:has(.ffvt) .gb-container a[href*="/terms-and-conditions/"] {
  color: #8fc0ff;
}

.site-footer .gb-button-wrapper a,
body:has(.ffvt) .gb-button-wrapper a[aria-label] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.ffvt [hidden],
.ffvt-health-panel[hidden] {
  display: none !important;
}

.ffvt *,
.ffvt *::before,
.ffvt *::after,
.ffvt-health-panel *,
.ffvt-health-panel *::before,
.ffvt-health-panel *::after {
  box-sizing: border-box;
}

.ffvt button,
.ffvt input,
.ffvt select,
.ffvt textarea,
.ffvt-health-panel button {
  font: inherit;
}

.ffvt input:not([type="checkbox"]):not([type="color"]):not([type="range"]):not([type="file"]),
.ffvt select,
.ffvt textarea {
  background: #fff;
  border: 1px solid #c9cad5;
  border-radius: 10px;
  color: var(--ffvt-ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.ffvt textarea {
  resize: vertical;
}

.ffvt input:focus-visible,
.ffvt select:focus-visible,
.ffvt textarea:focus-visible,
.ffvt button:focus-visible,
.ffvt a:focus-visible,
.ffvt-health-panel button:focus-visible {
  outline: 3px solid rgba(34, 49, 209, .25);
  outline-offset: 2px;
}

.ffvt label,
.ffvt legend {
  color: #32323c;
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.ffvt label > input:not([type="checkbox"]):not([type="color"]):not([type="range"]):not([type="file"]),
.ffvt label > select,
.ffvt label > textarea {
  margin-top: 6px;
}

.ffvt fieldset {
  border: 1px solid var(--ffvt-line);
  border-radius: 14px;
  margin: 18px 0 0;
  padding: 14px;
}

.ffvt fieldset legend {
  padding: 0 7px;
}

.ffvt-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(110, 87, 255, .28), transparent 26%),
    radial-gradient(circle at 72% 90%, rgba(34, 49, 209, .18), transparent 24%),
    #0e0e13;
  border-radius: 28px;
  color: #fff;
  margin-bottom: 28px;
  overflow: hidden;
  padding: clamp(32px, 6vw, 78px);
  position: relative;
}

.ffvt-hero::after {
  color: rgba(255, 255, 255, .035);
  content: "Aa";
  font: 800 clamp(150px, 24vw, 360px)/.7 Georgia, serif;
  pointer-events: none;
  position: absolute;
  right: -18px;
  top: 25px;
}

.ffvt-hero > * {
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.ffvt-eyebrow {
  color: var(--ffvt-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ffvt-hero .ffvt-eyebrow {
  color: #aeb5ff;
}

.ffvt-hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0;
  max-width: 1030px;
}

.ffvt-lede {
  color: #c7c8d2;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 900px;
}

.ffvt-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.ffvt-trust li {
  align-items: center;
  color: #e9e9f1;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 7px;
}

.ffvt-trust span {
  align-items: center;
  background: rgba(105, 230, 170, .14);
  border: 1px solid rgba(105, 230, 170, .35);
  border-radius: 50%;
  color: #77e5b0;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.ffvt-workspace,
.ffvt-converter-grid,
.ffvt-identifier-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(330px, .78fr) minmax(520px, 1.5fr);
}

.ffvt-panel,
.ffvt-stage-panel,
.ffvt-health-panel {
  background: var(--ffvt-card);
  border: 1px solid var(--ffvt-line);
  border-radius: var(--ffvt-radius);
  box-shadow: 0 16px 50px rgba(24, 24, 37, .055);
  padding: 22px;
}

.ffvt-controls,
.ffvt-pair-selectors {
  display: grid;
  gap: 16px;
}

.ffvt-stage-panel {
  min-width: 0;
  position: sticky;
  top: 24px;
}

.ffvt-stage-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ffvt-stage-heading h2,
.ffvt-copy-grid h2,
.ffvt-copy-section h2,
.ffvt-health-panel h2 {
  color: var(--ffvt-ink);
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}

.ffvt-button,
.ffvt-preset-row button {
  align-items: center;
  background: var(--ffvt-brand);
  border: 1px solid var(--ffvt-brand);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.ffvt-button:hover,
.ffvt-preset-row button:hover {
  background: var(--ffvt-brand-dark);
  border-color: var(--ffvt-brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.ffvt-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.ffvt-button-secondary,
.ffvt-preset-row button {
  background: #fff;
  border-color: #c8cad8;
  color: var(--ffvt-ink);
}

.ffvt-button-secondary:hover,
.ffvt-preset-row button:hover,
.ffvt-preset-row button.is-active {
  background: #eff1ff;
  border-color: #9ca5ff;
  color: var(--ffvt-brand-dark);
}

.ffvt-button-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ffvt-brand);
}

.ffvt-button-quiet:hover {
  background: #f0f1ff;
  border-color: #f0f1ff;
  color: var(--ffvt-brand-dark);
}

.ffvt-control-grid,
.ffvt-color-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ffvt-control-grid label {
  min-width: 0;
}

.ffvt input[type="range"] {
  accent-color: var(--ffvt-brand);
  display: block;
  margin-top: 10px;
  width: 100%;
}

.ffvt input[type="color"] {
  background: #fff;
  border: 1px solid #c9cad5;
  border-radius: 9px;
  cursor: pointer;
  height: 44px;
  padding: 4px;
  width: 54px;
}

.ffvt-color-grid label {
  display: grid;
  gap: 6px;
  grid-template-columns: 54px minmax(0, 1fr);
}

.ffvt-color-grid label:first-child,
.ffvt-color-grid label:nth-child(2) {
  grid-template-rows: auto auto;
}

.ffvt-color-grid label > :first-of-type {
  grid-column: 1;
}

.ffvt-color-grid label > :last-child {
  grid-column: 2;
}

.ffvt-check {
  align-items: flex-start;
  display: flex !important;
  font-weight: 600 !important;
  gap: 9px;
  margin-top: 12px;
}

.ffvt-check input {
  accent-color: var(--ffvt-brand);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 1px;
  width: 18px;
}

.ffvt-inline-color {
  align-items: center;
  display: flex !important;
  gap: 10px;
  margin-top: 11px;
}

.ffvt details {
  border-top: 1px solid var(--ffvt-line);
  padding-top: 16px;
}

.ffvt summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.ffvt details .ffvt-control-grid {
  margin-top: 15px;
}

.ffvt-search-field {
  position: relative;
}

.ffvt-search-field svg {
  fill: none;
  height: 20px;
  left: 13px;
  position: absolute;
  stroke: #747584;
  stroke-linecap: round;
  stroke-width: 1.8;
  top: 19px;
  transform: translateY(-50%);
  width: 20px;
}

.ffvt-search-field input {
  padding-left: 42px !important;
}

.ffvt-font-picker {
  position: relative;
}

.ffvt-font-results {
  background: #fff;
  border: 1px solid #c9cad5;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 20, 35, .16);
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 72px;
  z-index: 20;
}

.ffvt-font-options {
  max-height: 300px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
}

.ffvt-font-results-footer {
  align-items: center;
  background: #f8f8fc;
  border-top: 1px solid #e2e3eb;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 46px;
  padding: 7px 9px 7px 12px;
}

.ffvt-font-results-count {
  color: var(--ffvt-muted);
  font-size: 10px;
  line-height: 1.35;
}

.ffvt-font-more {
  background: #fff;
  border: 1px solid #c8cae2;
  border-radius: 8px;
  color: var(--ffvt-brand);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  min-height: 32px;
  padding: 5px 9px;
}

.ffvt-font-more:hover,
.ffvt-font-more:focus-visible {
  background: #eff1ff;
  border-color: #8f98f1;
}

.ffvt-font-more:disabled {
  cursor: wait;
  opacity: .55;
}

.ffvt-font-result {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 9px;
  color: var(--ffvt-ink);
  cursor: pointer;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.ffvt-font-result:hover,
.ffvt-font-result[aria-selected="true"] {
  background: #f0f1ff;
}

.ffvt-font-result strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ffvt-font-result small {
  color: var(--ffvt-muted);
  font-size: 11px;
  grid-column: 1;
}

.ffvt-font-result span {
  color: var(--ffvt-brand);
  font-size: 22px;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.ffvt-font-result-message {
  color: var(--ffvt-muted);
  cursor: default;
  display: block;
  font-size: 12px;
  margin: 0;
  min-height: 48px;
  padding: 14px 10px;
}

.ffvt-selected-font {
  background: var(--ffvt-soft);
  border-radius: 11px;
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 10px 12px;
}

.ffvt-selected-font strong {
  font-size: 14px;
}

.ffvt-selected-font span,
.ffvt-selected-font a {
  color: var(--ffvt-muted);
  font-size: 12px;
}

.ffvt-selected-font a {
  color: var(--ffvt-brand);
  font-weight: 750;
}

.ffvt-font-suggestions {
  background: var(--ffvt-soft);
  border-radius: 13px;
  padding: 13px;
}

.ffvt-font-suggestions h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.ffvt-font-suggestions p {
  color: var(--ffvt-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.ffvt-suggestion-label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  margin: 10px 0 7px;
  text-transform: uppercase;
}

.ffvt-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ffvt-suggestion-chip {
  background: #fff;
  border: 1px solid #d0d2df;
  border-radius: 9px;
  color: var(--ffvt-ink);
  cursor: pointer;
  display: grid;
  gap: 1px;
  max-width: 100%;
  min-height: 44px;
  padding: 7px 9px;
  text-align: left;
}

.ffvt-suggestion-chip:hover {
  background: #eff1ff;
  border-color: #9ca5ff;
}

.ffvt-suggestion-chip strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ffvt-suggestion-chip small {
  color: var(--ffvt-muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ffvt-canvas-wrap {
  align-items: center;
  background:
    linear-gradient(45deg, #e8e8ee 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8ee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8ee 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8ee 75%);
  background-color: #f7f7f9;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  border: 1px solid #d8d9e2;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  min-height: 470px;
  overflow: hidden;
  padding: 14px;
}

.ffvt-canvas-wrap canvas {
  box-shadow: 0 12px 36px rgba(15, 15, 25, .18);
  display: block;
  height: auto;
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
}

.ffvt-export-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ffvt-status {
  color: var(--ffvt-muted);
  font-size: 13px;
}

.ffvt-status.is-error {
  color: var(--ffvt-bad);
}

.ffvt-status.is-good {
  color: var(--ffvt-good);
}

.ffvt-copy-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.ffvt-copy-grid > div,
.ffvt-copy-section {
  background: var(--ffvt-soft);
  border-radius: 18px;
  padding: 26px;
}

.ffvt-copy-grid p,
.ffvt-copy-section p {
  color: var(--ffvt-muted);
  line-height: 1.7;
  margin: 12px 0 0;
}

.ffvt-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.ffvt-pairing-workspace {
  grid-template-columns: minmax(390px, .82fr) minmax(540px, 1.38fr);
}

.ffvt-pair-preview {
  --ffvt-pair-background: #f5f0e8;
  --ffvt-pair-text: #171719;
  --ffvt-pair-accent: #2231d1;
  --ffvt-pair-heading-size: 64px;
  --ffvt-pair-body-size: 18px;
  --ffvt-pair-line-height: 1.6;
  --ffvt-pair-tracking: -.04em;
  background: var(--ffvt-pair-background);
  border-radius: 15px;
  color: var(--ffvt-pair-text);
  min-height: 520px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  transition: background .2s ease, color .2s ease;
}

.ffvt-pair-preview > h3 {
  color: #171719;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -.045em;
  line-height: .98;
  margin: 22px 0 28px;
}

.ffvt-pair-preview > p:not(.ffvt-demo-kicker) {
  color: #414147;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  max-width: 760px;
}

.ffvt-demo-kicker,
.ffvt-demo-card span,
.ffvt-demo-card button {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.ffvt-demo-card {
  align-items: end;
  background: #171719;
  border-radius: 13px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  margin-top: 50px;
  padding: 24px;
}

.ffvt-demo-card span {
  color: #aeb5ff;
  grid-column: 1 / -1;
}

.ffvt-demo-card strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.ffvt-demo-card button {
  background: #fff;
  border: 0;
  border-radius: 9px;
  color: #171719;
  min-height: 44px;
  padding: 10px 14px;
}

.ffvt-score,
.ffvt-health-score {
  background: #eff1ff;
  border-radius: 999px;
  color: var(--ffvt-brand-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.ffvt-explanation {
  background: var(--ffvt-soft);
  border-left: 4px solid var(--ffvt-brand);
  color: #4f5060;
  line-height: 1.6;
  margin-top: 16px;
  padding: 14px 16px;
}

.ffvt-code-output {
  background: #101015 !important;
  border-color: #101015 !important;
  color: #d9dcff !important;
  font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  margin-top: 12px;
  min-height: 170px;
}

.ffvt-pair-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ffvt-pair-samples,
.ffvt-pair-lifecycle {
  background: #fff;
  border: 1px solid var(--ffvt-line);
  border-radius: var(--ffvt-radius);
  margin-bottom: 22px;
  padding: 22px;
}

.ffvt-pair-section-heading {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
  margin-bottom: 18px;
}

.ffvt-pair-section-heading h2 {
  color: var(--ffvt-ink);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0;
}

.ffvt-pair-section-heading > p {
  color: var(--ffvt-muted);
  line-height: 1.65;
  margin: 0;
}

.ffvt-pair-sample-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.ffvt-pair-sample-grid button {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  text-align: left;
}

.ffvt-pair-sample-grid button strong {
  font-size: 15px;
}

.ffvt-pair-sample-grid button span {
  color: var(--ffvt-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.ffvt-pair-sample-grid button.is-active span {
  color: var(--ffvt-brand-dark);
}

.ffvt-pair-source-links {
  color: var(--ffvt-muted);
  font-size: 12px;
  margin: 14px 0 0;
}

.ffvt-pair-source-links a {
  color: var(--ffvt-brand);
  font-weight: 700;
}

.ffvt-pair-selectors {
  gap: 0;
}

.ffvt-pair-control-section {
  border-bottom: 1px solid var(--ffvt-line);
  padding: 0 0 22px;
}

.ffvt-pair-control-section + .ffvt-pair-control-section {
  padding-top: 22px;
}

.ffvt-pair-control-section h2,
.ffvt-pair-export h3,
.ffvt-pair-diagnostics h3 {
  color: var(--ffvt-ink);
  font-size: 20px;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.ffvt-pair-control-section .ffvt-font-picker + .ffvt-font-picker,
.ffvt-pair-control-section .ffvt-font-picker + .ffvt-pair-ui-follow {
  margin-top: 16px;
}

.ffvt-pair-ui-follow small {
  color: var(--ffvt-muted);
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 3px;
}

#ffvt-pair-ui-control {
  margin-top: 16px;
}

.ffvt-pair-type-controls output {
  color: var(--ffvt-brand);
  float: right;
  font-size: 12px;
}

.ffvt-pair-control-section > label:not(.ffvt-check) {
  margin-top: 13px;
}

.ffvt-pair-theme-controls {
  margin-top: 15px;
}

.ffvt-pair-color-label {
  align-items: center;
  display: flex !important;
  gap: 10px;
  justify-content: space-between;
}

.ffvt-pair-color-label input {
  flex: 0 0 54px;
}

.ffvt-pair-actions {
  padding-top: 20px;
}

.ffvt-pair-stage {
  position: static;
}

.ffvt-pair-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ffvt-pair-mode-tabs button {
  background: #fff;
  border: 1px solid #c8cad8;
  border-radius: 999px;
  color: var(--ffvt-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  min-height: 38px;
  padding: 8px 14px;
}

.ffvt-pair-mode-tabs button:hover,
.ffvt-pair-mode-tabs button.is-active,
.ffvt-pair-mode-tabs button[aria-pressed="true"] {
  background: #eff1ff;
  border-color: #9ca5ff;
  color: var(--ffvt-brand-dark);
}

.ffvt-pair-preview-shell {
  margin: 0 auto;
  max-width: 900px;
}

.ffvt-pair-kicker {
  color: var(--ffvt-pair-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  margin: 0 0 18px;
}

.ffvt-pair-heading {
  color: var(--ffvt-pair-text);
  font-size: clamp(32px, var(--ffvt-pair-heading-size), 96px);
  letter-spacing: var(--ffvt-pair-tracking);
  line-height: .98;
  margin: 0;
  overflow-wrap: anywhere;
}

.ffvt-pair-body {
  color: var(--ffvt-pair-text);
  font-size: var(--ffvt-pair-body-size);
  line-height: var(--ffvt-pair-line-height);
  margin: 28px 0 0;
  max-width: 720px;
}

.ffvt-pair-support {
  align-items: end;
  background: var(--ffvt-pair-text);
  border-radius: 13px;
  color: var(--ffvt-pair-background);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 44px;
  padding: 24px;
}

.ffvt-pair-support > span:first-child {
  color: var(--ffvt-pair-accent);
  font-size: 11px;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: .14em;
}

.ffvt-pair-support strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.ffvt-pair-action {
  align-items: center;
  background: var(--ffvt-pair-accent);
  border-radius: 9px;
  color: var(--ffvt-pair-background);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  text-align: center;
}

.ffvt-pair-preview[data-pair-mode="landing"] {
  align-items: center;
  display: flex;
  text-align: center;
}

.ffvt-pair-preview[data-pair-mode="landing"] .ffvt-pair-body {
  margin-left: auto;
  margin-right: auto;
}

.ffvt-pair-landing-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}

.ffvt-pair-landing-actions > span:last-child {
  color: var(--ffvt-pair-text);
  font-size: 12px;
  font-weight: 700;
  opacity: .68;
}

.ffvt-pair-preview[data-pair-mode="dashboard"] {
  background-image: linear-gradient(rgba(127, 127, 127, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 127, 127, .08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.ffvt-pair-dashboard-topbar {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: .11em;
  margin: -4px 0 34px;
  padding-bottom: 16px;
}

.ffvt-pair-dashboard-topbar .ffvt-pair-action {
  letter-spacing: 0;
  min-height: 36px;
}

.ffvt-pair-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.ffvt-pair-metrics > div {
  background: rgba(127, 127, 127, .1);
  border: 1px solid rgba(127, 127, 127, .18);
  border-radius: 12px;
  display: grid;
  gap: 7px;
  padding: 20px;
}

.ffvt-pair-metrics strong {
  color: var(--ffvt-pair-text);
  font-size: clamp(27px, 4vw, 42px);
}

.ffvt-pair-metrics span {
  color: var(--ffvt-pair-text);
  font-size: 11px;
  font-weight: 750;
  opacity: .65;
  text-transform: uppercase;
}

.ffvt-pair-product-grid {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(170px, .7fr) minmax(280px, 1.3fr);
}

.ffvt-pair-product-visual {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: var(--ffvt-pair-text);
  border-radius: 14px;
  color: var(--ffvt-pair-background);
  display: flex;
  font-size: clamp(68px, 10vw, 130px);
  justify-content: center;
}

.ffvt-pair-product-footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 28px;
}

.ffvt-pair-product-footer strong {
  color: var(--ffvt-pair-text);
  font-size: 34px;
}

.ffvt-pair-diagnostics {
  border: 1px solid var(--ffvt-line);
  border-radius: 15px;
  margin-top: 18px;
  padding: 18px;
}

.ffvt-pair-diagnostics h3 {
  margin-bottom: 0;
}

.ffvt-pair-diagnostics ul {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.ffvt-pair-diagnostics li {
  border: 1px solid var(--ffvt-line);
  border-radius: 11px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.ffvt-pair-diagnostics li strong {
  font-size: 12px;
}

.ffvt-pair-diagnostics li span {
  color: var(--ffvt-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ffvt-pair-diagnostics li.is-good {
  background: #f1fbf6;
  border-color: #bce5cf;
}

.ffvt-pair-diagnostics li.is-good strong {
  color: var(--ffvt-good);
}

.ffvt-pair-diagnostics li.is-warn {
  background: #fff8ed;
  border-color: #f0d5a6;
}

.ffvt-pair-diagnostics li.is-warn strong {
  color: var(--ffvt-warn);
}

.ffvt-pair-selectors .ffvt-font-result.is-active {
  background: #eff1ff;
  box-shadow: inset 0 0 0 2px #9ca5ff;
}

.ffvt-pair-stage .ffvt-explanation p {
  margin: 0;
}

.ffvt-pair-stage .ffvt-explanation ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.ffvt-pair-stage .ffvt-explanation li {
  font-size: 12px;
}

.ffvt-pair-stage .ffvt-explanation a {
  color: var(--ffvt-brand);
  font-weight: 700;
}

.ffvt-pair-export {
  border-top: 1px solid var(--ffvt-line);
  margin-top: 20px;
  padding-top: 20px;
}

.ffvt-pair-export > p {
  color: var(--ffvt-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: -6px 0 0;
}

.ffvt-pair-export > label {
  margin-top: 16px;
}

.ffvt-pair-lifecycle {
  margin-top: 22px;
}

.ffvt-pair-lifecycle-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ffvt-pair-lifecycle-grid article {
  background: var(--ffvt-soft);
  border-radius: 14px;
  padding: 20px;
}

.ffvt-pair-lifecycle-grid h3 {
  font-size: 17px;
  margin: 0;
}

.ffvt-pair-lifecycle-grid p {
  color: var(--ffvt-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 9px 0 0;
}

.ffvt-dropzone {
  align-items: center;
  background: #fafaff;
  border: 2px dashed #babdcc;
  border-radius: 16px;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 210px;
  padding: 26px;
  text-align: center;
}

.ffvt-dropzone:hover,
.ffvt-dropzone.is-dragging,
.ffvt-dropzone:focus-within {
  background: #f1f2ff;
  border-color: var(--ffvt-brand);
}

.ffvt-dropzone input {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ffvt-dropzone strong {
  font-size: 19px;
}

.ffvt-dropzone span:not(.ffvt-drop-icon) {
  color: var(--ffvt-muted);
  font-size: 13px;
}

.ffvt-drop-icon {
  align-items: center;
  background: #e8eaff;
  border-radius: 14px;
  color: var(--ffvt-brand);
  display: inline-flex;
  font: 800 25px/1 Georgia, serif;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.ffvt-file-summary {
  color: var(--ffvt-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 14px 0;
}

.ffvt-rights {
  background: #fff8e8;
  border: 1px solid #f2d697;
  border-radius: 13px;
  margin: 16px 0 !important;
  padding: 13px;
}

.ffvt-rights span {
  display: grid;
  gap: 4px;
}

.ffvt-rights small {
  color: #775319;
  font-weight: 500;
  line-height: 1.45;
}

.ffvt-progress {
  background: #e9eaf1;
  border-radius: 999px;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
}

.ffvt-progress span {
  background: linear-gradient(90deg, var(--ffvt-brand), #8a5cff);
  display: block;
  height: 100%;
  transition: width .2s ease;
  width: 4%;
}

.ffvt-check-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
}

.ffvt-check-item {
  align-items: start;
  background: var(--ffvt-soft);
  border-radius: 11px;
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: 20px 1fr;
  line-height: 1.5;
  padding: 11px 12px;
}

.ffvt-check-item.is-good { color: var(--ffvt-good); }
.ffvt-check-item.is-warn { color: var(--ffvt-warn); }
.ffvt-check-item.is-bad { color: var(--ffvt-bad); }

.ffvt-image-editor {
  margin: 16px 0;
}

.ffvt-image-editor canvas {
  background: #e6e7ed;
  border: 1px solid #c9cad5;
  border-radius: 12px;
  cursor: crosshair;
  display: block;
  height: auto;
  max-height: 420px;
  width: 100%;
}

.ffvt-image-editor p,
.ffvt-identifier-grid small {
  color: var(--ffvt-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ffvt-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ffvt-inline-action {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ffvt-identifier-controls {
  margin-top: 14px;
}

.ffvt-catalog-status {
  align-items: center;
  background: #f6f7fb;
  border: 1px solid var(--ffvt-line);
  border-radius: 10px;
  color: var(--ffvt-muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.45;
  margin: 14px 0;
  padding: 10px 12px;
}

.ffvt-catalog-status::before {
  background: #a4a7b6;
  border-radius: 50%;
  content: '';
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.ffvt-catalog-status.is-ready::before {
  background: var(--ffvt-good);
  box-shadow: 0 0 0 4px rgba(13, 148, 95, .11);
}

.ffvt-privacy-note {
  background: #f2f5ff;
  border: 1px solid #dce3ff;
  border-radius: 12px;
  display: grid;
  font-size: 12px;
  gap: 4px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.ffvt-privacy-note strong {
  color: var(--ffvt-brand-dark);
  font-size: 13px;
}

.ffvt-privacy-note span {
  color: var(--ffvt-muted);
}

.ffvt-source-preview {
  align-items: center;
  background: var(--ffvt-soft);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  min-height: 110px;
  overflow: hidden;
  padding: 12px;
}

.ffvt-source-preview canvas,
.ffvt-source-preview img {
  display: block;
  max-height: 130px;
  max-width: 100%;
}

.ffvt-source-preview span {
  color: var(--ffvt-muted);
  font-size: 13px;
}

.ffvt-match-results {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ffvt-match-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ffvt-match-list > li {
  margin: 0;
  padding: 0;
}

.ffvt-match-card {
  align-items: center;
  border: 1px solid var(--ffvt-line);
  border-radius: 14px;
  display: grid;
  gap: 9px 15px;
  grid-template-columns: 72px minmax(0, 1fr) minmax(128px, auto);
  padding: 14px;
}

.ffvt-match-score {
  align-items: center;
  background: #eff1ff;
  border-radius: 50%;
  color: var(--ffvt-brand-dark);
  display: flex;
  flex-direction: column;
  height: 62px;
  justify-content: center;
  line-height: 1;
  width: 62px;
}

.ffvt-match-score strong {
  font-size: 14px;
  font-weight: 850;
}

.ffvt-match-score small {
  color: var(--ffvt-muted);
  font-size: 9px;
  font-weight: 750;
  margin-top: 4px;
  text-transform: uppercase;
}

.ffvt-match-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ffvt-match-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ffvt-match-family {
  color: var(--ffvt-ink);
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
}

.ffvt-source-badge,
.ffvt-match-strength {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.ffvt-source-badge.is-google {
  background: #eaf2ff;
  color: #1558bb;
}

.ffvt-source-badge.is-ffv {
  background: #edf8f2;
  color: #087a4c;
}

.ffvt-match-strength {
  background: #f3f3f6;
  color: var(--ffvt-muted);
}

.ffvt-match-preview {
  font-size: clamp(26px, 5vw, 52px);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ffvt-match-meta {
  color: var(--ffvt-muted);
  font-size: 12px;
}

.ffvt-match-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ffvt-match-actions a {
  color: var(--ffvt-brand);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ffvt-match-actions .ffvt-license-link {
  color: var(--ffvt-muted);
  font-size: 11px;
  font-weight: 700;
}

.ffvt-hub-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ffvt-hub-card {
  background: #fff;
  border: 1px solid var(--ffvt-line);
  border-radius: 20px;
  color: var(--ffvt-ink);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 290px;
  padding: 26px;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ffvt-hub-card:nth-child(n+4) {
  grid-column: span 3;
}

.ffvt-hub-card:hover {
  box-shadow: 0 20px 50px rgba(24, 24, 40, .1);
  color: var(--ffvt-ink);
  transform: translateY(-3px);
}

.ffvt-card-number {
  color: var(--ffvt-brand);
  font: 800 12px/1 ui-monospace, monospace;
  letter-spacing: .12em;
}

.ffvt-hub-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 30px 0 12px;
}

.ffvt-hub-card p {
  color: var(--ffvt-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.ffvt-hub-card > strong {
  color: var(--ffvt-brand);
  margin-top: auto;
}

.ffvt-copy-section {
  margin-top: 20px;
}

.ffvt-faq {
  border-top: 1px solid var(--ffvt-line);
  margin-top: 42px;
  padding-top: 36px;
}

.ffvt-faq > h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.04em;
  margin: 0 0 20px;
}

.ffvt-faq > div {
  display: grid;
  gap: 10px;
}

.ffvt-faq details {
  background: #fff;
  border: 1px solid var(--ffvt-line);
  border-radius: 13px;
  padding: 0;
}

.ffvt-faq summary {
  font-size: 16px;
  list-style: none;
  padding: 17px 48px 17px 18px;
  position: relative;
}

.ffvt-faq summary::-webkit-details-marker {
  display: none;
}

.ffvt-faq summary::after {
  color: var(--ffvt-brand);
  content: "+";
  font-size: 25px;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 15px;
}

.ffvt-faq details[open] summary::after {
  content: "−";
}

.ffvt-faq details p {
  color: var(--ffvt-muted);
  line-height: 1.65;
  margin: 0;
  padding: 0 18px 18px;
}

.ffvt-health-panel {
  margin: 18px 0;
}

.ffvt-health-disclaimer {
  background: #fff8e8;
  border-left: 4px solid #d79a2b;
  color: #654611;
  line-height: 1.55;
  padding: 12px 14px;
}

.ffvt-health-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.ffvt-health-stat {
  background: var(--ffvt-soft);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.ffvt-health-stat strong {
  font-size: 22px;
}

.ffvt-health-stat span {
  color: var(--ffvt-muted);
  font-size: 12px;
}

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

.ffvt-health-columns section {
  border: 1px solid var(--ffvt-line);
  border-radius: 13px;
  padding: 15px;
}

.ffvt-health-columns h3 {
  font-size: 17px;
  margin: 0 0 12px;
}

.ffvt-health-columns ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ffvt-health-columns li {
  font-size: 13px;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.ffvt-health-columns li::before {
  content: "●";
  font-size: 9px;
  left: 3px;
  position: absolute;
  top: 4px;
}

.ffvt-health-columns li.is-good::before { color: var(--ffvt-good); }
.ffvt-health-columns li.is-warn::before { color: var(--ffvt-warn); }
.ffvt-health-columns li.is-bad::before { color: var(--ffvt-bad); }

@media (max-width: 1020px) {
  .ffvt-workspace,
  .ffvt-converter-grid,
  .ffvt-identifier-grid,
  .ffvt-pairing-workspace {
    grid-template-columns: 1fr;
  }

  .ffvt-stage-panel {
    position: static;
  }

  .ffvt-generator-workspace .ffvt-stage-panel {
    grid-row: 1;
  }

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

  .ffvt-pair-section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .ffvt-hub-card {
    grid-column: span 3;
  }

  .ffvt-hub-card:nth-child(7) {
    grid-column: 2 / span 4;
  }

  .ffvt-health-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.page-id-24609 .entry-content .gb-container-2571326e {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .ffvt {
    padding: 12px 10px 54px;
  }

  .ffvt-hero {
    border-radius: 20px;
    padding: 30px 22px;
  }

  .ffvt-hero h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .ffvt-hero::after {
    opacity: .55;
  }

  .ffvt-trust {
    align-items: flex-start;
    flex-direction: column;
  }

  .ffvt-panel,
  .ffvt-stage-panel,
  .ffvt-health-panel {
    border-radius: 15px;
    padding: 15px;
  }

  .ffvt-control-grid,
  .ffvt-color-grid,
  .ffvt-copy-grid,
  .ffvt-health-summary {
    grid-template-columns: 1fr;
  }

  .ffvt-canvas-wrap {
    min-height: 300px;
    padding: 8px;
  }

  .ffvt-stage-heading,
  .ffvt-export-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .ffvt-export-bar .ffvt-button {
    width: 100%;
  }

  .ffvt-demo-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ffvt-demo-card button {
    width: 100%;
  }

  .ffvt-pair-sample-grid,
  .ffvt-pair-diagnostics ul,
  .ffvt-pair-lifecycle-grid,
  .ffvt-pair-product-grid,
  .ffvt-pair-metrics {
    grid-template-columns: 1fr;
  }

  .ffvt-pair-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ffvt-pair-preview {
    min-height: 460px;
    padding: 26px 20px;
  }

  .ffvt-pair-support {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ffvt-pair-support > span:first-child {
    grid-column: 1;
  }

  .ffvt-pair-product-visual {
    aspect-ratio: 16 / 8;
  }

  .ffvt-pair-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ffvt-inline-action {
    grid-template-columns: 1fr;
  }

  .ffvt-match-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ffvt-match-score {
    height: 52px;
    width: 52px;
  }

  .ffvt-match-actions {
    align-items: flex-start;
    grid-column: 2;
  }

  .ffvt-hub-grid {
    grid-template-columns: 1fr;
  }

  .ffvt-hub-card,
  .ffvt-hub-card:nth-child(n+4) {
    grid-column: 1;
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ffvt *,
  .ffvt *::before,
  .ffvt *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Generator sample library ------------------------------------------------ */
.ffvt-template-library {
  background: #fff;
  border: 1px solid var(--ffvt-line);
  border-radius: var(--ffvt-radius);
  box-shadow: 0 16px 50px rgba(24, 24, 37, .045);
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 32px);
}

.ffvt-template-library-heading {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  margin-bottom: 20px;
}

.ffvt-template-library-heading h2 {
  color: var(--ffvt-ink);
  font-size: clamp(27px, 4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 0;
}

.ffvt-template-library-heading p:not(.ffvt-eyebrow) {
  color: var(--ffvt-muted);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 780px;
}

.ffvt-template-search span {
  display: block;
  margin-bottom: 6px;
}

.ffvt-template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ffvt-template-filters button,
.ffvt-active-template button {
  background: #f5f6fb;
  border: 1px solid #d9dbe7;
  border-radius: 999px;
  color: #30303a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  min-height: 40px;
  padding: 8px 13px;
}

.ffvt-template-filters button span {
  color: var(--ffvt-muted);
  font-size: 10px;
  margin-left: 3px;
}

.ffvt-template-filters button:hover,
.ffvt-template-filters button[aria-pressed="true"],
.ffvt-active-template button:hover {
  background: #eff1ff;
  border-color: #909aff;
  color: var(--ffvt-brand-dark);
}

.ffvt-template-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ffvt-template-grid.is-initially-collapsed .ffvt-template-card:nth-child(n+13) {
  display: none;
}

.ffvt-template-card {
  appearance: none;
  background: #fff;
  border: 1px solid #dbdce7;
  border-radius: 15px;
  color: var(--ffvt-ink);
  cursor: pointer;
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ffvt-template-card:hover {
  border-color: #9da5f3;
  box-shadow: 0 13px 30px rgba(31, 39, 113, .1);
  transform: translateY(-2px);
}

.ffvt-template-card[aria-pressed="true"] {
  border-color: var(--ffvt-brand);
  box-shadow: 0 0 0 3px rgba(34, 49, 209, .13), 0 13px 30px rgba(31, 39, 113, .1);
}

.ffvt-template-preview {
  align-items: center;
  aspect-ratio: 16 / 8.6;
  background: linear-gradient(135deg, var(--ffvt-preview-bg), var(--ffvt-preview-bg-2));
  display: flex;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  position: relative;
  width: 100%;
}

.ffvt-template-preview::before {
  content: "";
  inset: 0;
  opacity: .42;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.ffvt-template-preview[data-pattern="grid"]::before,
.ffvt-template-preview[data-pattern="hud"]::before {
  background-image: linear-gradient(var(--ffvt-preview-accent) 1px, transparent 1px), linear-gradient(90deg, var(--ffvt-preview-accent) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .2;
}

.ffvt-template-preview[data-pattern="dots"]::before,
.ffvt-template-preview[data-pattern="comic-dots"]::before,
.ffvt-template-preview[data-pattern="bubbles"]::before,
.ffvt-template-preview[data-pattern="rings"]::before {
  background-image: radial-gradient(circle, var(--ffvt-preview-accent) 2px, transparent 2.5px);
  background-size: 20px 20px;
  opacity: .24;
}

.ffvt-template-preview[data-pattern="stripes"]::before,
.ffvt-template-preview[data-pattern="scanlines"]::before,
.ffvt-template-preview[data-pattern="paper-lines"]::before {
  background-image: repeating-linear-gradient(135deg, var(--ffvt-preview-accent) 0 2px, transparent 2px 18px);
  opacity: .17;
}

.ffvt-template-preview[data-pattern="rays"]::before,
.ffvt-template-preview[data-pattern="sunset"]::before,
.ffvt-template-preview[data-pattern="rainbow"]::before {
  background: conic-gradient(from 20deg at 50% 62%, transparent, var(--ffvt-preview-accent), transparent 18%, var(--ffvt-preview-accent), transparent 36%, var(--ffvt-preview-accent), transparent 54%, var(--ffvt-preview-accent), transparent 72%, var(--ffvt-preview-accent), transparent);
  opacity: .2;
}

.ffvt-template-preview[data-pattern="checker"]::before {
  background-image: linear-gradient(45deg, var(--ffvt-preview-accent) 25%, transparent 25%), linear-gradient(-45deg, var(--ffvt-preview-accent) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--ffvt-preview-accent) 75%), linear-gradient(-45deg, transparent 75%, var(--ffvt-preview-accent) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
  opacity: .14;
}

.ffvt-template-preview strong {
  color: var(--ffvt-preview-ink);
  font-family: var(--ffvt-preview-font);
  font-size: clamp(18px, 2.15vw, 34px);
  letter-spacing: .035em;
  line-height: .94;
  max-width: 95%;
  overflow-wrap: anywhere;
  position: relative;
  text-align: center;
  text-shadow: 0 3px 0 var(--ffvt-preview-accent), 0 8px 18px var(--ffvt-preview-accent);
  z-index: 1;
}

.ffvt-template-card-copy {
  display: grid;
  gap: 5px;
  padding: 13px 14px 15px;
}

.ffvt-template-card-copy > strong {
  font-size: 15px;
  line-height: 1.2;
}

.ffvt-template-card-copy small {
  color: var(--ffvt-muted);
  font-size: 11px;
  line-height: 1.4;
  min-height: 31px;
}

.ffvt-template-card-copy span {
  color: var(--ffvt-brand);
  font-size: 10px;
  font-weight: 800;
  margin-top: 3px;
}

.ffvt-template-library-footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
}

.ffvt-template-library-footer p {
  color: var(--ffvt-muted);
  font-size: 13px;
  margin: 0;
}

.ffvt-active-template {
  align-items: center;
  background: #eef0ff;
  border: 1px solid #cfd3ff;
  border-radius: 13px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 12px;
}

.ffvt-active-template div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ffvt-active-template span {
  color: var(--ffvt-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ffvt-active-template strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ffvt-active-template button {
  background: #fff;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 10px;
}

.ffvt-generator-storage-note {
  background: #eef8f3;
  border-left: 4px solid #27815b;
  border-radius: 10px;
  margin-top: 16px;
  padding: 12px 14px;
}

.ffvt-generator-storage-note strong {
  color: #12573b;
  font-size: 13px;
}

.ffvt-generator-storage-note p {
  color: #335c4b;
  font-size: 12px;
  line-height: 1.55;
  margin: 4px 0 0;
}

@media (max-width: 1120px) {
  .ffvt-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ffvt-template-library-heading {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .ffvt-template-library {
    border-radius: 16px;
    padding: 16px;
  }

  .ffvt-template-filters {
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 2px 16px 8px;
    scrollbar-width: thin;
  }

  .ffvt-template-filters button {
    flex: 0 0 auto;
  }

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

  .ffvt-template-preview strong {
    font-size: clamp(20px, 6.4vw, 29px);
  }

  .ffvt-template-library-footer,
  .ffvt-active-template {
    align-items: stretch;
    flex-direction: column;
  }

  .ffvt-template-library-footer .ffvt-button,
  .ffvt-active-template button {
    width: 100%;
  }
}
