:root{--bg:#f4f5f7;--surface:#fff;--text:#1d2129;--muted:#6b7280;--border:#e3e5e8;--accent:#6d4aff;--accent-text:#fff;--user-bubble:#6d4aff;--bot-bubble:#fff;--error:#c62828;--success:#16a34a;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#14151a;--surface:#1e2028;--text:#e8e9ed;--muted:#9aa0ab;--border:#2e313b;--bot-bubble:#1e2028;--error:#ff6b6b;--success:#4ade80}}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input,textarea{font:inherit;color:inherit}.workspace{height:100dvh;display:flex}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:16px;width:232px;padding:16px 12px;display:flex}.brand{align-items:center;gap:10px;padding:4px 8px;font-size:1.05rem;font-weight:700;display:flex}.brand-logo{background:var(--accent);width:32px;height:32px;color:var(--accent-text);border-radius:10px;place-items:center;display:grid}.sidebar nav{flex-direction:column;gap:4px;display:flex}.nav-item{text-align:left;background:0 0;border:0;align-items:center;gap:10px;padding:10px;display:flex}.nav-item:hover{background:var(--bg)}.nav-item.active{background:color-mix(in srgb, var(--accent) 14%, transparent);color:var(--accent);font-weight:600}.nav-label{flex:1}.nav-soon{color:var(--muted);font-size:.7rem;font-weight:400}.user-card{flex-direction:column;gap:12px;margin-top:auto;display:flex}.credits{border:1px solid var(--border);background:var(--bg);border-radius:12px;flex-direction:column;gap:8px;padding:12px;font-size:.85rem;display:flex}.credits-row{align-items:center;gap:8px;display:flex}.credits-row svg{color:var(--accent);flex-shrink:0}.credits-bar{background:var(--border);border-radius:999px;height:6px;overflow:hidden}.credits-bar div{border-radius:inherit;background:var(--accent);height:100%}.credits-buy{background:var(--surface);padding:6px 10px;font-size:.8rem}.user{align-items:center;gap:10px;min-width:0;padding:0 4px;display:flex}.avatar{background:color-mix(in srgb, var(--accent) 18%, var(--surface));width:36px;height:36px;color:var(--accent);border-radius:50%;flex-shrink:0;place-items:center;font-size:.85rem;font-weight:700;display:grid}.user-info{flex-direction:column;min-width:0;display:flex}.user-info strong{font-size:.9rem}.user-info span,.user-info strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-info span{color:var(--muted);font-size:.75rem}.content{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.badge{background:color-mix(in srgb, var(--accent) 14%, var(--surface));color:var(--accent);border-radius:999px;padding:3px 10px;font-size:.75rem;font-weight:600}.placeholder{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:32px 16px;display:flex}.placeholder-icon{color:var(--muted)}.nav-icon{flex-shrink:0}.placeholder h1{margin:0;font-size:1.4rem}.placeholder p{max-width:420px;color:var(--muted);margin:0 0 6px}.gallery{--bg:#08090d;--surface:#14161d;--text:#e8e9ed;--muted:#8e95a3;--border:#272a35;--error:#ff6b6b;--node-gap:30px;min-height:0;color:var(--text);background:var(--bg);flex-direction:column;flex:1;gap:12px;padding:24px 24px 0;display:flex}.gallery-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.gallery-header h1{margin:0 0 2px;font-size:1.5rem}.gallery-header span{color:var(--muted);font-size:.9rem}.notice{border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;padding:10px 14px;display:flex}.notice.error{border-color:var(--error);color:var(--error)}.neural{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.neural-links{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.neural-links path{fill:none;stroke-linecap:round}.link{stroke:url(#neural-link);stroke-width:1.2px;opacity:.75}.link-pulse{stroke:#fff;stroke-width:2px;stroke-dasharray:3 97;filter:drop-shadow(0 0 4px #c9a5ff);animation:2.8s linear infinite link-pulse}@keyframes link-pulse{0%{stroke-dashoffset:100px}to{stroke-dashoffset:0}}.neural-core{flex-shrink:0;place-items:center;width:210px;display:grid;position:relative}.orb{aspect-ratio:1;background:0 0;border:0;border-radius:50%;width:100%;padding:0;position:relative}.orb:before{content:"";filter:blur(26px);opacity:.55;background:radial-gradient(circle at 60% 35%,#ff7a3d 0%,#ff3d9a 35%,#4b5dff 70%,#0000 75%);border-radius:50%;animation:4s ease-in-out infinite orb-glow;position:absolute;inset:18%}.orb:hover:before,.orb:focus-visible:before{opacity:.85}@keyframes orb-glow{50%{transform:scale(1.12)}}.orb-canvas{width:100%;height:100%;display:block;position:relative}.neural-rows{min-width:0;padding:12px 8px 24px var(--node-gap);scrollbar-width:thin;scrollbar-color:var(--border) transparent;flex-direction:column;flex:1;justify-content:safe center;gap:18px;display:flex;position:relative;overflow-y:auto}.neural-empty{max-width:420px;color:var(--muted);margin:0}.node-row{gap:var(--node-gap);display:grid}.node{min-width:0;position:relative}.card-open{text-align:left;background:0 0;border:0;border-radius:0;width:100%;padding:0;display:block}.card-open:disabled{opacity:1;cursor:progress}.card-image{aspect-ratio:4/5;border:1px solid var(--border);background:var(--surface);border-radius:12px;transition:border-color .15s,box-shadow .15s,transform .15s;position:relative}.node:hover .card-image{border-color:#8f7bff;transform:translateY(-2px);box-shadow:0 0 22px #8f7bff59}.card-image img{object-fit:cover;border-radius:11px;width:100%;height:100%;display:block}.card-image .badge{color:#cfc6ff;background:#08090dbf;position:absolute;top:8px;left:8px}.card-image .spinner{width:28px;height:28px;margin:auto;position:absolute;inset:0}.node.opening .card-image img{opacity:.4}.card-image:after{content:"";background:#d9d3ff;border-radius:50%;width:6px;height:6px;position:absolute;top:calc(50% - 3px);left:-4px;box-shadow:0 0 6px #8f7bff}.node:not(:first-child) .card-image:before{content:"";width:var(--node-gap);background:#5b6478;height:1px;position:absolute;top:50%;right:100%}.node-new{width:100%;color:var(--muted);border-style:dashed;place-items:center;padding:0;display:grid}.node-new:hover{color:var(--text)}.card-body{flex-direction:column;gap:2px;padding:8px 2px 0;font-size:.85rem;display:flex}.card-body strong{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.card-body span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;overflow:hidden}.card-delete{background:var(--surface);opacity:0;padding:4px 8px;transition:opacity .15s;position:absolute;top:8px;right:8px}.node:hover .card-delete,.card-delete:focus-visible{opacity:1}@media (hover:none){.card-delete{opacity:1}}@media (prefers-reduced-motion:reduce){.link-pulse{display:none}.orb:before{animation:none}}.chat-view{flex-direction:column;flex:1;width:100%;max-width:760px;min-height:0;margin:0 auto;display:flex}.chat-header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 16px;display:flex}.chat-header h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:1.1rem;overflow:hidden}button.primary svg{vertical-align:-3px}button.ghost{white-space:nowrap;background:0 0}button.back-btn{white-space:nowrap;background:var(--accent);color:var(--accent-text);letter-spacing:.06em;box-shadow:0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);border-color:#0000;font-weight:700}button.back-btn:hover{filter:brightness(1.1)}@media (width<=720px){.sidebar{align-items:center;width:64px;padding:12px 8px}.brand-name,.nav-label,.nav-soon,.credits,.user-info{display:none}.user-card{align-items:center;gap:10px}.user{flex-direction:column;gap:8px;padding:0}.sidebar .logout-btn{border:1px solid var(--border);border-radius:10px;place-items:center;width:36px;height:36px;margin:0;display:grid}.sidebar .credits-mini{display:flex}.nav-item{justify-content:center}.gallery{--node-gap:22px;padding:16px 12px 0}.neural-core{width:96px}}.chat-wrap{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.jump-bottom{border-radius:50%;width:38px;height:38px;padding:0;position:absolute;bottom:12px;right:16px;box-shadow:0 2px 10px #00000040}.chat{overscroll-behavior:contain;overflow-anchor:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow-y:auto}.msg{display:flex}.msg.user{justify-content:flex-end}.bubble{background:var(--bot-bubble);border:1px solid var(--border);border-radius:16px;max-width:85%;padding:10px 14px;line-height:1.45}.msg.user .bubble{background:var(--user-bubble);color:var(--accent-text);border-color:#0000;border-bottom-right-radius:4px}.msg.bot .bubble{border-bottom-left-radius:4px}.msg.error .bubble{border-color:var(--error);color:var(--error)}.bubble p{white-space:pre-wrap;margin:0}.msg-title{margin-bottom:6px;font-weight:600}.prompt-details summary{cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:600;list-style:none}.prompt-details summary::-webkit-details-marker{display:none}.prompt-toggle:after{content:"Ver prompt ▸";opacity:.75;margin-left:8px;font-size:.8rem;font-weight:500;text-decoration:underline}.prompt-details[open] .prompt-toggle:after{content:"Ocultar ▾"}.prompt-details[open] summary{margin-bottom:6px}.prompt-text{opacity:.95;font-size:.9rem}.thumb{border-radius:10px;max-width:240px;max-height:240px;display:block}.thumb.thumb-sm{width:72px;margin-bottom:6px}.flyer img{border-radius:10px;max-width:100%;max-height:70vh;display:block}.flyer-preview{width:fit-content;max-width:100%;position:relative}.flyer-image-placeholder{aspect-ratio:7/9;background:var(--bg);width:min(320px,65vw);color:var(--muted);border-radius:10px;place-items:center;font-size:.85rem;display:grid}.flyer-image-placeholder .spinner{vertical-align:middle;margin:0 5px 0 0}.flyer-pixels{width:100%;height:100%;image-rendering:pixelated;border-radius:10px;animation:1.2s ease-in-out infinite alternate flyer-build;position:absolute;inset:0}.flyer-rendering{color:#fff;background:#0a0a1085;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:12px;font-weight:700;display:flex;position:absolute;inset:0}@keyframes flyer-build{0%{opacity:.7}to{opacity:1}}@media (prefers-reduced-motion:reduce){.flyer-pixels{animation:none}}.flyer a{color:var(--accent);align-items:center;gap:6px;margin-top:8px;font-weight:500;display:inline-flex}.spinner{border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:18px;height:18px;margin-top:6px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.composer{border-top:1px solid var(--border);background:var(--surface);padding:12px 16px 16px}.dropzone{border:2px dashed var(--border);text-align:center;cursor:pointer;border-radius:12px;flex-direction:column;gap:4px;padding:20px;display:flex}.dropzone:hover,.dropzone.dragging{border-color:var(--accent)}.dropzone span{color:var(--muted);font-size:.875rem}.field-error{color:var(--error)!important}.size-picker{flex-direction:column;gap:10px;display:flex}.text-input{border:1px solid var(--border);background:var(--bg);border-radius:10px;width:100%;padding:10px 12px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chips.stacked{flex-flow:column;align-items:stretch;max-width:100%;display:inline-flex}.chips-row{gap:8px;display:flex}.chips-row>.chip{flex:1}.chip{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:12px;flex-direction:column;align-items:flex-start;padding:8px 12px;display:flex}.chip:hover{border-color:color-mix(in srgb, var(--accent) 40%, var(--border));background:color-mix(in srgb, var(--accent) 6%, var(--bg))}.chip-title{font-size:.9rem;font-weight:600}.chip-sub{color:var(--muted);font-size:.75rem}.row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;display:flex}.row.center{justify-content:center;margin-top:0}.hint{color:var(--muted);font-size:.8rem}button{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:10px;padding:8px 16px}button.primary{background:var(--accent);color:var(--accent-text);border-color:#0000;font-weight:600}button:disabled{opacity:.5;cursor:not-allowed}.waiting{text-align:center;color:var(--muted);padding:8px}.chat-input{gap:8px;display:flex}.chat-input .text-input{flex:1}.chat-send{flex:0 0 42px;place-items:center;width:42px;height:42px;padding:0;display:grid}.composer-design{flex-direction:column;gap:10px;display:flex}.composer-design .design-actions{margin:0}.composer-design .design-footer-actions{border-top:1px solid var(--border);justify-content:flex-start;margin:0;padding-top:10px}.prompt-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}.prompt-editor{flex-direction:column;min-height:0;max-height:65vh;display:flex}.editor-body{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent;flex-direction:column;flex:1;gap:14px;min-height:0;padding:2px 6px 2px 2px;display:flex;overflow-y:auto}.editor-footer{border-top:1px solid var(--border);flex-shrink:0;margin-top:0;padding-top:10px}.editor-section{flex-direction:column;gap:8px;display:flex}.editor-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.editor-heading h2{margin:0;font-size:.95rem}.context-idea{border:1px dashed var(--border);border-radius:10px;flex-direction:column;gap:8px;padding:10px;display:flex}.context-idea .row{margin-top:0}.context-idea button{white-space:nowrap}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.field{flex-direction:column;gap:4px;min-width:0;display:flex}.field-label{color:var(--muted);font-size:.8rem;font-weight:600}@media (width<=560px){.field-grid{grid-template-columns:1fr}}.prompt-editor textarea{border:1px solid var(--border);background:var(--bg);resize:vertical;border-radius:10px;width:100%;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem;line-height:1.45}.actions{flex-wrap:wrap;gap:8px;display:flex}.price-input{flex-direction:column;display:flex}.segmented{border:1px solid var(--border);border-radius:10px;flex-shrink:0;display:flex;overflow:hidden}.segmented button{white-space:nowrap;border:0;border-radius:0}.segmented button.active{background:var(--accent);color:var(--accent-text);font-weight:600}@media (width<=480px){.price-input .chat-input{flex-direction:column}.segmented button{flex:1}}.field>.segmented{align-self:flex-start;max-width:100%}.segmented button:disabled{opacity:.6;cursor:default}.auth{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.auth-card{border:1px solid var(--border);background:var(--surface);border-radius:16px;flex-direction:column;gap:16px;width:100%;max-width:380px;padding:28px 24px;display:flex}.auth-card .brand{padding:0}.auth-card h1{margin:0;font-size:1.3rem}.auth-tabs{background:var(--bg);border-radius:10px;gap:4px;padding:4px;display:flex}.auth-tabs button{color:var(--muted);background:0 0;border:0;flex:1}.auth-tabs button.active{background:var(--surface);color:var(--text);font-weight:600}.auth-form{flex-direction:column;gap:12px;display:flex}.auth-form label{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;display:flex}.auth-form input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:10px 12px}.auth-form input:focus{outline:2px solid var(--accent);outline-offset:-1px}.auth-form small{font-size:.75rem}.auth-error{color:var(--error);margin:0;font-size:.85rem}.auth-divider{color:var(--muted);align-items:center;gap:10px;font-size:.8rem;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.auth-google{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;justify-content:center;min-height:44px;display:flex}.splash{min-height:100dvh;color:var(--muted);place-items:center;display:grid}.credits-note{color:var(--muted);margin:0;font-size:.75rem}.avatar img{border-radius:inherit;object-fit:cover;width:100%;height:100%}.logout-btn{color:var(--muted);background:0 0;border:0;flex-shrink:0;margin-left:auto;padding:6px}.logout-btn:hover{color:var(--text)}.credits-mini{color:var(--accent);flex-direction:column;align-items:center;gap:2px;font-size:.8rem;display:none}.credits-mini strong{color:var(--text)}.admin{flex-direction:column;flex:1;gap:16px;min-height:0;padding:24px;display:flex;overflow-y:auto}.admin-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.admin-header h1{margin:0 0 2px;font-size:1.5rem}.admin-header span{color:var(--muted);font-size:.9rem}.admin-header button svg{vertical-align:-2px}.admin-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;display:grid}.stat{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:4px;padding:14px 16px;display:flex}.stat span{color:var(--muted);font-size:.8rem}.stat strong{font-variant-numeric:tabular-nums;font-size:1.5rem}.admin-section{border:1px solid var(--border);background:var(--surface);border-radius:12px}.admin-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.admin-section-head h2{margin:0;font-size:1rem}.admin-search{border:1px solid var(--border);background:var(--bg);color:var(--muted);border-radius:10px;align-items:center;gap:8px;padding:6px 10px;display:flex}.admin-search input{width:220px;max-width:50vw;color:var(--text);background:0 0;border:0;outline:0}.admin-search:focus-within{outline:2px solid var(--accent);outline-offset:-1px}.admin-table-wrap{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:.875rem}.admin-table th,.admin-table td{border-top:1px solid var(--border);text-align:left;white-space:nowrap;padding:10px 16px}.admin-table th{color:var(--muted);font-size:.75rem;font-weight:600}.admin-table .num{text-align:right;font-variant-numeric:tabular-nums}.admin-table .muted{color:var(--muted)}.admin-table .plus{color:#1a9d5a}.admin-table .minus{color:var(--muted)}.admin-table td button{padding:6px 12px;font-size:.8rem}.admin-user{flex-direction:column;gap:2px;display:flex}.admin-user span{color:var(--muted);font-size:.8rem}.admin-user .badge{margin-left:4px}.admin-empty{color:var(--muted);text-align:center;padding:24px 16px}.admin-edit td{background:var(--bg);white-space:normal}.admin-edit form{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.admin-edit input{border:1px solid var(--border);background:var(--surface);width:140px;color:var(--text);border-radius:10px;padding:6px 10px}.admin-edit small{color:var(--muted)}.admin-edit .auth-error{flex-basis:100%}@media (width<=720px){.admin{padding:16px 12px}}.inline-choices{max-width:85%;margin:4px 0 8px}.chip.featured{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 16%, var(--bg))}.chip-check{color:var(--success);margin-right:6px;font-weight:800}.msg-col{flex-direction:column;min-width:0;max-width:85%;display:flex}.msg-col>.bubble{max-width:100%}.ai-header{align-items:center;gap:6px;margin-bottom:4px;font-size:.72rem;display:flex}.ai-icon{background:radial-gradient(circle at 35% 30%, #fff 0, color-mix(in srgb, var(--accent) 55%, #fff) 25%, var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000) 100%);width:14px;height:14px;box-shadow:0 0 6px color-mix(in srgb, var(--accent) 60%, transparent);border-radius:50%}:is(.msg.bot:has(.typing) .ai-icon,.msg.bot:has(.fake-progress) .ai-icon){animation:1s ease-in-out infinite ai-pulse}@keyframes ai-pulse{50%{opacity:.6;transform:scale(.8)}}.ai-name{color:var(--accent);letter-spacing:.04em;font-weight:700}.ai-time{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;margin:3px 4px 0 0;font-size:.68rem}.typing{color:var(--muted);align-items:baseline;gap:4px;font-style:italic;display:inline-flex}.bubble p+.typing{margin-top:2px}.typing-dots{gap:3px;display:inline-flex}.typing-dots i{background:currentColor;border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite typing-dot}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes typing-dot{0%,60%,to{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.swatch{vertical-align:-3px;border:1px solid color-mix(in srgb, var(--text) 25%, transparent);border-radius:50%;width:16px;height:16px;margin-right:6px;display:inline-block}.swatch+.swatch{margin-left:-10px}label.chip{position:relative}.color-input{opacity:0;cursor:pointer;border:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.fake-progress{width:260px;max-width:100%;margin-top:10px}.fake-progress-track{background:color-mix(in srgb, var(--text) 12%, transparent);border-radius:99px;height:8px;overflow:hidden}.fake-progress-bar{background:linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));border-radius:99px;height:100%;transition:width .25s linear;position:relative;overflow:hidden}.fake-progress-bar:after{content:"";background:linear-gradient(90deg,#0000,#ffffff59,#0000);animation:1.4s linear infinite fake-progress-shine;position:absolute;inset:0}@keyframes fake-progress-shine{0%{transform:translate(-100%)}to{transform:translate(100%)}}.fake-progress-label{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;margin-top:6px;font-size:.75rem;display:flex}.gallery-loader{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:24px 0;display:flex}.gallery-loader-orb{width:120px;height:120px}.gallery-loader-orb canvas{width:100%;height:100%}.gallery-loader-text{color:var(--text);margin:0;font-size:1.05rem;font-weight:600;animation:.5s loader-fade}@keyframes loader-fade{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.gallery-loader-dots{gap:6px;display:flex}.gallery-loader-dots span{background:var(--border);border-radius:99px;width:22px;height:4px;transition:background .4s}.gallery-loader-dots span.on{background:var(--accent)}.gallery-loader-cards{grid-template-columns:repeat(4,minmax(0,160px));justify-content:center;gap:16px;width:100%;margin-top:22px;display:grid}@media (width<=720px){.gallery-loader-cards{grid-template-columns:repeat(2,minmax(0,160px))}}.skeleton-card{flex-direction:column;gap:8px;animation:.5s both loader-fade;display:flex}.skeleton-img,.skeleton-line{background:linear-gradient(100deg, var(--surface) 30%, color-mix(in srgb, var(--accent) 18%, var(--surface)) 50%, var(--surface) 70%);background-size:300% 100%;border-radius:12px;animation:1.6s linear infinite skeleton-shine}.skeleton-img{aspect-ratio:4/5;border:1px solid var(--border)}.skeleton-line{border-radius:99px;height:10px}.skeleton-line.short{width:60%}@keyframes skeleton-shine{0%{background-position:100% 0}to{background-position:-50% 0}}.chip-badge{background:var(--accent);color:var(--accent-text);vertical-align:1px;border-radius:99px;margin-left:8px;padding:1px 7px;font-size:.65rem;font-weight:700;display:inline-block}.chip-thumb{aspect-ratio:7/9;object-fit:cover;border:1px solid var(--border);border-radius:8px;width:132px;margin-bottom:8px}.chip-thumb-wrap{display:inline-block;position:relative}.chip-thumb-status{color:var(--muted);place-items:center;font-size:.7rem;display:grid;position:absolute;inset:0 0 8px}.design-carousel .chip-thumb-status{inset:0}.inline-choices .chips{align-items:flex-start}.chips-secondary{margin-top:8px}.chip-link{color:var(--muted);background:0 0;border:0;border-radius:8px;padding:4px 10px;font-size:.82rem}.chip-link:hover{color:var(--text);background:var(--surface)}.chip.with-image{text-align:center;align-items:center;padding:10px 12px 12px}.chip.with-image .chip-thumb{margin-bottom:10px}.chip-thumb.chip-thumb-sm{width:84px}.design-carousel .inline-choices{max-width:100%}.design-carousel fieldset{border:0;min-width:0;margin:0;padding:0}.design-carousel fieldset:disabled{opacity:.65}.design-carousel .chips{flex-wrap:nowrap;padding:4px 2px 10px;overflow-x:auto}.design-carousel .chip.with-image{flex:none;padding:4px}.design-carousel .chip.with-image.featured{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:0 0}.design-carousel .chip.with-image .chip-thumb{object-fit:contain;width:76px;margin:0}.design-carousel .chip-title{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.design-actions{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.design-actions button{padding:6px 10px;font-size:.8rem}.design-actions button.active{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, var(--bg))}.editor-logo{margin-top:14px}.design-footer-actions button svg{vertical-align:-2px}.changes-btn{justify-content:center;align-items:center;gap:8px;width:100%;padding:12px 16px;font-size:1rem;display:inline-flex}.modal-backdrop{z-index:50;background:#0000008c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{border:1px solid var(--border);background:var(--surface);width:min(460px,100%);max-height:calc(100dvh - 32px);color:var(--text);border-radius:16px;flex-direction:column;gap:16px;padding:20px;display:flex;overflow-y:auto}.modal h2{margin:0;font-size:1.1rem}.modal-field{border:0;flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;display:flex}.modal-field legend,.modal-label{margin-bottom:8px;padding:0;font-size:.9rem;font-weight:600}.modal-label{margin-bottom:0}.modal textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);border-radius:10px;padding:10px 12px}.modal textarea:focus{outline:2px solid var(--accent);outline-offset:1px}.segmented{gap:6px;display:flex}.segmented button{flex:1;padding:8px 6px;font-size:.85rem}.segmented button.active{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, var(--bg));color:var(--accent);font-weight:600}.modal-suggestions{flex-direction:column;gap:6px;margin-top:-6px;display:flex}.modal-suggestions button{text-align:left;padding:7px 10px;font-size:.82rem}.modal-actions{justify-content:flex-end;gap:8px;display:flex}.flyer-editor{flex-direction:column;min-height:0;max-height:68vh;display:flex}.flyer-editor-head{border-bottom:1px solid var(--border);flex-direction:column;gap:4px;padding-bottom:10px;display:flex}.flyer-editor-head h2{margin:0;font-size:1.1rem}.flyer-editor-body{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent;flex-direction:column;flex:1;gap:14px;min-height:0;padding:12px 6px 4px 2px;display:flex;overflow-y:auto}.field-head{justify-content:space-between;align-items:center;gap:8px;min-height:26px;display:flex}.case-toggle{border:1px solid var(--border);border-radius:8px;flex-shrink:0;display:inline-flex;overflow:hidden}.case-toggle button{color:var(--muted);background:0 0;border:0;border-radius:0;padding:3px 9px;font-size:.75rem;font-weight:700}.case-toggle button+button{border-left:1px solid var(--border)}.case-toggle button.active{background:color-mix(in srgb, var(--accent) 16%, transparent);color:var(--accent)}.flyer-editor-specs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.flyer-editor-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;display:grid}.flyer-editor-logo{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.flyer-editor-actions{border-top:1px solid var(--border);flex-shrink:0;justify-content:flex-end;gap:8px;padding-top:10px;display:flex}.flyer-editor-head h2{align-items:center;gap:7px;display:flex}.flyer-save-status{color:var(--text);align-self:center;align-items:center;gap:7px;font-size:.85rem;line-height:1.4;display:inline-flex}.flyer-save-status .spinner{flex-shrink:0;width:14px;height:14px;margin:0}.flyer-save-status.is-error{color:var(--error)}.text-input.is-upper{text-transform:uppercase}.text-input.is-upper::placeholder{text-transform:none}@media (width<=560px){.flyer-editor-specs,.flyer-editor-row{grid-template-columns:1fr}}.flyer-editor-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.tune-open{border-color:var(--accent);color:var(--accent);padding:6px 12px;font-size:.82rem;font-weight:600}.modal.tune-modal{gap:0;width:min(820px,100%);padding:0;overflow:hidden}.tune-head{border-bottom:1px solid var(--border);flex-direction:column;gap:4px;padding:18px 20px 12px;display:flex}.tune-head h2{margin:0;font-size:1.1rem}.tune-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;min-height:0;padding:18px 20px;display:grid;overflow-y:auto}.tune-preview{border:1px solid var(--border);background:var(--bg);border-radius:12px;align-self:start;position:relative;overflow:hidden}.tune-preview img{width:100%;height:auto;display:block}.tune-loading{color:#fff;background:#0009;border-radius:999px;padding:4px 10px;font-size:.75rem;font-weight:600;position:absolute;top:10px;left:10px}.tune-controls{flex-direction:column;gap:22px;min-width:0;display:flex}.tune-control{flex-direction:column;gap:6px;display:flex}.tune-control-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.tune-control-head label,.tune-control-label{font-size:.9rem;font-weight:600}.tune-control-head output{color:var(--accent);font-variant-numeric:tabular-nums;font-size:.82rem;font-weight:600}.tune-control input[type=range]{width:100%;accent-color:var(--accent)}.tune-control-ends{color:var(--muted);justify-content:space-between;font-size:.75rem;display:flex}.tune-actions{border-top:1px solid var(--border);align-items:center;gap:8px;padding:12px 20px;display:flex}.tune-spacer{flex:1}@media (width<=640px){.tune-body{grid-template-columns:1fr}.tune-preview{justify-self:center;width:100%;max-width:320px}}.flyer-tree{width:100%;max-width:100%;position:relative;overflow:hidden}.flyer-tree-canvas{transform-origin:0 0;font-family:Outfit,system-ui,sans-serif;position:absolute;top:0;left:0;overflow:hidden}.flyer-tree-canvas div,.flyer-tree-canvas img{box-sizing:border-box;min-width:0;min-height:0}.flyer-el{cursor:grab;touch-action:none}.flyer-el:active{cursor:grabbing}.flyer-el:hover{outline:calc(2px / var(--s,1)) dashed #ffffff8c;outline-offset:calc(4px / var(--s,1))}.flyer-el.is-selected{outline:calc(2px / var(--s,1)) solid var(--accent);outline-offset:calc(4px / var(--s,1))}.tune-elements{flex-wrap:wrap;gap:6px;display:flex}.tune-elements button{border-radius:999px;padding:6px 12px;font-size:.82rem}.tune-elements button.active{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, var(--bg));font-weight:600}.flyer-el-handle{top:50%;right:calc(-11px / var(--s,1));width:calc(14px / var(--s,1));height:calc(34px / var(--s,1));border-radius:calc(7px / var(--s,1));background:var(--accent);border:calc(2px / var(--s,1)) solid #fff;cursor:ew-resize;touch-action:none;position:absolute;transform:translateY(-50%)}.tune-reset-el{color:var(--muted);border:0;align-self:flex-start;padding:4px 0;font-size:.82rem}.tune-reset-el:hover{color:var(--fg,inherit)}.flyer-tabs{scrollbar-width:none;border-bottom:1px solid var(--border);gap:4px;padding-top:8px;display:flex;overflow-x:auto}.flyer-tabs::-webkit-scrollbar{display:none}.flyer-tabs button{color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;border-radius:8px 8px 0 0;flex-shrink:0;margin-bottom:-1px;padding:8px 12px;font-size:.85rem;font-weight:600;position:relative}.flyer-tabs button:hover{color:var(--text)}.flyer-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.flyer-tab-alert{background:var(--error);border-radius:50%;width:7px;height:7px;position:absolute;top:6px;right:4px}.flyer-editor-body .field .hint{margin-top:2px}.flyer-editor .flyer-editor-head{border-bottom:0;padding-bottom:0}.field-tools{align-items:center;gap:8px;display:flex}.field-tools .tune-open{padding:3px 10px;font-size:.75rem}.field-tools{justify-content:flex-start;margin-top:2px}.color-picker{color:var(--muted);cursor:pointer;align-items:center;gap:5px;font-size:.75rem;display:inline-flex}.color-picker input{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:5px;width:25px;height:22px;padding:1px}.visualize-btn{align-self:flex-start;margin-top:6px;padding:7px 16px!important;font-size:.85rem!important}.flyer-live{border-radius:10px;max-width:100%;overflow:hidden}.spec-input{min-width:0;display:flex;position:relative}.spec-input .text-input{padding-right:30px}.spec-remove{width:24px;height:24px;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:0;font-size:1.1rem;line-height:1;position:absolute;top:50%;right:4px;transform:translateY(-50%)}.spec-remove:hover{color:var(--text);background:var(--border)}.spec-add{color:var(--muted);border-style:dashed;font-size:.85rem}.spec-add:hover{color:var(--accent);border-color:var(--accent)}.flyer-editor-tags{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}@media (width<=560px){.flyer-editor-tags{grid-template-columns:1fr}}.flyer-tree img{border-radius:0;max-width:none;max-height:none;display:block}.flyer-tabs{flex-wrap:wrap;row-gap:2px;overflow-x:visible}
