:root,[data-theme=light]{--bg: #f2f2f7;--card: #ffffff;--raised: #e3e3e8;--text: #000000;--muted: #6c6c70;--line: #d1d1d6;--track: #d1d1d6;--stage: #e9e9ee;--bar: rgba(249, 249, 251, .82);--accent: #d63848;--accent-text: #c02848;--on-accent: #ffffff;color-scheme:light}[data-theme=dark]{--bg: #000000;--card: #1c1c1e;--raised: #2c2c2e;--text: #ffffff;--muted: #98989f;--line: #38383a;--track: #3a3a3c;--stage: #0b0b0c;--bar: rgba(22, 22, 24, .78);--accent: #d63848;--accent-text: #ff8a7a;--on-accent: #ffffff;color-scheme:dark}@media(prefers-color-scheme:dark){[data-theme=auto]{--bg: #000000;--card: #1c1c1e;--raised: #2c2c2e;--text: #ffffff;--muted: #98989f;--line: #38383a;--track: #3a3a3c;--stage: #0b0b0c;--bar: rgba(22, 22, 24, .78);--accent-text: #ff8a7a;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.35 -apple-system,BlinkMacSystemFont,SF Pro Text,Inter,Helvetica Neue,sans-serif;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}button:disabled{opacity:.35;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{height:100%;display:flex;flex-direction:column}.bar{display:flex;align-items:center;gap:12px;flex-shrink:0;background:var(--bar);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.top{height:calc(52px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 8px 0 16px;border-bottom:.5px solid var(--line)}.brand{font-size:17px;font-weight:600}.file{flex:1;min-width:0;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.actions{display:flex;align-items:center}.top{position:relative;z-index:10}.icon{width:44px;height:44px;display:grid;place-items:center}.brand{display:none}.export{height:34px;margin-left:4px;padding:0 14px;border-radius:17px;background:var(--accent);color:var(--on-accent);font-size:15px;font-weight:600}.options-label{margin:14px 0 6px 16px;font-size:13px;font-weight:400;color:var(--muted)}.options .card.list{padding:0}.row.danger{color:var(--accent-text)}.row:disabled{opacity:.35}.row-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{flex-shrink:0;margin-left:8px;color:var(--muted);font-size:20px}.options-card{padding:4px 16px}.option-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;font-size:16px}.option-row+.option-row,.option-hint+.option-row{border-top:.5px solid var(--line)}.option-hint{margin:-6px 0 10px;font-size:13px;color:var(--muted)}.segmented.compact{flex:0 1 auto;margin:0}.pro-card,.feedback,.feedback-done{padding:12px 16px}.pro-card p{margin:0 0 8px;font-size:15px}.pro-card .primary-block{margin:8px 0 4px}.pro-active strong{color:var(--accent-text)}.pro-list{margin:4px 0 10px;padding-left:20px;font-size:15px}.pro-list li{margin:4px 0}.pro-list.soon{color:var(--muted)}.pro-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;vertical-align:1px;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:700;letter-spacing:.02em}.quality{display:flex;align-items:center;gap:10px;flex:1;max-width:220px}.quality input{flex:1;min-width:0}.quality output{width:40px;text-align:right;font-variant-numeric:tabular-nums}.ex-name{flex:1;min-width:0;max-width:220px;height:36px;padding:0 10px;border:.5px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:16px}.export-note{margin:10px 4px 0}.style-error{margin:0 16px}.feedback{display:flex;flex-direction:column;gap:10px}.feedback-kinds{display:flex;gap:8px}.feedback textarea,.feedback input{width:100%;padding:10px 12px;border:.5px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:16px;resize:vertical}.feedback .primary-block{margin:0}.feedback-done p{margin:0 0 4px;font-size:15px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.credits{margin:22px 4px 4px;text-align:center;font-size:13px;color:var(--muted)}.credits p{margin:4px 0}.credits a{display:inline-block;min-height:32px;line-height:32px;margin:0 10px;color:var(--accent-text);text-decoration:none}.segmented.compact .seg{flex:0 0 auto;padding:0 12px;font-size:13px}.segmented.compact .seg.active{background:var(--text);color:var(--bg);box-shadow:none}.text{height:44px;padding:0 8px;color:var(--accent-text);font-size:17px}.workspace{flex:1;min-height:0;display:flex;flex-direction:column}.stage{position:relative;flex:1;min-height:0;overflow:hidden;background:var(--bg);display:flex;align-items:center;justify-content:center}.viewport{position:absolute;inset:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.viewport.locked{padding:26px}.photo-frame{position:relative;flex-shrink:0;transform-origin:center;will-change:transform}.photo-frame.hidden{display:none}.photo{display:block;width:100%;height:100%}.crop-overlay{position:absolute;inset:0;touch-action:none}.crop-box{position:absolute;box-sizing:border-box;border:1.5px solid #fff;cursor:move;box-shadow:0 0 0 9999px #0000008c}.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent calc(33.33% - .5px),rgba(255,255,255,.5) calc(33.33% - .5px),rgba(255,255,255,.5) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.5) calc(66.66% - .5px),rgba(255,255,255,.5) calc(66.66% + .5px),transparent calc(66.66% + .5px)),linear-gradient(to bottom,transparent calc(33.33% - .5px),rgba(255,255,255,.5) calc(33.33% - .5px),rgba(255,255,255,.5) calc(33.33% + .5px),transparent calc(33.33% + .5px),transparent calc(66.66% - .5px),rgba(255,255,255,.5) calc(66.66% - .5px),rgba(255,255,255,.5) calc(66.66% + .5px),transparent calc(66.66% + .5px))}.crop-handle{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;touch-action:none}.crop-handle:after{content:"";position:absolute;left:15px;top:15px;width:14px;height:14px;border-radius:3px;background:#fff;box-shadow:0 1px 4px #0006}.crop-handle.nw{left:0;top:0;cursor:nwse-resize}.crop-handle.n{left:50%;top:0;cursor:ns-resize}.crop-handle.ne{left:100%;top:0;cursor:nesw-resize}.crop-handle.e{left:100%;top:50%;cursor:ew-resize}.crop-handle.se{left:100%;top:100%;cursor:nwse-resize}.crop-handle.s{left:50%;top:100%;cursor:ns-resize}.crop-handle.sw{left:0;top:100%;cursor:nesw-resize}.crop-handle.w{left:0;top:50%;cursor:ew-resize}.crop-handle.n:after,.crop-handle.s:after{left:12px;top:19px;width:20px;height:6px}.crop-handle.e:after,.crop-handle.w:after{left:19px;top:12px;width:6px;height:20px}.crop-panel .tools.wrap{flex-wrap:wrap;overflow:visible;padding:0}.crop-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.single.crop{padding:0 16px 8px;max-height:38vh;overflow-y:auto}.single.crop .group h2{margin-left:0}.empty{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 32px;border:1.5px dashed var(--line);border-radius:18px;color:var(--muted);text-align:center}.empty-title{color:var(--accent-text);font-size:17px;font-weight:600}.empty-sub{font-size:13px}.legal-links{position:absolute;left:0;right:0;bottom:max(8px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;justify-content:center;font-size:13px}.legal-links a{min-height:44px;line-height:44px;padding:0 10px;color:var(--muted);text-decoration:none}.pro-legal a{color:var(--accent-text)}.view-chips{position:absolute;right:12px;bottom:10px;display:flex;gap:6px}.chip-static,.chip-button{height:30px;padding:0 12px;display:flex;align-items:center;border-radius:15px;background:#00000080;color:#fff;font-size:13px;font-weight:600;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.chip-button{min-width:44px;justify-content:center}.error{position:absolute;bottom:8px;margin:0;color:var(--accent-text);font-size:13px}.immersive-hint{position:absolute;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%);padding:8px 14px;border-radius:18px;background:#0000008c;color:#fff;font-size:13px;white-space:nowrap;pointer-events:none;animation:fade-out 2.5s forwards}@keyframes fade-out{0%,70%{opacity:1}to{opacity:0}}.inspector{flex:0 0 auto;display:flex;flex-direction:column;background:var(--bar);border-top:.5px solid var(--line)}.inspector .panel{order:1;flex:0 0 auto;height:38vh;max-height:320px}.tabs{order:2;display:flex;padding:4px 6px calc(4px + env(safe-area-inset-bottom));border-top:.5px solid var(--line)}.tab{flex:1 1 0;min-width:0;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:10px;color:var(--muted);font-size:11px;font-weight:600}.tab span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab.active{color:var(--accent-text)}.single{order:1;padding:8px 0 2px}.single-modes,.tools{display:flex;gap:8px;padding:0 16px;overflow-x:auto;scrollbar-width:none}.single-modes{padding-bottom:6px}.single-modes::-webkit-scrollbar,.tools::-webkit-scrollbar{display:none}.single-head{display:flex;justify-content:center;align-items:baseline;gap:10px;height:28px;padding:0 16px}.single-label{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:600}.single-head .value{font-size:16px;font-variant-numeric:tabular-nums;color:var(--muted)}.single-head .value.changed{color:var(--accent-text)}input[type=range].single-slider{display:block;width:calc(100% - 56px);margin:2px 28px 8px}.single-empty{margin:16px;color:var(--muted);font-size:14px;text-align:center}.tools{padding-bottom:10px}.tool{flex-shrink:0;display:flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:18px;background:var(--raised);color:var(--text);font-size:14px;font-weight:500;white-space:nowrap}.tool.changed{color:var(--accent-text)}.tool.active{background:var(--text);color:var(--bg)}.tool.soft.active{background:var(--card);color:var(--text);box-shadow:0 0 0 1.5px var(--text) inset}.tool.all{background:transparent;color:var(--accent-text)}.tool .dot{width:6px;height:6px;border-radius:50%;background:var(--accent-text)}.back-single{height:40px;padding:0;font-size:15px}.single.styles{padding:10px 0 4px}.styles-panel{display:flex;flex-direction:column;gap:10px}.styles-panel .categories{padding:0 16px}.style-strip{display:flex;gap:10px;padding:2px 16px;overflow-x:auto;scrollbar-width:none}.style-strip::-webkit-scrollbar{display:none}.style-card{flex-shrink:0;width:78px;display:flex;flex-direction:column;align-items:center;gap:6px}.style-thumb{position:relative;display:block;width:78px;height:78px;border-radius:12px;overflow:hidden;background:var(--raised)}.style-thumb img{width:100%;height:100%;object-fit:cover;display:block}.style-thumb-wait{position:absolute;inset:0;background:linear-gradient(100deg,var(--raised) 30%,var(--card) 50%,var(--raised) 70%);background-size:300% 100%;animation:shimmer 1.2s infinite linear}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}.style-card.active .style-thumb{box-shadow:0 0 0 2.5px var(--bg),0 0 0 4.5px var(--accent-text)}.style-check{position:absolute;right:5px;top:5px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:12px;font-weight:700}.style-name{width:78px;font-size:11.5px;line-height:1.2;text-align:center;color:var(--muted)}.style-card.active .style-name{color:var(--text);font-weight:600}.style-intensity,.style-save{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 16px}.style-intensity label{font-size:14px}.style-intensity input[type=range]{flex:1;min-width:0}.style-intensity output{width:42px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums;color:var(--accent-text)}.style-tip{flex:1;font-size:13px;color:var(--muted)}.style-save input{flex:1;min-width:0;height:40px;padding:0 12px;border:0;border-radius:10px;background:var(--card);color:var(--text);font:inherit;font-size:16px}.panel .styles-panel{padding-top:8px}.panel .styles-panel .categories{flex-wrap:wrap;padding:0;overflow:visible}.panel .style-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:14px 12px;padding:2px;overflow:visible}.panel .style-card,.panel .style-name{width:auto}.panel .style-thumb{width:100%;height:auto;aspect-ratio:1}.panel .style-intensity,.panel .style-save{padding:0;flex-wrap:wrap}.app.immersive .top,.app.immersive .inspector{display:none}.app.immersive .stage{background:#000}.segmented{display:flex;margin:4px 16px;padding:2px;border-radius:9px;background:var(--raised)}.seg{flex:1 1 0;min-width:0;height:32px;padding:0 2px;border-radius:7px;font-size:12px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.seg.active{background:var(--card);box-shadow:0 3px 8px #0000001f,0 1px 1px #0000000a}.panel{flex:1;min-height:0;overflow-y:auto;padding:0 16px 24px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.group h2{margin:16px 0 6px 16px;font-size:13px;font-weight:400;color:var(--muted)}.card{background:var(--card);border-radius:12px;padding:4px 16px}.card.list{padding:0;overflow:hidden}.row{width:100%;height:44px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;text-align:left;font-size:16px}.row+.row{border-top:.5px solid var(--line)}.check{color:var(--accent-text);font-weight:600}.soon{margin:32px 16px;color:var(--muted)}.hint{margin:8px 16px 0;font-size:13px;color:var(--muted)}.segmented.inline{margin:16px 0 0}.swatch{display:inline-block;width:10px;height:10px;margin-right:8px;border-radius:50%;vertical-align:1px}.switch-row{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:16px}.switch{-webkit-appearance:none;appearance:none;position:relative;width:51px;height:31px;margin:0;border-radius:16px;background:var(--raised);cursor:pointer;transition:background .2s}.switch:after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px #00000026,0 1px 1px #00000029;transition:transform .2s}.switch:checked{background:var(--accent)}.switch:checked:after{transform:translate(20px)}.slider{padding:8px 0 2px}.slider-head{display:flex;justify-content:space-between;align-items:baseline}.slider-head label{font-size:15px;user-select:none;-webkit-user-select:none}.value{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}.value.changed{color:var(--accent-text)}input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:30px;margin:0;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--track)}input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--track)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-11px;border-radius:50%;background:#fff;box-shadow:0 .5px 4px #00000038,0 3px 8px #00000024}input[type=range]::-moz-range-thumb{width:26px;height:26px;border:0;border-radius:50%;background:#fff;box-shadow:0 .5px 4px #00000038,0 3px 8px #00000024}.sheet{width:100%;max-width:440px;max-height:92vh;margin:auto auto 0;padding:0 16px calc(20px + env(safe-area-inset-bottom));border:0;border-radius:16px 16px 0 0;background:var(--bg);color:var(--text);overflow-y:auto}.sheet::backdrop{background:#00000073}.sheet-head{display:flex;align-items:center;justify-content:space-between;height:56px}.sheet-head h2{margin:0;font-size:20px;font-weight:700}.sheet-head .text{margin-right:-8px}.sheet-body{display:flex;flex-direction:column}.sheet-notice{margin:0 0 12px;padding:10px 14px;border-radius:10px;background:var(--card);font-size:14px}.hint.first{margin:0 4px 16px}.providers{display:flex;flex-direction:column;gap:10px}.wide{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border-radius:12px;font-size:17px;font-weight:600}.provider{background:var(--card);border:.5px solid var(--line)}.provider.apple{background:var(--text);color:var(--bg);border-color:transparent}.secondary{margin-top:16px;background:var(--card);color:var(--accent-text)}.primary-block{margin:12px 0 8px;background:var(--accent);color:var(--on-accent)}.divider{display:flex;align-items:center;gap:12px;margin:8px 0 0;color:var(--muted);font-size:13px}.divider:before,.divider:after{content:"";flex:1;height:.5px;background:var(--line)}.form{margin-top:12px;padding:4px 16px}.field{display:flex;align-items:center;gap:12px;min-height:48px;font-size:16px}.field+.field{border-top:.5px solid var(--line)}.field>span,.field>label{flex:0 0 84px}.reveal{flex:0 0 44px;height:44px;margin-right:-12px;display:grid;place-items:center;color:var(--muted)}.reveal[aria-pressed=true]{color:var(--accent-text)}.field input{flex:1;min-width:0;height:44px;border:0;background:transparent;color:var(--text);font:inherit;font-size:16px;outline:none}.field-hint{margin:0 0 4px;font-size:13px;color:var(--muted)}.form-error{margin:8px 0 0;font-size:14px;color:var(--accent-text)}.form-info{margin:8px 0 0;font-size:14px;color:var(--text)}.link-button{align-self:center;margin-top:4px;font-size:15px}.card.verify{margin-top:12px;padding:12px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.card.verify p{margin:0;font-size:14px;color:var(--muted)}.card.verify .text{height:36px;padding:0;font-size:15px}.row.static{cursor:default;height:auto;min-height:56px}.who{display:flex;flex-direction:column;gap:2px;padding:6px 0}.who span{color:var(--muted);font-size:14px}.icon.signed-in{color:var(--accent-text)}@media(min-width:600px){.sheet{margin:auto;border-radius:16px;padding-bottom:20px}}.curve{display:block;width:100%;max-width:280px;margin:12px auto;aspect-ratio:1}.curve-grid line{stroke:var(--line);stroke-width:1}.curve-ref{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;opacity:.6}.curve-line{fill:none;stroke:var(--text);stroke-width:2;stroke-linejoin:round}@media(orientation:landscape)and (max-height:520px){.top{height:calc(44px + env(safe-area-inset-top))}.workspace{flex-direction:row}.inspector{flex-direction:row;border-top:0;border-left:.5px solid var(--line);padding-right:env(safe-area-inset-right)}.inspector .panel{order:2;width:270px;height:auto;max-height:none;padding-top:4px}.tabs{order:1;flex-direction:column;justify-content:safe center;width:64px;padding:2px 4px;border-top:0;border-right:.5px solid var(--line);overflow-y:auto}.tab{flex:0 0 auto;height:41px;gap:1px;font-size:9.5px}.tab svg{width:19px;height:19px}}@media(min-width:900px)and (min-height:521px){.brand{display:block}.workspace{flex-direction:row}.stage{background:var(--stage)}.photo{box-shadow:0 20px 50px #00000040}.inspector{flex:0 0 380px;border-top:0;border-left:.5px solid var(--line);padding-top:8px;background:var(--bg)}.inspector .panel{order:2;flex:1;height:auto;max-height:none}.tabs{order:1;margin:4px 16px;padding:2px;border-radius:9px;border-top:0;background:var(--raised)}.tab{height:32px;flex-direction:row;border-radius:7px;color:var(--text);font-size:11.5px;letter-spacing:-.02em}.tab svg{display:none}.tab.active{color:var(--text);background:var(--card);box-shadow:0 3px 8px #0000001f,0 1px 1px #0000000a}}.tool .swatch,.single-label .swatch{margin-right:0}.pro-card .option-hint{margin:8px 0 2px}.lang-select{min-height:36px;max-width:60%;padding:0 12px;border:0;border-radius:9px;background:var(--fill, rgba(120, 120, 128, .16));color:var(--text);font:inherit;font-size:15px}
