.generation-transparent-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(prefers-reduced-motion:reduce){.generation-transparent-spinner.spin{animation:none}}.history-card .history-card-media{aspect-ratio:1 / 1;background:transparent}.history-card .history-card-media img{width:100%;height:100%;object-fit:contain}.history-card .history-card-media:has(.history-ai-placeholder){background:radial-gradient(ellipse at 68% 22%,var(--lavender),var(--ice) 72%)}.history-card .history-card-media .history-ai-placeholder{width:86%;height:86%}.history-card-title.has-ai-prompt{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 10px}.history-card-title.has-ai-prompt .eyebrow{margin-bottom:0}.history-prompt-row{grid-column:1 / -1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.history-prompt-row h2{min-width:0;line-height:1.3}.history-prompt-button{position:relative;flex:0 0 auto;width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:9px;background:transparent;color:var(--text-primary);cursor:pointer}.history-prompt-button:before{content:"";position:absolute;width:24px;height:24px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.history-prompt-button svg{position:relative}.history-prompt-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(hover:hover)and (pointer:fine){.history-prompt-button:hover:before{background:var(--lavender)}}.history-prompt-dialog-content{padding:24px}.history-prompt-dialog-content h2{margin:0 52px 16px 0;font-size:23px;line-height:1.2}.history-prompt-dialog-content p{margin:0;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.history-prompt-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px;margin-top:20px}.history-prompt-dialog-actions [role=status]{color:var(--text-secondary);font-size:13px;line-height:1.4}.history-prompt-dialog-actions [role=status]:empty{margin-inline-end:auto}.history-prompt-copy{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:0;border-radius:11px;background:var(--text-primary);color:var(--surface);font:inherit;font-size:13px;font-weight:650;cursor:pointer}@media(hover:hover)and (pointer:fine){.history-prompt-copy:hover{background:#292d36}}@media(max-width:760px),(pointer:coarse){.history-prompt-button{width:44px;height:44px}}@media(max-width:760px){.history-prompt-dialog-content{padding-top:8px}}.history-card-actions.is-ai{grid-template-columns:minmax(0,1fr)}.history-card-actions.is-ai.has-transparent-download{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card-actions.has-sticker.has-transparent-download{grid-template-columns:repeat(2,minmax(0,1fr)) 36px}.history-card-actions .generation-transparent-action{min-width:0;padding-inline:6px;border:1px solid var(--border);background:var(--surface-soft);color:var(--text-primary);line-height:1.15}@media(hover:hover)and (pointer:fine){.history-card-actions .generation-transparent-action:hover:not([aria-disabled=true]){border-color:#cfd5df;background:var(--surface);transform:none}}.history-card-actions .generation-transparent-action svg{flex:none}.history-card-actions .generation-transparent-action:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.history-card-actions .generation-transparent-action[aria-disabled=true]{cursor:wait;opacity:.75;transform:none}.history-card-actions.has-transparent-download .history-sticker{grid-column:1 / -1;order:1}.history-card-actions .generation-transparent-error{grid-column:1 / -1;order:2;margin:0;color:#a92f40;font-size:12px;line-height:1.4}.history-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px;color:#69707d;font-size:12px}.history-pagination>div{display:flex;gap:8px}.history-pagination button{min-height:40px;padding:0 16px;border:1px solid #e5e9f0;border-radius:11px;background:#fff;color:#111318;font-weight:600;cursor:pointer}.history-pagination button:hover:not(:disabled){border-color:#635bff}.history-pagination button:focus-visible{outline:3px solid #b9b3ff;outline-offset:2px}.history-pagination button:disabled{opacity:.45;cursor:default}.history-card{position:relative}.history-card-details-trigger{position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;width:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}.history-card-details-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.history-card-body :is(button,a){position:relative;z-index:2}@media(hover:hover)and (pointer:fine){.history-card:has(.history-card-details-trigger:hover){border-color:#bdb3f7}}.access-dialog-backdrop:has(>.history-result-drawer){place-items:stretch end;padding:0;overflow:hidden;background:#1113186b}.access-dialog.history-result-drawer{width:min(500px,100%);height:100%;max-height:none;padding:0;overflow:hidden;border-radius:0;background:#111318;color:#fff;animation:none}@media(prefers-reduced-motion:no-preference){.access-dialog.history-result-drawer{animation:generation-drawer-in .28s cubic-bezier(.22,1,.36,1) both}}.history-result-drawer .access-dialog-handle{display:none}.history-result-drawer .access-dialog-close{top:max(16px,env(safe-area-inset-top));right:16px;background:#ffffff1a;color:#fff}@media(hover:hover)and (pointer:fine){.history-result-drawer .access-dialog-close:hover{background:#ffffff2e}}.history-result-drawer .generation-drawer-header{padding-top:max(16px,env(safe-area-inset-top));padding-inline-end:72px}.history-result-drawer .generation-drawer-header .history-status{position:static;display:inline-flex;margin-bottom:8px}.history-result-drawer .generation-drawer-media{padding:0;border-radius:18px;color:#3c434e}.history-result-drawer .generation-drawer-media.is-ai-placeholder{background:radial-gradient(ellipse at 68% 22%,var(--lavender),var(--ice) 72%)}.history-result-drawer .generation-drawer-media.is-ai-placeholder img{width:78%;height:78%}.history-result-zoom-button{position:relative;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:zoom-in}.history-result-drawer .history-result-zoom-button:focus-visible{outline-offset:-4px}.history-result-zoom-button span{position:absolute;right:12px;bottom:12px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#111318e0;color:#fff;pointer-events:none}.access-dialog-backdrop:has(>.history-image-viewer){place-items:center;padding:16px;background:#111318d6}.access-dialog.history-image-viewer{width:min(1080px,calc(100dvh - 96px),calc(100vw - 32px));max-height:none;overflow:visible;padding:0;border-radius:16px;background:#eef0f5}.history-image-viewer .access-dialog-handle{display:none}.history-image-viewer .access-dialog-close{top:10px;right:10px;color:#fff;background:#111318e0}@media(hover:hover)and (pointer:fine){.history-image-viewer .access-dialog-close:hover{background:#111318}}.history-image-viewer-media{overflow:hidden;border-radius:inherit;aspect-ratio:1}.history-image-viewer-media img{display:block;width:100%;height:100%;object-fit:contain}.history-result-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 0}.history-result-facts>div{min-width:0;padding:8px 10px;border-radius:10px;background:#ffffff12}.history-result-facts dt{margin-bottom:3px;color:#b9bfca;font:500 9px/1.3 Geist Mono,monospace}.history-result-facts dd{margin:0;font-size:11px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.history-result-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.history-result-scans h3,.history-result-detail h3{margin:0 0 8px;font-size:13px}.history-result-detail-heading h3{margin-bottom:0}.history-result-drawer .history-result-detail :is(p,a){font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.history-result-drawer .history-result-detail a{color:#dcd5ff}.history-result-text-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;min-height:36px;border:0;border-radius:8px;background:#ffffff1a;color:#fff;font:inherit;font-size:11px;cursor:pointer}.history-result-drawer :is(a,button):focus-visible{outline:2px solid #cfc3ff;outline-offset:2px}.history-result-scans{margin-top:20px}.history-result-scans h3{display:flex;align-items:center;gap:7px}.history-result-scans p{margin:8px 0;color:#c5cbd5;font-size:13px}.history-result-scans .history-result-facts{margin-top:10px}.history-result-action-status{margin:0 0 8px;color:#e4e6ed;font-size:12px}.history-result-action-status:empty{margin:0}.generation-drawer-actions.history-result-actions{grid-template-columns:minmax(0,1fr)}.history-result-actions:has(>.generation-transparent-action){grid-template-columns:repeat(2,minmax(0,1fr))}.history-result-actions:has(>.history-result-share){grid-template-columns:minmax(0,1fr) 46px}.history-result-actions:has(>.generation-transparent-action):has(>.history-result-share){grid-template-columns:repeat(2,minmax(0,1fr)) 46px}.history-result-actions .generation-transparent-error,.history-result-actions .history-result-sticker{grid-column:1 / -1;order:1}.history-result-actions .generation-transparent-error{margin:0;color:#ffb1bf;font-size:12px}.history-result-unavailable{margin:0;color:#c5cbd5;font-size:13px}@media(pointer:coarse){.history-result-text-action{min-height:44px}}.mobile-template-preview-layer,.mobile-template-builder-header{display:none}@media(max-width:760px){body.template-preview-open,.page-shell:has(.creative-app-shell.is-mobile-template-builder){overflow:hidden;overscroll-behavior:none}.mobile-template-preview-layer{position:fixed;z-index:120;top:0;right:0;bottom:0;left:0;display:grid;align-items:end;padding-top:max(56px,env(safe-area-inset-top))}.mobile-template-preview-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;padding:0;border:0;background:#1113186b;cursor:default}.mobile-template-preview-sheet{position:relative;width:100%;max-height:calc(100dvh - max(56px,env(safe-area-inset-top)));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(255,255,255,.9);border-bottom:0;border-radius:26px 26px 0 0;background:var(--surface);box-shadow:0 -18px 60px #11131838;transform:translateZ(0)}.mobile-template-preview-handle{position:absolute;z-index:2;top:0;left:50%;width:72px;height:32px;display:grid;place-items:center;border-radius:0 0 14px 14px;outline:0;background:transparent;transform:translate(-50%);touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.mobile-template-preview-handle>span{width:48px;height:5px;border-radius:999px;background:#d4d9e1}.mobile-template-preview-handle:focus-visible{outline:3px solid rgba(99,91,255,.28);outline-offset:-3px}.mobile-template-preview-heading{min-height:76px;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:14px;padding:20px 18px 10px}.mobile-template-preview-close,.mobile-template-preview-navigation button,.mobile-template-builder-back,.mobile-template-builder-change{min-width:44px;min-height:44px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:13px;color:var(--text-primary);background:var(--surface);cursor:pointer;transition:transform .14s cubic-bezier(.23,1,.32,1),border-color .16s ease}.mobile-template-preview-heading h2{display:block}.mobile-template-preview-heading h2{margin:0;font:600 22px/1.12 Funnel Sans,sans-serif;letter-spacing:-.025em}.mobile-template-preview-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:8px 18px 20px}.mobile-template-carousel-viewport{width:100%;overflow:hidden;contain:layout paint}.mobile-template-carousel-track{display:grid;grid-template-columns:repeat(3,100%);column-gap:12px;align-items:start;transform:translate3d(calc(-100% - 12px),0,0)}.mobile-template-carousel-card{min-width:0;transform:scale(1);transform-origin:center;opacity:1}.mobile-template-carousel-card[data-slot="-1"],.mobile-template-carousel-card[data-slot="1"]{transform:scale(.985);opacity:.94}.mobile-template-preview-art{width:100%;max-height:340px;display:grid;place-items:center;aspect-ratio:1.25;overflow:hidden;border-radius:20px;touch-action:pan-y;-webkit-user-select:none;user-select:none}.mobile-template-preview-art img{width:100%;height:100%;min-width:0;min-height:0;display:block;object-fit:contain}.mobile-template-preview-art.bg-ice,.mobile-template-pattern-image.bg-ice{background:var(--ice)}.mobile-template-preview-art.bg-white,.mobile-template-pattern-image.bg-white{background:#fff}.mobile-template-preview-art.bg-warm,.mobile-template-pattern-image.bg-warm{background:#fff5dc}.mobile-template-pattern-picker{min-width:0;margin:22px 0 0;padding:0;border:0}.mobile-template-pattern-picker legend{margin-bottom:10px;font:600 16px/1.3 Funnel Sans,sans-serif;letter-spacing:-.015em}.mobile-template-pattern-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,154px),1fr));gap:10px;padding:5px}.mobile-template-pattern-options>button{min-width:0;min-height:72px;display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:10px;padding:8px;border:1px solid var(--border);border-radius:15px;color:var(--text-primary);background:var(--surface-soft);font-size:13px;font-weight:600;text-align:left;cursor:pointer;transition:transform .14s cubic-bezier(.23,1,.32,1),border-color .16s ease,background-color .16s ease}.mobile-template-pattern-options>button>span:last-child{min-width:0;overflow-wrap:anywhere}.mobile-template-pattern-options>button.active{border-color:var(--text-primary);background:#fff}.mobile-template-pattern-image{position:relative;display:grid;place-items:center;width:52px;aspect-ratio:1;overflow:hidden;border-radius:11px}.mobile-template-pattern-image img{width:100%;height:100%;display:block;object-fit:contain}.mobile-template-pattern-image i{position:absolute;right:3px;bottom:3px;width:20px;height:20px;display:grid;place-items:center;border:2px solid #fff;border-radius:7px;color:#fff;background:var(--accent)}.mobile-template-preview-navigation{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;margin-top:18px}.mobile-template-preview-navigation span{color:var(--text-secondary);font-size:12px;font-weight:600;text-align:center}.mobile-template-preview-navigation button:disabled{opacity:.45;cursor:not-allowed}.mobile-template-preview-actions{padding:12px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fffffff5}.mobile-template-preview-actions .generate-button{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px}.mobile-template-preview-close:active,.mobile-template-preview-navigation button:active:not(:disabled),.mobile-template-pattern-options>button:active,.mobile-template-preview-actions .generate-button:active,.mobile-template-builder-back:active,.mobile-template-builder-change:active{transform:scale(.97)}.mobile-template-preview-close:focus-visible,.mobile-template-preview-navigation button:focus-visible,.mobile-template-pattern-options>button:focus-visible,.mobile-template-preview-actions .generate-button:focus-visible,.mobile-template-builder-back:focus-visible,.mobile-template-builder-change:focus-visible{outline:3px solid rgba(99,91,255,.28);outline-offset:2px}.creative-app-shell.is-mobile-template-builder{min-height:100dvh;overflow:hidden;border:0;border-radius:0;box-shadow:none}.workspace.is-template-builder-open{min-height:calc(100dvh - var(--mobile-topbar-height));display:block;padding:0}.workspace.is-template-builder-open>.category-sidebar,.workspace.is-template-builder-open .catalog-panel{display:none}.workspace.is-template-builder-open .workspace-main-layout{display:block}.workspace.is-template-builder-open .builder-panel.is-stepped{width:100%;height:calc(100dvh - var(--mobile-topbar-height));min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;border-radius:0;background:#fff7d7}.mobile-template-builder-header{min-height:92px;display:grid;grid-template-columns:44px 58px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid rgba(130,112,37,.14);background:#ffffffed}.mobile-template-builder-preview{width:58px;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:14px}.mobile-template-builder-preview img{width:100%;height:100%;display:block;object-fit:contain}.mobile-template-builder-copy{min-width:0}.mobile-template-builder-copy strong,.mobile-template-builder-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-template-builder-copy strong{font:600 17px/1.2 Funnel Sans,sans-serif}.mobile-template-builder-copy small{margin-top:3px;color:var(--text-secondary);font-size:12px}.mobile-template-builder-change{min-width:64px;padding:0 10px;border-color:transparent;color:#5143c4;background:transparent;font-size:12px;font-weight:700}.workspace.is-template-builder-open .builder-stage-tabs{min-height:58px;gap:6px;padding:10px 16px;border-bottom:1px solid rgba(130,112,37,.12);border-radius:0;background:#ffffff80}.workspace.is-template-builder-open .builder-stage-tabs button{min-height:38px;border-radius:11px}.workspace.is-template-builder-open .builder-stage-tabs button.active{color:#fff;background:var(--text-primary)}.workspace.is-template-builder-open .builder-stage-panel{min-height:0;display:flex;gap:16px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:20px 16px 28px;scroll-padding-bottom:24px}.workspace.is-template-builder-open .builder-actions{position:static;padding:12px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid rgba(130,112,37,.14);background:#fff7d7fa;box-shadow:0 -10px 24px #82702514}.workspace.is-template-builder-open .builder-actions .generate-button{min-height:54px}.generation-queue.is-above-builder-actions{bottom:calc(94px + env(safe-area-inset-bottom))}}@media(max-width:380px){.mobile-template-preview-art{max-height:290px}.mobile-template-builder-header{grid-template-columns:44px 52px minmax(0,1fr) auto;padding-inline:12px}.mobile-template-builder-preview{width:52px}}@media(prefers-reduced-motion:reduce){.mobile-template-preview-close,.mobile-template-preview-navigation button,.mobile-template-pattern-options>button,.mobile-template-preview-actions .generate-button,.mobile-template-builder-back,.mobile-template-builder-change{transition:border-color .16s ease,background-color .16s ease}}.is-template-detail .builder-panel.is-stepped{gap:20px}.builder-panel.is-stepped .builder-stage-tabs{padding:4px;border-radius:16px;background:#ffffff80}.builder-panel.is-stepped .builder-stage-tabs button{min-height:36px;border-radius:12px}.builder-panel.is-stepped .builder-stage-tabs button.active{color:var(--text-primary);background:var(--surface);box-shadow:0 2px 6px #4d42190f}.builder-panel.is-stepped .builder-stage-panel{gap:24px;padding-block:0}.builder-panel.is-stepped .creative-data-tabs{margin-bottom:20px}.builder-panel.is-stepped .creative-data-tabs>button,.builder-panel.is-stepped .standard-data-more-trigger{gap:5px;padding-inline:6px}.builder-panel.is-stepped .creative-data-tabs svg{flex-shrink:0}.builder-panel.is-stepped .creative-data-form{gap:12px;padding:0;border:0;border-radius:0;background:transparent}.builder-panel.is-stepped .creative-data-form .input-row,.builder-panel.is-stepped .creative-data-form textarea,.builder-panel.is-stepped .standard-data-select{border-radius:12px}.builder-panel.is-stepped .creative-data-form :is(input,textarea)::placeholder{color:var(--text-secondary)}.builder-panel.is-stepped .creative-data-form.has-error :is(.input-row,textarea,.standard-data-select){border-color:#cf4b5b}.builder-panel.is-stepped .shortlink-choice{gap:16px 12px;padding:16px 12px;border:0;border-radius:16px;background:#fff9;box-shadow:none;transition:none}.builder-panel.is-stepped .shortlink-choice-content{grid-template-columns:20px minmax(0,1fr);gap:8px}.builder-panel.is-stepped .shortlink-choice-icon{width:20px;height:24px;border-radius:0;color:var(--text-secondary);background:transparent;box-shadow:none}.builder-panel.is-stepped .shortlink-choice-title{min-height:24px;gap:6px}.builder-panel.is-stepped .shortlink-choice-title>span{padding:3px 5px;color:#5143ae;background:var(--lavender);font-family:inherit;font-size:8px;font-weight:500;letter-spacing:0;text-transform:none}.builder-panel.is-stepped .shortlink-choice-title button{width:24px;height:24px;margin:0;color:var(--text-secondary)}.builder-panel.is-stepped .shortlink-choice-content small{margin-top:2px;line-height:1.5}.builder-panel.is-stepped .shortlink-tracking-row{gap:12px;padding-top:16px;border-color:#82702524}.builder-panel.is-stepped .shortlink-recommendation{border-color:#82702524}.builder-panel.is-stepped .toggle{position:relative}.builder-panel.is-stepped .toggle:before{content:"";position:absolute;top:-11px;right:-3px;bottom:-11px;left:-3px}.builder-panel.is-stepped :is(.toggle,.shortlink-choice-title button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}.builder-panel.is-stepped .builder-review{border:0;background:#fff9}@media(max-width:760px){.workspace.is-template-builder-open .builder-panel.is-stepped{gap:0}.workspace.is-template-builder-open .builder-stage-tabs{padding:10px 16px;border-radius:0}.workspace.is-template-builder-open .builder-stage-panel{padding:20px 16px 28px}.builder-panel.is-stepped .creative-data-tabs>button,.builder-panel.is-stepped .standard-data-more-trigger{min-height:44px}.builder-panel.is-stepped .shortlink-choice-title button{position:relative}.builder-panel.is-stepped .shortlink-choice-title button:before{content:"";position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}}@media(prefers-reduced-motion:reduce){.builder-panel.is-stepped :is(.builder-stage-tabs button,.toggle,.toggle span){transition:none}.builder-panel.is-stepped .builder-stage-tabs button:active{transform:none}}
