:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Helvetica Neue,Arial,sans-serif;color:#1d1d1f;background:#f5f5f7;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f5f5f7}button,input{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app-shell{min-height:100vh;background:#f5f5f7}.topbar{height:68px;padding:0 4vw;border-bottom:1px solid #e3e3e8;display:flex;align-items:center;justify-content:space-between;background:#ffffffd1;-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);position:sticky;top:0;z-index:5}.brand,.topbar-actions,.local-pill,.workflow-legend,.workflow-legend span,.panel-kicker,.fingerprint-header,.privacy-note,.batch-note,.fine-tune-hint,.app-footer span,.preview-caption>span,.compare-toggle,.toolbar-label,.control-title span,.target-info,.download-all{display:flex;align-items:center}.brand{gap:10px;font-size:19px;font-weight:700;letter-spacing:-.04em}.brand-mark{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;color:#fff;background:#007aff;box-shadow:0 2px 8px #007aff3d}.brand-divider{width:1px;height:18px;background:#d4d4d8;margin-left:6px}.brand-context{color:#86868b;font-size:12px;font-weight:500}.topbar-actions{gap:12px}.local-pill{gap:6px;color:#6e6e73;font-size:11px}.local-pill svg{color:#34a853}.icon-button{display:grid;place-items:center;background:transparent;color:#6e6e73;padding:7px}.icon-button:hover{color:#007aff}.workspace{width:min(1510px,92vw);margin:0 auto;padding:48px 0 28px}.workspace-intro{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;margin-bottom:28px}.eyebrow,.panel-kicker{color:#6e6e73;font-size:11px;font-weight:600;letter-spacing:.02em}.workspace-intro h1{font-size:clamp(30px,4vw,48px);letter-spacing:-.055em;line-height:1.02;margin:9px 0 13px;max-width:680px;font-weight:700}.intro-copy{margin:0;color:#6e6e73;max-width:610px;font-size:15px;line-height:1.55}.workflow-legend{gap:19px;color:#86868b;font-size:12px;white-space:nowrap}.workflow-legend span{gap:6px}.workflow-legend svg{color:#34a853}.workflow-legend b{color:#8e8e93;font-size:10px;font-weight:600;background:#e9e9ed;border-radius:5px;padding:4px 5px}.editor-grid{display:grid;grid-template-columns:minmax(235px,288px) minmax(420px,1fr) minmax(235px,288px);gap:16px;align-items:stretch}.side-panel,.preview-panel,.fine-tune-section{border:1px solid #e5e5ea;background:#ffffffe6;box-shadow:0 10px 28px #0000000e;border-radius:18px}.side-panel{padding:20px;min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel-heading h2,.fine-tune-heading h2{margin:7px 0 0;font-size:19px;letter-spacing:-.035em;font-weight:650}.count-badge{color:#6e6e73;background:#f2f2f7;border-radius:99px;padding:5px 8px;font-size:10px;font-weight:600}.panel-copy{color:#6e6e73;font-size:12px;line-height:1.55;margin:14px 0 17px}.upload-zone{border:1px dashed #c7c7cc;background:#fafafa;min-height:126px;padding:17px 13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;border-radius:14px;transition:.2s ease}.upload-zone:hover,.upload-zone.is-dragging{border-color:#007aff;background:#f0f7ff;transform:translateY(-1px)}.upload-zone input{display:none}.upload-zone strong{font-size:13px;font-weight:600}.upload-zone>span:last-child{color:#86868b;font-size:11px}.upload-icon{width:32px;height:32px;display:grid;place-items:center;color:#007aff;background:#eaf3ff;border-radius:9px}.thumb-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px}.thumb-card{position:relative;aspect-ratio:1;overflow:hidden;background:#e5e5ea;border-radius:8px}.thumb-card img,.target-item img{width:100%;height:100%;object-fit:cover;display:block}.thumb-remove{position:absolute;top:4px;right:4px;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;color:#1d1d1f;background:#ffffffe0}.fingerprint-card{border:1px solid #e5e5ea;background:#fafafa;padding:14px;margin-top:16px;border-radius:13px}.fingerprint-card.is-ready{border-color:#c9dcf5;background:#f5f9ff}.fingerprint-header{gap:8px;color:#1d1d1f;font-size:12px;font-weight:600}.fingerprint-icon{color:#007aff;display:grid;place-items:center}.fingerprint-header .spin{margin-left:auto;color:#007aff}.fingerprint-card>p{margin:11px 0 0;color:#86868b;line-height:1.5;font-size:11px}.fingerprint-summary{display:flex;align-items:center;gap:7px;margin:15px 0 11px;color:#1d1d1f;font-size:11px;font-weight:600}.summary-dot{width:7px;height:7px;border-radius:50%;background:#34a853;box-shadow:0 0 0 4px #34a8531f}.tag-list{display:flex;gap:5px;flex-wrap:wrap}.tag-list span{display:inline-flex;align-items:center;gap:4px;padding:6px 7px;border-radius:7px;background:#eaf3ff;color:#2367a9;font-size:9px}.privacy-note{gap:7px;color:#86868b;font-size:10px;line-height:1.5;margin-top:16px;align-items:flex-start}.privacy-note svg{flex:0 0 auto;margin-top:2px;color:#34a853}.preview-panel{min-width:0;display:flex;flex-direction:column;background:#fff;overflow:hidden}.preview-toolbar{padding:17px 18px;border-bottom:1px solid #e5e5ea;display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar-label{gap:13px}.toolbar-label .panel-kicker{white-space:nowrap}.preview-status{color:#6e6e73;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.mode-switch{display:flex;gap:2px;background:#f2f2f7;padding:3px;border-radius:9px}.mode-switch button{color:#6e6e73;background:transparent;border-radius:7px;padding:7px 9px;font-size:10px}.mode-switch button.active{color:#fff;background:#007aff;box-shadow:0 2px 5px #007aff38}.preview-stage{position:relative;flex:1;min-height:440px;margin:16px;border-radius:13px;background:#f2f2f7;display:grid;place-items:center;overflow:hidden}.preview-stage:before{content:"";position:absolute;inset:0;opacity:.38;background-image:radial-gradient(#d9d9df 1px,transparent 1px);background-size:18px 18px}.preview-stage img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;position:relative;z-index:1}.preview-empty{position:relative;z-index:1;max-width:270px;text-align:center}.empty-orbit{margin:0 auto 15px;border:1px solid #c7c7cc;color:#007aff;width:63px;height:63px;border-radius:18px;display:grid;place-items:center;background:#fffc;box-shadow:0 6px 18px #0000000f}.preview-empty h3{margin:0 0 8px;font-size:16px}.preview-empty p{margin:0;color:#86868b;font-size:12px;line-height:1.5}.processing-overlay{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:#fff9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#1d1d1f;font-size:12px}.processing-overlay svg{color:#007aff}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.preview-caption{position:absolute;z-index:3;bottom:14px;left:15px;right:15px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#6e6e73;font-size:10px}.preview-caption>span{gap:6px}.status-dot{width:6px;height:6px;border-radius:50%;background:#34a853}.compare-toggle{gap:6px;padding:7px 10px;color:#007aff;background:#ffffffeb;border:1px solid #c7dff9;border-radius:8px;font-size:10px}.compare-toggle.active{background:#007aff;color:#fff;border-color:#007aff}.preview-footer{display:flex;gap:25px;align-items:center;padding:15px 18px;border-top:1px solid #e5e5ea}.match-control{flex:1}.control-title{display:flex;justify-content:space-between;align-items:center;color:#1d1d1f;font-size:12px}.control-title span{gap:7px}.control-title svg{color:#007aff}.control-title strong{font-size:11px;color:#007aff}.match-control input,.slider-row input{width:100%;accent-color:#007aff;height:4px;cursor:pointer}.control-scale,.slider-caption{display:flex;justify-content:space-between;color:#86868b;font-size:9px}.preview-size{border-left:1px solid #e5e5ea;padding-left:24px;min-width:118px}.preview-size span{display:block;color:#86868b;font-size:9px}.preview-size b{display:block;color:#1d1d1f;margin-top:4px;font-size:10px;font-weight:600}.target-list{display:grid;gap:5px;margin-top:13px}.target-item{width:100%;display:flex;align-items:center;gap:9px;padding:5px;text-align:left;color:#1d1d1f;background:#fafafa;border:1px solid transparent;border-radius:10px}.target-item:hover,.target-item.selected{border-color:#b8d7f8;background:#f1f7ff}.target-item img{width:34px;height:39px;flex:0 0 auto;border-radius:6px}.target-info{min-width:0;flex:1;display:block}.target-info strong,.target-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.target-info strong{font-size:11px;font-weight:600}.target-info small{color:#86868b;margin-top:4px;font-size:9px}.target-state{flex:0 0 auto;color:#007aff}.target-state.done{color:#34a853}.remove-target{flex:0 0 auto;color:#86868b;background:transparent;padding:6px}.remove-target:hover{color:#ff3b30}.download-all{justify-content:center;gap:8px;width:100%;margin-top:14px;padding:11px 8px;color:#fff;background:#007aff;border-radius:10px;font-size:11px;font-weight:600}.download-all:hover:not(:disabled){background:#006fe6}.batch-note{gap:8px;align-items:flex-start;color:#86868b;font-size:10px;line-height:1.5;margin-top:16px}.batch-note svg{flex:0 0 auto;color:#007aff}.fine-tune-section{padding:20px;margin-top:16px}.fine-tune-heading{display:flex;justify-content:space-between;align-items:center}.fine-tune-hint{gap:6px;color:#86868b;font-size:10px}.fine-tune-hint svg{color:#ff9500}.slider-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:23px}.slider-heading{display:flex;justify-content:space-between;align-items:center;color:#1d1d1f;font-size:12px}.slider-heading output{color:#007aff;font-size:10px}.slider-row input{display:block;margin:12px 0 7px}.slider-caption{font-size:9px}.slider-row.warm input{accent-color:#ff9500}.slider-row.soft input{accent-color:#af52de}.slider-row.film input{accent-color:#8e8e93}.slider-row.color input{accent-color:#34c759}.app-footer{display:flex;justify-content:space-between;gap:20px;padding:22px 1px 0;color:#86868b;font-size:10px}.app-footer span{gap:6px}.app-footer svg{color:#007aff}.toast{position:fixed;right:22px;bottom:22px;display:flex;align-items:center;gap:8px;background:#1d1d1f;color:#fff;border-radius:10px;padding:12px 15px;font-size:11px;font-weight:600;box-shadow:0 15px 40px #0003}@media(max-width:1120px){.editor-grid{grid-template-columns:248px minmax(380px,1fr)}.target-panel{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.target-panel .panel-heading,.target-panel .panel-copy,.target-panel .upload-zone{grid-column:1}.target-panel .target-list,.target-panel .download-all,.target-panel .batch-note{grid-column:2}.target-panel .target-list{margin-top:0}.target-panel .download-all{margin-top:10px}.target-panel .batch-note{margin-top:8px}}@media(max-width:780px){.topbar{height:64px;padding:0 5vw}.brand-context,.brand-divider,.local-pill{display:none}.workspace{width:90vw;padding-top:34px}.workspace-intro{display:block}.workflow-legend{margin-top:23px;flex-wrap:wrap;gap:11px 18px}.editor-grid{display:flex;flex-direction:column}.reference-panel{order:2}.preview-panel{order:1}.target-panel{order:3;display:block}.target-panel .target-list{margin-top:13px}.target-panel .download-all{margin-top:14px}.preview-stage{min-height:420px}.preview-toolbar{align-items:flex-start;flex-direction:column}.mode-switch{width:100%}.mode-switch button{flex:1}.preview-footer{align-items:stretch;flex-direction:column}.preview-size{border-left:0;border-top:1px solid #e5e5ea;padding:12px 0 0}.slider-grid{grid-template-columns:repeat(2,1fr);gap:22px 18px}.app-footer{flex-direction:column;gap:8px}}@media(max-width:420px){.workspace-intro h1{font-size:31px}.side-panel,.fine-tune-section{padding:16px}.preview-caption{align-items:flex-end;flex-direction:column}.slider-grid{grid-template-columns:1fr}.preview-stage{min-height:360px}}.local-pill svg,.workflow-legend svg,.privacy-note svg{color:#007aff}.summary-dot,.status-dot{background:#007aff;box-shadow:0 0 0 4px #007aff1f}.target-state.done{color:#007aff}.slider-row.color input{accent-color:#5e5ce6}.step-item{gap:6px}.step-item b,.step-number{display:inline-grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#007aff;background:#eaf3ff;font-size:10px;font-weight:700}.panel-kicker .step-number{width:18px;height:18px;margin-right:5px;vertical-align:-4px}.match-report{padding:0 18px 18px;border-top:1px solid #e5e5ea}.match-report-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 13px}.match-report-heading h3{margin:5px 0 0;font-size:15px;letter-spacing:-.025em}.match-report-heading>strong{color:#007aff;font-size:11px;font-weight:650}.match-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.match-card{border:1px solid #e5e5ea;border-radius:11px;background:#fafafa;padding:10px}.match-card-top{display:flex;justify-content:space-between;gap:6px}.match-card-top strong,.match-card-top span{display:block}.match-card-top strong{font-size:11px}.match-card-top span{margin-top:3px;color:#86868b;font-size:9px}.match-card-top b{color:#007aff;font-size:12px}.match-patches{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:10px}.patch{display:block;aspect-ratio:1.35;border-radius:5px;border:1px solid rgba(0,0,0,.08)}.patch.matched{box-shadow:inset 0 0 0 2px #ffffff73}.match-card-foot{display:flex;justify-content:space-between;margin-top:5px;color:#86868b;font-size:7px}.match-meter{height:4px;margin-top:10px;border-radius:99px;overflow:hidden;background:#e5e5ea}.match-meter span{display:block;height:100%;border-radius:inherit;background:#007aff}.match-empty{margin:0;padding:12px;border-radius:9px;color:#86868b;background:#fafafa;font-size:11px;line-height:1.45}.save-hint{margin:9px 0 0;color:#86868b;font-size:10px;line-height:1.45;text-align:center}.fingerprint-summary>span:last-child{display:block}.fingerprint-summary strong,.fingerprint-summary small{display:block}.fingerprint-summary small{margin-top:3px;color:#6e6e73;font-size:10px;font-weight:400;line-height:1.35}.fingerprint-confidence{margin:14px 0 13px}.fingerprint-confidence>div{display:flex;justify-content:space-between;align-items:center;color:#6e6e73;font-size:9px}.fingerprint-confidence strong{color:#007aff;font-size:10px}.confidence-track,.definition-track{display:block;height:4px;overflow:hidden;border-radius:99px;background:#e1e5eb}.confidence-track{margin-top:7px}.confidence-track>span,.definition-track>span{display:block;height:100%;border-radius:inherit;background:#007aff}.fingerprint-definitions{display:grid;gap:10px;margin-top:14px;padding-top:13px;border-top:1px solid #dbe6f3}.definition-top{display:flex;justify-content:space-between;gap:8px}.definition-top strong,.definition-top small{display:block}.definition-top strong{color:#1d1d1f;font-size:10px}.definition-top small{margin-top:3px;color:#6e6e73;font-size:9px;line-height:1.35}.definition-top b{flex:0 0 auto;color:#007aff;font-size:9px}.definition-track{height:3px;margin-top:6px}.definition-track>span{background:#5e5ce6}@media(max-width:920px){.match-cards{grid-template-columns:1fr}.match-card{display:grid;grid-template-columns:1fr 118px;column-gap:10px;align-items:center}.match-card-top{grid-column:1}.match-patches{grid-column:2;grid-row:1 / span 3;margin:0}.match-card-foot{grid-column:2;grid-row:3}.match-meter{grid-column:1}}@media(max-width:780px){.workspace{width:calc(100% - 24px);padding-top:24px}.workspace-intro{margin-bottom:18px}.workspace-intro h1{font-size:30px;line-height:1.08;margin:8px 0 10px}.intro-copy{font-size:14px;line-height:1.45}.workflow-legend{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px;white-space:normal}.workflow-legend .step-item{gap:8px;min-height:38px;padding:8px 10px;color:#6e6e73;background:#fff;border:1px solid #e5e5ea;border-radius:10px}.editor-grid{gap:12px}.reference-panel{order:1}.target-panel{order:2}.preview-panel{order:3}.side-panel{padding:16px;border-radius:16px}.panel-heading h2,.fine-tune-heading h2{font-size:18px}.panel-copy{margin:10px 0 13px;font-size:12px;line-height:1.45}.upload-zone{min-height:110px;padding:14px 10px}.fingerprint-card{margin-top:12px}.privacy-note,.batch-note{margin-top:12px;font-size:10px}.target-panel .target-list{margin-top:10px}.target-panel .download-all{margin-top:12px}.preview-toolbar{padding:14px 16px}.preview-stage{min-height:340px;margin:12px}.preview-footer{padding:14px 16px}.match-report{padding:0 16px 16px}.fine-tune-section{margin-top:12px;padding:16px}}@media(max-width:420px){.workspace-intro h1{font-size:28px}.workflow-legend .step-item{font-size:11px}.preview-stage{min-height:300px}}.preview-controls{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.mode-switch,.effect-toggles{max-width:100%;overflow-x:auto;scrollbar-width:none}.mode-switch::-webkit-scrollbar{display:none}.effect-toggles::-webkit-scrollbar{display:none}.mode-switch button{flex:0 0 auto;white-space:nowrap}.effect-toggles{display:flex;align-items:center;gap:6px;padding:0;background:transparent}.effect-toggle{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:5px 7px 5px 10px;color:#6e6e73;background:#fff;border:1px solid #e5e5ea;border-radius:999px;font-size:10px;white-space:nowrap}.effect-toggle.active{color:#1d1d1f;border-color:#b8d7f8;background:#f5f9ff}.toggle-track{display:inline-flex;align-items:center;width:25px;height:15px;padding:2px;background:#d2d2d7;border-radius:99px;transition:.18s ease}.toggle-thumb{display:block;width:11px;height:11px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .18s ease}.effect-toggle.active .toggle-track{background:#007aff}.effect-toggle.active .toggle-thumb{transform:translate(10px)}.match-report-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.match-report-actions>strong{color:#007aff;font-size:11px;font-weight:650;white-space:nowrap}.check-match-button{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;color:#007aff;background:#eaf3ff;border:1px solid #c7dff9;border-radius:8px;font-size:10px;font-weight:650;white-space:nowrap}.check-match-button:hover:not(:disabled){background:#dceeff}.target-item:focus-visible,.upload-zone:focus-visible,.check-match-button:focus-visible,.mode-switch button:focus-visible{outline:3px solid rgba(0,122,255,.22);outline-offset:2px}@media(max-width:780px){.preview-controls{width:100%;align-items:stretch;flex-direction:column}.mode-switch,.effect-toggles{width:100%;justify-content:flex-start}.match-report-heading{align-items:flex-start;flex-direction:column}.match-report-actions{width:100%;justify-content:space-between}}
