@font-face {
  font-family: "QF Text";
  src: url("/app-quitar-fondo/fonts/archivo-latin-v25.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "QF Display";
  src: url("/app-quitar-fondo/fonts/epilogue-latin-v20.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:focus-visible {
  outline: 3px solid #5c59e8;
  outline-offset: 3px;
}

:root {
  --qf-ice-50: oklch(98.2% 0.009 239.96);
  --qf-ice-100: oklch(95.18% 0.02 239.96);
  --qf-ice-200: oklch(91.5% 0.027 239.96);
  --qf-ice-shadow: oklch(70% 0.035 239.96 / 0.24);
  --qf-ink: oklch(26% 0.036 250);
  --font-body: "QF Text", sans-serif;
  --font-display: "QF Display", sans-serif;
  --qf-surface: oklch(98.4% 0.01 239.96);
  --qf-surface-muted: oklch(94.8% 0.018 239.96);
  --qf-line: oklch(78% 0.025 239.96 / 0.34);
  --qf-accent: oklch(60% 0.19 278);
  --qf-accent-warm: oklch(78% 0.14 56);
  --qf-brand-sun: oklch(82% 0.18 68);
}

body {
  background: var(--qf-ice-100);
  overflow-x: clip;
}

#root > div {
  overflow-x: clip;
}

::selection {
  color: #28273b;
  background: #ffc47a;
}

#root > div[class*="bg-[#E2E6EE]"] {
  background-color: var(--qf-ice-100) !important;
  background-image:
    radial-gradient(circle at 8% 4%, oklch(87% 0.075 65 / 0.26), transparent 29rem),
    radial-gradient(circle at 92% 18%, oklch(80% 0.065 255 / 0.18), transparent 34rem),
    linear-gradient(150deg, var(--qf-ice-50), var(--qf-ice-100) 52%, var(--qf-ice-200));
}

#root > div > [class*="max-w-[1200px]"] {
  border: 1px solid oklch(100% 0 0 / 0.76);
  box-shadow:
    24px 24px 60px var(--qf-ice-shadow),
    -20px -20px 50px oklch(100% 0 0 / 0.88);
}

#root > div[class*="bg-[#E2E6EE]"] > [class*="max-w-[1200px]"] > [class*="lg:w-[40%]"] {
  background: linear-gradient(155deg, oklch(28% 0.034 248), oklch(22% 0.03 258)) !important;
}

#root > div[class*="bg-[#E2E6EE]"] > [class*="max-w-[1200px]"] > [class*="lg:w-[60%]"] {
  background-color: oklch(98% 0.012 239.96 / 0.78) !important;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(70% 0.03 239.96 / 0.18) 1px, transparent 0) !important;
  background-size: 22px 22px !important;
}

.qf-workspace__tool .text-gray-300,
.qf-editorial:not(.text-white):not(.text-gray-200) .text-gray-300 {
  color: #596174;
}

.qf-creator-credit {
  color: oklch(78% 0.018 250) !important;
  text-decoration: none;
}

.qf-creator-credit__name {
  color: oklch(91% 0.03 72) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.qf-creator-credit:hover .qf-creator-credit__name {
  color: oklch(82% 0.13 45) !important;
}

#root > div > [class*="max-w-[1200px]"] > [class*="lg:w-[60%]"] p.text-gray-400 {
  color: #596174;
}

button.icon-squircle,
button.icon-squircle-dark {
  min-width: 44px;
  min-height: 44px;
}

footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.qf-brand-shell {
  width: 84px !important;
  height: 84px !important;
  flex: 0 0 84px;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid oklch(100% 0 0 / 0.7) !important;
  border-radius: 1.65rem !important;
  background: oklch(95.18% 0.02 239.96) !important;
  box-shadow:
    0 0.8rem 1.8rem oklch(12% 0.04 260 / 0.22),
    inset 0 1px 0 oklch(100% 0 0 / 0.72) !important;
}

.qf-brand-mark {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: inherit;
  filter: none;
}

.qf-brand-word {
  display: inline-flex !important;
  min-width: 0;
  flex-direction: row !important;
  gap: 0;
  align-items: baseline;
  font-family: var(--font-display) !important;
  font-kerning: normal;
  white-space: nowrap;
}

.qf-brand-word > span:first-child,
.qf-brand-word > div > span {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  line-height: 0.94 !important;
  text-shadow: none !important;
}

.qf-brand-word > span:first-child,
.qf-brand-word__primary {
  color: oklch(97% 0.009 72) !important;
  font-size: 1.82rem !important;
  letter-spacing: -0.062em !important;
}

.qf-brand-word > div {
  display: inline-flex !important;
  margin: 0 !important;
}

.qf-brand-word > div > span,
.qf-brand-word__accent {
  color: var(--qf-brand-sun) !important;
  font-size: 1.82rem !important;
  letter-spacing: -0.062em !important;
}

/* Keep the flagship title crisp and remove continuously painted text effects. */
.text-shimmer {
  color: oklch(96% 0.012 72) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

#root .qf-hero-title {
  display: flex;
  max-width: 10ch;
  flex-direction: column;
  gap: 0.12em;
  color: oklch(97% 0.009 72) !important;
  font-size: clamp(2.75rem, 5.2vw, 3.75rem) !important;
  font-weight: 800 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.06em !important;
  text-wrap: balance;
}

.qf-hero-title__brand {
  color: inherit;
}

.qf-hero-title__detail {
  color: oklch(81% 0.032 246);
  font-size: 0.56em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
}

#root .bg-clip-text.text-transparent {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

/* The editor cursor still communicates brush size without GPU-heavy blending. */
.magic-cursor {
  position: absolute !important;
  transform: translate(-50%, -50%) !important;
  backdrop-filter: none !important;
  mix-blend-mode: normal !important;
  box-shadow: none !important;
  will-change: left, top, width, height;
}

.qf-editor-accessible canvas,
.qf-editor-accessible .compare-handle {
  touch-action: none;
}

.qf-editor-accessible canvas.cursor-none {
  cursor: none !important;
}

.qf-editor-accessible canvas.cursor-crosshair {
  cursor: crosshair !important;
}

.qf-editor-accessible canvas.cursor-grab {
  cursor: grab !important;
}

.qf-editor-accessible canvas.cursor-grabbing {
  cursor: grabbing !important;
}

.qf-editor-accessible canvas.cursor-default {
  cursor: default !important;
}

.qf-view-tool {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 760;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.qf-view-tool:hover {
  transform: translateY(-1px);
}

.qf-primary-toolbar {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.qf-primary-toolbar::-webkit-scrollbar {
  display: none;
}

.qf-primary-tool {
  flex: 0 0 auto;
  min-height: 2.75rem;
}

.qf-dock {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem !important;
  align-content: center;
  margin-top: 1.5rem !important;
  padding: 0.5rem;
  border: 1px solid oklch(100% 0 0 / 0.09);
  border-radius: 1.25rem;
  background: oklch(17.5% 0.032 258 / 0.72);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.055),
    inset 0 -1px 0 oklch(7% 0.025 258 / 0.28);
}

/* Session gallery: explicit affordance, keyboard parity and useful actions. */
.qf-recents {
  position: relative;
  z-index: 46;
}

.qf-recents__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.qf-recents__toggle,
.qf-recents__clear {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid oklch(100% 0 0 / 0.1);
  border-radius: 0.85rem;
  background: oklch(100% 0 0 / 0.045);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.qf-recents__toggle {
  padding: 0.72rem 0.82rem;
  color: oklch(90% 0.018 248);
  letter-spacing: 0.02em;
}

.qf-recents__toggle:hover,
.qf-recents__toggle:focus-visible {
  border-color: oklch(78% 0.115 195 / 0.5);
  background: oklch(72% 0.11 195 / 0.12);
  color: white;
}

.qf-recents__chevron {
  display: inline-block;
  font-size: 1rem;
  transition: transform 160ms ease;
}

.qf-recents__chevron.is-open {
  transform: rotate(180deg);
}

.qf-recents__clear {
  padding: 0.7rem 0.72rem;
  color: oklch(76% 0.14 24);
}

.qf-recents__clear:hover,
.qf-recents__clear:focus-visible {
  border-color: oklch(69% 0.18 25 / 0.48);
  background: oklch(58% 0.17 25 / 0.15);
  color: oklch(86% 0.1 25);
}

.qf-recents__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.8rem;
  padding: 0.65rem 0 0.85rem;
  overflow: visible;
}

.qf-recents__hint {
  grid-column: 1 / -1;
  margin: 0;
  color: oklch(73% 0.022 248);
  font-size: 0.68rem;
  line-height: 1.35;
}

.qf-recent-card {
  position: relative;
  width: min(100%, 12rem);
  min-width: 0;
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 1.1rem;
  isolation: isolate;
  transition: translate 170ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 170ms ease;
}

.qf-recent-card:hover,
.qf-recent-card:focus-within {
  z-index: 80;
  translate: 0 -0.12rem;
  filter: drop-shadow(0 0.75rem 1rem oklch(7% 0.025 258 / 0.42));
}

.qf-recent-card__open {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: 1rem;
  background-color: oklch(94% 0.012 245);
  background-image:
    linear-gradient(45deg, oklch(87% 0.012 245) 25%, transparent 25%),
    linear-gradient(-45deg, oklch(87% 0.012 245) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, oklch(87% 0.012 245) 75%),
    linear-gradient(-45deg, transparent 75%, oklch(87% 0.012 245) 75%);
  background-position: 0 0, 0 0.35rem, 0.35rem -0.35rem, -0.35rem 0;
  background-size: 0.7rem 0.7rem;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.38);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.qf-recent-card:hover .qf-recent-card__open,
.qf-recent-card:focus-within .qf-recent-card__open {
  border-color: oklch(82% 0.1 195 / 0.54);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.48),
    0 0 0 0.18rem oklch(72% 0.11 195 / 0.13);
}

