:root{--bg:#f6f7f9;--surface:#fff;--sunken:#eef0f4;--border:#e3e6ec;--text:#0f1222;--muted:#5a6072;--accent:#3b5bfd;--accent-hover:#2f4ef0;--accent-text:#2a44d6;--accent-soft:#e8edff;--on-accent:#fff;--success:#127a55;--success-soft:#e3f5ec;--warning:#c98a12;--warning-soft:#fdf3dc;--danger:#d1434b;--danger-soft:#fdecec;--dot:#d5d9e2;--shadow:0 1px 2px #0f12220f, 0 8px 24px #0f122214;--shadow-media:0 2px 4px #0f122214, 0 24px 60px #0f122238;--seg-shadow:0 1px 2px #0000001f;--r-chip:8px;--r-control:12px;--r-card:16px;--r-media:24px;--sans:"Inter", system-ui, -apple-system, "Segoe UI", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--sans);color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;line-height:1.5}:root[data-theme=dark]{--bg:#0b0d12;--surface:#13161d;--sunken:#0f1117;--border:#252a35;--text:#eef0f6;--muted:#9aa1b2;--accent:#7b93ff;--accent-hover:#91a5ff;--accent-text:#9cb0ff;--accent-soft:#7b93ff29;--on-accent:#0b0d12;--success:#4fd29a;--success-soft:#4fd29a24;--warning:#f2b544;--warning-soft:#f2b54424;--danger:#ff7a83;--danger-soft:#ff7a831f;--dot:#232834;--shadow:0 1px 2px #0006, 0 8px 24px #00000059;--shadow-media:0 2px 4px #0006, 0 24px 60px #00000080;--seg-shadow:0 1px 2px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0b0d12;--surface:#13161d;--sunken:#0f1117;--border:#252a35;--text:#eef0f6;--muted:#9aa1b2;--accent:#7b93ff;--accent-hover:#91a5ff;--accent-text:#9cb0ff;--accent-soft:#7b93ff29;--on-accent:#0b0d12;--success:#4fd29a;--success-soft:#4fd29a24;--warning:#f2b544;--warning-soft:#f2b54424;--danger:#ff7a83;--danger-soft:#ff7a831f;--dot:#232834;--shadow:0 1px 2px #0006, 0 8px 24px #00000059;--shadow-media:0 2px 4px #0006, 0 24px 60px #00000080;--seg-shadow:0 1px 2px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{background:var(--bg);min-height:100svh}#root{min-height:100svh}button,input{font:inherit;color:inherit}::selection{background:var(--accent-soft);color:var(--text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}img{max-width:100%;display:block}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border-radius:var(--r-control);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;height:44px;padding:0 20px;font-size:15px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,opacity .15s;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text);font-weight:500}.btn-secondary:hover:not(:disabled){background:var(--sunken)}.btn-quiet{color:var(--muted);background:0 0;font-weight:500}.btn-quiet:hover:not(:disabled){color:var(--text)}.btn-lg{height:50px}.btn-sm{border-radius:10px;height:36px;padding:0 12px;font-size:13px}.icon-btn{border-radius:var(--r-control);width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;display:inline-flex}.icon-btn:hover{background:var(--sunken);color:var(--text)}.link{color:var(--accent-text);cursor:pointer;background:0 0;border:0;padding:0;font-size:14px;font-weight:600;text-decoration:none}.link:hover{text-decoration:underline}.theme-pill{border:1px solid var(--border);background:var(--surface);height:40px;color:var(--text);cursor:pointer;border-radius:999px;align-items:center;gap:8px;padding:0 14px;font-size:13px;font-weight:500;display:inline-flex}.theme-pill:hover{background:var(--sunken)}.segmented{border-radius:var(--r-control);background:var(--sunken);grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;font-size:12px;font-weight:600}.segmented button[aria-checked=true],.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--seg-shadow)}.segmented button:disabled{cursor:not-allowed}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;width:18px;height:18px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.status-pill{background:var(--sunken);color:var(--muted);border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:13px;font-weight:600;display:inline-flex}.status-pill:before{content:"";background:currentColor;border-radius:999px;width:6px;height:6px}.status-pill.success{background:var(--success-soft);color:var(--success)}.status-pill.working{background:var(--accent-soft);color:var(--accent-text)}.alert{border-radius:var(--r-control);padding:12px 14px;font-size:14px;line-height:1.5}.alert-error{background:var(--danger-soft);color:var(--danger)}.alert-info{background:var(--success-soft);color:var(--success)}.auth{background:var(--bg);min-height:100svh;color:var(--text);flex-wrap:wrap;padding:16px;display:flex}.auth-hero{border-radius:var(--r-media);color:#fff;cursor:ew-resize;touch-action:pan-y;-webkit-user-select:none;user-select:none;background:#2b2420;flex:999 560px;min-width:0;min-height:560px;position:relative;overflow:hidden}.auth-hero img{pointer-events:none;-webkit-user-drag:none}.hero-img,.hero-after img{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.hero-after{clip-path:inset(0 0 0 var(--split,50%));position:absolute;inset:0}.hero-after img{filter:grayscale()contrast(1.05)}.hero-shade{background:linear-gradient(#080a1059 0%,#080a1000 30% 55%,#080a10b3 100%);position:absolute;inset:0}.hero-split{top:0;bottom:0;left:var(--split,50%);background:#fff;width:2px;margin-left:-1px;position:absolute}.hero-handle{top:50%;left:var(--split,50%);color:#0f1222;background:#fff;border-radius:999px;justify-content:center;align-items:center;width:40px;height:40px;margin:-20px 0 0 -20px;display:flex;position:absolute;box-shadow:0 4px 16px #0000004d}.hero-top{justify-content:space-between;align-items:center;gap:12px;display:flex;position:absolute;top:28px;left:28px;right:28px}.hero-brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:17px;font-weight:700;display:flex}.hero-chips{gap:8px;display:flex}.chip-dark,.chip-light{border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600}.chip-dark{color:#fff;background:#0f12228c}.chip-light{color:#0f1222;background:#ffffffe6}.hero-bottom{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;display:flex;position:absolute;bottom:36px;left:40px;right:40px}.hero-copy{flex-direction:column;gap:14px;max-width:520px;display:flex}.hero-copy h2{letter-spacing:-.035em;font-size:clamp(30px,3.4vw,48px);font-weight:700;line-height:1.05}.hero-copy p{color:#ffffffdb;font-size:16px;line-height:1.6}.hero-credit{color:#ffffffbf;font-size:12px}.auth-panel{flex-direction:column;flex:440px;padding:16px clamp(24px,4vw,64px);display:flex}.auth-top{justify-content:flex-end;display:flex}.auth-card{flex-direction:column;gap:28px;width:100%;max-width:420px;margin:auto;padding:32px 0;animation:.35s both rise;display:flex}@keyframes rise{0%{opacity:0;transform:translateY(6px)}}.auth-head{flex-direction:column;gap:16px;display:flex}.auth-tile{background:var(--accent-soft);width:48px;height:48px;color:var(--accent-text);border-radius:14px;justify-content:center;align-items:center;display:flex}.auth-titles{flex-direction:column;gap:8px;display:flex}.auth-titles h1{letter-spacing:-.035em;font-size:34px;font-weight:700;line-height:1.1}.auth-titles p{color:var(--muted);font-size:15px;line-height:1.6}.auth-form{flex-direction:column;gap:18px;display:flex}.field{flex-direction:column;gap:8px;display:flex}.field label{font-size:13px;font-weight:600}.field-box{position:relative}.field-box input{border-radius:var(--r-control);border:1px solid var(--border);background:var(--surface);width:100%;height:48px;color:var(--text);padding:0 14px;font-size:15px;transition:border-color .15s,box-shadow .15s}.field-box input::placeholder{color:var(--muted);opacity:.8}.field-box input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);outline:none}.field-box.has-icon input{padding-left:44px}.field-box.has-trailing input{padding-right:52px}.field-icon{color:var(--muted);pointer-events:none;position:absolute;top:15px;left:14px}.field-trailing{width:44px;height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:flex;position:absolute;top:2px;right:2px}.field-trailing:hover{color:var(--text)}.password{flex-direction:column;gap:8px;display:flex}.meter{align-items:center;gap:10px;display:flex}.meter-bars{flex:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;display:grid}.meter-bars span{background:var(--border);border-radius:999px;height:4px;transition:background .2s}.meter-bars .weak{background:var(--danger)}.meter-bars .ok{background:var(--warning)}.meter-bars .good{background:var(--success)}.meter-label{text-align:right;min-width:52px;color:var(--muted);font-size:12px;font-weight:600}.auth-tabs{background:var(--sunken);border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.auth-tabs button{height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;font-size:14px;font-weight:600;transition:background .15s,color .15s}.auth-tabs button:hover{color:var(--text)}.auth-tabs button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.auth-form-tight{gap:16px}.field-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.check-top{align-items:flex-start;line-height:1.5}.check-top input{flex-shrink:0;margin:1px 0 0}.check-top a{color:var(--accent-text);font-weight:600;text-decoration:none}.check-top a:hover{text-decoration:underline}.auth-legal{gap:16px;display:flex}.auth-legal a{color:var(--muted);text-decoration:none}.auth-legal a:hover{color:var(--text)}.auth-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.check{color:var(--muted);cursor:pointer;align-items:center;gap:10px;font-size:14px;display:flex}.check input{width:18px;height:18px;accent-color:var(--accent)}.divider{color:var(--muted);align-items:center;gap:12px;font-size:13px;display:flex}.divider:before,.divider:after{content:"";background:var(--border);flex:1;height:1px}.auth-note{color:var(--muted);text-align:center;font-size:14px;line-height:1.6}.auth-note.left{text-align:left;margin-top:-6px}.back-link{color:var(--accent-text);cursor:pointer;background:0 0;border:0;align-self:center;align-items:center;gap:6px;font-size:14px;font-weight:600;display:inline-flex}.back-link:hover{text-decoration:underline}.auth-footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:12px;padding-top:16px;font-size:13px;display:flex}@media (width<=960px){.auth-hero{min-height:320px}.hero-bottom{bottom:24px;left:24px;right:24px}.hero-top{top:20px;left:20px;right:20px}.hero-copy p,.hero-credit{display:none}}@media (width<=520px){.auth{padding:10px}.auth-hero{min-height:240px}.hero-chips,.hero-handle{display:none}.hero-copy h2{font-size:24px}.auth-panel{padding:12px 8px}.auth-titles h1{font-size:28px}}@media (prefers-reduced-motion:reduce){.auth-card{animation:none}}.boot{place-items:center;min-height:100svh;display:grid}.boot-mark{animation:1.4s ease-in-out infinite pulse;display:block}@keyframes pulse{50%{opacity:.55;transform:scale(.94)}}.studio{background:var(--bg);min-height:100svh;color:var(--text);flex-wrap:wrap;display:flex}.rail{background:var(--surface);border-right:1px solid var(--border);z-index:5;flex-direction:column;flex:0 0 72px;align-items:center;gap:8px;height:100svh;padding:16px 0;display:flex;position:sticky;top:0}.rail-logo{flex-shrink:0;margin-bottom:16px}.rail-link{width:44px;height:44px;color:var(--muted);border-radius:12px;justify-content:center;align-items:center;display:flex}.rail-link[aria-current=page]{background:var(--accent-soft);color:var(--accent-text)}.rail-spacer{flex:1}.account{position:relative}.avatar{background:var(--accent-soft);width:36px;height:36px;color:var(--accent-text);cursor:pointer;border:0;border-radius:999px;font-size:14px;font-weight:700}.menu{border-radius:var(--r-card);border:1px solid var(--border);background:var(--surface);min-width:220px;box-shadow:var(--shadow);z-index:10;padding:6px;position:absolute;bottom:0;left:calc(100% + 12px)}.menu-user{border-bottom:1px solid var(--border);color:var(--muted);flex-direction:column;gap:2px;margin-bottom:6px;padding:10px 12px;font-size:12px;display:flex}.menu-user b{color:var(--text);overflow-wrap:anywhere;font-size:14px;font-weight:600}.menu button,.menu a{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:14px;font-weight:500;display:flex}.menu a{color:var(--text);text-decoration:none}.menu button:hover,.menu a:hover{background:var(--sunken)}.work{flex-direction:column;flex:999 560px;min-width:0;height:100svh;display:flex;position:sticky;top:0}.work-head{border-bottom:1px solid var(--border);background:var(--surface);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 24px;display:flex}.crumbs{align-items:center;gap:10px;min-width:0;display:flex}.crumb-root,.crumb-sep{color:var(--muted);flex-shrink:0;font-size:14px}.crumb-file{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600;overflow:hidden}.dims{background:var(--sunken);color:var(--muted);font-variant-numeric:tabular-nums;border-radius:6px;flex-shrink:0;padding:3px 8px;font-size:12px;font-weight:500}.head-actions{align-items:center;gap:8px;display:flex}.head-actions label.is-disabled{opacity:.5;pointer-events:none}.canvas{background-color:var(--sunken);background-image:radial-gradient(var(--dot) 1px, transparent 1px);background-size:20px 20px;flex:1;justify-content:center;align-items:center;min-height:360px;padding:68px 32px 60px;transition:box-shadow .15s;display:flex;position:relative;container-type:size}.canvas.drag-over{box-shadow:inset 0 0 0 2px var(--accent)}.orient{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);z-index:2;border-radius:14px;gap:2px;padding:4px;display:flex;position:absolute;top:16px;left:50%;transform:translate(-50%)}.orient button{width:40px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:center;align-items:center;display:flex}.orient button:hover:not(:disabled){color:var(--text)}.orient button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text)}.orient button:disabled{cursor:not-allowed;opacity:.6}.stage{width:min(100cqw, 960px, 100cqh * var(--ar));aspect-ratio:var(--ar);border-radius:var(--r-card);box-shadow:var(--shadow-media);cursor:ew-resize;touch-action:none;-webkit-user-select:none;user-select:none;background:#0b0d12;position:relative;overflow:hidden}.stage-after,.stage-layer{pointer-events:none;-webkit-user-drag:none}.stage-layer{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.stage-after{position:absolute;inset:0}.split-line{pointer-events:none;background:#fff;width:2px;margin-left:-1px;position:absolute;top:0;bottom:0}.split-handle{pointer-events:none;color:#0f1222;pointer-events:none;background:#fff;border-radius:999px;justify-content:center;align-items:center;width:36px;height:36px;margin:-18px 0 0 -18px;display:flex;position:absolute;top:50%;box-shadow:0 4px 16px #0000004d}.tag{pointer-events:none;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:600;position:absolute;bottom:14px}.tag-before{color:#fff;background:#0f122299;left:14px}.tag-after{color:#0f1222;background:#ffffffeb;right:14px}.stage-busy{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);color:#fff;background:#0b0d1273;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:600;display:flex;position:absolute;inset:0}.compare-pill{background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:999px;align-items:center;gap:10px;padding:6px 12px;font-size:12px;font-weight:600;display:flex;position:absolute;bottom:16px;left:24px}.compare-pill input{width:120px;accent-color:var(--accent)}.dropzone{aspect-ratio:3/2;border-radius:var(--r-media);border:1.5px dashed var(--border);background:var(--surface);text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:100%;max-width:640px;padding:24px;transition:border-color .15s,background .15s;display:flex}.dropzone:hover,.drag-over .dropzone{border-color:var(--accent);background:var(--accent-soft)}.dz-icon{background:var(--accent-soft);width:52px;height:52px;color:var(--accent-text);border-radius:14px;justify-content:center;align-items:center;margin-bottom:6px;display:flex}.dz-title{letter-spacing:-.01em;font-size:18px;font-weight:600}.dz-meta{color:var(--muted);font-size:14px}.looks{border-top:1px solid var(--border);background:var(--surface);flex-direction:column;gap:12px;padding:16px 24px 20px;display:flex}.looks-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.looks-head h2{font-size:13px;font-weight:600}.looks-head span{color:var(--muted);font-size:12px}.looks-row{gap:12px;padding:3px;display:flex;overflow-x:auto}.look{color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:0 0 120px;gap:8px;padding:0;display:flex}.look:disabled{cursor:not-allowed}.look-thumb{background:var(--sunken);outline:1px solid var(--border);outline-offset:2px;border-radius:12px;width:120px;height:76px;overflow:hidden}.look-thumb canvas{object-fit:cover;width:100%;height:100%;display:block}.look[aria-checked=true] .look-thumb{outline:2px solid var(--accent)}.look-label{font-size:13px;font-weight:500}.look[aria-checked=true] .look-label{color:var(--text);font-weight:600}.export{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;flex:300px;gap:24px;max-width:340px;padding:24px;display:flex}.export-head{flex-direction:column;gap:4px;display:flex}.export-head h2{letter-spacing:-.02em;font-size:18px;font-weight:700}.export-head span{color:var(--muted);font-size:13px}.summary{border:1px solid var(--border);border-radius:14px;overflow:hidden}.summary div{justify-content:space-between;gap:12px;padding:12px 14px;font-size:13px;display:flex}.summary div+div{border-top:1px solid var(--border)}.summary dt{color:var(--muted)}.summary dd{font-variant-numeric:tabular-nums;font-weight:600}.export-field{flex-direction:column;gap:10px;display:flex}.export-label{font-size:13px;font-weight:600}.export-actions{flex-direction:column;align-items:stretch;gap:10px;display:flex}.export-actions .status-pill{align-self:center}.limit{background:var(--warning-soft);color:var(--text);border-radius:14px;flex-direction:column;gap:4px;padding:14px;font-size:13px;line-height:1.5;display:flex}.limit b{color:var(--warning);font-size:14px}.recent{border-top:1px solid var(--border);flex-direction:column;gap:12px;padding-top:20px;display:flex}.recent h2{font-size:13px;font-weight:600}.recent-empty{color:var(--muted);font-size:13px}.recent ul{flex-direction:column;gap:4px;list-style:none;display:flex}.recent a{color:inherit;border-radius:12px;align-items:center;gap:12px;margin:0 -6px;padding:6px;text-decoration:none;display:flex}.recent a:hover{background:var(--sunken)}.recent img{object-fit:cover;background:var(--sunken);border-radius:10px;flex-shrink:0;width:44px;height:44px}.recent-text{flex-direction:column;flex:1;min-width:0;display:flex}.recent-name{white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.recent-meta{color:var(--muted);font-size:12px}.recent-dl{color:var(--muted);flex-shrink:0}@media (width<=1100px){.work{height:min(100svh,980px);position:static}.rail{align-self:stretch;height:auto;position:static}.export{border-left:0;border-top:1px solid var(--border);max-width:none}.studio{align-content:flex-start}}@media (width<=720px){.studio{flex-flow:column}.rail{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;flex:none;width:100%;height:auto;padding:10px 16px}.rail-logo{margin-bottom:0;margin-right:8px}.menu{inset:calc(100% + 8px) 0 auto auto}.work{flex:none;height:auto;position:static}.work-head{padding:12px 16px}.canvas{flex:none;min-height:0;padding:64px 12px 60px;container-type:normal}.stage{width:min(100%, 52svh * var(--ar))}.compare-pill{bottom:12px;left:12px}.looks{padding:14px 16px}.look{flex-basis:96px}.look-thumb{width:96px;height:64px}.export{flex:none;padding:20px 16px 32px}}@media (prefers-reduced-motion:reduce){.boot-mark{animation:none}}
