:root{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #f1f3f6;--border: #e3e6eb;--text: #111827;--muted: #6b7280;--accent: #4f46e5;--accent-hover: #4338ca;--accent-soft: #eef0ff;--danger: #dc2626;--checker: #e9ecf1;--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);--radius: 12px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--bg: #0d0f13;--surface: #16191f;--surface-2: #1e2229;--border: #2a2f38;--text: #eef0f3;--muted: #9aa1ad;--accent: #7c74ff;--accent-hover: #918aff;--accent-soft: #23223f;--danger: #f87171;--checker: #1c2027;--shadow: 0 1px 2px rgba(0, 0, 0, .4);color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}button,select,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.muted{color:var(--muted);font-size:12.5px}.app{display:flex;flex-direction:column;min-height:100%}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;height:60px;padding:0 20px;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;font-weight:650;font-size:16px;letter-spacing:-.01em}.brand-mark{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--accent);color:#fff}.topbar-right{display:flex;align-items:center;gap:16px}.privacy{color:var(--muted);font-size:12.5px}.progress{position:absolute;left:0;bottom:-1px;height:2px;background:var(--accent);transition:width .2s}.layout{flex:1;display:grid;grid-template-columns:320px 1fr;min-height:0}.sidebar{border-right:1px solid var(--border);background:var(--surface);padding:8px 0 24px;position:sticky;top:60px;height:calc(100vh - 60px);overflow-y:auto}.main{padding:24px;min-width:0}.panel{padding:16px 20px 20px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:14px;transition:opacity .2s}.panel:last-child{border-bottom:0}.panel.dim{opacity:.55}.panel h2{margin:0;font-size:13.5px;font-weight:600;display:flex;align-items:center;gap:10px}.step{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:700}.hint{margin:-4px 0 0;color:var(--muted);font-size:12.5px}.hint strong{color:var(--text);font-weight:550;word-break:break-all}.field{display:flex;flex-direction:column;gap:8px}.field-label,.slider-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:500}.slider-value{color:var(--muted);font-weight:450;font-variant-numeric:tabular-nums;font-size:12.5px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 16px;border-radius:9px;border:1px solid transparent;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s,opacity .15s}.btn.primary{background:var(--accent);color:#fff}.btn.primary:hover:not(:disabled){background:var(--accent-hover)}.btn.primary:disabled{opacity:.45}.btn.ghost{background:var(--surface);border-color:var(--border)}.btn.ghost:hover{background:var(--surface-2)}.btn.sm{height:32px;padding:0 12px;font-size:13px}.btn.sm svg{width:15px;height:15px}.btn.block{width:100%}.btn.as-span{margin-top:8px;pointer-events:none}.link{background:none;border:0;padding:0;color:var(--accent);font-weight:550;font-size:13px}.link:hover{text-decoration:underline}.link.danger{color:var(--danger)}.icon-btn{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.icon-btn:hover{background:var(--surface-2)}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.segmented{display:grid;grid-template-columns:1fr 1fr;padding:3px;background:var(--surface-2);border-radius:10px;gap:3px}.segmented button{height:32px;border:0;border-radius:7px;background:transparent;font-weight:550;font-size:13px;color:var(--muted)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.segmented button:disabled{opacity:.5}.pos-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);height:116px}.pos-cell{border:0;border-radius:6px;background:transparent;display:grid;place-items:center;transition:background .15s}.pos-cell span{width:10px;height:10px;border-radius:3px;background:var(--border);transition:all .15s}.pos-cell:hover{background:var(--surface)}.pos-cell:hover span{background:var(--muted)}.pos-cell.active{background:var(--accent-soft)}.pos-cell.active span{background:var(--accent);width:22px;height:14px}.slider{display:flex;flex-direction:column;gap:6px}.slider.disabled .slider-head span:first-child{color:var(--muted)}input[type=range]{width:100%;accent-color:var(--accent);margin:0;height:18px}input[type=range]:disabled{opacity:.4}.height-row{display:flex;align-items:flex-end;gap:10px}.height-row .slider{flex:1}.lock{flex:none;color:var(--muted)}.lock.active{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:var(--accent-soft)}.select{height:38px;width:100%;padding:0 10px;border-radius:9px;border:1px solid var(--border);background:var(--surface)}.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;width:100%;border:1.5px dashed var(--border);border-radius:var(--radius);background:var(--surface-2);color:var(--text);transition:border-color .15s,background .15s}.drop:hover{border-color:var(--accent);background:var(--accent-soft)}.drop.small{padding:18px 12px}.drop.small svg{color:var(--accent)}.logo-preview{display:flex;gap:12px;align-items:center}.logo-thumb{width:72px;height:72px;flex:none;border-radius:10px;border:1px solid var(--border);padding:6px;display:grid;place-items:center;background:repeating-conic-gradient(var(--checker) 0 25%,var(--surface) 0 50%) 50% / 12px 12px}.logo-thumb img{max-width:100%;max-height:100%;object-fit:contain}.logo-info{display:flex;flex-direction:column;gap:2px;min-width:0}.logo-name{font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logo-actions{display:flex;gap:14px;margin-top:4px}.drop.hero{min-height:calc(100vh - 108px);padding:40px;gap:8px;font-size:16px;border-radius:16px}.hero-icon{width:60px;height:60px;border-radius:16px;display:grid;place-items:center;margin-bottom:8px;background:var(--accent-soft);color:var(--accent)}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;flex-wrap:wrap}.count{font-weight:600;font-size:15px}.toolbar-actions{display:flex;gap:8px}.notice{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 14px;margin-bottom:16px;border-radius:10px;background:var(--accent-soft);font-size:13px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;box-shadow:var(--shadow)}.card:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--border))}.card.selected{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent)}.card-media{position:relative;aspect-ratio:1;display:grid;place-items:center;padding:10px;background:repeating-conic-gradient(var(--checker) 0 25%,var(--surface-2) 0 50%) 50% / 16px 16px}.card-media{container-type:size}.card-canvas{position:relative;width:min(100cqw,100cqh * var(--ar, 1))}.card-canvas>img:first-child{display:block;width:100%;height:100%;object-fit:fill;border-radius:4px}.card-logo{position:absolute;cursor:grab;touch-action:none;border-radius:2px;outline:1px dashed transparent;outline-offset:1px;transition:outline-color .15s}.card-logo:active{cursor:grabbing}.card-logo img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.card:hover .card-logo,.card.selected .card-logo{outline-color:#ffffffd9}.resize-handle{position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--accent);box-shadow:0 1px 3px #00000059;cursor:nwse-resize;touch-action:none;opacity:0;transition:opacity .15s}.card:hover .resize-handle,.card.selected .resize-handle{opacity:1}.card-actions{position:absolute;top:8px;right:8px;z-index:2;display:flex;gap:6px;opacity:0;transition:opacity .15s}.card:hover .card-actions,.card:focus-within .card-actions,.card.selected .card-actions{opacity:1}.card-actions .icon-btn{width:30px;height:30px;box-shadow:var(--shadow)}.card-actions svg{width:16px;height:16px}.badge{flex:none;padding:1px 8px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:600}.card-meta{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;font-size:12.5px;border-top:1px solid var(--border)}.card-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.card-dims{color:var(--muted);flex:none;font-variant-numeric:tabular-nums}.drag-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;pointer-events:none;background:color-mix(in srgb,var(--accent) 12%,transparent);border:3px dashed var(--accent);display:grid;place-items:center}.drag-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px 32px;background:var(--surface);border-radius:14px;box-shadow:0 10px 30px #00000026;color:var(--accent)}.drag-card strong{color:var(--text);font-size:15px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:60;padding:10px 16px;border-radius:10px;background:var(--text);color:var(--bg);font-size:13px;font-weight:500;box-shadow:0 8px 24px #0003;animation:toast-in .2s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}}@media (max-width: 820px){.layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--border)}.main{padding:16px}.privacy{display:none}.topbar{padding:0 16px}.grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.drop.hero{min-height:320px}.card-actions{opacity:1}.resize-handle{opacity:1;width:18px;height:18px;right:-9px;bottom:-9px}}