.qf-recent-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.qf-recent-card:hover .qf-recent-card__image,
.qf-recent-card:focus-within .qf-recent-card__image {
  transform: scale(1.065);
}

.qf-recent-card__date {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 3;
  max-width: calc(100% - 0.7rem);
  overflow: hidden;
  padding: 0.18rem 0.32rem;
  color: white;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 999px;
  background: oklch(17% 0.025 258 / 0.78);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.qf-recent-card__actions {
  position: absolute;
  right: 0.42rem;
  bottom: 0.42rem;
  left: 0.42rem;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  box-sizing: border-box;
  padding: 0.3rem;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 0.9rem;
  background: oklch(15% 0.027 258 / 0.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.qf-recent-card:hover .qf-recent-card__actions,
.qf-recent-card:focus-within .qf-recent-card__actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qf-recent-action {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: oklch(92% 0.016 248);
  border: 1px solid oklch(100% 0 0 / 0.06);
  border-radius: 0.7rem;
  background: oklch(100% 0 0 / 0.07);
  font-size: 0.9rem;
  font-weight: 750;
}

.qf-recent-action::after {
  position: absolute;
  bottom: calc(100% + 0.42rem);
  left: 50%;
  z-index: 9;
  padding: 0.28rem 0.42rem;
  color: oklch(96% 0.01 248);
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: 0.45rem;
  background: oklch(12% 0.025 258 / 0.96);
  box-shadow: 0 0.35rem 0.8rem oklch(5% 0.02 258 / 0.3);
  content: attr(data-tooltip);
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.qf-recent-action:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qf-recent-action:hover::after {
  transition-delay: 260ms;
}

.qf-recent-action:focus-visible::after {
  transition-delay: 0ms;
}

.qf-recent-action:hover,
.qf-recent-action:focus-visible {
  color: white;
  border-color: oklch(82% 0.1 195 / 0.28);
  background: oklch(72% 0.13 195 / 0.34);
  box-shadow: 0 0 0 0.16rem oklch(72% 0.13 195 / 0.16);
}

.qf-recent-action.is-danger:hover,
.qf-recent-action.is-danger:focus-visible {
  color: white;
  border-color: oklch(82% 0.11 25 / 0.32);
  background: oklch(59% 0.2 25 / 0.72);
  box-shadow: 0 0 0 0.16rem oklch(64% 0.18 25 / 0.17);
}

.qf-dock > div {
  width: 100%;
  min-width: 0;
  grid-row: 2;
}

.qf-dock > div > button.icon-squircle-dark,
.qf-dock > button.icon-squircle-dark {
  display: flex;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  inline-size: 100% !important;
  justify-self: stretch;
  height: 3.25rem !important;
  min-height: 3.25rem;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.3rem;
  color: oklch(84% 0.018 250);
  border: 1px solid oklch(100% 0 0 / 0.075);
  border-radius: 0.9rem;
  background: oklch(100% 0 0 / 0.035);
  box-shadow: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qf-dock > button.icon-squircle-dark {
  grid-row: 2;
}

.qf-dock > div > button.icon-squircle-dark:hover,
.qf-dock > button.icon-squircle-dark:hover {
  color: oklch(98% 0.008 72);
  border-color: oklch(100% 0 0 / 0.16);
  background: oklch(100% 0 0 / 0.075);
  box-shadow: none;
  transform: translateY(-1px);
}

.qf-dock > div > button.icon-squircle-dark:active,
.qf-dock > button.icon-squircle-dark:active {
  background: oklch(8% 0.025 258 / 0.32);
  box-shadow: inset 0 1px 0 oklch(4% 0.02 258 / 0.28);
  transform: scale(0.98);
}

.qf-dock > div > button.icon-squircle-dark:focus-visible,
.qf-dock > button.icon-squircle-dark:focus-visible {
  outline-color: oklch(83% 0.13 61);
  outline-offset: 2px;
}

.qf-dock .icon-squircle-dark::after {
  font-size: 0.61rem;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.01em;
}

.qf-dock .icon-squircle-dark[aria-label^="Acerca de"]::after,
.qf-dock .icon-squircle-dark[aria-label^="About"]::after {
  content: "Info";
}

.qf-dock .icon-squircle-dark[aria-label^="Activar modo"]::after {
  content: "Tema";
}

.qf-dock .icon-squircle-dark[aria-label^="Enable "]::after {
  content: "Theme";
}

.qf-dock .icon-squircle-dark[aria-label="Atajos de teclado"]::after {
  content: "Atajos";
}

.qf-dock .icon-squircle-dark[aria-label="Keyboard shortcuts"]::after {
  content: "Shortcuts";
}

.qf-dock .icon-squircle-dark > span {
  font-size: 0.61rem !important;
  line-height: 1;
}

.qf-quality-switch {
  display: grid;
  width: 100%;
  min-height: 3.25rem;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: 1.75rem minmax(0, 1fr) 2.5rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  color: oklch(96% 0.012 72);
  border: 1px solid oklch(100% 0 0 / 0.1);
  border-radius: 0.95rem;
  background: oklch(100% 0 0 / 0.055);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.055),
    inset 0 -1px 0 oklch(7% 0.025 258 / 0.18);
  text-align: left;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qf-quality-switch:hover:not(:disabled) {
  border-color: oklch(100% 0 0 / 0.18);
  background: oklch(100% 0 0 / 0.085);
  transform: translateY(-1px);
}

.qf-quality-switch:focus-visible {
  outline: 3px solid oklch(78% 0.15 53 / 0.78);
  outline-offset: 3px;
}

.qf-quality-switch__icon {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  color: oklch(28% 0.04 55);
  border-radius: 0.72rem;
  background: oklch(84% 0.12 73);
}

.qf-quality-switch.is-quality .qf-quality-switch__icon {
  color: oklch(25% 0.045 160);
  background: oklch(82% 0.13 158);
}

.qf-quality-switch__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.05;
}

.qf-quality-switch__copy strong {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qf-quality-switch__copy small {
  color: oklch(76% 0.025 250);
  font-size: 0.58rem;
  font-weight: 600;
  white-space: nowrap;
}

.qf-quality-switch__track {
  position: relative;
  width: 2.65rem;
  height: 1.5rem;
  border: 1px solid oklch(100% 0 0 / 0.15);
  border-radius: 999px;
  background: oklch(66% 0.13 67 / 0.62);
  box-shadow: inset 0 0.18rem 0.45rem oklch(8% 0.03 260 / 0.3);
  transition: background-color 180ms ease;
}

.qf-quality-switch__thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: oklch(98% 0.008 72);
  box-shadow: 0 0.15rem 0.4rem oklch(8% 0.025 260 / 0.35);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qf-quality-switch.is-quality .qf-quality-switch__track {
  background: oklch(65% 0.14 158 / 0.72);
}

.qf-quality-switch.is-quality .qf-quality-switch__thumb {
  transform: translateX(1.12rem);
}

.qf-quality-switch.is-compatible .qf-quality-switch__icon {
  color: oklch(24% 0.05 278);
  background: oklch(81% 0.12 285);
}

.qf-quality-switch.is-compatible .qf-quality-switch__track {
  background: oklch(64% 0.14 286 / 0.74);
}

.qf-quality-switch.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.qf-workspace__tool :has(> .qf-upload-limit) {
  padding-bottom: 5rem !important;
}

.qf-upload-limit {
  position: absolute;
  right: clamp(1.8rem, 6%, 3.25rem);
  bottom: 2.15rem;
  left: clamp(1.8rem, 6%, 3.25rem);
  z-index: 30;
  display: flex;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  max-width: none;
  margin: 0;
  padding: 0.25rem 0.7rem;
  color: oklch(39% 0.03 250);
  border: 1px solid oklch(100% 0 0 / 0.62);
  border-radius: 999px;
  background: oklch(98% 0.01 240 / 0.86);
  box-shadow: 0 0.35rem 1rem oklch(55% 0.03 250 / 0.12);
  font-size: 0.72rem;
  font-weight: 680;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}

.glass-card-dark > .qf-upload-limit,
.glass-panel-dark > .qf-upload-limit {
  color: oklch(87% 0.018 250);
  border-color: oklch(100% 0 0 / 0.11);
  background: oklch(25% 0.034 258 / 0.92);
  box-shadow: 0 0.35rem 1rem oklch(8% 0.02 258 / 0.28);
}

.qf-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.85rem;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.78rem;
}

.qf-legal-nav a,
.qf-legal-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0.35rem 0;
  color: #596174;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.qf-legal-nav a:hover,
.qf-legal-nav button:hover {
  color: #4433bb;
  text-decoration-color: currentColor;
}

.qf-consent {
  position: fixed;
  z-index: 10000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(16rem, 21rem) minmax(16rem, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  max-width: 70rem;
  max-height: calc(100dvh - 2rem);
  margin-inline: auto;
  padding: 1.15rem;
  color: #28273b;
  border: 1px solid rgb(255 255 255 / 0.88);
  border-radius: 1.35rem;
  background: rgb(241 243 249 / 0.96);
  box-shadow:
    16px 16px 40px rgb(73 75 103 / 0.26),
    -10px -10px 30px rgb(255 255 255 / 0.9);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.qf-consent__heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  gap: 0.8rem;
  align-items: center;
}

.qf-consent__heading > img {
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.82);
  border-radius: 0.9rem;
  box-shadow: 0 0.5rem 1rem rgb(77 86 112 / 0.16);
}

.qf-consent__eyebrow,
.qf-consent__status {
  display: block;
  color: #60687d;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.qf-consent__status {
  margin-top: 0.28rem;
  color: #4433bb;
  font-size: 0.65rem;
  letter-spacing: 0.035em;
  text-transform: none;
}

.qf-consent__copy {
  max-width: 36rem;
}

.qf-consent strong {
  display: block;
  margin-top: 0.14rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.qf-consent p {
  margin: 0;
  color: #4e5467;
  font-size: 0.86rem;
  line-height: 1.5;
}

.qf-consent .qf-consent__promise {
  margin-top: 0.28rem;
  color: #294f48;
  font-size: 0.78rem;
  font-weight: 750;
}

.qf-consent a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #4433bb;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.qf-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(9rem, 1fr));
  flex: 0 0 auto;
  gap: 0.65rem;
}

.qf-consent button {
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0.7rem 1rem;
  color: #36364b;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 0.9rem;
  background: var(--qf-ice-100);
  box-shadow:
    5px 5px 12px rgb(142 148 171 / 0.24),
    -5px -5px 12px rgb(255 255 255 / 0.9);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.qf-consent button span {
  font-weight: 780;
}

.qf-consent button small {
  margin-top: 0.15rem;
  color: #6a7184;
  font-size: 0.68rem;
  font-weight: 600;
}

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

.qf-consent .qf-consent__accept {
  color: #36364b;
  border-color: rgb(255 128 105 / 0.5);
  background: var(--qf-ice-100);
  box-shadow:
    5px 5px 12px rgb(142 148 171 / 0.24),
    -5px -5px 12px rgb(255 255 255 / 0.9);
}

.qf-consent[data-current-consent="denied"] button[data-qf-consent="denied"],
.qf-consent[data-current-consent="granted"] button[data-qf-consent="granted"] {
  border-color: #5c59e8;
  box-shadow: inset 0 0 0 1px rgb(92 89 232 / 0.14);
}

.qf-consent .qf-consent__close {
  width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #687084;
  border-color: transparent;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.52);
  box-shadow: none;
  font-size: 1.35rem;
  font-weight: 500;
}

.qf-image-alert {
  position: fixed;
  z-index: 10001;
  top: 1rem;
  left: 50%;
  max-width: min(32rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  color: #7c2930;
  border: 1px solid #ffc0bd;
  border-radius: 1rem;
  background: #fff1ef;
  box-shadow: 0 12px 28px rgb(124 41 48 / 0.16);
  transform: translateX(-50%);
}

.qf-consent[hidden] {
  display: none !important;
}

@keyframes qf-install-arrive {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qf-install-invite {
  position: fixed;
  z-index: 9000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(25rem, calc(100vw - 2rem));
  padding: 1rem;
  color: oklch(25% 0.035 258);
  border: 1px solid oklch(100% 0 0 / 0.88);
  border-radius: 1.5rem;
  background: oklch(98.5% 0.012 240 / 0.97);
  box-shadow:
    0 1.5rem 4rem oklch(25% 0.035 258 / 0.2),
    inset 0 1px 0 oklch(100% 0 0 / 0.82);
  backdrop-filter: blur(18px);
  animation: qf-install-arrive 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qf-install-invite__top {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 44px;
  gap: 0.75rem;
  align-items: center;
}

.qf-install-invite__mark {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid oklch(100% 0 0 / 0.8);
  border-radius: 1rem;
  box-shadow: 0 0.45rem 1rem oklch(28% 0.04 258 / 0.16);
}

.qf-install-invite__eyebrow {
  margin: 0 0 0.16rem;
  color: oklch(48% 0.12 45);
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qf-install-invite h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 790;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.qf-install-invite__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: oklch(45% 0.025 258);
  border: 0;
  border-radius: 50%;
  background: oklch(91% 0.015 240);
  font: 500 1.35rem/1 sans-serif;
}

.qf-install-invite__description {
  margin: 0.9rem 0 0;
  color: oklch(42% 0.027 258);
  font-size: 0.87rem;
  line-height: 1.52;
}

.qf-install-invite__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.qf-install-invite__benefits li {
  padding: 0.32rem 0.55rem;
  color: oklch(37% 0.045 245);
  border: 1px solid oklch(72% 0.03 245 / 0.32);
  border-radius: 999px;
  background: oklch(94% 0.018 240);
  font-size: 0.68rem;
  font-weight: 720;
}

.qf-install-invite__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.qf-install-invite__actions button {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  font: 750 0.8rem/1.2 var(--font-body);
}

.qf-install-invite__later {
  color: oklch(36% 0.03 258);
  border-color: oklch(75% 0.025 250 / 0.42) !important;
  background: transparent;
}

.qf-install-invite__install {
  color: oklch(20% 0.04 45);
  background: var(--qf-brand-sun);
  box-shadow: 0 0.5rem 1.2rem oklch(57% 0.17 40 / 0.23);
}

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

.qf-install-invite button:focus-visible {
  outline: 3px solid oklch(62% 0.16 273 / 0.72);
  outline-offset: 2px;
}

body:has(#root > div.bg-dotgrid-dark) .qf-install-invite {
  color: oklch(96% 0.012 72);
  border-color: oklch(100% 0 0 / 0.12);
  background: oklch(23% 0.035 258 / 0.97);
  box-shadow:
    0 1.5rem 4rem oklch(6% 0.025 258 / 0.48),
    inset 0 1px 0 oklch(100% 0 0 / 0.07);
}

body:has(#root > div.bg-dotgrid-dark) .qf-install-invite__description {
  color: oklch(81% 0.02 250);
}

body:has(#root > div.bg-dotgrid-dark) .qf-install-invite__close,
body:has(#root > div.bg-dotgrid-dark) .qf-install-invite__benefits li {
  color: oklch(88% 0.018 250);
  border-color: oklch(100% 0 0 / 0.12) !important;
  background: oklch(100% 0 0 / 0.07);
}

body:has(#root > div.bg-dotgrid-dark) .qf-install-invite__later {
  color: oklch(87% 0.018 250);
  border-color: oklch(100% 0 0 / 0.15) !important;
}

.qf-editor-accessible button {
  min-width: 44px;
  min-height: 44px;
}

.qf-editor-accessible .compare-handle {
  min-width: 44px;
  min-height: 44px;
}

.qf-static-fallback {
  width: min(54rem, calc(100% - 2rem));
  margin: clamp(1rem, 5vw, 4rem) auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--qf-ink);
  border: 1px solid oklch(100% 0 0 / 0.78);
  border-radius: 2rem;
  background: oklch(98% 0.012 239.96 / 0.82);
  box-shadow:
    18px 18px 45px var(--qf-ice-shadow),
    -16px -16px 38px oklch(100% 0 0 / 0.9);
}

.qf-static-fallback__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font: 800 1.2rem/1.1 "QF Display", sans-serif;
}

.qf-static-fallback__brand img {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  object-fit: cover;
}

.qf-static-fallback h1,
.qf-static-fallback h2 {
  font-family: "QF Display", sans-serif;
  line-height: 1.12;
}

/* Flagship shell: both halves now read as one deliberate object. */
.qf-workspace {
  gap: 0.375rem;
  padding: 0.375rem;
  overflow: clip !important;
  border: 1px solid oklch(100% 0 0 / 0.72) !important;
  border-radius: 2.75rem !important;
  background: color-mix(in oklch, var(--qf-ice-100) 82%, white) !important;
  box-shadow:
    1.5rem 1.75rem 4rem oklch(65% 0.03 239.96 / 0.22),
    -1.15rem -1.15rem 3.25rem oklch(100% 0 0 / 0.88) !important;
  isolation: isolate;
}

.qf-workspace__info,
.qf-workspace__tool {
  min-width: 0;
  margin: 0 !important;
  border-radius: 2.3rem !important;
}

.qf-workspace__info {
  width: calc(40% - 0.1875rem) !important;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.12);
}

.qf-workspace__tool {
  width: calc(60% - 0.1875rem) !important;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.72),
    inset 0 0 0 1px oklch(75% 0.025 239.96 / 0.12);
}

/* Once a result exists, editing becomes the primary job. The information
   column remains available as a reversible drawer instead of consuming 40%. */
.qf-workspace.qf-workspace--editing {
  width: min(100rem, calc(100vw - 2rem)) !important;
  max-width: 100rem !important;
  min-height: min(56rem, calc(100dvh - 2rem));
}

.qf-workspace--editing .qf-workspace__info {
  display: none !important;
}

.qf-workspace--editing .qf-workspace__tool {
  width: 100% !important;
  min-height: min(55.25rem, calc(100dvh - 2.75rem));
}

.qf-workspace--editing.qf-workspace--sidebar-visible .qf-workspace__info {
  display: flex !important;
  width: calc(32% - 0.1875rem) !important;
}

.qf-workspace--editing.qf-workspace--sidebar-visible .qf-workspace__tool {
  width: calc(68% - 0.1875rem) !important;
}

.qf-editor-accessible {
  min-width: 0;
}

.qf-workspace--editing .qf-editor-accessible > .flex-1 {
  min-height: 0;
  flex: 1 1 0;
}

/* Keep the real export controls inside the editor's reserved last row. The
   stage may shrink, but the actions never sit under a clipped canvas. */
.qf-editor-stage {
  min-height: 0 !important;
}

.qf-editor-export-bar {
  position: relative;
  z-index: 42;
  min-width: 0;
  min-height: 3.25rem;
  flex: 0 0 auto;
  padding-block: 0.25rem;
}

.qf-editor-export-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem !important;
  padding: 0.3rem;
  border: 1px solid oklch(70% 0.045 242 / 0.22);
  border-radius: 1rem;
  background: oklch(97.2% 0.013 239.96);
  box-shadow:
    0 0.55rem 1.2rem oklch(47% 0.03 248 / 0.12),
    inset 0 1px 0 oklch(99% 0.008 240);
}

.qf-editor-export-label {
  padding-inline: 0.55rem 0.35rem;
  color: oklch(38% 0.035 250);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.qf-editor-export-button {
  min-width: max-content;
  min-height: 2.75rem !important;
  justify-content: center;
  gap: 0.38rem !important;
  color: oklch(34% 0.04 252) !important;
  border-color: oklch(67% 0.05 242 / 0.24) !important;
  background: oklch(94.8% 0.018 239.96) !important;
  box-shadow:
    0 0.3rem 0.72rem oklch(49% 0.035 248 / 0.11),
    inset 0 1px 0 oklch(99% 0.006 240) !important;
  white-space: nowrap;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.qf-editor-export-button:hover {
  color: oklch(28% 0.052 252) !important;
  border-color: oklch(62% 0.11 230 / 0.42) !important;
  background: oklch(92.7% 0.035 231) !important;
  transform: translateY(-1px);
}

.qf-editor-export-button.is-primary {
  color: oklch(24% 0.052 53) !important;
  border-color: oklch(67% 0.145 62 / 0.55) !important;
  background: oklch(80% 0.16 72) !important;
  box-shadow:
    0 0.42rem 0.9rem oklch(58% 0.14 58 / 0.23),
    inset 0 1px 0 oklch(93% 0.07 83 / 0.75) !important;
}

.qf-editor-export-button.is-primary:hover {
  color: oklch(19% 0.055 48) !important;
  border-color: oklch(61% 0.18 54 / 0.65) !important;
  background: oklch(75.5% 0.185 62) !important;
}

.qf-editor-export-button:focus-visible {
  outline: 3px solid oklch(66% 0.15 240 / 0.65);
  outline-offset: 2px;
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-export-actions {
  border-color: oklch(100% 0 0 / 0.11);
  background: oklch(21% 0.032 258);
  box-shadow:
    0 0.65rem 1.35rem oklch(5% 0.02 258 / 0.3),
    inset 0 1px 0 oklch(100% 0 0 / 0.055);
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-export-label {
  color: oklch(87% 0.018 248);
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-export-button:not(.is-primary) {
  color: oklch(90% 0.018 248) !important;
  border-color: oklch(100% 0 0 / 0.12) !important;
  background: oklch(25% 0.035 258) !important;
  box-shadow:
    0 0.32rem 0.74rem oklch(5% 0.02 258 / 0.24),
    inset 0 1px 0 oklch(100% 0 0 / 0.05) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-export-button:not(.is-primary):hover {
  color: oklch(96% 0.01 248) !important;
  border-color: oklch(78% 0.09 228 / 0.38) !important;
  background: oklch(30% 0.045 252) !important;
}

.qf-editor-focus-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
  padding: 0.62rem 0.9rem;
  color: oklch(35% 0.04 250);
  border: 1px solid oklch(65% 0.07 240 / 0.22);
  border-radius: 0.9rem;
  background: oklch(98% 0.012 240 / 0.86);
  box-shadow:
    0 0.5rem 1.1rem oklch(55% 0.03 250 / 0.12),
    inset 0 1px 0 oklch(100% 0 0 / 0.8);
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.qf-editor-focus-toggle::before {
  content: "☰";
  margin-right: 0.42rem;
  font-size: 0.9rem;
}

.qf-editor-focus-toggle:hover,
.qf-editor-focus-toggle:focus-visible {
  border-color: oklch(65% 0.13 195 / 0.45);
  background: white;
  transform: translateY(-1px);
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-focus-toggle {
  color: oklch(90% 0.018 248);
  border-color: oklch(100% 0 0 / 0.12);
  background: oklch(23% 0.034 258 / 0.92);
  box-shadow:
    0 0.6rem 1.3rem oklch(5% 0.02 258 / 0.28),
    inset 0 1px 0 oklch(100% 0 0 / 0.06);
}

body:has(#root > div.bg-dotgrid-dark) .qf-editor-focus-toggle:hover,
body:has(#root > div.bg-dotgrid-dark) .qf-editor-focus-toggle:focus-visible {
  border-color: oklch(76% 0.11 195 / 0.42);
  background: oklch(27% 0.038 258);
}

#root > div,
.qf-workspace__info,
.qf-workspace__tool,
.qf-workspace__tool [class*="duration-500"] {
  transition-duration: 180ms !important;
}

/* The dark shell must never reveal the light workspace substrate below its
   translucent panels. These opaque, tinted layers restore real contrast. */
body:has(#root > div.bg-dotgrid-dark) .qf-workspace {
  border-color: oklch(100% 0 0 / 0.1) !important;
  background: oklch(14.5% 0.031 258) !important;
  box-shadow:
    1.35rem 1.5rem 3.6rem oklch(5% 0.025 258 / 0.55),
    -0.65rem -0.65rem 2.2rem oklch(34% 0.035 258 / 0.13) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__info {
  background: linear-gradient(155deg, oklch(23.5% 0.036 248), oklch(17.5% 0.03 258)) !important;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.075),
    inset -1px 0 0 oklch(100% 0 0 / 0.035);
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool {
  border-color: oklch(100% 0 0 / 0.06) !important;
  background-color: oklch(17.5% 0.029 258) !important;
  background-image: radial-gradient(circle at 1px 1px, oklch(100% 0 0 / 0.045) 1px, transparent 0) !important;
  background-size: 22px 22px !important;
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.055),
    inset 0 0 0 1px oklch(100% 0 0 / 0.025);
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .glass-card-dark,
body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .glass-panel-dark {
  border-color: oklch(100% 0 0 / 0.1);
  background: oklch(22% 0.032 258 / 0.82);
  box-shadow:
    0 1.15rem 2.8rem oklch(5% 0.025 258 / 0.36),
    inset 0 1px 0 oklch(100% 0 0 / 0.055);
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .glass-panel {
  border-color: oklch(100% 0 0 / 0.14) !important;
  background: oklch(27% 0.034 258 / 0.96) !important;
  box-shadow:
    0 0.8rem 1.8rem oklch(5% 0.025 258 / 0.28),
    inset 0 1px 0 oklch(100% 0 0 / 0.075) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .glass-panel .lucide-upload {
  color: oklch(88% 0.055 250) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .text-gray-300 {
  color: oklch(89% 0.018 250) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .text-gray-400 {
  color: oklch(82% 0.02 250) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .text-gray-500 {
  color: oklch(76% 0.022 250) !important;
}

body:has(#root > div.bg-dotgrid-dark) .qf-workspace__tool .text-gray-600 {
  color: oklch(71% 0.024 250) !important;
}

/* Editorial transition below the tool. */
.qf-editorial {
  position: relative;
  width: min(75rem, 100%);
  margin-top: clamp(6rem, 9vw, 8.5rem) !important;
  padding-inline: 0 !important;
  isolation: isolate;
}

.qf-editorial::before {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  width: min(34rem, 72%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, oklch(66% 0.05 250 / 0.42), transparent);
  transform: translateX(-50%);
}

.qf-editorial::after {
  position: absolute;
  top: -3.8rem;
  left: 50%;
  width: 4.5rem;
  height: 0.65rem;
  content: "";
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: 999px;
  background: var(--qf-ice-100);
  box-shadow:
    inset 0.2rem 0.2rem 0.45rem oklch(67% 0.03 239.96 / 0.2),
    inset -0.2rem -0.2rem 0.45rem oklch(100% 0 0 / 0.88);
  transform: translateX(-50%);
}

.qf-editorial > section {
  position: relative;
}

.qf-how {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(18rem, 1.12fr);
  gap: 0 clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: clamp(5.5rem, 9vw, 8rem) !important;
  padding: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.76);
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 96% 0%, oklch(88% 0.075 66 / 0.25), transparent 19rem),
    linear-gradient(145deg, oklch(98.7% 0.009 239.96), oklch(94.8% 0.019 239.96));
  box-shadow:
    1.35rem 1.5rem 3.5rem oklch(66% 0.03 239.96 / 0.2),
    -1.1rem -1.1rem 3rem oklch(100% 0 0 / 0.84);
}

.qf-how > h2,
.qf-benefits > h2,
.qf-use-cases > h2,
.qf-faq > h2 {
  max-width: 13ch;
  margin: 0 !important;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem) !important;
  font-weight: 780 !important;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: left !important;
  text-wrap: balance;
}

.qf-how > p,
.qf-benefits > p,
.qf-use-cases > p {
  align-self: end;
  max-width: 58ch !important;
  margin: 0 !important;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  text-align: left !important;
}

.qf-editorial:not(.text-white):not(.text-gray-200) :is(.qf-how, .qf-benefits, .qf-use-cases) p,
.qf-editorial:not(.text-white):not(.text-gray-200) > footer p {
  color: oklch(43% 0.03 250) !important;
}

.qf-how > .grid {
  grid-column: 1 / -1;
  gap: 0 !important;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--qf-line);
  border-radius: 2rem;
  background: oklch(99% 0.006 239.96 / 0.72);
  box-shadow:
    inset 0.35rem 0.35rem 0.8rem oklch(67% 0.03 239.96 / 0.12),
    inset -0.35rem -0.35rem 0.8rem oklch(100% 0 0 / 0.72);
}

.qf-how > .grid > div {
  position: relative;
  display: grid;
  grid-template: "icon step" auto "icon title" auto "desc desc" 1fr / 3rem 1fr;
  gap: 0.2rem 0.85rem;
  min-height: 13.5rem;
  padding: clamp(1.55rem, 3vw, 2.35rem) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color 220ms cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.qf-how > .grid > div:hover {
  background: oklch(100% 0 0 / 0.34) !important;
  transform: none !important;
}

.qf-how > .grid > div + div::before {
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--qf-line), transparent);
}

.qf-how > .grid > div > div:first-child {
  grid-area: icon;
  align-self: start;
  width: 2.75rem !important;
  height: 2.75rem !important;
  margin: 0 !important;
  border: 1px solid oklch(100% 0 0 / 0.76);
  border-radius: 1rem !important;
  background: var(--qf-surface-muted) !important;
  box-shadow:
    0.3rem 0.3rem 0.75rem oklch(66% 0.03 239.96 / 0.16),
    -0.3rem -0.3rem 0.75rem oklch(100% 0 0 / 0.82);
}

.qf-how > .grid > div > span {
  grid-area: step;
  align-self: end;
  color: oklch(51% 0.04 250) !important;
}

.qf-how > .grid > div > h3 {
  grid-area: title;
  margin: 0 !important;
  font-size: 1.08rem !important;
  line-height: 1.25;
}

.qf-how > .grid > div > p {
  grid-area: desc;
  margin-top: 1.15rem;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
}

.qf-benefits,
.qf-use-cases {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr);
  gap: 0 clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: clamp(5.5rem, 9vw, 8rem) !important;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.qf-benefits > .grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.qf-benefits > .grid > div {
  display: grid;
  grid-column: span 7;
  grid-template: "icon title" auto "icon desc" 1fr / 2.75rem 1fr;
  gap: 0.25rem 0.9rem;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  border: 1px solid oklch(100% 0 0 / 0.7);
  border-radius: 1.65rem !important;
  background: oklch(97.6% 0.011 239.96 / 0.68) !important;
  box-shadow:
    0.7rem 0.75rem 1.8rem oklch(65% 0.03 239.96 / 0.15),
    -0.65rem -0.65rem 1.5rem oklch(100% 0 0 / 0.72) !important;
}

.qf-benefits > .grid > div:nth-child(2),
.qf-benefits > .grid > div:nth-child(3) {
  grid-column: span 5;
}

.qf-benefits > .grid > div > div:first-child {
  grid-area: icon;
  width: 2.75rem !important;
  height: 2.75rem !important;
  margin: 0 !important;
  border-radius: 1rem !important;
  background: oklch(92.5% 0.02 239.96) !important;
}

.qf-benefits > .grid > div > h3 {
  grid-area: title;
  align-self: end;
  margin: 0 !important;
  font-size: 1rem !important;
}

.qf-benefits > .grid > div > p {
  grid-area: desc;
  font-size: 0.86rem !important;
  line-height: 1.6 !important;
}

.qf-use-cases > .grid {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem !important;
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.qf-use-cases > .grid > div {
  min-height: 3.25rem;
  flex-direction: row !important;
  gap: 0.65rem !important;
  padding: 0.7rem 1.05rem !important;
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: 999px !important;
  background: oklch(97.2% 0.012 239.96 / 0.72) !important;
  box-shadow:
    0.35rem 0.4rem 0.9rem oklch(65% 0.03 239.96 / 0.14),
    -0.35rem -0.35rem 0.9rem oklch(100% 0 0 / 0.76) !important;
}

.qf-use-cases > .grid > div:hover {
  transform: translateY(-2px) !important;
}

.qf-use-cases > .grid > div > span:first-child {
  font-size: 1.1rem !important;
}

.qf-quality {
  container: qf-quality / inline-size;
  margin-bottom: clamp(5.5rem, 9vw, 8rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.qf-quality__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
}

.qf-quality__eyebrow {
  margin: 0 0 0.9rem;
  color: oklch(43% 0.13 278) !important;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qf-quality h2 {
  max-width: 11ch;
  margin: 0;
  color: var(--qf-ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.7vw, 3.8rem);
  font-weight: 780;
  line-height: 1.01;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.qf-quality__intro > p {
  max-width: 58ch;
  margin: 0;
  color: oklch(43% 0.03 250) !important;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.qf-quality__tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0.35rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0.38rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0.38rem;
  scroll-snap-type: inline proximity;
  scrollbar-color: oklch(66% 0.035 250 / 0.7) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: 1.55rem;
  background: oklch(94% 0.018 240 / 0.72);
  box-shadow:
    inset 0.22rem 0.22rem 0.5rem oklch(65% 0.03 240 / 0.14),
    inset -0.22rem -0.22rem 0.5rem oklch(100% 0 0 / 0.72);
}

.qf-quality__tabs::-webkit-scrollbar {
  height: 0.35rem;
}

.qf-quality__tabs::-webkit-scrollbar-track {
  background: transparent;
}

.qf-quality__tabs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: oklch(66% 0.035 250 / 0.7);
}

.qf-quality__tabs button {
  flex: 0 0 auto;
  min-width: 6.5rem;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  scroll-snap-align: start;
  white-space: nowrap;
  color: oklch(38% 0.035 250);
  background: transparent;
  font: 720 0.82rem / 1 var(--font-body);
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
}

.qf-quality__tabs button:hover {
  color: oklch(29% 0.05 258);
  transform: translateY(-1px);
}

.qf-quality__tabs button[aria-selected="true"] {
  color: oklch(98% 0.008 250);
  background: oklch(31% 0.06 264);
  box-shadow: 0 0.45rem 1rem oklch(29% 0.05 258 / 0.2);
}

.qf-quality__tabs button:focus-visible,
.qf-quality__panel:focus-visible {
  outline: 3px solid oklch(63% 0.18 267);
  outline-offset: 3px;
}

.qf-quality__panel {
  margin-top: 1rem;
  border-radius: clamp(1.75rem, 3vw, 2.5rem);
}

.qf-quality__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.74);
  border-radius: inherit;
  background: oklch(93% 0.015 240);
  box-shadow:
    1.1rem 1.3rem 3rem oklch(65% 0.03 240 / 0.2),
    -0.8rem -0.8rem 2.5rem oklch(100% 0 0 / 0.78);
  isolation: isolate;
}

.qf-quality__stage:has(.qf-quality__slider:focus-visible) {
  outline: 3px solid oklch(63% 0.18 267);
  outline-offset: 4px;
}

.qf-quality__illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: oklch(93% 0.015 240);
}

.qf-quality__illustration > img,
.qf-quality__after,
.qf-quality__after > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.qf-quality__illustration img {
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.qf-quality__after {
  overflow: hidden;
  background-color: #f7f8fa;
  background-image:
    linear-gradient(45deg, #e2e6eb 25%, transparent 25%),
    linear-gradient(-45deg, #e2e6eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e6eb 75%),
    linear-gradient(-45deg, transparent 75%, #e2e6eb 75%);
  background-position:
    0 0,
    0 16px,
    16px -16px,
    -16px 0;
  background-size: 32px 32px;
  clip-path: inset(0 0 0 var(--qf-split));
  will-change: clip-path;
}

.qf-quality__after > img {
  z-index: 1;
}

.qf-quality__badge {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.35rem);
  z-index: 3;
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.72rem;
  color: oklch(97% 0.008 250);
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 999px;
  background: oklch(24% 0.035 258 / 0.82);
  box-shadow: 0 0.4rem 1.1rem oklch(12% 0.025 258 / 0.2);
  font-size: 0.7rem;
  font-weight: 760;
  pointer-events: none;
}

.qf-quality__badge--before {
  left: clamp(0.8rem, 2vw, 1.35rem);
}

.qf-quality__badge--after {
  right: clamp(0.8rem, 2vw, 1.35rem);
}

.qf-quality__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--qf-split);
  z-index: 4;
  width: 2px;
  background: oklch(98% 0.006 250 / 0.96);
  box-shadow:
    0 0 0 1px oklch(22% 0.04 258 / 0.2),
    0 0 1.2rem oklch(22% 0.04 258 / 0.25);
  transform: translateX(-50%);
  pointer-events: none;
}

.qf-quality__divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(2.65rem, 5vw, 3.3rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid oklch(98% 0.006 250 / 0.95);
  border-radius: 50%;
  background: oklch(31% 0.055 258 / 0.9);
  box-shadow: 0 0.65rem 1.5rem oklch(20% 0.04 258 / 0.3);
  transform: translate(-50%, -50%);
}

.qf-quality__divider svg {
  width: 1.25rem;
  fill: none;
  stroke: oklch(98% 0.006 250);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.qf-quality__slider {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.001;
  cursor: ew-resize;
  touch-action: pan-y;
}

.qf-quality__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
  padding: 1.35rem clamp(0.35rem, 2vw, 1rem) 0;
}

.qf-quality__caption p {
  margin: 0;
}

.qf-quality__caption-title {
  color: var(--qf-ink) !important;
  font-size: 1.03rem;
  font-weight: 760;
  line-height: 1.3;
}

.qf-quality__caption-title + p {
  max-width: 68ch;
  margin-top: 0.35rem;
  color: oklch(44% 0.03 250) !important;
  font-size: 0.84rem;
  line-height: 1.55;
}

.qf-quality__caption output {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.72rem;
  color: oklch(31% 0.06 264);
  border-radius: 999px;
  background: oklch(90% 0.045 72);
  font-size: 0.72rem;
  font-weight: 760;
  white-space: nowrap;
}

.qf-quality__note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  max-width: 68ch;
  margin: 1.35rem 0 0 !important;
  color: oklch(47% 0.03 250) !important;
  font-size: 0.75rem;
  line-height: 1.55;
}

.qf-quality__note span {
  color: oklch(64% 0.16 56);
}

.qf-inspiration {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  margin-bottom: clamp(5.5rem, 9vw, 8rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  color: var(--qf-ink);
  border: 1px solid oklch(100% 0 0 / 0.72);
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 0% 100%, oklch(79% 0.13 56 / 0.24), transparent 23rem),
    linear-gradient(145deg, oklch(97.8% 0.02 66), oklch(94.5% 0.025 240));
  box-shadow:
    1.15rem 1.35rem 3rem oklch(65% 0.03 239.96 / 0.18),
    -0.85rem -0.85rem 2.6rem oklch(100% 0 0 / 0.78);
}

.qf-inspiration__heading > p {
  margin: 0 0 1rem;
  color: oklch(44% 0.13 278) !important;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qf-inspiration h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 780;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.qf-inspiration__copy {
  align-self: end;
}

.qf-inspiration__copy > p {
  max-width: 62ch;
  margin: 0;
  color: oklch(39% 0.03 250) !important;
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  line-height: 1.72;
}

.qf-inspiration__copy > a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  color: oklch(98% 0.008 250);
  border-radius: 999px;
  background: oklch(33% 0.07 274);
  font-size: 0.82rem;
  font-weight: 730;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.25, 1, 0.5, 1), background-color 220ms ease;
}

.qf-inspiration__copy > a:hover {
  background: oklch(40% 0.09 274);
  transform: translateY(-2px);
}

.qf-inspiration__copy > a span {
  font-size: 1rem;
}

.qf-faq {
  margin-bottom: clamp(4.5rem, 8vw, 7rem) !important;
  padding: clamp(2.25rem, 6vw, 5rem);
  color: oklch(95% 0.012 239.96);
  border: 1px solid oklch(100% 0 0 / 0.11);
  border-radius: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 96% 8%, oklch(57% 0.15 278 / 0.22), transparent 22rem),
    linear-gradient(145deg, oklch(26% 0.036 250), oklch(20% 0.03 258));
  box-shadow:
    1.35rem 1.5rem 3.5rem oklch(48% 0.04 250 / 0.28),
    -0.9rem -0.9rem 2.6rem oklch(100% 0 0 / 0.7);
}

.qf-faq > h2 {
  max-width: 16ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem) !important;
  color: oklch(97% 0.008 239.96) !important;
}

.qf-faq > div {
  max-width: none !important;
}

.qf-faq details {
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.09) !important;
  border-radius: 1.3rem !important;
  background: oklch(100% 0 0 / 0.045) !important;
  box-shadow: none !important;
}

.qf-faq details[open] {
  background: oklch(100% 0 0 / 0.075) !important;
}

.qf-faq summary {
  min-height: 4rem;
  color: oklch(96% 0.01 239.96) !important;
}

.qf-faq details > div {
  color: oklch(79% 0.018 239.96) !important;
}

.qf-editorial > footer {
  margin-inline: clamp(1rem, 4vw, 3rem);
}

/* Dark-theme variants keep the same hierarchy without a pale island. */
.qf-editorial:is(.text-white, .text-gray-200) .qf-how {
  border-color: oklch(100% 0 0 / 0.08);
  background:
    radial-gradient(circle at 96% 0%, oklch(64% 0.13 62 / 0.13), transparent 19rem),
    linear-gradient(145deg, oklch(25% 0.032 252), oklch(20% 0.028 258));
  box-shadow: 1.25rem 1.4rem 3.2rem oklch(8% 0.02 258 / 0.34);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-how > .grid,
.qf-editorial:is(.text-white, .text-gray-200) .qf-benefits > .grid > div,
.qf-editorial:is(.text-white, .text-gray-200) .qf-use-cases > .grid > div {
  border-color: oklch(100% 0 0 / 0.08);
  background: oklch(100% 0 0 / 0.035) !important;
  box-shadow: none !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-how > .grid > div > div:first-child,
.qf-editorial:is(.text-white, .text-gray-200) .qf-benefits > .grid > div > div:first-child {
  border-color: oklch(100% 0 0 / 0.08);
  background: oklch(100% 0 0 / 0.05) !important;
  box-shadow: none;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-how > .grid > div > span {
  color: oklch(77% 0.06 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) :is(.qf-how, .qf-benefits, .qf-use-cases) p,
.qf-editorial:is(.text-white, .text-gray-200) > footer p {
  color: oklch(80% 0.02 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) :is(.qf-how, .qf-benefits, .qf-use-cases) h2,
.qf-editorial:is(.text-white, .text-gray-200) :is(.qf-how, .qf-benefits) h3 {
  color: oklch(97% 0.008 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-use-cases > .grid > div > span:last-child {
  color: oklch(88% 0.015 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-legal-nav :is(a, button) {
  color: oklch(78% 0.025 250);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-legal-nav :is(a, button):hover {
  color: oklch(84% 0.1 65);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-inspiration {
  color: oklch(96% 0.01 250);
  border-color: oklch(100% 0 0 / 0.08);
  background:
    radial-gradient(circle at 0% 100%, oklch(67% 0.12 56 / 0.13), transparent 23rem),
    linear-gradient(145deg, oklch(26% 0.034 252), oklch(21% 0.03 258));
  box-shadow: 1.15rem 1.3rem 3rem oklch(8% 0.02 258 / 0.34);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-inspiration__heading > p {
  color: oklch(80% 0.1 60) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-inspiration__copy > p {
  color: oklch(80% 0.018 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality h2,
.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__caption-title {
  color: oklch(97% 0.008 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__eyebrow {
  color: oklch(80% 0.1 60) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__intro > p,
.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__caption-title + p,
.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__note {
  color: oklch(80% 0.02 250) !important;
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__tabs {
  border-color: oklch(100% 0 0 / 0.08);
  background: oklch(100% 0 0 / 0.035);
  box-shadow: inset 0.2rem 0.2rem 0.5rem oklch(8% 0.02 258 / 0.22);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__tabs button {
  color: oklch(83% 0.02 250);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__tabs button:hover {
  color: oklch(96% 0.01 250);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__tabs button[aria-selected="true"] {
  color: oklch(23% 0.035 258);
  background: oklch(82% 0.12 64);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__stage {
  border-color: oklch(100% 0 0 / 0.1);
  box-shadow: 1rem 1.15rem 2.8rem oklch(8% 0.02 258 / 0.34);
}

.qf-editorial:is(.text-white, .text-gray-200) .qf-quality__caption output {
  color: oklch(92% 0.03 70);
  background: oklch(100% 0 0 / 0.08);
}

/* Popovers: secondary copy must look readable, never disabled. */
.qf-shortcuts-panel--dark {
  color: oklch(95% 0.012 250) !important;
  border-color: oklch(100% 0 0 / 0.14) !important;
  background: oklch(31% 0.034 258) !important;
  box-shadow:
    0 1.4rem 3.5rem oklch(12% 0.03 258 / 0.48),
    inset 0 1px 0 oklch(100% 0 0 / 0.08) !important;
}

.qf-shortcuts-panel--dark h3 {
  color: oklch(98% 0.006 250) !important;
  font-size: 0.94rem !important;
}

.qf-shortcuts-panel--dark .text-gray-300 {
  color: oklch(88% 0.018 250) !important;
  font-size: 0.76rem !important;
}

.qf-shortcuts-panel--dark kbd {
  color: oklch(94% 0.012 250) !important;
  border-color: oklch(100% 0 0 / 0.18) !important;
  background: oklch(100% 0 0 / 0.11) !important;
  box-shadow: inset 0 -1px 0 oklch(0% 0 0 / 0.24);
}

.qf-shortcuts-panel--dark > div:last-child > span {
  color: oklch(76% 0.02 250) !important;
  font-size: 0.64rem !important;
}

.qf-shortcuts-panel--dark > div:last-child kbd {
  color: oklch(88% 0.015 250) !important;
}

.qf-shortcuts-panel--dark button {
  color: oklch(82% 0.02 250) !important;
}

.qf-shortcuts-panel--light {
  color: oklch(25% 0.035 250) !important;
  border-color: oklch(73% 0.025 250 / 0.3) !important;
  background: oklch(98.5% 0.008 240 / 0.98) !important;
}

.qf-shortcuts-panel--light .text-gray-600 {
  color: oklch(38% 0.03 250) !important;
}

.qf-shortcuts-panel--light .text-gray-400 {
  color: oklch(45% 0.025 250) !important;
}

.qf-about-panel {
  color: oklch(95% 0.012 250) !important;
  border: 1px solid oklch(100% 0 0 / 0.14) !important;
  background: oklch(27% 0.035 258 / 0.98) !important;
  box-shadow:
    0 1.35rem 3.25rem oklch(10% 0.03 258 / 0.48),
    inset 0 1px 0 oklch(100% 0 0 / 0.08) !important;
}

.qf-about-panel .text-gray-400 {
  color: oklch(80% 0.02 250) !important;
}

.qf-about-panel .text-gray-500 {
  color: oklch(74% 0.022 250) !important;
}

.qf-about-panel .bg-clip-text {
  color: oklch(92% 0.025 70) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

#root [role="dialog"] button {
  min-width: 44px;
  min-height: 44px;
}

.qf-workspace__tool .glass-card-dark .text-gray-500,
.qf-workspace__tool .glass-panel-dark .text-gray-500 {
  color: oklch(82% 0.018 250) !important;
}

.qf-workspace__tool .glass-card-dark .text-gray-600,
.qf-workspace__tool .glass-panel-dark .text-gray-600 {
  color: oklch(78% 0.02 250) !important;
}

@media (min-width: 64rem) {
  .qf-benefits > .grid > div:nth-child(4) {
    grid-column: 6 / span 7;
  }
}

@media (max-width: 63.999rem) {
  .qf-quality__intro {
    grid-template-columns: 1fr;
  }

  .qf-workspace {
    gap: 1rem;
    padding: 0;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .qf-workspace__info,
  .qf-workspace__tool {
    width: 100% !important;
    border: 1px solid oklch(100% 0 0 / 0.68);
    border-radius: 2.25rem !important;
    box-shadow:
      1rem 1.1rem 2.8rem oklch(65% 0.03 239.96 / 0.2),
      -0.8rem -0.8rem 2.3rem oklch(100% 0 0 / 0.72);
  }

  .qf-workspace--editing.qf-workspace--sidebar-visible .qf-workspace__info,
  .qf-workspace--editing.qf-workspace--sidebar-visible .qf-workspace__tool {
    width: 100% !important;
  }

  .qf-how,
  .qf-benefits,
  .qf-use-cases,
  .qf-inspiration {
    grid-template-columns: 1fr;
  }

  .qf-how > p,
  .qf-benefits > p,
  .qf-use-cases > p {
    margin-top: 1.25rem !important;
  }

  .qf-benefits > .grid > div,
  .qf-benefits > .grid > div:nth-child(2),
  .qf-benefits > .grid > div:nth-child(3),
  .qf-benefits > .grid > div:nth-child(4) {
    grid-column: span 12;
  }
}

@media (max-width: 39.999rem) {
  .qf-quality {
    padding-inline: 0.35rem;
  }

  .qf-quality h2 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .qf-quality__panel {
    border-radius: 1.65rem;
  }

  .qf-quality__caption {
    grid-template-columns: 1fr;
    padding-inline: 0.25rem;
  }

  .qf-quality__caption output {
    justify-self: start;
  }

  .qf-quality__note {
    padding-inline: 0.25rem;
  }

  .qf-workspace__tool :has(> .qf-upload-limit) {
    padding-bottom: 5.35rem !important;
  }

  .qf-upload-limit {
    right: 1.55rem;
    bottom: 2rem;
    left: 1.55rem;
    min-height: 2.25rem;
    padding-inline: 0.55rem;
    border-radius: 1rem;
    font-size: 0.67rem;
  }

  .qf-editorial {
    margin-top: 5rem !important;
  }

  .qf-how {
    padding: 2.25rem 1.25rem;
    border-radius: 2rem;
  }

  .qf-how > h2,
  .qf-benefits > h2,
  .qf-use-cases > h2,
  .qf-faq > h2 {
    font-size: clamp(1.9rem, 10vw, 2.65rem) !important;
  }

  .qf-how > .grid {
    grid-template-columns: 1fr !important;
    border-radius: 1.5rem;
  }

  .qf-how > .grid > div {
    min-height: auto;
  }

  .qf-how > .grid > div + div::before {
    top: 0;
    right: 1.25rem;
    bottom: auto;
    left: 1.25rem;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--qf-line), transparent);
  }

  .qf-benefits,
  .qf-use-cases {
    padding-inline: 0.35rem;
  }

  .qf-benefits > .grid {
    grid-template-columns: 1fr !important;
  }

  .qf-benefits > .grid > div,
  .qf-benefits > .grid > div:nth-child(2),
  .qf-benefits > .grid > div:nth-child(3),
  .qf-benefits > .grid > div:nth-child(4) {
    grid-column: 1;
  }

  .qf-use-cases > .grid > div {
    width: 100%;
    justify-content: flex-start !important;
  }

  .qf-faq {
    padding: 2.25rem 1.25rem;
    border-radius: 2rem;
  }

  .qf-inspiration {
    padding: 2.25rem 1.4rem;
    border-radius: 2rem;
  }

  .qf-dock > div:has(.qf-shortcuts-panel--dark) {
    position: static !important;
  }

  .qf-shortcuts-panel--dark {
    position: fixed !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(19rem, calc(100vw - 2rem)) !important;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    z-index: 10001 !important;
    transform: translate(-50%, -50%) !important;
  }
}

@media (max-height: 47rem) and (min-width: 64rem) {
  .qf-workspace__tool :has(> .qf-upload-limit) {
    gap: 1rem !important;
    padding-block: 1.25rem 3.8rem !important;
  }

  .qf-workspace__tool :has(> .qf-upload-limit) > [class*="w-24"][class*="h-24"] {
    width: 4.75rem !important;
    height: 4.75rem !important;
  }

  .qf-upload-limit {
    bottom: 1.85rem;
  }
}

.qf-static-fallback h1 {
  max-width: 14ch;
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
}

.qf-static-fallback h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.qf-static-fallback p,
.qf-static-fallback li {
  line-height: 1.65;
}

.qf-static-fallback a {
  color: #4433bb;
  font-weight: 700;
}

.qf-static-fallback__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 2rem;
}

@media (max-width: 63.999rem) {
  #root > div > [class*="max-w-[1200px]"][class*="min-h-[800px]"] {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  #root > div > [class*="max-w-[1200px]"] > [class*="lg:w-[60%]"] {
    order: 1;
    min-height: 620px;
    overflow: hidden;
  }

  #root > div > [class*="max-w-[1200px]"] > [class*="lg:w-[60%]"] > [class*="flex-1"][class*="min-h-0"] {
    min-height: 470px;
  }

  #root > div > [class*="max-w-[1200px]"] > [class*="lg:w-[40%]"] {
    order: 2;
    min-height: 560px;
  }
}

@media (max-width: 47.999rem) {
  .qf-workspace.qf-workspace--editing {
    width: 100% !important;
    min-height: 0;
    border-radius: 1.75rem !important;
  }

  .qf-workspace--editing .qf-workspace__tool {
    min-height: 42rem;
    border-radius: 1.45rem !important;
  }

  .qf-workspace--editing .qf-editor-accessible > .flex-1 {
    min-height: 0;
    flex: 1 1 0;
  }

  .qf-editor-focus-toggle {
    width: 100%;
  }

  .qf-editor-export-bar {
    width: 100%;
    gap: 0.4rem !important;
    padding-block: 0.2rem;
  }

  .qf-editor-export-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0 !important;
    gap: 0.3rem !important;
    padding: 0.3rem;
  }

  .qf-editor-export-label {
    display: block;
    grid-column: 1 / -1;
    padding: 0.05rem 0.25rem 0.1rem;
    font-size: 0.64rem;
  }

  .qf-editor-export-button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.45rem !important;
    font-size: 0.68rem !important;
  }

  .qf-editor-export-button > span,
  .qf-editor-export-button > :where(span) {
    display: none;
  }

  .qf-editor-export-button::after {
    font-size: 0.68rem;
    font-weight: 780;
    line-height: 1;
  }

  .qf-editor-export-button[data-qf-export="share"]::after {
    content: "Enviar";
  }

  .qf-editor-export-button[data-qf-export="webp"]::after {
    content: "WEBP";
  }

  .qf-editor-export-button[data-qf-export="png"]::after {
    content: "PNG";
  }

  html[lang^="en"] .qf-editor-export-button[data-qf-export="share"]::after {
    content: "Share";
  }

  .qf-workspace__tool .text-center.z-20 > p.text-sm {
    max-width: 10.5rem !important;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .qf-dock {
    display: grid !important;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem !important;
  }

  .qf-quality-switch {
    width: 100%;
    grid-row: 1;
    grid-column: 1 / -1;
  }

  .qf-install-invite {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    width: auto;
    border-radius: 1.35rem;
  }

  .qf-install-invite__actions {
    grid-template-columns: 1fr;
  }

  .qf-consent {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .qf-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .qf-consent button {
    width: 100%;
  }
}

@media (hover: none), (pointer: coarse) {
  .qf-recents__gallery {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.85rem;
    padding-bottom: 0.5rem;
  }

  .qf-recent-card,
  .qf-recent-card:hover,
  .qf-recent-card:focus-within {
    display: grid;
    grid-template-rows: auto 3.3rem;
    width: 100%;
    max-width: 12rem;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    translate: none;
    filter: none;
  }

  .qf-recent-card__open {
    position: relative;
    inset: auto;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 1;
  }

  .qf-recent-card:hover .qf-recent-card__image,
  .qf-recent-card:focus-within .qf-recent-card__image {
    transform: none;
  }

  .qf-recent-card__actions {
    position: relative;
    inset: auto;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 3.3rem;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 0 0 0.9rem 0.9rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .qf-recent-action {
    min-width: 0;
    min-height: 2.75rem;
    gap: 0.28rem;
  }

  .qf-recent-action:first-child {
    display: none;
  }

  .qf-recent-action::after {
    position: static;
    display: block;
    padding: 0;
    color: inherit;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: 0.66rem;
    line-height: 1;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@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;
  }
}
