:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #222222;
  background: #fff;
  --muted: #4e4e4e;
  --line: #c7c7c7;
  --panel: #f5f5f5;
  --accent: #3d3d3d;
  --rainbow: linear-gradient(95deg, #e00053, #d34b00 21%, #d50077 42%, #0056e6 64%, #681ce2 84%, #ce008d);
  --rainbow-action: linear-gradient(105deg, #ca0057, #680fe2 48%, #0056d9);
  --brand-gradient: linear-gradient(145deg, #fb704e 6%, #cc2884 49%, #4351cf 100%);
  --press-glow: 0 0 .85rem #38796f66;
  --surface-shadow: 0 3px 8px #20202508, 0 15px 36px #2020250e;
  --glass-surface: linear-gradient(145deg, #ffffffad, #ededf25c);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(155deg, #fff 20%, #f6f6f9 75%, #fff);
}
.wrap { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffeb;
  box-shadow: 0 5px 18px #2020250f, 0 1px 5px #2020250a;
}
.top { display: flex; align-items: center; justify-content: center; min-height: 3.6rem; }
.top-with-account {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .6rem;
}
.top-with-account .brand { grid-column: 2; }
.account-actions {
  display: flex;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
  min-width: 0;
}
.header-menu { position: relative; }
.header-menu > summary {
  list-style: none;
  cursor: pointer;
}
.header-menu > summary::-webkit-details-marker { display: none; }
.header-menu-content {
  position: absolute;
  z-index: 2;
  top: calc(100% + .45rem);
  right: 0;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: .85rem;
  border-radius: .9rem;
  background: #fff;
  box-shadow: var(--surface-shadow);
}
.header-menu-content p { margin: .45rem 0 .7rem; }
.header-menu-content p:empty { display: none; }
.header-confirm-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
@media (max-width: 680px) {
  .header-menu { position: static; }
  .header-menu-content { right: .75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .header-menu[open] .header-menu-content {
    animation: header-menu-in 200ms ease-out both;
    transform-origin: top right;
  }
  @keyframes header-menu-in {
    from { opacity: 0; transform: translateY(-.5rem) scale(.97); }
    to { opacity: 1; transform: none; }
  }
  @supports selector(details::details-content) {
    #header-balance::details-content { transition: content-visibility 280ms allow-discrete; }
    #header-balance .header-menu-content {
      opacity: 0;
      transform: translateY(-.55rem) scale(.98);
      transform-origin: top right;
      transition: opacity 240ms ease, transform 280ms ease;
    }
    #header-balance[open] .header-menu-content {
      animation: none;
      opacity: 1;
      transform: none;
    }
    @starting-style {
      #header-balance[open] .header-menu-content {
        opacity: 0;
        transform: translateY(-.55rem) scale(.98);
      }
    }
  }
}
.top-with-account:has(.account-actions.is-signed-in) {
  grid-template-columns: auto minmax(0, 1fr);
}
.top-with-account:has(.account-actions.is-signed-in) .brand { grid-column: 1; }
@media (max-width: 680px) {
  .top-with-account:has(.account-actions.is-signed-in) {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: .55rem;
  }
  .account-actions.is-signed-in { justify-content: center; }
  .account-actions.is-signed-in .account-nav { padding-inline: .55rem; font-size: .85rem; }
  .site-header:has(.account-actions.is-signed-in) #account { max-height: calc(100dvh - 10rem); }
}
.account-nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.5rem;
  padding: .4rem .8rem;
  border: 0;
  border-radius: .7rem;
  color: #303030;
  background: #2626260b;
  text-decoration: none;
  white-space: nowrap;
}
:is(.site-header button, .site-header .account-nav, .mode, .feature-disclosure summary):is(:hover, :focus-visible, [aria-expanded="true"]),
.site-header .header-menu[open] > .account-nav,
.feature-disclosure[open] > summary {
  background: #26262616;
  outline: none;
  box-shadow: none;
  text-shadow: none;
}
:is(.site-header button, .site-header .account-nav, .mode, .feature-disclosure summary):active,
.mode:focus-within {
  background: #26262623;
  outline: none;
  box-shadow: none;
}
.account-chevron {
  width: .43rem;
  height: .43rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.account-nav[aria-expanded="true"] .account-chevron { transform: translateY(.09rem) rotate(225deg); }
@media (max-width: 580px) {
  .top-with-account { grid-template-columns: auto 1fr; }
  .top-with-account .brand { grid-column: 1; }
  .account-nav { font-size: .9rem; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #353535;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border: 1px solid #dadada99;
  border-radius: .72rem;
  background: var(--brand-gradient);
  box-shadow: inset 0 1px 0 #ffffff70, 0 4px 14px #cc288436;
}
.brand-mark span {
  width: 1.02rem;
  height: 1.02rem;
  border: 2px solid #fff;
  border-radius: .26rem;
  background: radial-gradient(circle at center, #fff 0 24%, transparent 27%);
  transform: rotate(-8deg);
}
.brand-accent { color: #b4256d; }
.site-footer {
  background: linear-gradient(#ffffff54, #ededf267);
  box-shadow: 0 -10px 30px #20202509;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: 2rem;
}
.footer-grid h2 { margin: 0 0 .65rem; font-size: 1rem; }
.footer-grid p { max-width: 24ch; margin-bottom: 0; color: var(--muted); }
.footer-grid a:not(.brand) {
  display: block;
  margin-block: .4rem;
  color: #3d3d3d;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-underline-offset: .18em;
}
.footer-grid a:hover { color: #484848; }
.footer-payment { grid-column: 1 / -1; }
.footer-payment p { max-width: 65ch; }
.footer-payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}
.footer-payment-logos img { display: block; width: auto; height: 1.7rem; max-width: 7rem; object-fit: contain; }
.footer-payment-logos a:not(.brand) { margin: 0; padding: .3rem; }
@media (max-width: 760px) {
  .footer-payment-logos { justify-content: center; }
}
.footer-bottom { padding-block: .6rem 1.15rem; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
main { padding-block: clamp(1rem, 3vw, 2.25rem) 3rem; }
.document-copy { max-width: 48rem; }
.document-copy :is(.hero, .tool-panel) { text-align: left; }
.document-copy .hero { background: transparent; border: 0; padding-inline: 0; }
.document-copy h1 { font-size: clamp(1.85rem, 5vw, 3rem); line-height: 1.16; }
.document-copy h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); line-height: 1.3; }
.document-copy h3 { margin: 1.5rem 0 .55rem; line-height: 1.35; }
.document-copy :is(p, li) { line-height: 1.68; }
.document-copy p { margin: .6rem 0 1rem; max-width: 66ch; }
.document-copy p:last-child { margin-bottom: 0; }
.document-copy ul { padding-left: 1.4rem; }
.document-copy li + li { margin-top: .45rem; }
.document-copy section[id] { scroll-margin-top: 8rem; }
.hero {
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  background: #f8f8f8;
  border: 1px solid #d5d5d5;
  border-radius: 1.35rem;
  text-align: center;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
p { line-height: 1.5; }
.hero p { max-width: 40rem; margin: .75rem auto 0; }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.8rem);
  padding: clamp(.65rem, 3.5vw, 2.5rem) 0;
  background: transparent;
  border: 0;
  text-align: left;
}
.product-hero h1 { color: #353535; font-size: clamp(2rem, 4.4vw, 4rem); }
.product-hero p { max-width: 38ch; margin: 1rem 0 0; }
.headline-marketplaces { color: #234bbe; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .headline-marketplaces, .brand-accent {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .headline-marketplaces { background-image: var(--rainbow); }
  .brand-accent { background-image: var(--brand-gradient); }
}
@media (forced-colors: active) {
  .headline-marketplaces, .brand-accent { color: CanvasText; }
}
.product-hero-image {
  display: block;
  width: min(70%, 22.4rem);
  justify-self: center;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: clamp(1rem, 3vw, 1.8rem);
  box-shadow: 0 6px 14px #261e2420, 0 24px 50px #261e2429;
}
.feature-disclosure {
  margin: 1.25rem 0 0;
  padding: .9rem 1.2rem;
  background: var(--glass-surface);
  border-radius: 1rem;
  box-shadow: var(--surface-shadow);
}
.feature-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: .4rem .8rem;
  cursor: pointer;
  font-weight: 700;
  border-radius: .45rem;
  color: #353535;
  background: #2626260b;
  text-align: center;
  list-style: none;
}
.feature-disclosure summary::-webkit-details-marker { display: none; }
.feature-disclosure summary::after {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.feature-disclosure[open] summary::after { transform: translateY(.12rem) rotate(225deg); }
.feature-disclosure .feature-list { max-width: none; }
.feature-disclosure-content { display: flow-root; }
.feature-disclosure-content.is-animating { overflow: hidden; }
.feature-disclosure p { color: var(--muted); }
.feature-disclosure .feature-list li:active { box-shadow: var(--press-glow); }
@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; }
}
.registration-options {
  display: grid;
  justify-items: start;
  width: 100%;
  gap: .65rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  text-align: left;
}
.registration-reveal {
  display: grid;
  grid-template-rows: 1fr;
  width: min(100%, 32rem);
}
.registration-reveal-inner { min-height: 0; overflow: hidden; padding-inline: 3px; }
.registration-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
}
.registration-option input { margin: .24rem 0 0; accent-color: #535353; }
.registration-option label { white-space: nowrap; }
.registration-option a { color: #3d3d3d; text-underline-offset: .18em; }
.hero p, small, .frame p { color: var(--muted); }

form, figure {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.4vw, 1.45rem);
  background: var(--glass-surface);
  border: 1px solid #ffffff8a;
  border-radius: .95rem;
}
form { display: grid; justify-items: center; gap: .95rem; text-align: center; }
form > div { width: min(100%, 31rem); min-width: 0; }
label, legend, figcaption { font-weight: 650; }
input[type="file"] {
  display: block;
  width: min(100%, 31rem);
  padding: .4rem;
  margin: .55rem auto;
  color: inherit;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .6rem;
}
input[type="file"]::file-selector-button {
  margin-inline-end: .65rem;
  padding: .55rem .75rem;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  background: #ebebeb;
  border: 0;
  border-radius: .4rem;
  cursor: pointer;
}
fieldset { min-width: 0; max-width: 100%; border: 0; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; }
legend { padding: 0; margin: 0 auto .55rem; }
.mode {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border: 0;
  background: #2626260b;
  border-radius: .65rem;
  cursor: pointer;
}
.mode:has(:checked) { color: var(--accent); background: #26262626; }
.mode input { accent-color: #535353; }
.background-group { display: contents; }
.background-option { text-align: left; }
.background-option small { display: block; font-weight: 400; }
.background-swatch {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  background: var(--swatch);
  border: 1px solid #fff5;
  border-radius: .35rem;
}
[data-background="warm-white"] { --swatch: linear-gradient(145deg, #fff5e2, #e7cfaa); }
[data-background="pearl"] { --swatch: linear-gradient(145deg, #edeaf4, #b9b5c5); }
[data-background="ice"] { --swatch: linear-gradient(145deg, #ebfaff, #afcee4); }
[data-background="graphite"] { --swatch: linear-gradient(145deg, #747985, #232530); }
[data-background="burgundy"] { --swatch: linear-gradient(145deg, #a25869, #3c1527); }
[data-background="emerald"] { --swatch: linear-gradient(145deg, #488a76, #132e2a); }
[data-background="concrete"] { --swatch: linear-gradient(#dbd5d2 55%, #716e70 55%); }
[data-background="sand"] { --swatch: linear-gradient(#f5e6c1 55%, #be9053 55%); }
[data-background="neon"] { --swatch: linear-gradient(145deg, #da68dd, #24256d); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:focus-visible {
  outline: none;
  box-shadow: 0 0 .35rem #38796f, 0 0 1rem #38796f80;
}
:where(button:not(:disabled), a, input:not(:disabled, [type="range"]), select:not(:disabled), summary, label:has(input:not([type="range"]))):active {
  box-shadow: var(--press-glow);
}
a:active { box-shadow: none; text-shadow: 0 0 .55rem #38796f8c; }
@media (hover: hover) {
  :where(button:not(:disabled), input:not(:disabled, [type="range"]), select:not(:disabled), summary, label:has(input:not([type="range"]))):hover:not(:active) {
    box-shadow: 0 0 .65rem #38796f45;
  }
  :where(a):hover { text-shadow: 0 0 .45rem #38796f55; }
  .feature-disclosure .feature-list li:hover { background-color: #eaf3f1; }
}
button, a { font: inherit; font-weight: 650; }
a { color: var(--accent); }
button { cursor: pointer; }
#generate {
  justify-self: center;
  padding: .65rem 1rem;
  border-radius: .7rem;
}
#editor.is-processing #generate { border-color: #b2b2b2; }
button:disabled { opacity: .65; cursor: wait; }
#status { margin: 0; }
#status:empty { display: none; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
figure { text-align: center; }
.frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #ffffff63;
  border: 1px solid #d5d5d5;
  border-radius: .65rem;
  margin-top: .65rem;
  overflow: hidden;
  text-align: center;
}
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.frame p { padding: .75rem; }
#downloads { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .8rem; }
#export-status:not(:empty) { display: block; margin-top: .5rem; }

.tool-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
  text-align: center;
  background: var(--glass-surface);
  border: 1px solid #ffffff8a;
  border-radius: .95rem;
}
.tool-panel h2 { margin: 0 0 .75rem; }
main .tool-panel, #editor, .comparison figure { box-shadow: var(--surface-shadow); }
#trial-wallet { margin: 0 0 1rem; }
#account.account-dropdown {
  position: absolute;
  top: calc(100% + .55rem);
  right: max(.75rem, calc((100% - 1180px) / 2), 1.5rem);
  width: min(27rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 5rem);
  max-height: calc(100dvh - 5rem);
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.55rem) scale(.985);
  transform-origin: top right;
  background: #fff;
  border: 0;
  box-shadow: 0 18px 55px #17171726;
}
#account.account-dropdown :is(form, fieldset, input:not([type="checkbox"]), button) {
  border: 0;
}
#account form { background: transparent; }
#account.account-dropdown input:not([type="checkbox"]) { background: #ffffff75; }
#account.account-dropdown.is-open { visibility: visible; opacity: 1; transform: none; }
@media (max-width: 580px) {
  #account.account-dropdown { right: .75rem; }
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  max-width: 52rem;
  padding: 0;
  margin: .9rem auto;
  list-style: none;
}
.feature-list li {
  display: grid;
  gap: .25rem;
  padding: .8rem;
  background: #efefef;
  border: 1px solid var(--line);
  border-radius: .65rem;
}
.feature-list span { color: var(--muted); line-height: 1.4; }
#account-login form, #account-link-email form { margin: .75rem auto 0; max-width: 24rem; }
#account-login input:not([type="checkbox"]), #account-method, #account-link-email input, #account-link-phone input {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  color: inherit;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
:is(#account-login input:not([type="checkbox"]), #account-method, #account-link-email input, #account-link-phone input):is(:hover, :focus) {
  border-color: #6a6a6a;
  box-shadow: 0 0 .75rem #94949444;
}
.registration-option:hover label, .registration-option:focus-within label { color: #3c3c3c; }
#account-email { overflow-wrap: anywhere; }
.tool-panel p { margin: .6rem auto; max-width: 43rem; color: var(--muted); }
.tool-panel p:empty { display: none; }
.tool-panel button, .tool-panel select {
  padding: .5rem .8rem;
  color: inherit;
  font: inherit;
  background: #ebebeb;
  border: 1px solid #b6b6b6;
  border-radius: .55rem;
}
.tool-panel input[type="file"] { margin-block: .75rem; }
.tool-panel small { display: block; margin-top: .55rem; }
.editing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.editing-column { display: flex; flex-direction: column; align-items: center; min-width: 0; gap: .65rem; }
.editing-column h3 { margin: 0; }
.range-control { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .35rem .6rem; }
.range-control input { width: 7rem; accent-color: #535353; }
.frame-ranges { display: grid; gap: .4rem; }
.editing-column canvas { display: block; max-width: 100%; max-height: 480px; object-fit: contain; border: 1px solid var(--line); border-radius: .6rem; }
main button, main .tool-panel button, main #download, main input[type="file"]::file-selector-button {
  padding: .55rem .85rem;
  border: 0;
  border-radius: .65rem;
  background: var(--rainbow-action);
  color: #fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
main button:disabled { opacity: .78; }
main #download { display: inline-block; }
.file-action { display: block; margin: .65rem auto; }
.file-selection { display: block; overflow-wrap: anywhere; }
.batch-privacy-link { margin: .9rem 0 0; text-align: center; font-size: .9rem; }
@media (hover: hover) {
  main button:hover:not(:disabled), main #download:hover, main input[type="file"]::file-selector-button:hover {
    box-shadow: none;
    filter: brightness(1.08);
  }
}
#batch-errors { display: inline-block; max-width: 100%; text-align: left; overflow-wrap: anywhere; }

main button:active:not(:disabled), main #download:active, main input[type="file"]::file-selector-button:active {
  box-shadow: none;
  text-shadow: none;
  filter: brightness(.94);
}
main button:focus-visible, main #download:focus-visible {
  outline: 2px solid #534b66;
  outline-offset: 2px;
  box-shadow: none;
}
.site-header button:not(.account-nav) { border: 0; background: #2626260b; }
#header-balance .header-menu-content { text-align: center; }
#trial-wallet label[for="top-up-amount"] {
  display: block;
  font-weight: 650;
}
#top-up-amount {
  display: block;
  box-sizing: border-box;
  width: min(100%, 14rem);
  margin: .4rem auto .75rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #ffffffd9;
  color: inherit;
  font: inherit;
  text-align: center;
}
#top-up-amount:focus-visible {
  outline: 2px solid #680fe2;
  outline-offset: 2px;
}
.site-header #trial-wallet-top-up {
  padding: .65rem 1rem;
  border-radius: .65rem;
  clip-path: polygon(.45rem 0, 100% 0, 100% calc(100% - .45rem), calc(100% - .45rem) 100%, 0 100%, 0 .45rem);
  background: var(--rainbow-action);
  color: #fff;
}
.site-header #trial-wallet-top-up:hover,
.site-header #trial-wallet-top-up:focus-visible {
  background: linear-gradient(105deg, #db0060, #751ced 48%, #0864e6);
}
.site-header #trial-wallet-top-up:focus-visible {
  outline: 2px solid white;
  outline-offset: -4px;
}

.site-header .header-menu-content,
.site-header #account.account-dropdown {
  background: #fffffff7;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-disclosure summary, .feature-disclosure .feature-list li {
    transition: background-color 150ms ease, box-shadow 150ms ease, text-shadow 150ms ease;
  }
  .feature-disclosure summary::after { transition: transform 180ms ease; }
  .registration-reveal:not([hidden]) { animation: reveal-registration 260ms ease-out both; }
  .account-nav, .account-chevron, #account-login input:not([type="checkbox"]) {
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }
  #account.account-dropdown {
    transition: opacity 200ms ease, transform 230ms ease, visibility 0s linear 230ms;
  }
  #account.account-dropdown.is-open { transition-delay: 0s; }
  @keyframes reveal-registration {
    from { grid-template-rows: 0fr; opacity: 0; }
    to { grid-template-rows: 1fr; opacity: 1; }
  }
  .mode, #generate, #download-square, input[type="file"] { transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
  main button, main #download { transition: filter 150ms ease; }
  .frame img:not([hidden]), #downloads:not([hidden]) { animation: appear 240ms ease-out both; }
  #editor.is-processing #generate { animation: working 1.25s ease-in-out infinite alternate; }
  @keyframes appear {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes working {
    from { filter: brightness(1); }
    to { filter: brightness(1.14); }
  }
}

@media (max-width: 580px) {
  .wrap {
    width: auto;
    margin-left: max(.75rem, env(safe-area-inset-left));
    margin-right: max(.75rem, env(safe-area-inset-right));
  }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .site-header .top { min-height: 3.5rem; }
  .site-header .account-nav { min-height: 2.75rem; }
  .account-actions.is-signed-in .account-nav { justify-content: center; }
  .header-menu-content, #account.account-dropdown {
    right: max(.75rem, env(safe-area-inset-right));
    width: min(27rem, calc(100vw - max(.75rem, env(safe-area-inset-right)) - max(.75rem, env(safe-area-inset-left))));
  }
  .header-menu-content { max-height: min(65dvh, 24rem); overflow-y: auto; }
  .site-header:has(.account-actions.is-signed-in) #account { max-height: calc(100dvh - 10.5rem - env(safe-area-inset-top)); }
  .top-with-account:not(:has(.account-actions.is-signed-in)) {
    display: flex;
    justify-content: center;
  }
  .product-hero { gap: 1rem; text-align: center; }
  .product-hero h1 { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .product-hero p { margin: .6rem auto 0; }
  .feature-disclosure-content { text-align: center; }
  .footer-grid, .footer-bottom { text-align: center; }
  .footer-grid p { margin-inline: auto; }
  .document-copy h1 { overflow-wrap: break-word; }
  .document-copy a { overflow-wrap: anywhere; }
  .comparison, .editing-grid, .feature-list { grid-template-columns: minmax(0, 1fr); }
  #mode-options, #background-options { display: grid; width: 100%; }
  .mode { width: 100%; min-height: 2.75rem; justify-content: center; text-align: center; }
  .mode input { flex: none; }
  main button, main #download, .feature-disclosure summary { min-height: 2.75rem; }
  main #download { display: inline-grid; place-items: center; }
  #downloads { align-items: stretch; }
  #downloads > :is(a, button) { flex: 1 1 11rem; }
  .frame-ranges { width: min(100%, 28rem); }
  .range-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; text-align: left; }
  .range-control input { grid-column: 1; grid-row: 2; width: 100%; min-height: 2rem; margin: 0; }
  .range-control output { grid-column: 2; grid-row: 2; min-width: 3ch; text-align: right; }
  .registration-options a { display: inline-block; padding-block: .2rem; }
}

@media (max-width: 380px) {
  fieldset { display: grid; width: 100%; }
  .mode { width: 100%; }
}

.description-field {
  display: block;
  font-weight: 650;
}

#description {
  display: block;
  width: min(100%, 42rem);
  margin-inline: auto;
  padding: .8rem 1rem;
  border: 1px solid #a4a4a4;
  border-radius: .8rem;
  background: #fff9;
  color: #292929;
  font: inherit;
  resize: vertical;
}

#frame-preview {
  touch-action: none;
  cursor: grab;
}

#frame-preview:active {
  cursor: grabbing;
}

.range-control,
.range-control input[type="range"] {
  box-shadow: none;
  outline: none;
}

.range-control input[type="range"] {
  appearance: none;
  height: 1.8rem;
  background: transparent;
  cursor: pointer;
}

.range-control input[type="range"]::-webkit-slider-runnable-track { height: .25rem; border-radius: 1rem; background: #b6b6b6; }
.range-control input[type="range"]::-moz-range-track { height: .25rem; border-radius: 1rem; background: #b6b6b6; }
.range-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin-top: -.375rem;
  border-radius: 50%;
  background: #535353;
}
.range-control input[type="range"]::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 50%;
  background: #535353;
}
.range-control input[type="range"]:is(:hover, :active, :focus-visible)::-webkit-slider-thumb {
  box-shadow: 0 0 .45rem .2rem #38796f65;
}
.range-control input[type="range"]:is(:hover, :active, :focus-visible)::-moz-range-thumb {
  box-shadow: 0 0 .45rem .2rem #38796f65;
}

.eraser-tools { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
#erase-contour[aria-pressed="true"] { background: #d8eeea; }
.editing-column:has(#erase-contour[aria-pressed="true"]) #mask-editor {
  touch-action: none;
  cursor: url("./eraser-cursor.png") 13 13, default;
}

#account-code-options, #account-password-settings { margin: .85rem 0; }
#account-code-options summary, #account-password-settings summary { cursor: pointer; }
#account-password-form { margin: .75rem auto 0; max-width: 24rem; }
#account-password-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  font: inherit;
  border-radius: .55rem;
}

#account-sign-in { padding-inline: .6rem; }
#account-register { padding-inline: 1rem; font-weight: 700; }
#account-sign-in svg { display: block; }
.account-credentials { display: grid; gap: .25rem; }
.account-credentials dd { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.account-credentials dt { font-weight: 650; }

#account-code-options {
  width: min(100%, 24rem);
  margin: .85rem auto 0;
}
#account-code-options form, #account-email-fields, #account-phone-fields, #account-registration-passwords {
  display: grid;
  gap: .7rem;
  margin: 0;
}
#account-code-options form + form { margin-top: .85rem; }
#account-code-options small { margin: 0; }
#account-code-options .registration-reveal { width: 100%; }
#account-code-options .registration-options { gap: .7rem; margin: 0; min-inline-size: 0; }
#account-code-options .registration-reveal-inner { padding-inline: 0; }

:is(#account-password-settings-label, #account-link-phone > summary) {
  border-radius: 999px;
  background: transparent;
  padding: .55rem .9rem;
  transition: text-shadow 170ms ease, filter 170ms ease;
}
:is(#account-password-settings-label, #account-link-phone > summary):is(:hover, :active, :focus-visible) {
  box-shadow: none;
  outline: none;
  text-shadow: 0 0 .65rem #38796f9c;
}
:is(#account-password-settings #account-password-settings-label, #account-link-phone > summary):active {
  background: #e1f5ef;
  box-shadow: 0 0 .9rem #38796f50;
  text-shadow: 0 0 .8rem #38796f;
}
#account-link-phone form { margin: .75rem auto 0; max-width: 24rem; }
#account-link-phone > summary { cursor: pointer; width: fit-content; margin-inline: auto; list-style: none; }
#account-link-phone > summary::-webkit-details-marker { display: none; }
.phone-reveal { display: grid; grid-template-rows: 1fr; }
@media (prefers-reduced-motion: no-preference) {
  #account-link-phone[open] > .phone-reveal { animation: reveal-registration 250ms ease-out both; }
}
:is(#account-password-settings-label, #account-link-phone > summary):focus-visible { text-decoration: underline; }
#account-password-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 250ms ease, opacity 200ms ease;
}
#account-password-reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.password-reveal-content { min-height: 0; overflow: hidden; padding-inline: .2rem; }

.product-hero-copy { container-type: inline-size; }
.product-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  font-size: clamp(1.75rem, 10.9cqi, 4.7rem);
  line-height: 1.06;
}
@keyframes product-image-drift {
  0%, 100% { transform: translateY(0) rotate(-.45deg); }
  50% { transform: translateY(-.55rem) rotate(.45deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .product-hero-image { animation: product-image-drift 6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  #account-password-reveal, #account-password-settings-label, #account-link-phone > summary { transition: none; }
}


@media (max-width: 680px) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-header .top-with-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .4rem .65rem;
    align-items: center;
  }
  .site-header .top-with-account .brand { grid-column: 1; justify-self: start; }
  .site-header .account-actions { align-items: center; gap: .35rem; }
  .site-header .account-nav { min-height: 2.75rem; padding: .35rem .55rem; font-size: .85rem; }
  .site-header #account-register { padding-inline: .65rem; }
  .site-header #account-sign-in { min-width: 2.75rem; justify-content: center; }
  .site-header .top-with-account:has(.account-actions.is-signed-in) {
    grid-template-columns: minmax(0, 1fr);
    padding-block: .45rem;
  }
  .site-header .top-with-account:has(.account-actions.is-signed-in) .brand { justify-self: center; }
  .site-header .account-actions.is-signed-in { justify-content: center; }
  .site-header .header-menu-content,
  .site-header #account.account-dropdown {
    left: max(.75rem, env(safe-area-inset-left));
    right: max(.75rem, env(safe-area-inset-right));
    width: auto;
    max-width: 27rem;
    margin-inline: auto;
    max-height: min(32rem, calc(100dvh - 10rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
    overflow: auto;
    overscroll-behavior: contain;
    transform-origin: top center;
  }
  .site-header .header-menu-content input,
  .site-header #account.account-dropdown :is(input:not([type="checkbox"]), select) {
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .site-header .top-with-account {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding-block: .4rem;
  }
  .site-header .top-with-account .brand { justify-self: center; }
  .site-header .account-actions { justify-content: center; }
}

@media (max-width: 680px) {
  .site-header #account.account-dropdown {
    max-height: calc(100svh - var(--account-mobile-top, 5.5rem) - env(safe-area-inset-top) - max(.5rem, env(safe-area-inset-bottom)));
    overflow-anchor: none;
    overflow-y: auto;
    scroll-padding-block: .75rem;
  }
  @media (prefers-reduced-motion: no-preference) {
    #account-registration-options:not([hidden]) {
      animation: mobile-consent-expand 340ms cubic-bezier(.2, .65, .3, 1) both;
    }
  }
  @keyframes mobile-consent-expand {
    from { grid-template-rows: 0fr; opacity: 0; }
    to { grid-template-rows: 1fr; opacity: 1; }
  }
  #account-code-options .registration-options { padding: .5rem; gap: .35rem; }
  #account-code-options .registration-option {
    align-items: center;
    gap: .35rem;
    font-size: 1.07775208125rem;
    line-height: 1.3;
  }
  #account-code-options .registration-option input { margin: 0; }
  #account-code-options .registration-option a { padding-block: .15rem; }
  #account-code-options :is(form, input, select, button) {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .site-header #account.account-dropdown { --account-mobile-top: 7.5rem; }
}

.site-header .top-with-account:has(.account-actions.is-signed-in) {
  padding-block: .55rem;
}
.site-header .account-actions.is-signed-in > * {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.site-header .account-actions.is-signed-in .account-nav {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .site-header .top-with-account:has(.account-actions.is-signed-in) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .site-header .top-with-account:has(.account-actions.is-signed-in) .brand {
    justify-self: center;
  }
  .site-header .account-actions.is-signed-in {
    justify-content: center;
  }
}

#account-registration-close { display: none; }
#account.account-dropdown :is(#account-password-login, #account-code-options) :is(input:not([type="checkbox"]), select) {
  background: #fff;
  border: 1px solid #94949b;
}
#account.account-dropdown :is(#account-password-login, #account-code-options) :is(input:not([type="checkbox"]), select):focus {
  border-color: #38796f;
  outline: 2px solid #38796f55;
  outline-offset: 1px;
}
@media (max-width: 680px) {
  body:has(#account.is-open.is-registration) { overflow: hidden; }
  .site-header #account.account-dropdown.is-registration {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    z-index: 5;
    padding: 0 max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    margin: 0;
    border-radius: 0;
    background: #fff;
  }
  #account.is-registration .account-heading {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-block: max(.65rem, env(safe-area-inset-top)) .65rem;
    background: #fff;
  }
  #account.is-registration #account-title { margin: 0; }
  #account.is-registration #account-registration-close {
    display: grid;
    place-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    font-size: 1.55rem;
    border-radius: 50%;
    cursor: pointer;
  }
  #account.is-registration .registration-option label { white-space: normal; }
  #account.is-registration { scroll-padding-block-start: calc(4rem + env(safe-area-inset-top)); }
}

.site-header #account.account-dropdown.is-trigger-aligned {
  left: var(--account-panel-left, .75rem);
  right: auto;
  width: min(27rem, calc(100% - 1.5rem));
  margin-inline: 0;
  transform-origin: top center;
}

#account-recovery > summary {
  width: fit-content;
  margin: .55rem auto 0;
  padding: .5rem .85rem;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: text-shadow 160ms ease;
}
#account-recovery > summary::-webkit-details-marker { display: none; }
#account-recovery > summary:is(:hover, :focus-visible) {
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 .58rem #38796f9c;
}
#account-recovery > summary:active {
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 .8rem #38796f;
}
#account-recovery > summary:focus-visible { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  #account-recovery > summary { transition: none; }
}
