:root {
  --sky-paper: #eaf5ff;
  --cloud: #f8fbff;
  --ink: #17345b;
  --ink-soft: #667a96;
  --cherry: #f05b67;
  --cherry-dark: #d94756;
  --lilac: #ddd8ff;
  --mint: #cdeee2;
  --sun: #ffd66b;
  --line: #c9dced;
  --shadow: 0 18px 50px rgba(57, 99, 142, 0.13);
  --radius: 28px;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--sky-paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, label:has(input:focus-visible) {
  outline: 3px solid rgba(240, 91, 103, 0.35);
  outline-offset: 3px;
}
.is-hidden { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.paper-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .45;
  background-image: radial-gradient(rgba(23,52,91,.11) .7px, transparent .7px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.site-header { max-width: 1180px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-wordmark { display: block; width: 158px; height: auto; }
.header-guide-link { color: var(--ink-soft); font-size: 12px; font-weight: 800; text-decoration: none; text-underline-offset: 4px; }
.header-guide-link:hover, .header-guide-link:focus-visible { color: var(--cherry-dark); text-decoration: underline; }
.privacy-chip { display: flex; align-items: center; gap: 8px; padding: 9px 13px; font-size: 13px; font-weight: 700; color: #3f6b62; background: rgba(205,238,226,.7); border: 1px solid rgba(75,143,123,.18); border-radius: 999px; }
.privacy-chip span { color: #45a280; font-size: 9px; }
.header-switch, .text-button { border: 0; cursor: pointer; }
.header-switch { padding: 8px 10px; color: var(--ink-soft); background: transparent; font-size: 13px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.header-switch:hover { color: var(--cherry-dark); }
.hero { max-width: 1180px; min-height: calc(100vh - 90px); margin: 0 auto; padding: 48px 48px 90px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 82px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--cherry-dark); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(56px,7.2vw,102px); line-height: .98; letter-spacing: -.075em; font-weight: 950; }
.hero h1 em { position: relative; color: var(--cherry); font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: -8px; height: 9px; background: var(--sun); border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.hero-note { max-width: 490px; margin: 34px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.mini-stickers { display: flex; gap: 10px; margin-top: 34px; }
.mini-stickers span { padding: 10px 13px; background: white; border: 3px solid white; border-radius: 13px; box-shadow: 0 8px 20px rgba(42,80,119,.08); font-size: 12px; font-weight: 900; transform: rotate(-5deg); }
.mini-stickers span:nth-child(2) { background: var(--lilac); transform: rotate(3deg); }
.mini-stickers span:nth-child(3) { background: var(--mint); transform: rotate(-1deg); }
.panel { background: rgba(248,251,255,.92); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); }
.ticket-card { position: relative; border-radius: var(--radius); overflow: hidden; transform: rotate(1.2deg); }
.ticket-topline { display: flex; justify-content: space-between; padding: 18px 24px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.ticket-body { padding: 38px 36px 42px; }
.ticket-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--ink); background: var(--sun); border-radius: 20px 20px 20px 6px; font-size: 26px; transform: rotate(-8deg); }
.ticket-body h2, .stage h2 { margin: 24px 0 8px; font-size: clamp(28px,4vw,42px); line-height: 1.18; letter-spacing: -.04em; }
.ticket-body > p { margin: 0 0 28px; color: var(--ink-soft); }
label, legend { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 850; }
.input-row { display: flex; gap: 10px; }
.ticket-body .input-row input { min-width: 0; }
.ticket-body .input-row .button { flex-shrink: 0; white-space: nowrap; }
input[type="text"], input[type="email"], input[type="password"], #code { min-width: 0; width: 100%; height: 52px; padding: 0 16px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; }
.button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.primary { color: white; background: var(--cherry); box-shadow: 0 9px 18px rgba(240,91,103,.22); }
.button.primary:hover:not(:disabled) { background: var(--cherry-dark); box-shadow: 0 12px 24px rgba(240,91,103,.28); }
.button.secondary { background: white; border: 1px solid var(--line); box-shadow: 0 8px 18px rgba(38,74,110,.07); }
.button.wide { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-inline: 22px; }
.button.wide span { font-size: 11px; opacity: .75; }
.field-hint { margin: 10px 3px 0; color: var(--ink-soft); font-size: 11px; }
.form-error { min-height: 18px; margin: 7px 3px 0; color: #bd3040; font-size: 12px; font-weight: 700; }
.ticket-edge { height: 11px; background: radial-gradient(circle at 6px 11px, transparent 6px, var(--lilac) 6.5px) 0 0 / 18px 12px repeat-x; }

.studio { max-width: 1040px; margin: 0 auto; padding: 28px 24px 90px; }
.progress { display: flex; align-items: center; max-width: 560px; margin: 10px auto 34px; }
.progress-item { display: flex; align-items: center; gap: 8px; color: #8ba0b8; font-size: 12px; }
.progress-item span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font: 700 11px ui-monospace, monospace; }
.progress-item.is-current, .progress-item.is-done { color: var(--ink); }
.progress-item.is-current span { color: white; background: var(--cherry); border-color: var(--cherry); }
.progress-item.is-done span { color: #3f6b62; background: var(--mint); border-color: var(--mint); }
.progress i { flex: 1; height: 1px; margin: 0 12px; background: var(--line); }
.stage { padding: clamp(28px,5vw,56px); border-radius: 34px; }
.studio > .stage + .stage { margin-top: 24px; }
.preview-grid:empty { display: none; }
.stage-heading { max-width: 650px; }
.stage-heading h2 { margin-top: 0; }
.studio-intro { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.credit-summary { display: inline-block; margin: 16px 0 0; padding: 9px 13px; color: var(--ink); background: #fff0d3; border-radius: 999px; font-size: 12px; font-weight: 700; }
.credit-summary b { color: var(--cherry); font-size: 16px; }
.creation-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.creation-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 116px; padding: 19px 22px; color: var(--ink); cursor: pointer; text-align: left; background: white; border: 2px solid var(--line); border-radius: 20px 20px 20px 6px; transition: transform .18s, border .18s, box-shadow .18s; }
.creation-mode:hover { transform: translateY(-2px); }
.creation-mode.is-active { border-color: var(--cherry); box-shadow: 0 10px 24px rgba(240,91,103,.12); }
.creation-mode span { color: var(--cherry); font: 800 10px/1.2 ui-monospace,monospace; letter-spacing: .08em; }
.creation-mode b { font-size: 18px; }
.creation-mode small { color: var(--ink-soft); font-size: 12px; }
.creation-mode:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.upload-layout { display: grid; grid-template-columns: minmax(320px,1.1fr) minmax(280px,.9fr); gap: 44px; margin-top: 30px; align-items: start; }
.controls { grid-column: 1; grid-row: 1 / span 2; }
.source-panel { grid-column: 2; grid-row: 1 / span 2; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 24px 24px 24px 7px; box-shadow: 0 14px 30px rgba(37,76,114,.06); }
.source-panel__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.source-panel__heading span { color: var(--cherry); font: 800 10px/1.3 ui-monospace,monospace; letter-spacing: .08em; }
.source-panel__heading h3 { margin: 3px 0 0; font-size: 20px; }
.source-panel__heading > b { padding: 7px 10px; color: #7a3d43; background: #ffe7e9; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.source-panel > p:not(.saved-photo-hint) { margin: 10px 0 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.dropzone { position: relative; min-height: 300px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; background: var(--sky-paper); border: 2px dashed #79b5df; border-radius: 21px; transition: border .2s, transform .2s; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--cherry); transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { margin: 16px 0 5px; font-size: 17px; }
.dropzone small { max-width: 240px; color: var(--ink-soft); text-align: center; font-size: 11px; line-height: 1.5; }
.upload-plus { display: grid; place-items: center; width: 64px; height: 64px; color: var(--cherry); background: white; border-radius: 22px 22px 22px 7px; box-shadow: 0 10px 24px rgba(51,94,135,.12); font-size: 34px; }
#source-preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dropzone.has-photo #source-preview { display: block; }
.dropzone.has-photo > span, .dropzone.has-photo > strong, .dropzone.has-photo > small { display: none; }
.replace-photo { display: none; position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; color: var(--ink); background: rgba(255,255,255,.9); border: 0; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; }
.dropzone.has-photo .replace-photo { display: block; }
.dropzone.is-ignored-photo::after { content: "本次仅用文字，不使用照片"; position: absolute; inset: auto 12px 12px; padding: 9px; color: var(--ink); text-align: center; background: rgba(255,255,255,.94); border-radius: 9px; font-size: 11px; font-weight: 800; pointer-events: none; }
.saved-photo-hint { margin: 12px 2px 0; color: #3f6b62; font-size: 12px; font-weight: 700; line-height: 1.6; }
.controls fieldset { margin: 0; padding: 0; border: 0; }
.style-picker-hint { margin: -2px 0 13px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.style-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.style-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 10px; margin: 0; padding: 10px; cursor: pointer; background: white; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; transition: border .18s, transform .18s, box-shadow .18s; }
.style-option:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(38,74,110,.08); }
.style-option.selected { border-color: var(--cherry); box-shadow: 0 0 0 2px rgba(240,91,103,.08); }
.style-option input { grid-column: 1; grid-row: 2; width: 17px; height: 17px; margin: 0; accent-color: var(--cherry); }
.style-option > span:last-child { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }
.style-option b { font-size: 13px; }
.style-option small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.style-sample { grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 1.16; overflow: hidden; background-image: url("/style-samples/four-style-preview-v1.webp"); background-size: 200% 200%; border-radius: 11px 11px 11px 4px; box-shadow: inset 0 0 0 1px rgba(23,52,91,.08); }
.style-sample--hand-drawn { background-position: 0 0; }
.style-sample--watercolor { background-position: 100% 0; }
.style-sample--holographic { background-position: 0 100%; }
.style-sample--clay { background-position: 100% 100%; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; font-weight: 500; }
.consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--cherry); }
.custom-controls textarea { display: block; width: 100%; min-height: 200px; margin-top: 12px; padding: 17px 18px; resize: vertical; color: var(--ink); background: #fff; border: 1px solid #adc9df; border-radius: 17px 17px 17px 6px; font-size: 14px; font-weight: 500; line-height: 1.7; }
.custom-controls textarea:focus { outline: 3px solid rgba(240,91,103,.18); border-color: var(--cherry); }
.prompt-helper { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.source-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 15px; }
.source-picker label { display: flex; gap: 10px; padding: 14px; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.source-picker label:has(input:checked) { border-color: var(--cherry); background: #fff7f8; }
.source-picker input { accent-color: var(--cherry); }
.source-picker span { display: flex; flex-direction: column; gap: 3px; }
.source-picker b { font-size: 12px; }
.source-picker small { color: var(--ink-soft); font-size: 10px; }
.generation-policy { margin: 9px 0 22px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.mock-prompt-art { display: grid; place-items: center; width: 100%; height: 100%; padding: 20%; color: var(--ink); text-align: center; font-size: 17px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.preview-reuse { position: absolute; top: 15px; right: 15px; z-index: 4; padding: 6px 9px; color: var(--ink); cursor: pointer; background: white; border: 1px solid var(--line); border-radius: 999px; font: 850 10px/1 ui-rounded,sans-serif; }
.preview-reuse:hover { border-color: var(--cherry); }
.preview-description { position: absolute; top: 43px; left: 15px; right: 15px; z-index: 2; display: -webkit-box; overflow: hidden; margin: 0; padding: 7px 9px; color: var(--ink); background: rgba(255,255,255,.91); border-radius: 8px; font-size: 10px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.preview-header { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.attempt-counter { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.attempt-counter b { font-size: 48px; line-height: 1; color: var(--cherry); }
.attempt-counter span { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.attempt-counter.is-locked b { font-size: 18px; line-height: 1.15; white-space: nowrap; }
.preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 30px; }
.preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; margin-top: 26px; padding: 32px; color: var(--ink-soft); text-align: center; background: var(--sky-paper); border: 2px dashed #a9c8df; border-radius: 22px; }
.preview-empty span { color: var(--cherry); font-size: 44px; line-height: 1; }
.preview-empty b { margin-top: 12px; color: var(--ink); font-size: 18px; }
.preview-empty p { max-width: 360px; margin: 8px 0 0; font-size: 12px; line-height: 1.7; }
.preview-card { position: relative; aspect-ratio: .82; padding: 9px; background: white; border: 2px solid white; border-radius: 22px 22px 22px 8px; box-shadow: 0 12px 24px rgba(37,76,114,.12); transform: rotate(var(--tilt)); transition: transform .25s, border .2s, box-shadow .2s; animation: place-sticker .45s both; }
.preview-card:hover { transform: rotate(0) translateY(-5px); }
.preview-card.is-selected { border-color: var(--cherry); transform: rotate(0) translateY(-6px); box-shadow: 0 16px 32px rgba(240,91,103,.2); }
.preview-open-button { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: zoom-in; background: transparent; border: 0; border-radius: 15px 15px 15px 5px; }
.preview-open-button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.preview-art { position: relative; height: 100%; overflow: hidden; border-radius: 15px 15px 15px 5px; background: var(--art-bg); }
.generated-sheet { width: 100%; height: 100%; display: block; object-fit: contain; -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.preview-art::after { content: "预览"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.65); font: 950 24px ui-rounded,sans-serif; letter-spacing: .3em; transform: rotate(-28deg); text-shadow: 0 1px 5px rgba(23,52,91,.18); pointer-events: none; }
.sticker-faces { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 17px; }
.sticker-face { position: relative; min-width: 0; overflow: hidden; background: rgba(255,255,255,.62); border: 4px solid white; border-radius: 50% 48% 46% 50%; box-shadow: 0 4px 10px rgba(44,75,110,.1); transform: rotate(var(--face-tilt)); }
.sticker-face img { width: 100%; height: 100%; object-fit: cover; filter: saturate(var(--sat)) contrast(var(--contrast)); transform: scale(1.12); }
.sticker-face i { position: absolute; right: 3px; bottom: 2px; display: grid; place-items: center; width: 26px; height: 26px; background: var(--sun); border: 2px solid white; border-radius: 50%; font-style: normal; font-size: 11px; }
.version-tag { position: absolute; left: 16px; bottom: 15px; z-index: 2; padding: 7px 9px; color: var(--ink); background: white; border-radius: 9px; font-size: 10px; font-weight: 900; box-shadow: 0 4px 12px rgba(30,62,92,.12); }
.preview-select { position: absolute; right: 15px; bottom: 15px; z-index: 3; min-height: 28px; padding: 6px 8px; color: white; cursor: pointer; background: var(--cherry); border: 0; border-radius: 9px; font: 800 10px/1 ui-rounded, sans-serif; box-shadow: 0 4px 12px rgba(201,62,77,.25); }
.preview-select:hover { background: var(--cherry-dark); }
.preview-select:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.preview-share { position: absolute; top: 15px; left: 15px; z-index: 4; padding: 6px 9px; color: white; cursor: pointer; background: rgba(23,52,91,.82); border: 1px solid rgba(255,255,255,.76); border-radius: 999px; font: 850 10px/1 ui-rounded, sans-serif; box-shadow: 0 4px 12px rgba(23,52,91,.22); }
.preview-share:hover { background: var(--ink); }
.preview-share:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.selected-tick { display: none; position: absolute; top: 16px; right: 16px; z-index: 3; place-items: center; width: 29px; height: 29px; color: white; background: var(--cherry); border: 3px solid white; border-radius: 50%; font-size: 12px; }
.preview-card.is-selected .selected-tick { display: grid; }
.preview-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; }
.remake-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 28px; padding: 18px 20px; background: rgba(205,238,226,.42); border: 1px solid rgba(70,146,121,.22); border-radius: 20px 20px 20px 7px; }
.remake-panel__eyebrow { margin: 0 0 5px; color: #3f6b62; font: 800 10px/1.3 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; }
.remake-panel h3 { margin: 0; font-size: 17px; }
.remake-panel p:not(.remake-panel__eyebrow) { max-width: 530px; margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.remake-panel__actions { display: flex; flex: 0 0 auto; gap: 9px; }
.remake-panel__actions .button { min-height: 42px; padding-inline: 14px; font-size: 12px; }
.selection-note { margin: 13px 0 0; color: var(--ink-soft); text-align: right; font-size: 10px; }
.finish-stage { position: relative; overflow: hidden; text-align: center; }
.finish-stage h2 { margin: 0 auto 12px; }
.finish-stage > p:not(.eyebrow) { color: var(--ink-soft); }
.final-preview { width: min(340px,82vw); margin: 30px auto 24px; }
.final-preview .preview-card { cursor: default; transform: rotate(-2deg); }
.final-preview .preview-art::after { content: "AI生成"; inset: auto 8px 8px auto; display: block; padding: 4px 6px; color: var(--ink-soft); background: rgba(255,255,255,.88); border-radius: 6px; font-size: 8px; letter-spacing: .05em; transform: none; text-shadow: none; }
.takeaway-actions { width: min(100%, 520px); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; text-align: left; }
.takeaway-actions .button { min-height: 67px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 12px 16px; }
.takeaway-actions .button > span { margin-top: 3px; font-size: 10px; font-weight: 650; line-height: 1.35; opacity: .75; }
.takeaway-actions__save { position: relative; }
.takeaway-actions__save.is-loading { padding-right: 48px; }
.takeaway-actions__save.is-loading::after { content: ""; position: absolute; top: 50%; right: 17px; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
.takeaway-actions__share { color: var(--ink); }
.takeaway-hint { margin: 11px auto 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.privacy-receipt { max-width: 430px; margin: 30px auto 0; display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-align: left; background: rgba(205,238,226,.48); border: 1px solid rgba(70,146,121,.16); border-radius: 16px; }
.privacy-receipt > span { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; color: white; background: #4ca583; border-radius: 50%; }
.privacy-receipt p { margin: 0; color: #4c7169; font-size: 10px; line-height: 1.55; }
.text-button { margin-top: 20px; padding: 8px; color: var(--ink-soft); background: transparent; border: 0; cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.danger-text-button { color: #a83543; }
.danger-button { background: #bd3040 !important; }
.confetti i { position: absolute; width: 9px; height: 18px; background: var(--cherry); border-radius: 4px; transform: rotate(25deg); }
.confetti i:nth-child(1) { left: 10%; top: 14%; }
.confetti i:nth-child(2) { left: 18%; top: 32%; background: var(--sun); transform: rotate(-18deg); }
.confetti i:nth-child(3) { right: 13%; top: 18%; background: var(--lilac); }
.confetti i:nth-child(4) { right: 22%; top: 38%; background: var(--mint); transform: rotate(65deg); }
.confetti i:nth-child(5) { left: 30%; top: 10%; background: var(--ink); transform: rotate(80deg); }

.generator-overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: var(--ink); background: rgba(234,245,255,.94); backdrop-filter: blur(14px); }
.generator-overlay strong { margin-top: 28px; font-size: 22px; }
.generator-overlay p { margin: 9px 0 0; color: var(--ink-soft); font-size: 12px; }
.generating-sticker { position: relative; width: 126px; height: 126px; padding: 8px; background: white; border-radius: 38% 50% 45% 42%; box-shadow: var(--shadow); animation: float 1.4s ease-in-out infinite; }
.generating-sticker span { display: block; width: 100%; height: 100%; background-position: center; background-size: cover; border-radius: 35% 48% 43% 39%; }
.generating-sticker i { position: absolute; inset: -13px; border: 2px dashed var(--cherry); border-radius: 43% 48% 45%; animation: spin 5s linear infinite; }
.loading-line { width: 220px; height: 4px; margin-top: 26px; overflow: hidden; background: #d7e5f1; border-radius: 4px; }
.loading-line i { display: block; width: 40%; height: 100%; background: var(--cherry); border-radius: inherit; animation: load 1.2s ease-in-out infinite; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 12px 16px; color: white; background: var(--ink); border-radius: 12px; font-size: 12px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: .25s; box-shadow: 0 10px 30px rgba(23,52,91,.25); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.switch-code-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px; color: var(--ink); background: var(--cloud); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: 0 28px 70px rgba(23,52,91,.26); }
.switch-code-dialog::backdrop { background: rgba(23,52,91,.42); }
.switch-code-dialog h2 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: -.04em; }
.switch-code-dialog p:not(.eyebrow) { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.switch-code-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }

.image-lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 18px; padding: 18px clamp(18px,4vw,64px) 28px; background: rgba(8,13,22,.985); }
.image-lightbox__bar { display: flex; align-items: center; gap: 12px; min-width: 0; color: white; }
.image-lightbox__bar p { margin: 0; overflow: hidden; font: 850 clamp(15px,2vw,20px)/1.2 ui-rounded, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.image-lightbox__bar span { margin-left: auto; color: rgba(255,255,255,.62); font-size: 12px; white-space: nowrap; }
.image-lightbox__close { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: white; cursor: pointer; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 30px; line-height: 1; }
.image-lightbox__close:hover { background: rgba(255,255,255,.2); }
.image-lightbox__art { min-height: 0; display: grid; place-items: center; overflow: auto; }
.image-lightbox__art img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.45); }
.image-lightbox__actions { display: flex; justify-content: center; gap: 12px; }
.image-lightbox__actions .button { min-width: 136px; }

@keyframes place-sticker { from { opacity: 0; transform: translateY(18px) rotate(var(--tilt)); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(360%); } }

@media (max-width: 820px) {
  .site-header { padding: 18px 20px; }
  .brand-wordmark { width: 136px; }
  .hero { min-height: auto; padding: 24px 22px 70px; grid-template-columns: 1fr; gap: 40px; }
  .ticket-card { order: -1; transform: none; }
  .hero-copy { text-align: center; }
  .hero-note { margin-inline: auto; }
  .mini-stickers { justify-content: center; }
  .ticket-card { width: min(100%,480px); margin: 0 auto; }
  .upload-layout { grid-template-columns: 1fr; }
  .controls, .source-panel { grid-column: 1; grid-row: auto; }
  .source-panel { order: -1; }
  .dropzone { min-height: 330px; }
  .preview-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 14px; }
  .brand-wordmark { width: 124px; }
  .privacy-chip { gap: 5px; padding: 8px 9px; font-size: 11px; }
}

@media (max-width: 560px) {
  .site-header { gap: 8px; }
  .header-actions { flex: 1; min-width: 0; justify-content: flex-end; flex-wrap: wrap; gap: 3px 8px; }
  .privacy-chip { font-size: 0; width: 37px; height: 37px; justify-content: center; }
  .privacy-chip span { font-size: 10px; }
  .hero { padding-top: 12px; }
  .ticket-topline { padding: 13px 18px; }
  .hero h1 { font-size: clamp(50px,16vw,72px); }
  .ticket-body { padding: 32px 22px 35px; }
  .input-row { flex-direction: column; }
  .studio { padding: 18px 12px 60px; }
  .progress-item b { display: none; }
  .stage { padding: 28px 18px; border-radius: 25px; }
  .upload-layout { gap: 28px; margin-top: 26px; }
  .source-panel { padding: 15px; }
  .creation-modes { gap: 9px; }
  .creation-mode { min-height: 112px; padding: 14px; }
  .creation-mode b { font-size: 15px; }
  .creation-mode small { font-size: 10px; line-height: 1.4; }
  .source-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-picker label { padding: 10px; }
  .dropzone { min-height: 210px; }
  .preview-card:has(.mock-prompt-art) { grid-column: span 2; aspect-ratio: 1.25; }
  .dropzone { min-height: 300px; }
  .style-options { gap: 9px; }
  .style-option { padding: 8px; gap: 8px; }
  .style-option b { font-size: 12px; }
  .style-option small { font-size: 9px; }
  .preview-header { align-items: flex-end; }
  .preview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .preview-card { border-radius: 17px 17px 17px 6px; }
  .sticker-faces { padding: 9px; gap: 5px; }
  .sticker-face { border-width: 2px; }
  .sticker-face i { width: 20px; height: 20px; font-size: 8px; }
  .preview-actions { flex-direction: column-reverse; }
  .preview-actions .button { width: 100%; }
  .remake-panel { display: block; padding: 17px 16px; }
  .remake-panel__actions { margin-top: 14px; }
  .remake-panel__actions .button { flex: 1; }
  .selection-note { text-align: center; }
  .takeaway-actions { grid-template-columns: 1fr; }
  .image-lightbox { padding: 14px 14px 20px; gap: 12px; }
  .image-lightbox__bar span { display: none; }
  .image-lightbox__actions { width: 100%; }
  .image-lightbox__actions .button { min-width: 0; flex: 1; }
}

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

.site-footer { padding: 20px 24px 28px; text-align: center; font-size: 12px; }
.site-footer a { color: #596477; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

/* Photo workbench: shared desktop/mobile website, 2026-10-07. */
:root { --radius: 22px; --shadow: 0 8px 28px rgba(37,76,114,.035); }
body { background: #eaf5ff; }
.sr-only, .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mobile-only, .mobile-template-heading, .mobile-templates, .canvas-tabs { display: none; }
.site-header { max-width: 1280px; padding: 18px 32px; min-height: 78px; gap: 24px; }
.brand { gap: 14px; flex-shrink: 0; }.brand-wordmark { width: 170px; }.product-name { padding-left: 14px; border-left: 1px solid #b4cadf; font-size: 19px; font-weight: 900; }
.desktop-nav { display: flex; align-items: center; gap: 32px; }.desktop-nav a { padding: 12px 0; color: var(--ink); font-size: 14px; text-decoration: none; font-weight: 750; }.desktop-nav .is-active { border-bottom: 3px solid var(--sun); }.nav-soon { margin-left: 5px; color: var(--ink-soft); font-size: 10px; }
.header-actions { gap: 10px; }.header-actions .credit-summary { margin: 0; white-space: nowrap; padding: 8px 14px; }.header-switch { min-height: 44px; font-size: 12px; text-decoration: none; }
.hero { max-width: 1150px; padding: 38px 32px 70px; gap: 70px; }.hero h1 { font-size: clamp(40px,5vw,68px); line-height: 1.12; letter-spacing: -.04em; }.hero h1 em::after { display: none; }.hero-note { margin-top: 22px; font-size: 15px; }.hero-samples { display: block; width: 260px; height: 260px; margin-top: 24px; border-radius: 20px; }.ticket-card { transform: none; }.ticket-body { padding: 32px; }.entry-privacy { margin: 26px 0 0 !important; font-size: 12px; }
.studio { display: grid; grid-template-columns: 294px minmax(0,1fr); align-items: start; gap: 18px; max-width: 1280px; padding: 12px 32px 36px; }
.panel { background: #f8fbff; border: 1px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.template-library { padding: 22px 18px; position: sticky; top: 14px; }.library-title { display: flex; justify-content: space-between; align-items: center; }.library-title h2 { margin: 0 0 18px; font-size: 21px; }
#template-search { width: 100%; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #d5e4f1; border-radius: 13px; color: var(--ink); background: #eef6fe; font-size: 14px; }
.template-categories { display: flex; gap: 5px; margin: 16px 0; overflow-x: auto; }.category { border: 0; background: #eaf3fd; border-radius: 24px; padding: 0 12px; min-height: 40px; font-weight: 700; font-size: 12px; white-space: nowrap; cursor: pointer; }.category.is-active { color: white; background: var(--cherry); }
#template-controls { padding: 0; margin: 0; border: 0; }#template-controls legend { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }.style-picker-hint { color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }#template-controls > .style-picker-hint { font-size: 11px; }
.style-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }.style-option { position: relative; display: flex; flex-direction: column; margin: 0; padding: 4px; border: 2px solid transparent; border-radius: 14px; background: white; cursor: pointer; transition: border .15s; }.style-option.selected { border-color: var(--cherry); box-shadow: none; }.style-option[hidden] { display: none; }.style-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }.style-option > span:last-child { display: block; padding: 7px 0 2px; text-align: center; }.style-option b { font-size: 12px; }.style-option small { display: none; }.style-sample { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background-size: 200% 200%; box-shadow: none; }.library-note { margin: 22px 0 4px; text-align: center; color: var(--ink-soft); font-size: 12px; }.library-empty { padding: 30px 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.editor-workspace { min-width: 0; }.source-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }.source-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }.source-identity > div { min-width: 0; }.source-identity h2 { margin: 0; font-size: 16px; }.source-identity p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 320px; }#source-thumb { width: 58px; height: 58px; border-radius: 11px; object-fit: cover; }.source-strip .button { min-height: 44px; font-size: 13px; padding: 0 18px; flex-shrink: 0; }
.canvas-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }.source-canvas, .result-canvas { position: relative; min-width: 0; aspect-ratio: 1; padding: 10px; overflow: hidden; border-radius: 18px; }.canvas-label { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 30px; background: #eef6ff; font-size: 11px; font-weight: 750; z-index: 2; }.result-canvas > .canvas-label { background: #fff0db; }.dropzone { min-height: 0; height: 100%; border: 1px dashed #a8cce9; border-radius: 12px; background: #eaf4ff; }.dropzone:hover { transform: none; }.dropzone.has-photo { border-color: transparent; }.empty-brand { width: 60px; height: 60px; object-fit: contain; margin-bottom: 10px; }.dropzone.has-photo .empty-brand { display: none; }#source-preview { object-fit: contain; background: #f0f5fa; }#result-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; border-radius: 12px; background: #edf5fc; }#result-empty h3 { font-size: 17px; margin: 8px 0; }#result-empty p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }.result-open { position: relative; width: 100%; height: 100%; display: block; background: #f4f4f0; border: 0; border-radius: 12px; padding: 0; overflow: hidden; cursor: zoom-in; }#result-image { display: block; width: 100%; height: 100%; object-fit: contain; }#result-image.mock-sample { position: absolute; width: 200%; height: 200%; max-width: none; object-fit: fill; }#result-image.mock-sample--hand-drawn { top: 0; left: 0; }#result-image.mock-sample--watercolor { top: 0; left: -100%; }#result-image.mock-sample--holographic { top: -100%; left: 0; }#result-image.mock-sample--clay { top: -100%; left: -100%; }.mock-notice { position: absolute; bottom: 14px; left: 14px; right: 14px; margin: 0; padding: 7px 8px; background: rgba(255,255,255,.92); border-radius: 8px; color: var(--ink-soft); text-align: center; font-size: 11px; pointer-events: none; }.saved-photo-hint { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 10px; background: white; }
.creation-toolbar { display: grid; grid-template-columns: minmax(0,1fr) 258px; padding: 16px 18px 12px; gap: 10px 18px; }.creation-settings { display: flex; align-items: center; gap: 20px; min-width: 0; }.selected-template { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; cursor: pointer; text-align: left; padding: 0; min-width: 0; }.selected-template-thumb { width: 52px; height: 52px; display: block; border-radius: 10px; background-image: url('/style-samples/four-style-preview-v1.webp'); background-size: 200% 200%; flex-shrink: 0; }.selected-template small { display: block; color: var(--ink-soft); font-size: 11px; margin-bottom: 4px; }.selected-template b { font-size: 15px; }.text-button { min-height: 44px; padding: 7px 10px; color: var(--ink-soft); background: transparent; font-size: 12px; font-weight: 750; }.text-button:hover { color: var(--cherry-dark); }.creation-settings .text-button { border-left: 1px solid #dce7f2; padding-left: 20px; white-space: nowrap; }.production-action { grid-column: 2; grid-row: 1; text-align: center; }.production-action > .button { width: 100%; min-height: 48px; font-size: 16px; }.generation-policy { margin: 7px 0 0; font-size: 10px; color: var(--ink-soft); line-height: 1.6; }.consent { display: flex; align-items: flex-start; grid-column: 1 / -1; margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; font-weight: 500; gap: 8px; }.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--cherry); }.form-error:empty { display: none; }.creation-toolbar > .form-error { grid-column: 1 / -1; margin: 0; }.custom-controls { grid-column: 1 / -1; grid-row: 2; margin: 8px 0; border: 0; padding: 16px; background: #eef5fd; border-radius: 14px; }.custom-controls legend { float: left; width: 100%; margin-bottom: 6px; font-size: 15px; }.custom-controls .style-picker-hint { clear: both; }.custom-controls textarea { width: 100%; min-height: 110px; padding: 12px; color: var(--ink); border: 1px solid #c9dced; border-radius: 11px; background: white; font-family: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }.prompt-helper { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--ink-soft); font-size: 11px; }
.workspace-bottom { display: grid; grid-template-columns: .8fr 1.2fr; align-items: stretch; gap: 14px; margin-top: 14px; }.works-panel, .merch-panel { min-width: 0; padding: 18px; }.preview-header { gap: 8px; }.preview-header h2, .merch-heading h2 { margin: 0; font-size: 17px; line-height: 1.4; }.preview-header p, .merch-panel > p { margin: 6px 0 12px; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }.preview-empty { border: 1px dashed #c9dced; min-height: 132px; margin: 0; padding: 20px; border-radius: 13px; }.preview-grid { display: flex; gap: 10px; overflow-x: auto; padding: 3px 0 8px; margin: 0; }.preview-card { width: 114px; flex: 0 0 114px; aspect-ratio: auto; padding: 4px; border: 2px solid transparent; border-radius: 13px; box-shadow: none; transform: none; animation: none; background: white; }.preview-card:hover, .preview-card.is-selected { transform: none; box-shadow: none; }.preview-card.is-selected { border-color: var(--cherry); }.preview-open-button { aspect-ratio: 1; height: auto; border-radius: 9px; cursor: pointer; }.preview-art { height: 100%; aspect-ratio: 1; border-radius: 9px; background: #eef4fb; }.preview-art::after { display: none; }.preview-art .style-sample { height: 100%; }.generated-sheet { display: block; width: 100%; height: 100%; object-fit: contain; }.version-tag { position: static; display: block; background: transparent; padding: 6px 0 0; color: var(--ink); font-size: 10px; font-weight: 700; text-align: center; border-radius: 0; }.selected-tick { display: none !important; }.preview-select, .preview-share { position: static; min-height: 32px; padding: 5px; font-size: 10px; box-shadow: none; margin-top: 5px; border-radius: 7px; }.preview-select { width: 63%; }.preview-share { width: 34%; border: 0; background: #eaf3fe; color: var(--ink); }.preview-reuse { position: static; font-size: 10px; margin-top: 5px; min-height: 30px; width: 100%; }.preview-description { display: none; }.preview-actions { margin: 8px 0 0; }.preview-actions .button { min-height: 40px; padding: 0 12px; font-size: 12px; }.selection-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }.merch-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.merch-heading > span { white-space: nowrap; background: #ffe8eb; color: #ba4552; padding: 5px 9px; font-size: 10px; border-radius: 20px; }.merch-panel > img { display: block; width: 100%; aspect-ratio: 2.8; object-fit: cover; border-radius: 14px; }.merch-panel > small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 7px; }
.finish-stage { margin-top: 18px; padding: 28px; text-align: center; }.finish-stage h2 { font-size: 25px; margin: 0 0 12px; }.finish-stage > p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }.final-preview { width: min(320px,100%); margin: 20px auto; }.final-preview .preview-card { width: 100%; aspect-ratio: 1; transform: none; }.final-preview .preview-art { height: calc(100% - 26px); }.takeaway-actions { display: flex; justify-content: center; gap: 12px; }.takeaway-actions .button { display: flex; flex-direction: column; justify-content: center; gap: 4px; }.takeaway-actions span { font-size: 10px; font-weight: 500; }.privacy-receipt { display: block; }.site-footer { padding: 16px 24px 28px; }
@media (max-width: 1120px) and (min-width: 761px) { .studio { grid-template-columns: 242px minmax(0,1fr); padding: 12px 20px 30px; }.site-header { padding: 16px 20px; }.product-name, .nav-soon { display: none; }.desktop-nav { gap: 20px; }.creation-toolbar { grid-template-columns: 1fr 190px; padding: 12px; }.creation-settings { gap: 8px; }.creation-settings .text-button { padding-left: 8px; font-size: 11px; }.selected-template-thumb { width: 40px; height: 40px; }.workspace-bottom { grid-template-columns: 1fr; }.style-option b { font-size: 11px; } }
@media (max-width: 760px) {
  html { scroll-padding-bottom: 160px; }.site-header { padding: 14px 16px; min-height: 64px; gap: 8px; }.brand-wordmark { width: 138px; }.product-name, .desktop-nav { display: none; }.header-actions { gap: 2px; }.header-actions .credit-summary { font-size: 10px; padding: 6px 10px; }.header-actions .credit-summary b { font-size: 14px; }.header-switch { font-size: 10px; padding: 6px; white-space: nowrap; }.hero { display: flex; flex-direction: column; gap: 24px; padding: 26px 18px 50px; min-height: 0; }.hero h1 { font-size: 38px; }.hero-note { font-size: 14px; margin: 16px 0; }.hero-samples { width: 160px; height: 160px; margin: 0; }.hero-copy { width: 100%; }.ticket-card { width: 100%; }.ticket-body { padding: 24px; }.ticket-body h2 { margin-top: 0; }.ticket-body .input-row { gap: 8px; }.ticket-body .button { padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .studio { display: block; padding: 8px 12px 148px; }.template-library { display: none; }.template-library.is-open { display: block; position: fixed; z-index: 45; inset: 70px 12px 18px; overflow-y: auto; padding: 20px; background: #f8fbff; border: 1px solid #b8d0e4; box-shadow: 0 12px 60px rgba(23,52,91,.2); }.template-library .style-option b { font-size: 14px; }.library-title h2 { margin-bottom: 0; }.library-title { margin-bottom: 16px; }.mobile-only { display: block; }
  .source-strip { padding: 10px 12px; border-radius: 16px; }.source-identity { gap: 10px; }.source-identity h2 { font-size: 14px; }.source-identity p { font-size: 11px; max-width: 155px; }#source-thumb { width: 44px; height: 44px; }.source-strip .button { padding: 0 12px; font-size: 12px; }
  .canvas-tabs { display: flex; align-items: center; gap: 4px; margin: 12px 0 0; background: #f8fbff; border-radius: 15px 15px 0 0; padding: 8px 8px 0; }.canvas-tabs > button { min-height: 40px; padding: 0 15px; font-size: 13px; font-weight: 750; border: 0; background: transparent; border-radius: 24px; cursor: pointer; }.canvas-tabs > button.is-active { background: #deedff; color: #165aa6; }.canvas-tabs #canvas-download { margin-left: auto; font-size: 11px; padding: 0 10px; }.canvas-pair { display: block; margin: 0; }.source-canvas, .result-canvas { border-radius: 0 0 16px 16px; aspect-ratio: 1; padding: 8px; }.source-canvas { display: none; }.canvas-pair[data-view="original"] .source-canvas { display: block; }.canvas-pair[data-view="original"] .result-canvas { display: none; }.canvas-label { display: none; }.dropzone strong { font-size: 17px; }.mock-notice { font-size: 10px; }
  .mobile-template-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 6px; }.mobile-template-heading h3 { margin: 0; font-size: 17px; }.mobile-template-heading .text-button { color: #165aa6; }.mobile-templates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 8px; scroll-snap-type: x proximity; }.mobile-template { flex: 0 0 96px; width: 96px; padding: 3px; border: 2px solid transparent; background: #f8fbff; border-radius: 12px; scroll-snap-align: start; cursor: pointer; }.mobile-template.is-active { border-color: var(--cherry); }.mobile-template > span:last-child { display: block; padding-top: 5px; font-size: 11px; font-weight: 750; min-height: 25px; }.mobile-template .style-sample { border-radius: 8px; }
  .creation-toolbar { display: block; padding: 0; border-radius: 16px; margin-top: 4px; border: 0; }.creation-settings { padding: 2px 12px; gap: 12px; }.selected-template { min-height: 44px; }.selected-template-thumb { display: none; }.selected-template small { font-size: 10px; margin-bottom: 2px; }.selected-template b { font-size: 12px; }.creation-settings .text-button { margin-left: auto; font-size: 13px; min-height: 48px; }.custom-controls { margin: 0 8px 10px; padding: 12px; }.custom-controls .style-picker-hint { font-size: 12px; }.custom-controls textarea { font-size: 16px; }.prompt-helper { font-size: 10px; }
  .production-action { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; padding: 12px 18px calc(10px + env(safe-area-inset-bottom)); background: #f8fbff; border-top: 1px solid #d5e4f2; box-shadow: 0 -4px 16px rgba(23,52,91,.04); }.production-action > .button { height: 48px; border-radius: 14px; font-size: 17px; }.generation-policy { font-size: 10px; margin-top: 6px; }.consent { padding: 10px 12px; font-size: 11px; margin: 0; line-height: 1.65; }.creation-toolbar > .form-error { padding: 0 12px 10px; font-size: 12px; }
  .workspace-bottom { display: block; margin-top: 12px; }.works-panel, .merch-panel { border-radius: 16px; padding: 16px; }.merch-panel { margin-top: 12px; }.preview-header h2, .merch-heading h2 { font-size: 16px; }.preview-grid { display: flex; }.preview-actions { flex-direction: row; }.preview-actions .button { width: auto; }.preview-empty { min-height: 90px; }.finish-stage { border-radius: 16px; padding: 20px 16px; }.takeaway-actions { flex-direction: column; }.finish-stage .text-button { font-size: 12px; }.image-lightbox__actions .button { font-size: 12px; }.site-footer { padding-bottom: 130px; }.toast { bottom: 116px; }.switch-code-dialog { max-width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.template-supplement { grid-column: 1 / -1; background: #eef5fd; padding: 0 12px; border-radius: 12px; }
.template-supplement summary { cursor: pointer; font-size: 12px; font-weight: 750; min-height: 40px; display: flex; align-items: center; color: var(--ink-soft); }
.template-supplement label { font-size: 13px; }.template-supplement p { margin: 0 0 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }.template-supplement textarea { width: 100%; font: inherit; font-size: 15px; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); resize: vertical; }.template-supplement > span { display: block; text-align: right; color: var(--ink-soft); font-size: 11px; padding: 6px 0 10px; }
@media (max-width: 760px) { .template-supplement { margin: 0 8px 8px; }.template-supplement summary { min-height: 44px; font-size: 13px; }.template-supplement textarea { font-size: 16px; } }
.desktop-result-download { position: absolute; z-index: 3; right: 20px; top: 20px; min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 11px; }
@media (max-width: 760px) { .desktop-result-download { display: none; } }
 .account-tabs { display: flex; gap: 4px; margin: 18px 0 10px; padding: 5px; background: #e7eff8; border-radius: 14px; }
.account-mode-button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #526d8c; font: inherit; font-weight: 700; cursor: pointer; }
.account-mode-button[aria-pressed="true"] { background: var(--cherry); color: #fff; box-shadow: 0 2px 8px #19395718; font-weight: 900; }
.account-mode-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.account-mode-hint { color: var(--ink); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }

#account-password-section input { margin-bottom: 14px; }
#account-password-section .button { width: 100%; margin: 12px 0; }

/* Payment receipts and the personal collection share the studio's warm paper surface. */
.order-receipt { width: calc(100% - 64px); max-width: 1216px; margin: 12px auto 16px; padding: 20px; display: grid; gap: 16px; border-left: 4px solid #dc7859; }
.order-receipt h2 { margin: 4px 0 8px; font-size: 24px; }
.order-receipt input { font-family: monospace; font-size: 13px; min-width: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portfolio-card { margin: 0; padding: 12px; border: 1px solid #e7ded2; border-radius: 16px; background: #fffaf3; }
.portfolio-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.portfolio-card p { font-size: 12px; margin: 8px 0; }
.portfolio-card a { display: inline-block; margin-right: 12px; }
.portfolio-cta { margin: 12px 0; }
#account-dialog, #order-help-dialog { max-height: 85dvh; overflow-y: auto; }
#account-status { white-space: pre-line; }
@media (max-width: 560px) {
  .order-receipt { width: calc(100% - 32px); padding: 18px; }
  .order-receipt .input-row { flex-wrap: wrap; }
  .order-receipt input { width: 100%; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .header-switch { font-size: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

#account-dialog > .switch-code-dialog__actions { position: sticky; bottom: -24px; padding: 12px 0; background: #f8fbff; z-index: 1; }
.order-receipt input { width: 100%; padding: 12px; border: 1px solid #cadbed; border-radius: 12px; background: #f4f8fc; color: #183b60; }

.order-receipt .input-row input { flex: 1; width: 0; }
.order-receipt .button { flex-shrink: 0; white-space: nowrap; justify-self: start; }
@media (max-width: 600px) { .order-receipt .input-row input { flex: 1 1 100%; width: 100%; } }

.order-receipt .eyebrow { margin-bottom: 8px; }
.order-receipt h2 { font-size: 20px; }
.order-receipt p:not(.eyebrow):not(.field-hint) { margin: 8px 0; font-size: 14px; line-height: 1.5; }
@media (min-width: 900px) {
  #payment-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  #checkout-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (min-width: 761px) and (max-width: 1120px) { .order-receipt { width: calc(100% - 40px); } }
@media (max-width: 760px) { .order-receipt { width: calc(100% - 24px); } }

/* One work context; order records stay in the recovery dialog. */
.active-order-bar, .task-status { max-width: 1216px; width: calc(100% - 64px); margin: 8px auto; padding: 10px 16px; border-radius: 12px; background: #f8fbff; color: var(--ink); font-size: 13px; }
.active-order-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-status .text-button { margin-left: 8px; }
#order-help-dialog .order-receipt { width: 100%; margin: 14px 0; padding: 14px; grid-template-columns: 1fr; gap: 8px; }
#receipt-code-section summary { cursor: pointer; color: var(--ink); font-weight: 700; padding: 8px 0; }
#receipt-code-section input { margin-top: 8px; }
#leave-code { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: 13px monospace; }
.leave-ack { display: flex; align-items: start; gap: 10px; margin: 18px 0; font-size: 14px; }
.leave-ack input { width: auto; flex-shrink: 0; margin-top: 4px; }
@media (max-width: 760px) { .active-order-bar, .task-status { width: calc(100% - 24px); }.active-order-bar { flex-wrap: wrap; } }

.active-order-bar { padding: 6px 16px; }
.active-order-bar .text-button { min-height: 32px; padding: 6px; }

/* A personal collection and a single, explicit purchase offer. */
.collection-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; color: var(--ink); background: var(--cloud); border: 1px solid white; border-radius: 28px; box-shadow: var(--shadow); }
.collection-dialog::backdrop { background: rgba(23,52,91,.48); }
.collection-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.collection-header h2 { margin: 4px 0 0; font-size: 30px; letter-spacing: -.03em; }
.collection-header .eyebrow { margin: 0; }
.dialog-close { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 50%; font-size: 27px; cursor: pointer; }
.collection-intro, .collection-footer, .collection-detail > p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.collection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.collection-toolbar > span { margin-right: auto; font-weight: 750; }
.collection-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.collection-toolbar select { padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.collection-empty { text-align: center; padding: 36px 20px; max-width: 470px; margin: auto; }
.collection-empty img { width: 160px; margin-bottom: 18px; }
.collection-empty h3 { font-size: 22px; }
.collection-empty p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 22px; }
.empty-sticker { display: inline-grid; place-items: center; width: 84px; height: 84px; background: #fff1dc; border: 6px solid white; border-radius: 22px; font-size: 52px; color: var(--cherry); transform: rotate(-9deg); box-shadow: 0 8px 20px #c9dced88; }
.collection-dialog .portfolio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.portfolio-card { padding: 10px 10px 14px; border: 1px solid var(--line); background: white; box-shadow: 0 6px 18px #17345b08; }
.portfolio-image-button { width: 100%; padding: 0; border: 0; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; cursor: pointer; background-color: #f5f8fb; background-image: repeating-conic-gradient(#eef2f6 0% 25%,transparent 0% 50%); background-size: 18px 18px; overflow: hidden; }
.portfolio-image-button img { width: 100%; height: 100%; object-fit: contain; }
.portfolio-image-fallback { padding: 18px; line-height: 1.8; font-size: 13px; }
.portfolio-card h3 { font-size: 15px; margin: 12px 0 4px; }
.portfolio-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.65; }
.portfolio-card > .text-button { display: block; margin-top: 10px; font-size: 13px; }
.expiry-badge { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #eaf5ff; font-size: 11px; }
.expiry-soon { color: #9e4225; background: #fff0df; }
.collection-detail { width: min(650px,calc(100vw - 32px)); }
.collection-image { display: grid; place-items: center; min-height: 200px; margin-top: 22px; background: repeating-conic-gradient(#eef2f6 0% 25%,#fff 0% 50%) 0/20px 20px; border-radius: 18px; overflow: hidden; }
.collection-image img { width: 100%; max-height: 55dvh; object-fit: contain; }
.collection-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.collection-footer { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
#portfolio-save-status:empty, #portfolio-status:empty, #portfolio-detail-status:empty { display: none; }
#portfolio-save-dialog .switch-code-dialog__actions { flex-wrap: wrap; }
.entry-purchase h2 { margin: 0 0 16px; font-size: 26px; }
.entry-price { display: flex; align-items: baseline; gap: 6px; }
.entry-price strong { font-size: 42px; font-weight: 800; letter-spacing: -.04em; }
.entry-price span, .entry-purchase p { color: var(--ink-soft); }
.entry-purchase p { font-size: 14px; line-height: 1.8; }
.entry-purchase .button { width: 100%; min-height: 48px; }
.entry-purchase .field-hint { min-height: 22px; margin: 10px 0 0; font-size: 12px; }
.entry-redeem-heading { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.entry-redeem-heading h2 { margin: 0 0 8px; font-size: 18px; }
.entry-redeem-heading p { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
@media (max-width: 760px) {
  .hero .ticket-card { order: 0; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) 112px; column-gap: 16px; }
  .hero-copy .eyebrow { display: none; }
  .hero-copy h1 { font-size: clamp(28px, 6vw, 38px); align-self: center; }
  .hero-copy .hero-note { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
  .hero-copy .hero-samples { grid-column: 2; grid-row: 1; width: 112px; height: 112px; margin: 0; }
}
.plan-dialog { width: min(560px,calc(100vw - 32px)); }
.plan-price { margin-top: 24px; color: var(--ink-soft); }
.plan-price strong { font-size: 48px; color: var(--cherry-dark); letter-spacing: -.04em; }
.plan-lead { font-size: 18px; font-weight: 700; }
.plan-benefits { list-style: none; padding: 0; margin: 20px 0; }
.plan-benefits li { padding: 13px 0 13px 22px; position: relative; border-bottom: 1px solid var(--line); }
.plan-benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--cherry); }
.plan-benefits b { display: block; font-size: 15px; }
.plan-benefits span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.plan-account-note { padding: 12px; background: #fff2dc; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.plan-checkout { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
#plan-status { font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.header-actions { flex-wrap: wrap; }
@media (max-width: 1100px) { .desktop-nav { display: none; } }
@media (max-width: 600px) {
 .site-header { flex-wrap: wrap; padding: 12px 16px; }
 .header-actions { width: 100%; justify-content: flex-start; gap: 4px 8px; }
 .header-actions .header-switch { font-size: 12px; padding: 8px 0; margin-right: 8px; }
 .collection-dialog { padding: 20px; border-radius: 22px; }
 .collection-header h2 { font-size: 25px; }
 .collection-dialog .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .collection-toolbar { gap: 10px; }
 .collection-toolbar label { font-size: 12px; }
 .collection-toolbar .text-button { padding: 8px 0; }
 .collection-actions { flex-wrap: wrap; }
 .collection-actions .button { flex: 1 1 100%; }
 .collection-empty { padding: 24px 0; }
 .portfolio-card h3 { font-size: 13px; }
 .plan-price strong { font-size: 42px; }
 #account-dialog > .switch-code-dialog__actions { position: static; }
}

.plan-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.plan-dialog .collection-header, .plan-checkout { flex-shrink: 0; }
.plan-body { overflow-y: auto; min-height: 0; padding-right: 4px; }
.plan-checkout { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
@media (max-width: 600px) {
 .site-header { display: grid; grid-template-columns: 1fr; }
 .header-actions { grid-column: 1; }
 .collection-toolbar > span { font-size: 14px; }
 .collection-toolbar select { max-width: 108px; }
 .collection-toolbar .text-button { padding: 4px; font-size: 12px; }
}
@media (max-width: 440px) {
 .collection-dialog .portfolio-grid { grid-template-columns: 1fr; }
 .portfolio-image-button { aspect-ratio: 4 / 3; }
}
.portfolio-image-button { position: relative; }
.portfolio-image-button img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
#portfolio-status:not(:empty) { padding: 12px; border-radius: 12px; background: #e4f3ed; color: #286454; font-size: 13px; line-height: 1.7; }
#portfolio-status.is-error { background: #fff0df; color: #9e4225; }
#portfolio-save-description { overflow-wrap: anywhere; }
.collection-dialog .collection-header { position: sticky; top: -28px; background: var(--cloud); z-index: 2; padding-block: 8px; }
.plan-dialog .collection-header { position: static; }
@media (max-width:600px) { .collection-dialog .collection-header { top: -20px; } }
