:root{font-family:Noto Sans TC,sans-serif;color:#171c26;background:#edf0f4;font-synthesis:none;--navy:#07366c;--primary:#0752b8;--line:#d3dbe6;--muted:#576171}*{box-sizing:border-box}body{margin:0;min-width:360px;min-height:100vh;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,select,input{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #306bdd}button{transition:background .15s,border-color .15s}button:hover:not(:disabled){filter:brightness(.97)}h1,h2,p{margin:0}button svg{flex:none}button:disabled:hover{filter:none}.app-header{height:82px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:28px}.brand-logo{width:100px;height:auto;filter:brightness(0) saturate(100%) invert(14%) sepia(53%) saturate(2676%) hue-rotate(193deg) brightness(91%) contrast(98%)}.brand-divider{height:35px;width:1px;background:#aab7c8}.brand h1{font-size:30px;letter-spacing:.01em;font-weight:750}.help-button{display:flex;gap:10px;align-items:center;border:0;color:var(--navy);background:none;font-weight:600;font-size:20px;padding:10px 0}.editor{display:grid;grid-template-columns:27.15% minmax(0,1fr);min-height:calc(100vh - 82px)}.settings{padding:32px 26px 40px;background:#fff;border-right:1px solid var(--line)}.column-options{border:0;margin:0;padding:0;min-width:0}.column-options legend,.photo-settings h2{font-size:26px;font-weight:750;margin-bottom:22px;padding:0}.preset-list{display:flex;flex-direction:column;gap:6px}.preset{display:flex;align-items:center;gap:15px;min-height:54px;border:1px solid #ccd5e1;border-radius:8px;padding:10px 16px;cursor:pointer;background:#fff;transition:background .15s,border-color .15s}.preset:hover{background:#f4f8fc}.preset.selected{background:#e0effc;border-color:#b6d0ec}.preset:focus-within{outline:2px solid #3978ce;outline-offset:2px}.preset input{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;width:21px;height:21px;flex:none;accent-color:#0758bc;margin:0}.preset input:focus-visible{outline:none}.preset-title{font-weight:650;white-space:nowrap;font-size:21px}.preset-author{margin-left:auto;white-space:nowrap;font-size:20px;font-weight:400}.custom-preset{gap:12px}.custom-preset .preset-title{letter-spacing:.03em}.custom-fields{display:grid;gap:12px;margin-top:18px}.custom-fields label{display:grid;gap:6px;color:#3a485c;font-size:15px;font-weight:600}.custom-fields input{width:100%;height:44px;border:1px solid #bac7d6;border-radius:6px;padding:8px 10px;color:#172537;background:#fff}.photo-settings{border-top:1px solid #bfcbd9;margin-top:29px;padding-top:20px}.photo-settings h2{margin-bottom:22px}.file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.drop-zone{width:100%;min-height:152px;border:1.5px dashed #9caec2;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--navy);background:#fafbfd;padding:18px 8px}.drop-zone svg{color:#8b96a6;margin-bottom:4px}.drop-zone strong{font-size:19px;font-weight:600;white-space:nowrap}.drop-zone>span{font-size:17px;color:#6c7788}.drop-zone.drop-active{background:#e0effc;border-color:#0752b8}.file-row{border:1px solid #ccd6e3;border-radius:9px;display:flex;align-items:center;gap:12px;margin-top:18px;padding:10px;min-height:72px}.file-row img{width:50px;height:50px;object-fit:cover;border-radius:5px}.file-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.file-row button{border:1px solid #aebed1;border-radius:7px;white-space:nowrap;background:#fff;padding:7px 9px;font-size:14px;color:#172637}.workspace{min-width:0;padding:33px 34px 14px;background:#edf0f4;align-self:start}.preview-heading{display:flex;align-items:center;gap:24px;margin:0 7px 28px}.preview-heading h2{font-size:31px;font-weight:750;white-space:nowrap}.heading-divider{height:27px;width:1px;background:#a4b1c2}.preview-heading>span:last-child{font-size:20px;font-weight:500;color:var(--muted);white-space:nowrap}.preview-wrap{width:100%;position:relative;aspect-ratio:1270/720;background:#e0e7f0}.preview-wrap canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.preview-wrap.dragging canvas{cursor:grabbing}.preview-loading{position:absolute;top:0;right:0;bottom:0;left:0;background:#e4eaf1;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--navy);padding:24px;text-align:center}.drag-hint{display:flex;align-items:center;gap:13px;font-size:20px;font-weight:500;color:#596475;padding:18px 10px 0}.keyboard-hint{font-size:15px;font-weight:400;color:#667183}.adjustments{display:flex;align-items:center;gap:22px;margin-top:27px;padding:22px 26px;border:1px solid #d6dde7;border-radius:12px;background:#fff;min-height:86px}.adjustments>label{font-weight:600;font-size:21px}.icon-button{width:44px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid #bccadd;border-radius:8px;color:#193153;background:#fff;flex:none}.adjustments input[type=range]{width:100%;min-width:50px;flex:1;accent-color:#0752b8;height:26px;cursor:pointer;margin:0}.adjustments output{font-size:23px;font-weight:600;min-width:63px;font-variant-numeric:tabular-nums}.adjustment-divider{height:38px;width:1px;background:#c5cfdd;margin:0 3px}.reset-button{border:0;display:flex;align-items:center;gap:12px;background:transparent;padding:0;color:var(--navy);font-weight:600;font-size:20px;white-space:nowrap}.download-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #becad8;margin-top:30px;padding-top:23px}.output-size{font-size:21px;font-weight:500;color:var(--muted);white-space:nowrap}.download-actions{display:flex;gap:28px;align-items:center}.download-actions select{font-size:24px;font-weight:500;border:1px solid #adbed3;background:#fff;color:#172334;border-radius:9px;min-width:144px;height:58px;padding:8px 20px}.download-button{display:flex;align-items:center;justify-content:center;gap:16px;border:1px solid #07366c;background:#084581;color:#fff;border-radius:8px;font-size:25px;font-weight:650;min-height:62px;padding:13px 43px;white-space:nowrap}.download-button:hover:not(:disabled){background:#06366b}.error-message{display:flex;align-items:center;gap:8px;color:#9e351e;font-size:15px;margin-top:16px}.status-message{min-height:28px;display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:14px;color:#1a6349;margin-top:10px;visibility:hidden}.status-message.visible{visibility:visible}.help-dialog{border:1px solid #c1cddd;border-radius:16px;padding:30px;max-width:600px;width:calc(100vw - 32px);max-height:85vh;color:#1c2839;box-shadow:0 20px 80px #10243c33}.help-dialog::backdrop{background:#172b465e}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-header h2{font-size:25px;color:var(--navy)}.help-dialog ol{padding-left:24px;margin-top:24px}.help-dialog li{padding-left:6px;margin:18px 0;font-size:16px}.help-dialog li::marker{font-weight:700;color:#0752b8}.help-dialog p{color:#596575;line-height:1.8;margin:6px 0}.dialog-done{width:100%;font-size:18px;min-height:48px;margin-top:24px}.status-message{position:fixed;right:28px;bottom:16px;z-index:5;margin:0;min-height:0;padding:10px 16px;background:#f0faf5;border:1px solid #a7d3bd;border-radius:8px;box-shadow:0 3px 12px #173c2410;pointer-events:none}.status-message:not(.visible){display:none}.drop-zone{position:relative;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.drop-zone:focus-within{outline:3px solid #306bdd;outline-offset:4px}.drop-zone .file-input{top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;cursor:pointer;z-index:1}.drop-zone>svg,.drop-zone>strong,.drop-zone>span{pointer-events:none}.photo-hint{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.5}.preview-loading{flex-direction:column;gap:12px}.preview-loading small{font-size:13px}.retry-button{min-height:44px;border:1px solid var(--primary);border-radius:7px;padding:8px 20px;background:#fff;color:var(--primary);font-weight:600}@media(min-width:1251px){.brand h1{font-size:32px}.help-button{font-size:21px}.column-options legend{font-size:28px;margin-bottom:26px}.photo-settings h2{font-size:28px}.preset{min-height:56px}.preset-title{font-size:22px;font-weight:700}.preset-author{font-size:21px}.file-row{min-height:80px}.drop-zone{min-height:157px}.drop-zone strong{font-size:20px}.download-button{font-size:26px}}@media(min-width:1600px){.editor{grid-template-columns:400px minmax(0,1fr)}.workspace{max-width:1420px;width:100%;justify-self:center}}@media(max-width:1250px){.app-header{height:72px;padding:0 24px}.brand{gap:20px}.brand h1{font-size:26px}.brand-logo{width:86px}.help-button{font-size:17px}.editor{grid-template-columns:300px minmax(0,1fr);min-height:calc(100vh - 72px)}.settings{padding:25px 18px}.column-options legend,.photo-settings h2{font-size:23px;margin-bottom:18px}.preset{min-height:48px;gap:10px;padding:8px 10px}.preset-title{font-size:18px}.preset-author{font-size:17px}.preset input{width:18px;height:18px}.workspace{padding:26px 25px 10px}.preview-heading{gap:16px;margin:0 0 22px}.preview-heading h2{font-size:26px}.preview-heading>span:last-child{font-size:16px}.drop-zone strong{font-size:16px}.file-row{gap:8px}.file-row img{width:38px;height:38px}.file-row>span{font-size:13px}.file-row button{font-size:12px;padding:6px}.adjustments{gap:14px;padding:18px}.adjustments>label,.reset-button{font-size:17px}.adjustments output{font-size:18px;min-width:48px}.adjustment-divider{margin:0}.icon-button{width:36px;height:36px}.drag-hint{font-size:17px}.keyboard-hint{font-size:13px}.download-actions{gap:16px}.download-actions select{font-size:19px;min-width:100px;height:50px;padding:6px 12px}.download-button{font-size:21px;min-height:52px;padding:10px 26px}.output-size{font-size:16px}.download-bar{gap:12px}.drop-zone{min-height:135px}}@media(max-width:1000px){.editor{grid-template-columns:270px minmax(0,1fr)}.settings{padding:24px 14px}.preset-title{font-size:17px}.preset-author{font-size:16px}.workspace{padding:25px 18px}.preview-heading{flex-wrap:wrap;gap:8px 15px}.preview-heading h2{font-size:23px}.preview-heading>span:last-child{font-size:14px}.adjustments{gap:10px;padding:15px 12px;flex-wrap:wrap}.adjustments input[type=range]{flex-basis:100px}.reset-button{margin-left:auto;font-size:15px}.adjustment-divider,.keyboard-hint{display:none}.output-size{font-size:14px}.download-actions{gap:10px}.download-button{font-size:18px;padding:10px 17px;gap:8px}.download-actions select{min-width:84px;font-size:17px;padding:6px 8px}.file-row{flex-wrap:wrap}.file-row>span{min-width:100px}.file-row button{margin-left:auto}.drag-hint{font-size:15px;gap:8px}}@media(max-width:760px){.app-header{height:66px;padding:0 16px}.brand{gap:13px}.brand-logo{width:68px}.brand-divider{height:25px}.brand h1{font-size:20px}.help-button{padding:8px}.help-button span{display:none}.editor{display:flex;flex-direction:column;min-height:calc(100vh - 66px)}.settings{border-right:0;border-bottom:1px solid var(--line);padding:22px 18px}.column-options legend{font-size:20px;margin-bottom:14px}.preset-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset{min-height:48px;gap:8px;flex-wrap:wrap;padding:9px 10px}.preset-title{font-size:16px}.preset-author{font-size:14px}.custom-preset{grid-column:1/-1;min-height:42px}.custom-fields{grid-template-columns:1fr 1fr}.photo-settings{margin-top:20px;padding-top:16px}.photo-settings h2{font-size:20px;margin-bottom:12px}.drop-zone{min-height:100px;gap:4px;padding:12px}.drop-zone svg{width:28px;height:28px;margin-bottom:2px}.drop-zone strong{font-size:16px}.drop-zone>span{font-size:13px}.file-row{min-height:55px;padding:8px;margin-top:12px}.file-row button{font-size:13px}.workspace{width:100%;padding:22px 16px 10px}.preview-heading h2{font-size:23px}.preview-heading{margin-bottom:18px}.preview-heading>span:last-child{font-size:14px}.heading-divider{height:22px}.drag-hint{padding:12px 2px 0;font-size:15px}.keyboard-hint{display:none}.adjustments{margin-top:18px;min-height:72px}.adjustments input[type=range]{min-width:50px;flex-basis:80px}.adjustments>label{font-size:16px}.reset-button{font-size:15px;gap:6px}.download-bar{margin-top:22px;padding-top:18px;flex-wrap:wrap;justify-content:flex-end}.output-size{margin-right:auto;font-size:14px}.download-actions{gap:10px}.download-button{font-size:18px;min-height:50px;padding:10px 20px}.status-message{font-size:13px}.help-dialog{padding:22px}.dialog-header h2{font-size:21px}}@media(max-width:430px){.preset{gap:7px}.preset input{width:16px;height:16px}.preset-title{font-size:15px}.preset-author{font-size:13px}.app-header{padding:0 12px}.brand{gap:10px}.brand h1{font-size:18px}.brand-logo{width:62px}.workspace,.settings{padding-inline:12px}.adjustments{gap:10px}.adjustments .reset-button{width:100%;justify-content:center;border-top:1px solid #e1e6ee;padding-top:12px;margin-top:2px}.download-bar{gap:14px}.download-actions{width:100%;justify-content:space-between}.download-button{flex:1}.custom-fields{grid-template-columns:1fr}}@media(min-width:1001px)and (max-height:900px){.app-header{height:64px;padding-inline:24px}.brand h1{font-size:25px}.brand-logo{width:84px}.help-button{font-size:17px}.editor{min-height:calc(100vh - 64px)}.settings{padding:18px 20px}.column-options legend,.photo-settings h2{font-size:21px;line-height:1.4;margin-bottom:14px}.preset-list{gap:4px}.preset{min-height:40px;padding:6px 12px;gap:10px}.preset-title{font-size:18px}.preset-author{font-size:17px}.preset input{width:18px;height:18px}.photo-settings{margin-top:20px;padding-top:16px}.drop-zone{min-height:105px;padding:10px;gap:4px}.drop-zone svg{width:28px;height:28px;margin:0}.drop-zone strong{font-size:16px}.drop-zone>span{font-size:14px}.file-row{min-height:56px;padding:8px;gap:8px;margin-top:12px}.file-row img{width:38px;height:38px}.file-row>span{font-size:14px}.file-row button{font-size:12px}.workspace{padding:20px 24px 8px;width:100%;max-width:calc((100dvh - 338px)*1.76389 + 48px);justify-self:center}.preview-heading{gap:15px;margin:0 0 14px}.preview-heading h2{font-size:24px;line-height:1.25}.preview-heading>span:last-child{font-size:16px}.heading-divider{height:24px}.drag-hint{padding:12px 4px 0;font-size:15px;line-height:22px;gap:8px}.drag-hint svg{width:22px;height:22px}.keyboard-hint{font-size:12px}.adjustments{margin-top:14px;padding:12px 16px;gap:13px;min-height:60px}.adjustments>label,.reset-button{font-size:16px}.icon-button{width:34px;height:34px}.adjustments output{font-size:18px;min-width:49px}.reset-button{gap:8px}.reset-button svg{width:23px;height:23px}.adjustment-divider{height:30px;margin:0}.download-bar{margin-top:18px;padding-top:14px;gap:12px}.output-size{font-size:15px}.download-actions{gap:14px}.download-actions select{font-size:18px;height:48px;min-width:100px;padding:6px 12px}.download-button{font-size:20px;min-height:50px;padding:9px 26px;gap:10px}}
