/* Creator-only additions preserve the accepted homepage's default geometry. */
@font-face { font-family: "QRHyper Hamurz"; src: url('../assets/creator/fonts/hamurz.otf') format('opentype'); font-display: swap; }
@font-face { font-family: "QRHyper Big John"; src: url('../assets/creator/fonts/big-john.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: "QRHyper Dancing Script"; src: url('../assets/creator/fonts/dancing-script.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: "QRHyper Floane"; src: url('../assets/creator/fonts/floane.otf') format('opentype'); font-display: swap; }
@font-face { font-family: "QRHyper Reem Kufi"; src: url('../assets/creator/fonts/reem-kufi.ttf') format('truetype'); font-display: swap; }
#creator { scroll-margin-top: 24px; --creator-option-size: 64px; --creator-dot-size: 48px; --creator-eye-size: 36px; }
#creator [hidden] { display: none !important; }
#creator .creator-content-panel { display: contents; }
#creator .creator-panel { min-width: 0; }
#creator .customize-tabs { position: relative; }
#creator .customize-tabs [aria-selected="true"]::after { content: none; }
#creator .customize-tabs button:not([aria-selected="true"]):hover { color: var(--brand); }
#creator .customize-indicator { position: absolute; left: 0; bottom: 0; width: 127px; height: 3px; border-radius: 11px; background: var(--brand); pointer-events: none; transition: left 200ms, width 200ms; }
#creator .customize-card { height: auto; min-height: 634px; }
/* Horizontal overflow also clips vertically; reserve room for protruding PRO badges. */
#creator .template-grid { grid-template-columns: repeat(var(--template-columns,17),108px); padding-block: 4px; margin-block: -4px; }
#creator .template-viewport { margin-top: 32px; }
#creator .template-viewport, #creator .creator-scroll-viewport { isolation: isolate; }
#creator .template-viewport::after { content: none; }
#creator .scroll-indicator { cursor: pointer; position: relative; touch-action: none; }
#creator .scroll-indicator::before { content: ""; position: absolute; inset: -7px 0; }
#creator .scroll-indicator span { position: relative; cursor: grab; touch-action: none; }
#creator .scroll-indicator.is-dragging span { cursor: grabbing; }
#creator .creator-scroll-viewport { position: relative; min-width: 0; }
#creator .creator-scroll-grid { display: grid; gap: 20px; overflow-x: auto; scrollbar-width: none; }
#creator .creator-scroll-grid::-webkit-scrollbar, #creator .swatch-row::-webkit-scrollbar { display: none; }
#creator .logo-library { --creator-option-size: var(--library-tile-size,64px); scroll-snap-type: x mandatory; scroll-padding-inline: 4px; align-items: start; grid-template-columns: repeat(var(--columns,18),var(--creator-option-size)); grid-template-rows: repeat(3,var(--creator-option-size)); padding: 4px; margin: -4px; }
#creator .logo-tile { scroll-snap-align: start; align-self: start; grid-column: var(--column); grid-row: var(--row); width: var(--creator-option-size); height: var(--creator-option-size); border-radius: 8px; overflow: hidden; }
#creator .logo-tile > img { width: 100%; height: 100%; }
#creator .logo-tile.is-loading { background: #f5f5f5; }
/* Native thumbnails are 192×194; map their full canvas to Figma's square mask.
   Contain leaves side gutters that interrupt the rounded edge. */
#creator .logo-tile:not(.logo-action) > img { object-fit: fill; }
#creator .logo-tile.logo-action { display: grid; place-items: center; border: 1px dashed var(--brand-48); background: var(--white); }
#creator .logo-action > img { width: 32px; height: 32px; }
#creator .logo-action:first-child > img { width: 28px; height: 28px; }
#creator .logo-panel, #creator .color-panel { margin-top: 32px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#creator .panel-title { font-size: 22px; line-height: 28px; font-weight: 600; }
#creator .panel-label { display: block; font-size: 18px; line-height: 28px; font-weight: 500; }
#creator .panel-field > :nth-child(2) { margin-top: 16px; }
#creator .logo-image, #creator .logo-text, #creator .solid-field { margin-top: 24px; }
#creator .logo-options { display: flex; gap: 60px; margin-top: 32px; }
#creator .logo-options > :first-child { flex: 0 0 363px; }
#creator .static-options { display: flex; gap: 20px; }
#creator .static-options > :is(span,button) { height: 56px; border: 2px solid transparent; border-radius: 8px; background: #f5f5f7; display: flex; align-items: center; justify-content: center; flex: 0 0 108px; color: var(--text-3); font-size: 16px; line-height: 24px; }
#creator .static-options > .is-selected { color: var(--brand); border-color: var(--brand); background: var(--white); font-weight: 600; }
#creator .shape-options > :nth-child(2) { flex-basis: 107px; }
#creator .position-options > :is(span,button) { flex-basis: auto; padding-inline: 10px; gap: 12px; }
#creator .position-options > :is(span,button):first-child { width: 118px; }
#creator .position-options > :is(span,button):last-child { width: 105px; }
#creator .position-options img { flex: 0 0 32px; }
#creator .panel-divider { height: 1px; border: 0; background: var(--line-input); margin: 48px 0 47px; }
#creator .logo-text > input { width: 100%; height: 64px; border: 1px solid var(--line-input); border-radius: 8px; padding: 0 24px; background: var(--white); font: 500 20px/28px "Inter", sans-serif; }
#creator .logo-text > input::placeholder { color: var(--text-4); opacity: 1; }
#creator .text-color-field, #creator .font-field, #creator .gradient-field, #creator .background-image { margin-top: 32px; }
#creator .swatch-row, #creator .swatch-presets { display: flex; align-items: center; gap: 20px; }
#creator .swatch-row { overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
#creator .panel-field > .swatch-row:nth-child(2) { margin-top: 12px; }
/* Keep artwork and color fills the same size in both selection states. */
#creator .swatch { flex: 0 0 var(--creator-option-size); height: var(--creator-option-size); border-radius: 8px; background: var(--swatch); background-origin: border-box; background-clip: border-box; }
#creator .font-options { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
#creator .font-options > :is(span,button) { color: var(--ink); font-weight: 600; }
#creator .font-options > .is-selected { color: var(--brand); }
#creator .font-options > :nth-child(2), #creator .font-options > :nth-child(5), #creator .font-options > :nth-child(6) { font-family: "Trebuchet MS", sans-serif; }
#creator .font-options > :nth-child(3) { font-family: "Arial Black", sans-serif; font-weight: 900; letter-spacing: -.6px; }
#creator .font-options > :nth-child(4) { font-family: "Marker Felt", cursive; }
#creator .logo-panel { padding-bottom: 16px; }
#creator .hex-field { display: flex; align-items: center; flex: 0 0 166px; width: 166px; height: 64px; border: 1px solid var(--line-input); border-radius: 8px; padding: 7px; gap: 12px; background: var(--white); }
#creator .hex-chip { width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; }
#creator .foreground-chip { background: #249d71; }
#creator .gradient-end-chip { background: #9ce2c8; }
#creator .background-chip { background: #ffd2c6; }
#creator .hex-field input { flex: 1 1 0; border: 0; padding: 0; min-width: 0; width: 0; background: transparent; color: var(--text-4); font: 500 18px/28px "Inter", sans-serif; }
#creator .gradient-controls { display: grid; grid-template-columns: 400px minmax(0,1fr); gap: 16px 20px; }
#creator .gradient-inputs { display: flex; gap: 20px; align-items: center; }
#creator .color-swap { flex: 0 0 28px; }
#creator .grayscale-presets { gap: 20px; }
#creator :is(.color-panel,.text-color-field) .swatch-row { overflow: visible; flex-wrap: wrap; }
#creator .swatch-presets { display: contents; }
#creator .grayscale-presets .swatch { box-sizing: border-box; border: 1px solid var(--line-input); padding: 1px; background-image: var(--swatch), linear-gradient(var(--white),var(--white)); background-origin: content-box, padding-box; background-clip: content-box, padding-box; }
#creator .gradient-presets { grid-column: 1 / -1; gap: 20px; }
#creator .color-panel { padding-bottom: 42px; }
#creator .style-panel { margin-top: 28px; }
#creator .style-library { padding: 4px; margin: -4px; grid-auto-flow: column; grid-template-columns: repeat(12,64px); grid-template-rows: repeat(2,64px); }

#creator .style-tile { width: var(--creator-option-size); height: var(--creator-option-size); border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #f5f5f7; }
#creator .style-tile img { width: 64px; height: 64px; }
#creator .eyes-field { margin-top: 32px; }
@media (min-width: 1200px) {
  #creator .creator-grid { grid-template-rows: 246px minmax(634px,auto); }
}
@media (min-width: 768px) {
  #creator .creator-types .type-card { cursor: pointer; transition: transform 150ms, box-shadow 150ms, border-color 150ms; }
  #creator .creator-types .type-card:is(:hover,:focus-visible) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(117,159,140,.24); }
  #creator .creator-types .type-card:not(.selected):is(:hover,:focus-visible) { border-color: var(--brand-48); }
}
@media (min-width: 768px) and (max-width: 1370px) {
  #creator .customize-tabs { gap: clamp(24px,5vw,48px); }
  #creator .logo-options { gap: 24px; flex-wrap: wrap; }
  #creator .gradient-controls { grid-template-columns: minmax(0,1fr); }
  #creator .gradient-presets { grid-column: auto; }
}
@media (max-width: 767px) {
  #creator { --creator-option-size: 48px; --creator-dot-size: 36px; }
  #creator .customize-card { min-height: 0; }
  #creator .creator-grid[data-view="customize"] .customize-card { display: block; order: 4; width: 100%; padding: 0; box-shadow: none; border-radius: 0; }
  #creator .customize-heading { display: none; }
  #creator .customize-tabs { height: 38px; margin-top: 16px; gap: 0; justify-content: space-around; }
  #creator .customize-tabs button { font-size: 16px; line-height: 28px; }
  #creator .customize-tabs button img { display: none; }
  #creator .template-viewport { margin-top: 24px; }
  #creator .template-grid { --template-size: calc((100% - 30px) / 4); grid-template-columns: repeat(var(--template-columns,17),var(--template-size)); grid-template-rows: repeat(3,auto); gap: 10px; }
  #creator .template { width: 100%; height: auto; aspect-ratio: 1; }
  #creator .creator-scroll-grid { gap: 12px; }
  #creator .logo-library { align-items: start; grid-template-columns: repeat(var(--mobile-columns,27),var(--library-tile-size,48px)); grid-template-rows: repeat(2,var(--library-tile-size,48px)); }
  #creator .logo-tile { align-self: start; grid-column: var(--mobile-column); grid-row: var(--mobile-row); width: var(--library-tile-size,48px); height: var(--library-tile-size,48px); }
  #creator .logo-action > img { width: 24px; height: 24px; }
  #creator .logo-action:first-child > img { width: 24px; height: 24px; }
  #creator .scroll-indicator { margin-top: 12px; height: 4px; }
  #creator .logo-panel, #creator .color-panel, #creator .style-panel { margin-top: 16px; padding-bottom: 0; }
  #creator .panel-title { font-size: 14px; line-height: 20px; font-weight: 700; color: rgba(0,0,0,.8); }
  #creator .panel-label { font-size: 14px; line-height: 20px; font-weight: 400; color: rgba(0,0,0,.8); }
  #creator .panel-field > :nth-child(2) { margin-top: 12px; }
  #creator .panel-field > .swatch-row:nth-child(2) { margin-top: 8px; }
  #creator .logo-image, #creator .logo-text, #creator .solid-field { margin-top: 16px; }
  #creator .logo-options { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
  #creator .logo-options > :first-child { flex-basis: auto; }
  #creator .static-options { gap: 10px; }
  #creator .static-options > :is(span,button) { height: 48px; font-size: 14px; line-height: 20px; flex-basis: 0; flex-grow: 1; }
  #creator .shape-options > :nth-child(2) { flex-basis: 0; }
  #creator .position-options > :is(span,button) { flex: 0 0 108px; gap: 6px; padding-inline: 8px; }
  #creator .panel-divider { margin: 32px 4px 31px; }
  #creator .logo-text > input { height: 48px; padding-inline: 16px; font-size: 16px; line-height: 24px; border: 2px solid #f2f2f4; }
  #creator .text-color-field, #creator .font-field, #creator .gradient-field, #creator .background-image { margin-top: 24px; }
  #creator .font-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  #creator .swatch-row, #creator .swatch-presets { gap: 12px; }
  #creator .swatch { flex-basis: 48px; height: 48px; }
  #creator .hex-field { width: 117px; flex-basis: 117px; height: 48px; gap: 8px; }
  #creator .hex-chip { width: 32px; height: 32px; }
  #creator .hex-field input { font-size: 13px; }
  #creator .gradient-controls { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #creator .gradient-inputs { grid-row: 2; gap: 5px; }
  #creator .gradient-inputs .hex-field { flex-basis: min(117px,calc((100% - 34px) / 2)); width: min(117px,calc((100% - 34px) / 2)); }
  #creator .color-swap { width: 24px; height: 24px; flex-basis: 24px; }
  #creator .gradient-presets { grid-row: 1; }
  #creator .grayscale-presets { grid-row: 3; }
  #creator .style-library, #creator .eyes-field .style-library { grid-template-columns: repeat(12,48px); grid-template-rows: repeat(2,48px); padding: 4px; }
  #creator .style-tile, #creator .style-tile img { width: 48px; height: 48px; }
  #creator .eyes-field { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #creator *, #creator *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* v1.1: live content, customization, and preview. */
#creator .creator-types { max-height: 118px; transition: max-height 200ms; }
#creator .creator-types.is-expanded { max-height: 520px; }
#creator .more-types img { transition: transform 200ms; }
#creator .more-types[aria-expanded="true"] img { transform: rotate(180deg); }
#creator .creator-fields { margin-top: 32px; display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
#creator .creator-fields.has-multiple-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
#creator .field { min-width: 0; }
#creator .field-wide { grid-column: 1 / -1; }
#creator .field > label { display: block; margin-bottom: 16px; font-size: 18px; line-height: 28px; font-weight: 500; }
#creator .required-mark { color: #e5484d; }
#creator .input-wrap { min-width: 0; position: relative; }
#creator .field input:not([type="checkbox"]), #creator .field textarea { width: 100%; min-width: 0; height: 64px; padding: 0 24px; border: 1px solid var(--line-input); border-radius: 8px; background: white; font: 500 20px/28px Inter,sans-serif; }
/* Keep saved URL suggestions on the same white surface as manually entered URLs. */
#creator .field input[type="url"]:is(:autofill, :-webkit-autofill) { -webkit-box-shadow: 0 0 0 1000px white inset; box-shadow: 0 0 0 1000px white inset; -webkit-text-fill-color: currentColor; }
#creator .field textarea { height: 128px; padding-block: 16px; resize: vertical; display: block; }
/* Keep multiline fields' breathing room outside their scrolling text area. */
#creator .input-wrap:has(> textarea) { height: 128px; min-height: 128px; resize: vertical; overflow: hidden; padding-block: 12px; border: 1px solid var(--line-input); border-radius: 8px; background: var(--white); }
/* Figma 117:11682: 5px geometry plus its 2px stroke, inset 9px from the outer border. */
#creator .input-wrap:has(> textarea)::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 7px; height: 7px; background: url('../assets/home/creator/textarea-resize.svg') center / contain no-repeat; pointer-events: none; }
#creator .input-wrap:has(> textarea)::-webkit-resizer { background: transparent; border: 0; }
#creator .input-wrap:has(> textarea:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
#creator .field .input-wrap > textarea { height: 100%; resize: none; padding: 4px 23px; border: 0; border-radius: 0; outline: none; }
#creator .input-wrap:has(> textarea[aria-invalid="true"]) { border-color: #e5484d; }
#creator .input-wrap:has(> textarea[aria-invalid="true"]:focus-visible) { outline-color: #e5484d; outline-offset: -2px; }
#creator .field input::placeholder, #creator .field textarea::placeholder { color: var(--text-3); opacity: 1; }
#creator .field input[aria-invalid="true"], #creator .field textarea[aria-invalid="true"], #creator .hex-field:has([aria-invalid="true"]) { border-color: #e5484d; }
/* Merge keyboard focus into the error border instead of adding a brand-colored ring. */
#creator .field input[aria-invalid="true"]:focus-visible, #creator .field textarea[aria-invalid="true"]:focus-visible { outline-color: #e5484d; outline-offset: -2px; }
#creator .error-space, #creator .upload-error, #creator .creator-status { font: 400 12px/16px Inter,sans-serif; color: #e5484d; margin-top: 8px; }
#creator .error-space:empty, #creator .upload-error:empty, #creator .creator-status:empty { display: none; }
#creator .phone-inputs { display: flex; gap: 16px; }
#creator .field input.country-code { flex: 0 0 71px; width: 71px; padding-inline: 8px; text-align: center; }
#creator .field-switch { margin-top: -12px; }
#creator .field-switch > .password-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 0; font-size: 16px; line-height: 28px; cursor: pointer; position: relative; }
#creator .password-toggle input { position: absolute; opacity: 0; width: 54px; height: 28px; }
#creator .toggle-track { width: 54px; height: 28px; flex: 0 0 54px; background: #d9d9d9; border-radius: 80px; position: relative; }
#creator .toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: white; border-radius: 50%; transition: transform 150ms; }
#creator .password-toggle input:checked + .toggle-track { background: var(--brand); }
#creator .password-toggle input:checked + .toggle-track::after { transform: translateX(26px); }
#creator .password-toggle input:focus-visible + .toggle-track { outline: 2px solid var(--brand); outline-offset: 3px; }
#creator .date-time-input input { padding-right: 54px !important; }
#creator .date-time-trigger { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.date-time-picker { position: fixed; z-index: 20; width: 318px; padding: 16px; border: 1px solid #e5e5e5; border-radius: 12px; background: white; box-shadow: 0 8px 32px #0002; font: 14px/20px Inter,sans-serif; }
.date-picker-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.date-picker-head button { width: 24px; font-size: 24px; }
.date-picker-head select { flex: 1; min-width: 0; }
.date-picker-head input { width: 66px; }
.date-time-picker select, .date-time-picker input { padding: 6px; border: 1px solid #e5e5e5; border-radius: 4px; font: inherit; background: white; }
.date-picker-week, .date-picker-days { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.date-picker-week { color: #666; margin-bottom: 6px; }
.date-picker-day { height: 32px; border-radius: 4px; }
.date-picker-day[aria-pressed="true"] { background: #19b593; color: white; }
.date-picker-day[aria-current="date"] { box-shadow: inset 0 0 0 1px #19b593; }
.date-picker-time { display: flex; gap: 16px; padding-top: 12px; }
.date-picker-time label { display: flex; align-items: center; gap: 8px; }
.date-picker-footer { display: flex; justify-content: space-between; margin-top: 16px; color: #087d58; }
#creator .template, #creator .logo-tile, #creator .style-tile, #creator .swatch { position: relative; border: 2px solid transparent; }
#creator .template { background: #f5f5f5; padding: 8px; display: grid; place-items: center; }
#creator .template > img:not(.pro-badge) { min-width: 0; min-height: 0; }
#creator :is(.template,.logo-tile,.style-tile,.swatch)[aria-pressed="true"] { border-color: var(--brand); }
#creator :is(.logo-tile,.style-tile,.swatch) { border: 0; padding: 0; overflow: visible; }
#creator .logo-tile.logo-action { border: 0; }
#creator .logo-tile.logo-action::before { content: ""; position: absolute; inset: 0; border: 2px dashed var(--brand-48); border-radius: inherit; pointer-events: none; }
#creator :is(.logo-tile,.style-tile) > img:not(.pro-badge) { border-radius: inherit; }
#creator :is(.logo-tile,.style-tile,.swatch)[aria-pressed="true"] { border-color: transparent; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand); }
/* The no-image action retains its dashed frame even when active. */
#creator .logo-action:is([data-logo="none"],[data-background="none"])[aria-pressed="true"] { box-shadow: none; }
/* Near-white fills (flagged in customize.js) need a hairline to read against the white card. */
#creator :is(.swatch,.hex-chip).is-light { box-shadow: inset 0 0 0 1px var(--line-input); }
#creator .swatch.is-light[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--line-input), 0 0 0 2px var(--white), 0 0 0 4px var(--brand); }
#creator .template { overflow: visible; --pro-anchor-border: 2px; }
#creator .pro-badge { position: absolute; z-index: 1; top: calc(-3px - var(--pro-anchor-border,0px)); right: calc(-3px - var(--pro-anchor-border,0px)); width: 30px; height: 16px; display: grid; place-items: center; background: url('../assets/home/creator/pro-option-bg.svg') center / 100% 100% no-repeat; color: rgba(0,0,0,.68); font: 700 10px/13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; pointer-events: none; }
#creator .style-tile > img { width: var(--creator-dot-size); height: var(--creator-dot-size); object-fit: contain; mix-blend-mode: multiply; }
#creator .eyes-field .style-tile > img { width: var(--creator-eye-size); height: var(--creator-eye-size); }
#creator .style-tile.style-reset > img { width: 23px; height: 23px; }
#creator .style-tile[aria-pressed="true"] { background: var(--white); }
#creator .static-options > button { position: relative; --pro-anchor-border: 2px; }
#creator .color-well { display: block; position: relative; overflow: hidden; cursor: pointer; }
#creator .color-well input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#creator .color-swap { width: 28px; height: 28px; display: grid; place-items: center; }
#creator .hex-field { cursor: text; }
#creator .hex-field.is-pro { position: relative; cursor: pointer; }
#creator .color-field-pro { position: absolute; inset: -1px; border-radius: inherit; }
#creator .color-field-pro:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
#creator .hex-field input:not([type="color"]) { color: var(--text-2); }
/* Draw keyboard focus around the shared control rather than the invisible picker input. */
#creator .hex-field:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
#creator .hex-field input:focus-visible { outline: none; }
#creator .qr-preview { overflow: hidden; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
#creator .qr-preview > #qrPreview,
#creator .qr-loading { grid-area: 1 / 1; }
#creator .qr-preview > #qrPreview { width: min(280px,90%); height: auto; aspect-ratio: 1; object-fit: contain; max-width: 90%; max-height: 90%; }
#creator .qr-loading { position: relative; width: 62px; height: 62px; --qr-scan-easing: cubic-bezier(0, 0, .536, .993); }
#creator .qr-loading img { max-width: none; background: transparent; border-radius: 0; }
#creator .qr-loading .icon { position: absolute; left: 8.871%; top: 10.484%; width: 82.258%; height: 79.032%; }
#creator .qr-loading .dim { position: absolute; inset: 0; opacity: .36; }
#creator .qr-loading .bright { position: absolute; inset: 0; animation: qr-wipe 2s var(--qr-scan-easing) infinite; }
#creator .qr-loading .scan { position: absolute; left: -3.226%; top: 8.065%; width: 106.452%; height: 12.903%; animation: qr-scan 2s var(--qr-scan-easing) infinite; }
/* Both tracks use the same easing and stop at the scan line's center:
   (5px top + 4px half-height + 0..45px travel) / 62px. */
@keyframes qr-wipe {
  0%, 100% { clip-path: inset(14.516129% 0 0 0); }
  50% { clip-path: inset(87.096774% 0 0 0); }
}
@keyframes qr-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(562.5%); }
}
@media (prefers-reduced-motion: reduce) {
  #creator .qr-loading .bright, #creator .qr-loading .scan { animation: none; }
  #creator .qr-loading .bright { clip-path: inset(14.516129% 0 0 0); }
}
#creator .creator-status { color: var(--text-2); }
#creator .creator-status.is-error { color: #e5484d; }
#creator .color-notice { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 20px; border-radius: 10px; background: #252525; color: #fff; box-shadow: 0 4px 20px #0003; font: 500 14px/20px Inter,sans-serif; text-align: center; pointer-events: none; }
@media (max-width: 767px) {
  #creator .color-notice { bottom: 88px; width: max-content; }
}
/* Solid equivalent of 50% opacity on white: the sticky mobile button must not show content scrolling beneath it. */
#creator .download:disabled { background: color-mix(in srgb, var(--brand) 50%, var(--white)); cursor: not-allowed; }
@keyframes creator-loading { 0% { transform: rotate(0); opacity: .65; } 50% { opacity: 1; } 100% { transform: rotate(360deg); opacity: .65; } }
@media (min-width: 768px) {
  #creator .creator-types { grid-template-columns: repeat(10,minmax(0,1fr)); overflow: clip; overflow-clip-margin: 12px; }
  #creator .creator-grid { grid-template-columns: minmax(0,864fr) minmax(0,424fr); grid-template-rows: minmax(246px,auto) minmax(634px,auto); }
  #creator .content-card { height: auto; min-height: 246px; grid-column: 1; grid-row: 1; }
  #creator .download-card { position: sticky; top: calc(var(--header-height) + 24px); grid-column: 2; grid-row: 1 / span 2; height: auto; min-height: 582px; width: 100%; }
  #creator .qr-preview { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #creator .creator-card { padding-inline: 20px; }
  #creator .card-heading { font-size: clamp(15px,1.8vw,22px); gap: 4px; }
  #creator .step-badge { width: 32px; height: 32px; background: var(--brand); border-radius: 50%; font-size: 18px; }
  #creator .customize-tabs { gap: 0; justify-content: space-between; }
  #creator .customize-tabs button { font-size: 15px; gap: 5px; }
  #creator .customize-tabs button img { width: 20px; }
  #creator .reset { width: 90px; height: 36px; font-size: 14px; gap: 4px; }
  #creator .qr-preview { height: auto; aspect-ratio: 1; }
  #creator .download-card { min-height: 0; }
  #creator .creator-fields.has-multiple-fields { grid-template-columns: minmax(0,1fr); }
}
.app-download-dialog { position: fixed; inset: 0; margin: auto; border: 0; border-radius: 16px; width: 480px; max-width: calc(100% - 36px); padding: 43px 36px 32px; background: white; color: var(--ink); text-align: center; overflow: visible; }
.app-download-dialog::backdrop { background: rgb(0 0 0 / .32); }
.app-download-dialog [hidden] { display: none !important; }
.app-download-dialog :is(button, a):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.app-download-dialog .app-download-close { position: absolute; right: 20px; top: 20px; width: 24px; height: 24px; }
.app-download-dialog .app-download-preview { position: relative; width: 240px; height: 240px; margin: 0 auto; background: #f0f0f0; border-radius: 12px; display: grid; place-items: center; }
.app-download-dialog .app-download-image { width: 200px; height: 200px; border-radius: 8px; object-fit: contain; }
.app-download-dialog .app-download-preview[aria-busy="true"] .app-download-image { width: 62px; height: 62px; animation: creator-loading 1s ease-in-out infinite; }
.app-download-dialog .app-download-preview-error { padding: 20px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.app-download-dialog .app-download-pro { position: absolute; left: 0; top: 0; width: 56px; height: 26px; }
.app-download-dialog #appDownloadHeading { margin-top: 36px; font-size: 28px; line-height: 36px; font-weight: 600; }
.app-download-dialog #appDownloadDescription { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.app-download-dialog .app-download-stores { display: flex; justify-content: center; gap: 32px; margin-top: 48px; }
.app-download-dialog .app-download-store, .app-download-dialog .app-download-store img { width: 168px; height: 50px; }
.app-download-dialog .app-download-button { display: flex; align-items: center; justify-content: center; height: 48px; background: var(--brand); color: white; border-radius: 12px; font-weight: 600; }
@media (max-width: 767px) {
  #creator .creator-grid { position: relative; }
  #creator .mobile-type-picker { order: 3; margin-top: 16px; width: 100%; position: relative; }
  #creator .mobile-type { margin-top: 0; }
  #creator .mobile-type[aria-expanded="true"] img:last-child { transform: rotate(180deg); }
  #creator .mobile-type-options { position: absolute; z-index: 5; top: 56px; left: 0; width: 100%; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 6px; padding: 12px 8px; border: 1px solid var(--line-input); border-radius: 8px; background: white; box-shadow: 0 6px 20px #0002; }
  #creator .mobile-type-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; font-size: 11px; line-height: 16px; min-height: 68px; }
  #creator .mobile-type-option[aria-selected="true"] { color: var(--brand); font-weight: 600; }
  #creator .mobile-type-option > img { width: 32px; height: 32px; flex: 0 0 32px; }
  #creator .mobile-type-option > span { max-width: 100%; padding-inline: 6px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  #creator .creator-fields { order: 4; width: 100%; margin-top: 16px; gap: 20px; }
  #creator .creator-fields.has-multiple-fields { grid-template-columns: minmax(0,1fr); }
  #creator .field > label { margin-bottom: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); }
  #creator .field input:not([type="checkbox"]), #creator .field textarea { height: 48px; padding: 0 16px; font-size: 16px; line-height: 24px; }
  #creator .field textarea { height: 128px; padding-block: 12px; }
  #creator .input-wrap:has(> textarea) { padding-block: 8px; resize: none; }
  #creator .field .input-wrap > textarea { padding-inline: 15px; }
  #creator .field input.country-code { padding-inline: 8px; }
  #creator .field-switch { margin-top: 0; }
  #creator .field-switch > .password-toggle { font-size: 14px; }
  #creator .qr-preview { aspect-ratio: auto; }
  #creator .qr-preview > #qrPreview { width: 164px; height: 164px; background: transparent; }
  #creator .creator-grid[data-view="customize"] .download { position: sticky; bottom: 16px; z-index: 3; flex-shrink: 0; }
  #creator .creator-status { order: 6; width: 100%; }
  #creator .style-library { --style-size: 48px; }
  #creator .pro-badge { width: 22px; height: 14px; font-size: 8px; line-height: 10px; }
  .app-download-dialog { width: 302px; padding: 40px 20px 20px; border-radius: 12px; }
  .app-download-dialog::backdrop { background: rgb(0 0 0 / .68); }
  .app-download-dialog .app-download-close { right: 0; top: -36px; }
  .app-download-dialog .app-download-close img { filter: brightness(0) invert(1); }
  .app-download-dialog .app-download-preview { width: 188px; height: 188px; background: transparent; position: static; }
  .app-download-dialog .app-download-image { width: 188px; height: 188px; }
  .app-download-dialog .app-download-pro { left: 0; top: 0; }
  .app-download-dialog #appDownloadHeading { margin-top: 22px; font-size: 18px; line-height: 28px; }
  .app-download-dialog #appDownloadDescription { margin-top: 8px; font-size: 14px; line-height: 20px; }
  .app-download-dialog .app-download-button { width: 246px; max-width: 100%; margin: 24px auto 0; font-size: 16px; }
  .app-download-dialog .app-download-stores { gap: 12px; margin-top: 24px; }
  .app-download-dialog .app-download-store, .app-download-dialog .app-download-store img { width: 123px; max-width: 100%; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #creator *, #creator *::after, .app-download-dialog *, .app-download-dialog *::after, .date-time-picker * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Four direction swatches follow the inputs; the nine color presets fill the next row. */
#creator .gradient-controls { grid-template-columns: minmax(0,1fr); }
#creator .gradient-inputs { grid-column: 1; grid-row: 1; }
#creator .grayscale-presets { grid-column: 1; grid-row: 2; }
#creator .gradient-presets { grid-column: 1; grid-row: 3; }
#creator .color-panel { container-type: inline-size; }
@container (min-width: 736px) {
  #creator .gradient-controls { grid-template-columns: 400px 316px; gap: 16px 20px; align-items: start; }
  #creator .grayscale-presets { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
  #creator .gradient-presets { grid-column: 1 / -1; grid-row: 2; }
}

/* Mobile Color panel follows Figma 135:31472: single-row palettes, then endpoints and directions. */
@media (max-width: 767px) {
  #creator .color-panel .swatch-row { min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
  #creator .color-panel .panel-field > .swatch-row:nth-child(2) { margin-top: 12px; }
  #creator .color-panel .hex-field input { font-size: 14px; }
  #creator .color-panel .gradient-controls { min-width: 0; grid-template-columns: minmax(0,1fr); gap: 12px; }
  #creator .color-panel .gradient-presets { grid-column: 1; grid-row: 1; }
  #creator .color-panel .gradient-inputs { grid-column: 1; grid-row: 2; }
  #creator .color-panel .grayscale-presets { grid-column: 1; grid-row: 3; }
  #creator .color-panel .color-swap { width: 24px; height: 24px; flex-basis: 24px; }
  #creator .color-panel .color-swap img { width: 24px; height: 24px; }
}

/* Reserve the heading and download action; let the preview give up height first. */
@media (min-width: 768px) and (max-width: 1199px) and (max-height: 760px) {
  #creator .download-card { display: flex; flex-direction: column; height: min(582px,calc(100dvh - var(--header-height) - 48px)); min-height: 0; overflow-y: auto; }
  #creator .download-card > .card-heading, #creator .download-card > .creator-status { flex-shrink: 0; }
  #creator .qr-preview { flex: 1 1 344px; min-height: 160px; height: auto; aspect-ratio: auto; }
  #creator .qr-preview > #qrPreview { width: min(280px,90%); height: min(280px,90%); object-fit: contain; }
  #creator .download { flex: 0 0 64px; }
}
@media (min-width: 768px) and (max-width: 1199px) and (max-height: 600px) {
  #creator .download-card { padding-block: 16px; }
  #creator .qr-preview, #creator .download { margin-top: 16px; }
}
/* A very short viewport should scroll the page instead of trapping a tiny panel. */
@media (min-width: 768px) and (max-width: 1199px) and (max-height: 460px) {
  #creator .download-card { position: static; height: auto; overflow: visible; }
  #creator .qr-preview { flex: 0 0 160px; }
}
@media (max-width: 767px) and (max-height: 600px) {
  #creator .qr-preview { height: clamp(140px,30dvh,200px); margin-top: 8px; }
  #creator .qr-preview > #qrPreview { width: min(164px,calc(30dvh - 24px)); height: min(164px,calc(30dvh - 24px)); min-width: 116px; min-height: 116px; }
}

/* No valid user content: show the selected design as a masked sample only. */
#creator .qr-preview[data-state="sample"] { position: relative; }
#creator .qr-preview[data-state="sample"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(245,247,245,.76); box-shadow: inset 0 0 45px rgba(16,27,24,.08); pointer-events: none; }
@media (max-width: 767px) {
  #creator .qr-preview[data-state="sample"]::after { background: rgba(242,245,244,.66); box-shadow: none; }
}
