:root{--bg:#f4f4f5;--surface:#fff;--surface-muted:#fafafa;--border:#e4e4e7;--border-strong:#d4d4d8;--text-h:#18181b;--text-muted:#71717a;--text-subtle:#a1a1aa;--accent:#18181b;--accent-hover:#27272a;--accent-soft:#f4f4f5;--danger:#dc2626;--danger-bg:#fef2f2;--success:#16a34a;--success-bg:#f0fdf4;--radius:10px;--radius-sm:8px;--radius-pill:999px;--shadow:0 1px 2px #18181b0a;color:var(--text-h);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;font-weight:400;line-height:1.5}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100svh;margin:0}#root{width:100%;margin:0}button,input,select,textarea{font-family:inherit;font-size:inherit}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{box-sizing:border-box;min-height:100svh;padding:3rem 1.5rem 4rem}.app-header{max-width:1120px;margin:0 auto 2.5rem}.app-header h1{letter-spacing:-.025em;color:var(--text-h);margin:0 0 .5rem;font-size:clamp(1.5rem,3vw,1.875rem);font-weight:600}.app-tagline{max-width:40rem;color:var(--text-muted);margin:0;font-size:.9375rem;line-height:1.55}.app-footer{border-top:1px solid var(--border);max-width:1120px;margin:3rem auto 0;padding-top:2rem}.app-footer-title{letter-spacing:-.02em;color:var(--text-h);margin:0 0 .5rem;font-size:.9375rem;font-weight:600}.app-footer-lead{max-width:48rem;color:var(--text-muted);margin:0 0 1rem;font-size:.8125rem;line-height:1.6}.app-footer-features{max-width:48rem;color:var(--text-muted);margin:0;padding-left:1.15rem;font-size:.8125rem;line-height:1.65}.app-footer-features li+li{margin-top:.25rem}.layout{grid-template-columns:minmax(280px,1fr) minmax(320px,1.1fr);align-items:start;gap:1.5rem;max-width:1120px;margin:0 auto;display:grid}.layout--editing{grid-template-columns:1fr;align-items:stretch;max-width:1200px}@media (width<=860px){.layout{grid-template-columns:1fr}}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left;box-shadow:var(--shadow);padding:1.5rem}.panel--preview-editing{flex-direction:column;min-height:calc(100svh - 9rem);display:flex}.panel-label{letter-spacing:.04em;text-transform:uppercase;color:var(--text-subtle);margin:0 0 .35rem;font-size:.6875rem;font-weight:500;display:block}.panel-title{letter-spacing:-.02em;color:var(--text-h);margin:0 0 .35rem;font-size:1.0625rem;font-weight:600}.panel-desc{color:var(--text-muted);margin:0 0 1.25rem;font-size:.875rem;line-height:1.55}.dropzone{border:1px dashed var(--border-strong);border-radius:var(--radius-sm);text-align:center;background:var(--surface-muted);padding:2rem 1.25rem;transition:border-color .15s,background .15s}.dropzone--active{background:var(--surface);border-color:var(--text-muted);border-style:solid}.dropzone-label{color:var(--text-h);margin-bottom:.35rem;font-size:.8125rem;font-weight:500;display:block}.dropzone p{color:var(--text-muted);margin:0 0 1rem;font-size:.8125rem}.btn{font:inherit;cursor:pointer;border-radius:var(--radius-sm);border:1px solid #0000;padding:.5rem .875rem;font-size:.8125rem;font-weight:500;transition:background .15s,border-color .15s,color .15s}.btn--primary{background:var(--accent);color:#fff}.btn--primary:hover{background:var(--accent-hover)}.btn--ghost{color:var(--text-h);border-color:var(--border);background:0 0}.btn--ghost:hover{background:var(--accent-soft);border-color:var(--border-strong)}.errors{background:var(--danger-bg);border-radius:var(--radius-sm);color:var(--danger);border:1px solid #fecaca;margin:1rem 0 0;padding:.75rem 1rem;font-size:.8125rem;list-style:none}.errors li+li{margin-top:.35rem}.file-list-wrap{margin-top:1.5rem}.file-list-header{color:var(--text-muted);justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.8125rem;display:flex}.file-list{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted);max-height:220px;margin:0;padding:0;list-style:none;overflow-y:auto}.file-item{border-bottom:1px solid var(--border);align-items:stretch;display:flex}.file-item:last-child{border-bottom:none}.file-item--active{background:var(--surface);box-shadow:inset 2px 0 0 var(--accent)}.file-item-main{text-align:left;cursor:pointer;font:inherit;color:inherit;background:0 0;border:none;flex:1;padding:.625rem .75rem}.file-item-main:hover{background:#18181b08}.file-item-name{color:var(--text-h);word-break:break-all;font-size:.8125rem;font-weight:500;display:block}.file-item-meta{color:var(--text-muted);margin-top:.125rem;font-size:.75rem;display:block}.file-item-remove{border:none;border-left:1px solid var(--border);width:2.5rem;color:var(--text-subtle);cursor:pointer;background:0 0;font-size:1.125rem;line-height:1;transition:color .15s,background .15s}.file-item-remove:hover{background:var(--danger-bg);color:var(--danger)}.meta-grid{border-top:1px solid var(--border);grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.5rem 0 0;padding-top:1.25rem;display:grid}.meta-grid dt{letter-spacing:.03em;text-transform:uppercase;color:var(--text-subtle);margin-bottom:.2rem;font-size:.6875rem;font-weight:500}.meta-grid dd{color:var(--text-h);word-break:break-all;margin:0;font-size:.8125rem}.preview-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.preview-header-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.badge{border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface-muted);color:var(--text-muted);padding:.2rem .5rem;font-size:.6875rem;font-weight:500}.badge--ok{background:var(--success-bg);color:var(--success);border-color:#bbf7d0}.badge--edited{background:var(--accent-soft);border-color:var(--border);color:var(--text-h)}.preview-workspace{margin-top:1rem}.preview-workspace--editing{flex:1;grid-template-columns:minmax(0,1fr) minmax(280px,360px);align-items:stretch;gap:1.25rem;min-height:0;display:grid}.edit-panel{border-left:1px solid var(--border);overscroll-behavior:contain;min-height:0;max-height:calc(100svh - 10rem);margin:0;padding:0 0 0 1.25rem;overflow-y:auto}.preview-workspace--editing .preview-frame{min-height:0;max-height:calc(100svh - 10rem);overflow:hidden}.preview-workspace--editing .lottie-player{min-height:0}.preview-workspace--editing .lottie-player svg{max-height:min(420px,100svh - 14rem)}@media (width<=960px){.preview-workspace--editing{grid-template-rows:auto minmax(240px,1fr);grid-template-columns:1fr}.edit-panel{border-left:none;border-top:1px solid var(--border);max-height:min(50vh,420px);padding:1.25rem 0 0}.preview-workspace--editing .preview-frame{max-height:min(48vh,480px)}}.edit-panel-title{letter-spacing:-.02em;color:var(--text-h);margin:0 0 .75rem;font-size:.9375rem;font-weight:600}.color-editor-toolbar{flex-wrap:wrap;justify-content:space-between;gap:.75rem;margin-bottom:1rem;display:flex}.color-editor-hint{min-width:200px;color:var(--text-muted);flex:1;margin:0;font-size:.8125rem;line-height:1.5}.color-editor-actions{flex-wrap:wrap;gap:.5rem;display:flex}.color-editor-tabs{background:var(--surface-muted);border:1px solid var(--border);border-radius:var(--radius-sm);flex-wrap:wrap;gap:.125rem;margin-bottom:1rem;padding:.2rem;display:inline-flex}.color-editor-tab{font:inherit;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:.4rem .75rem;font-size:.8125rem;font-weight:500;transition:background .15s,color .15s}.color-editor-tab:hover{color:var(--text-h)}.color-editor-tab--active{background:var(--surface);color:var(--text-h);box-shadow:var(--shadow)}.color-editor-section+.color-editor-section{border-top:1px solid var(--border);margin-top:1.25rem;padding-top:1rem}.color-editor-heading{color:var(--text-h);margin:0 0 .25rem;font-size:.8125rem;font-weight:600}.color-editor-sub{color:var(--text-muted);margin:0 0 .65rem;font-size:.75rem}.color-editor-empty{color:var(--text-muted);background:var(--surface-muted);border-radius:var(--radius-sm);border:1px solid var(--border);margin:0;padding:.75rem;font-size:.8125rem}.swatch-list{flex-direction:column;gap:.375rem;margin:0;padding:0;list-style:none;display:flex}.swatch-list--grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:.5rem;display:grid}.swatch-list--wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr))}.swatch-list--nested{margin-top:.375rem}.swatch-row{min-width:0;margin:0}.swatch-row-label{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);align-items:center;gap:.625rem;height:100%;padding:.375rem .5rem;transition:border-color .15s,background .15s;display:flex}.swatch-row--compact .swatch-row-label{text-align:center;flex-direction:column;align-items:stretch;gap:.375rem;padding:.5rem .45rem}.swatch-row--compact .swatch-color-input{width:100%;max-width:none;height:2.25rem}.swatch-row--compact .swatch-meta{align-items:stretch}.swatch-row--compact .swatch-hex-input{box-sizing:border-box;text-align:center;width:100%}.swatch-row--compact .swatch-count{font-size:.6875rem}.swatch-row-label:hover{border-color:var(--border-strong);background:var(--surface-muted)}.swatch-color-input{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;flex-shrink:0;width:2rem;height:2rem;padding:0}.swatch-color-input::-webkit-color-swatch-wrapper{padding:3px}.swatch-color-input::-webkit-color-swatch{border:none;border-radius:4px}.lottie-player{width:100%;min-height:280px}.lottie-player svg{max-height:420px;display:block;width:100%!important;height:auto!important}.swatch-meta{flex-direction:column;gap:.125rem;min-width:0;display:flex}.swatch-hex-input{color:var(--text-h);border:1px solid var(--border);background:var(--surface-muted);border-radius:6px;width:5.75rem;padding:.25rem .375rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.swatch-hex-input:focus{border-color:var(--border-strong);background:var(--surface);outline:none}.swatch-count,.swatch-subtitle{color:var(--text-muted);font-size:.75rem}.swatch-subtitle{word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;display:-webkit-box;overflow:hidden}.swatch-list--wide .swatch-row-label{flex-wrap:wrap;align-items:flex-start}.swatch-list--wide .swatch-meta{flex:1;min-width:0}.swatch-list--wide .swatch-hex-input{box-sizing:border-box;width:100%;max-width:none}.layer-color-list{flex-direction:column;gap:.875rem;margin:0;padding:0;list-style:none;display:flex}.layer-color-block{margin:0}.layer-color-name{color:var(--text-h);margin:0;font-size:.8125rem;font-weight:500}.preview-frame{background:var(--surface-muted);border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;min-height:360px;margin-top:.75rem;padding:1.25rem;display:flex}.preview-empty{text-align:center;color:var(--text-muted);flex:1;justify-content:center;align-items:center;padding:2rem;font-size:.875rem;display:flex}.carousel{flex-direction:column;flex:1;display:flex}.carousel-stage{flex:1;justify-content:center;align-items:center;min-height:280px;display:flex;position:relative}.carousel-lottie{justify-content:center;width:100%;max-width:420px;display:flex}.carousel-nav{border:1px solid var(--border);background:var(--surface);width:2.25rem;height:2.25rem;color:var(--text-h);cursor:pointer;box-shadow:var(--shadow);z-index:1;border-radius:50%;font-size:1.125rem;font-weight:400;line-height:1;transition:border-color .15s,background .15s;position:absolute;top:50%;transform:translateY(-50%)}.carousel-nav:hover{border-color:var(--border-strong);background:var(--surface-muted)}.carousel-nav--prev{left:.25rem}.carousel-nav--next{right:.25rem}.carousel-meta{text-align:center;margin-top:1rem}.carousel-dots{justify-content:center;gap:.375rem;margin-bottom:.35rem;display:flex}.carousel-dot{background:var(--border-strong);cursor:pointer;border:none;border-radius:50%;width:6px;height:6px;padding:0;transition:background .15s,transform .15s}.carousel-dot--active{background:var(--accent);transform:scale(1.15)}.carousel-counter,.carousel-single-name{color:var(--text-muted);margin:0;font-size:.75rem}.preview-status{border-radius:var(--radius-sm);border:1px solid var(--border);margin:.75rem 0 0;padding:.5rem .75rem;font-size:.8125rem}.preview-status--ok{background:var(--success-bg);color:var(--success);border-color:#bbf7d0}.preview-status--error{background:var(--danger-bg);color:var(--danger);border-color:#fecaca}
