/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.start{inset-inline-start:var(--spacing)}.grid{display:grid}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}}:root{--ink:#171814;--muted:#707268;--paper:#f5f4ed;--surface:#fff;--line:#dcded2;--accent:#d9ff57;--accent-strong:#c8f43c;--danger:#a93228;--workspace-max:1560px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--paper);color:var(--ink);margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}button{color:inherit}:is(button:focus-visible,input:focus-visible,a:focus-visible){outline-offset:3px;outline:3px solid #7b9cff}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{min-height:100vh;padding-bottom:36px}.topbar{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:20;background:#f5f4edeb;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;min-height:72px;padding:0 3vw;display:grid;position:sticky;top:0}.brand{color:var(--ink);letter-spacing:-.03em;align-items:center;gap:11px;font-size:18px;font-weight:800;text-decoration:none;display:inline-flex}.brand-mark{width:26px;height:26px;display:inline-block;position:relative}.brand-mark i{border:2px solid var(--ink);width:17px;height:17px;position:absolute}.brand-mark i:first-child{border-bottom:0;border-right:0;top:0;left:0}.brand-mark i:last-child{border-top:0;border-left:0;bottom:0;right:0}.topbar-note{color:var(--muted);margin:0;font-size:13px}.privacy-note{color:var(--muted);justify-self:end;font-size:12px}.privacy-note span{color:#7aa600;margin-right:6px;font-size:9px}.topbar-actions{justify-self:end;align-items:center;gap:16px;display:flex}.settings-trigger{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:4px;align-items:center;gap:7px;min-height:36px;padding:0 11px;font-size:11px;font-weight:750;display:inline-flex}.settings-trigger:hover{background:var(--accent);border-color:#badb45}.settings-trigger b{background:#e7e8df;border-radius:50%;place-items:center;min-width:19px;height:19px;font-size:9px;display:grid}.eyebrow{text-transform:uppercase;letter-spacing:.14em;color:#7a7c72;margin:0 0 10px;font-size:11px;font-weight:800}.uploader{width:100%}.start-workspace{width:min(var(--workspace-max),94vw);margin:0 auto;padding:38px 0 54px}.start-heading{justify-content:space-between;align-items:end;gap:30px;padding:0 2px 24px;display:flex}.start-heading h1{letter-spacing:-.055em;margin:0;font-size:clamp(30px,4vw,48px);line-height:1}.start-heading>div>p:last-child{color:var(--muted);margin:10px 0 0;font-size:13px}.workflow-steps{color:var(--muted);white-space:nowrap;align-items:center;gap:10px;font-size:10px;display:flex}.workflow-steps span{align-items:center;gap:6px;display:flex}.workflow-steps b{width:20px;height:20px;color:var(--ink);border:1px solid #c7c9bd;border-radius:50%;place-items:center;font-size:9px;display:grid}.workflow-steps i{background:var(--line);width:30px;height:1px}.start-grid{border:1px solid var(--line);background:var(--surface);grid-template-columns:minmax(0,1fr) 390px;min-height:570px;display:grid}.start-upload{border-right:1px solid var(--line);background:#fbfaf6;min-width:0;padding:22px}.start-ratios{flex-direction:column;min-width:0;padding:22px;display:flex}.section-title-row{justify-content:space-between;align-items:start;gap:16px;min-height:46px;margin-bottom:18px;display:flex}.section-title-row>div{align-items:start;gap:11px;min-width:0;display:flex}.section-number{background:var(--ink);color:#fff;flex:none;place-items:center;width:28px;height:28px;font-size:9px;font-weight:850;display:grid}.section-title-row h2{letter-spacing:-.03em;margin:0;font-size:17px}.section-title-row p{color:var(--muted);margin:5px 0 0;font-size:10px}.section-title-row>button{cursor:pointer;text-underline-offset:3px;background:0 0;border:0;padding:5px 0;font-size:10px;font-weight:800;text-decoration:underline}.local-badge{color:#5d6e1b;text-transform:uppercase;letter-spacing:.09em;background:#edf5d0;padding:5px 7px;font-size:8px;font-weight:850}.start-upload .uploader{border:1px solid var(--line);background:var(--surface);min-height:468px;padding:12px}.start-upload .upload-hit-area{min-height:442px}.start-ratio-list{gap:8px;max-height:420px;padding-right:3px;display:grid;overflow:auto}.start-ratio-row{border:1px solid var(--line);background:#faf9f5;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0;min-height:68px;padding:10px 11px;display:grid}.ratio-shape{background:#fff;border:2px solid #77796f;justify-self:center;width:28px;max-width:30px;max-height:36px;display:block}.start-ratio-row div{gap:4px;min-width:0;display:grid}.start-ratio-row strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.start-ratio-row span{color:var(--muted);font-size:9px}.start-ratio-row>b{letter-spacing:.04em;background:#e9eadf;border-radius:3px;padding:4px 6px;font-size:9px}.start-ratio-note{border-top:1px solid var(--line);color:var(--muted);margin:auto 0 0;padding-top:17px;font-size:10px;line-height:1.5}.upload-hit-area{cursor:pointer;background:#faf9f4;border:1px dashed #aaa99d;flex-direction:column;justify-content:center;align-items:center;width:100%;min-height:454px;transition:background .16s,border-color .16s,transform .16s;display:flex}.upload-hit-area:hover,.uploader.is-dragging .upload-hit-area{background:#f2f9d7;border-color:#6d7c28;transform:translateY(-2px)}.upload-icon{background:var(--accent);border-radius:50%;place-items:center;width:58px;height:58px;margin-bottom:25px;font-size:29px;display:grid}.upload-title{letter-spacing:-.02em;font-size:18px;font-weight:750}.upload-copy{color:var(--muted);margin-top:5px;font-size:14px}.upload-meta{color:#929388;letter-spacing:.03em;margin-top:66px;font-size:11px}.message{color:var(--muted);margin:12px 0 0;font-size:13px}.message--error{color:var(--danger)}.workspace-message{width:min(var(--workspace-max),94vw);margin:12px auto}.source-bar{width:min(var(--workspace-max),94vw);background:var(--surface);border:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;margin:24px auto 0;padding:12px 14px;display:flex}.source-details,.source-actions{align-items:center;gap:12px;display:flex}.source-thumb{border:1px solid var(--line);place-items:center;width:50px;height:50px;display:grid;overflow:hidden}.source-thumb img{max-width:100%;max-height:100%;display:block}.source-details p{color:var(--muted);margin:0;font-size:11px}.source-details .source-name{color:var(--ink);white-space:nowrap;text-overflow:ellipsis;max-width:38vw;margin-bottom:4px;font-size:13px;font-weight:750;overflow:hidden}.button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:4px;min-height:38px;padding:0 15px;font-size:12px;font-weight:700;transition:transform .14s,background .14s}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:not-allowed}.button--ghost{background:0 0}.button--copy{color:#fff;background:#22231f;border-color:#22231f}.button--primary{background:var(--accent);border-color:#bbdd43;justify-content:space-between;align-items:center;min-width:220px;min-height:54px;padding:0 19px;font-size:14px;display:inline-flex}.button--primary:hover:not(:disabled){background:var(--accent-strong)}.workspace-grid{width:min(var(--workspace-max),94vw);border:1px solid var(--line);background:var(--surface);grid-template-columns:minmax(0,1fr) 320px;min-height:620px;margin:24px auto 0;display:grid}.sources-panel{border-bottom:1px solid var(--line);background:var(--surface);grid-column:1/-1;grid-template-rows:auto auto;grid-template-columns:160px minmax(0,1fr) 220px;align-items:center;gap:5px 18px;min-width:0;padding:14px 18px;display:grid;overflow:hidden}.sources-heading{justify-content:space-between;align-items:end;gap:10px;display:flex}.sources-heading h2{letter-spacing:-.04em;margin:0;font-size:19px}.sources-heading>span{background:var(--accent);border-radius:50%;place-items:center;min-width:24px;height:24px;font-size:9px;font-weight:850;display:grid}.source-selection-actions{color:var(--muted);grid-area:2/1;justify-content:space-between;gap:8px;font-size:9px;display:flex}.source-selection-actions>div{gap:5px;display:flex}.source-selection-actions button{cursor:pointer;color:inherit;text-underline-offset:2px;background:0 0;border:0;padding:0;font-size:9px;text-decoration:underline}.source-items{grid-area:1/2/3;gap:7px;min-width:0;padding:3px 5px 7px;display:flex;overflow:auto hidden}.source-item{border:1px solid var(--line);background:#faf9f5;flex:0 0 205px;grid-template-columns:16px minmax(0,1fr) 24px;align-items:center;gap:6px;min-width:0;padding:6px;display:grid}.source-item.is-active{border-color:var(--ink);box-shadow:3px 3px 0 var(--accent)}.source-item>input{width:14px;height:14px;accent-color:var(--ink);margin:0}.source-activate{cursor:pointer;text-align:left;background:0 0;border:0;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:0;display:grid}.source-list-thumb{border:1px solid var(--line);place-items:center;width:38px;height:38px;display:grid;overflow:hidden}.source-list-thumb img{max-width:100%;max-height:100%;display:block}.source-list-copy{gap:3px;min-width:0;display:grid}.source-list-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.source-list-copy small{color:var(--muted);white-space:nowrap;font-size:7px}.source-activate>b{color:#aaa99f;font-size:7px}.source-remove{width:24px;height:28px;color:var(--danger);cursor:pointer;background:0 0;border:0;font-size:16px}.source-remove:disabled{opacity:.35;cursor:not-allowed}.source-panel-actions{border-left:1px solid var(--line);grid-area:1/3/3;gap:7px;padding-left:18px;display:grid}.source-panel-actions .button,.source-panel-actions .uploader{width:100%}.source-panel-actions .button{padding:0 8px;font-size:9px}.source-panel-actions>p{color:#5c7410;margin:1px 0 0;font-size:8px;line-height:1.4}.editor-panel{border-right:1px solid var(--line);background:#fbfaf6;min-width:0;padding:22px}.panel-heading{justify-content:space-between;align-items:end;gap:20px;display:flex}.panel-heading h1,.panel-heading h2{letter-spacing:-.04em;margin:0;line-height:1}.panel-heading h1{font-size:28px}.panel-heading h2{font-size:22px}.editor-heading>p{color:var(--muted);margin:0;font-size:11px}.editor-heading>p span{color:var(--ink);background:#ecece5;border-radius:3px;margin-left:5px;padding:3px 5px;font-size:9px;font-weight:800}.editor-viewport{background:#efeee8;border:1px solid #e2e1d9;justify-content:center;align-items:center;width:100%;height:clamp(390px,58vh,650px);margin-top:22px;display:flex;overflow:hidden}.editor-frame{touch-action:none;border:1px solid #aead9f;overflow:hidden;box-shadow:0 15px 45px #1c1d171f}.checkerboard{background-color:#fff;background-image:linear-gradient(45deg,#e8e8e2 25%,#0000 25%),linear-gradient(-45deg,#e8e8e2 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e8e8e2 75%),linear-gradient(-45deg,#0000 75%,#e8e8e2 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.drag-hint{text-align:center;color:var(--muted);margin:12px 0 0;font-size:11px}.drag-hint span{margin-right:5px;display:inline-block;transform:rotate(45deg)}.presets-panel{flex-direction:column;min-width:0;max-width:100%;max-height:760px;padding:16px;display:flex;overflow:hidden}.presets-panel .eyebrow{margin-bottom:6px}.preset-panel-header{justify-content:space-between;align-items:end;gap:12px;display:flex}.preset-panel-header h2{letter-spacing:-.04em;margin:0;font-size:19px;line-height:1}.preset-panel-controls{border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:8px;margin-top:12px;padding:8px 0;font-size:9px;display:flex}.selection-actions{color:var(--muted);align-items:center;gap:6px;font-size:11px;display:flex}.selection-actions button{cursor:pointer;text-underline-offset:3px;background:0 0;border:0;padding:2px;font-size:9px;text-decoration:underline}.view-switch{border:1px solid var(--line);background:#f3f2eb;border-radius:3px;display:flex;overflow:hidden}.view-switch button{cursor:pointer;min-width:44px;min-height:27px;color:var(--muted);background:0 0;border:0;padding:0 7px;font-size:9px;font-weight:800}.view-switch button+button{border-left:1px solid var(--line)}.view-switch button.is-active{background:var(--ink);color:#fff}.preset-grid{flex:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;align-items:start;gap:9px;min-width:0;max-width:100%;min-height:0;margin-top:12px;padding:1px 5px 5px 1px;display:grid;overflow-y:auto}.preset-grid.is-list{flex-direction:column;justify-content:flex-start;gap:7px;display:flex}.preset-card{border:1px solid var(--line);cursor:pointer;background:#faf9f5;min-width:0;max-width:100%;padding:10px;transition:border-color .14s,box-shadow .14s,transform .14s;overflow:hidden}.preset-card:hover{transform:translateY(-2px)}.preset-card.is-active{border:2px solid var(--ink);box-shadow:4px 4px 0 var(--accent);padding:9px}.preset-topline{justify-content:space-between;align-items:start;gap:5px;min-height:24px;margin-bottom:8px;display:flex}.check-label{cursor:pointer;align-items:center;gap:6px;font-size:11px;font-weight:750;display:flex}.check-label input{accent-color:var(--ink);width:14px;height:14px}.active-pill{text-transform:uppercase;letter-spacing:.09em;background:var(--accent);padding:3px 4px;font-size:7px;font-weight:900}.preset-canvas{border:1px solid #e0dfd6;justify-content:center;align-items:center;width:100%;min-width:0;max-height:175px;display:flex;overflow:hidden}.preset-canvas .konvajs-content{max-width:100%;overflow:hidden}.preset-canvas canvas{max-width:100%;display:block}.preset-meta{color:var(--muted);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;min-width:0;margin-top:8px;font-size:9px;display:flex}.ratio-value{color:var(--ink);letter-spacing:.04em;background:#e9eadf;border-radius:3px;flex:none;margin-right:auto;padding:3px 5px;font-weight:850}.frame-pill{color:#526516;letter-spacing:.03em;background:#edf5d0;border-radius:3px;flex:none;padding:3px 5px;font-weight:850}.card-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:100%;display:flex}.card-actions button{cursor:pointer;text-underline-offset:2px;background:0 0;border:0;padding:2px 0;font-size:9px;font-weight:750;text-decoration:underline}.card-actions button:disabled{opacity:.45}.preset-list-row{border:1px solid var(--line);cursor:pointer;background:#faf9f5;flex:none;grid-template-rows:auto auto;grid-template-columns:52px minmax(0,1fr);gap:7px 10px;min-width:0;padding:9px;transition:border-color .14s,box-shadow .14s,background .14s;display:grid}.preset-list-row:hover{background:#f5f5ed}.preset-list-row.is-active{border:2px solid var(--ink);box-shadow:4px 4px 0 var(--accent);padding:8px}.preset-list-preview{border:1px solid #dedfd5;grid-area:1/1/3;justify-content:center;align-self:start;align-items:center;width:52px;height:52px;display:flex;overflow:hidden}.preset-list-content{grid-area:1/2;gap:6px;min-width:0;display:grid}.preset-list-name{justify-content:space-between;align-items:center;gap:6px;min-width:0;display:flex}.preset-list-name .check-label{min-width:0}.preset-list-name strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.preset-list-details{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:8px;display:flex}.preset-list-details .ratio-value{margin:0;padding:2px 5px;font-size:8px}.preset-list-actions{grid-area:2/2;gap:6px;display:flex}.preset-list-actions button{border:1px solid var(--line);background:var(--surface);cursor:pointer;min-height:27px;color:var(--muted);border-radius:3px;padding:0 8px;font-size:8px;font-weight:800}.preset-list-actions button.is-primary{background:var(--ink);border-color:var(--ink);color:#fff}.preset-list-actions button:disabled{opacity:.45;cursor:not-allowed}.control-bar{width:min(var(--workspace-max),94vw);border:1px solid var(--line);background:var(--surface);border-top:0;justify-content:space-between;align-items:center;gap:24px;margin:0 auto;padding:16px 18px;display:flex}.zoom-control{grid-template-columns:auto minmax(150px,280px) 42px;align-items:center;gap:12px;min-width:330px;display:grid}.zoom-control label{font-size:11px;font-weight:800}.zoom-control output{color:var(--muted);text-align:right;font-size:11px}.zoom-control input{accent-color:var(--ink);width:100%}.control-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.segmented{border:1px solid var(--line);border-radius:4px;display:flex;overflow:hidden}.segmented button{cursor:pointer;background:#f4f3ed;border:0;min-height:36px;padding:0 14px;font-size:11px;font-weight:700}.segmented button+button{border-left:1px solid var(--line)}.segmented button.is-active{background:var(--accent)}.export-bar{width:min(var(--workspace-max),94vw);color:#fff;background:#22231f;justify-content:space-between;align-items:center;gap:20px;min-height:84px;margin:18px auto 0;padding:15px 17px 15px 21px;display:flex}.export-summary{align-items:center;gap:15px;display:flex}.selection-count{width:40px;height:40px;color:var(--accent);background:#34362e;place-items:center;font-weight:850;display:grid}.export-summary strong{font-size:13px}.export-summary p{color:#aaa99f;margin:4px 0 0;font-size:11px}.export-progress{width:min(var(--workspace-max),94vw);margin:10px auto}.progress-copy{color:var(--muted);justify-content:space-between;font-size:11px;display:flex}.progress-track{background:var(--line);height:4px;margin-top:6px}.progress-track span{background:var(--accent-strong);height:100%;transition:width .18s;display:block}.export-error{width:min(var(--workspace-max),94vw);margin:10px auto}.loading-workspace{min-height:60vh;color:var(--muted);justify-content:center;align-items:center;gap:12px;display:flex}.spinner{border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;width:18px;height:18px;animation:.8s linear infinite spin}.settings-backdrop{z-index:60;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#1718148a;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.settings-dialog{background:var(--paper);border:1px solid #afb0a5;flex-direction:column;width:min(1180px,100%);max-height:min(820px,100vh - 48px);display:flex;overflow:hidden;box-shadow:0 28px 90px #00000047}.settings-header{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;gap:24px;padding:25px 26px 20px;display:flex}.settings-header h2{letter-spacing:-.045em;margin:0;font-size:30px}.settings-header p:last-child{color:var(--muted);margin:8px 0 0;font-size:12px}.icon-button{border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:50%;flex:none;width:36px;height:36px;font-size:24px;line-height:1}.settings-labels{text-transform:uppercase;letter-spacing:.09em;color:var(--muted);grid-template-columns:minmax(120px,1.2fr) 76px minmax(190px,1fr) 76px 70px 110px 52px;gap:10px;padding:14px 26px 7px;font-size:8px;font-weight:850;display:grid}.settings-list{padding:0 26px;overflow:auto}.settings-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(120px,1.2fr) 76px minmax(190px,1fr) 76px 70px 110px 52px;align-items:end;gap:10px;min-width:0;padding:11px 0;display:grid}.settings-row>label,.settings-row fieldset label{gap:5px;min-width:0;display:grid}.settings-row>label>span:first-child,.settings-row fieldset label>span,.settings-row legend{display:none}.settings-row input{background:var(--surface);width:100%;min-width:0;height:40px;color:var(--ink);border:1px solid #cccdc2;border-radius:3px;padding:0 10px}.settings-row fieldset{border:0;grid-template-columns:minmax(86px,1fr) auto minmax(86px,1fr);align-items:center;gap:7px;min-width:0;margin:0;padding:0;display:grid}.settings-row fieldset b{color:var(--muted);font-weight:500}.quality-input{align-items:center;min-width:0;display:flex;position:relative}.quality-input input{padding-right:24px}.quality-input b{color:var(--muted);pointer-events:none;font-size:10px;position:absolute;right:9px}.ratio-lock{cursor:pointer;height:40px;color:var(--muted);background:#f3f2eb;border:1px solid #cccdc2;border-radius:3px;justify-content:center;align-items:center;gap:5px;padding:0 7px;font-size:9px;font-weight:800;display:flex}.ratio-lock span{color:#9a9c92;font-size:8px}.ratio-lock.is-locked{color:#526516;background:#edf5d0;border-color:#bdcc84}.ratio-lock.is-locked span{color:#7a9a00}.frame-field{align-items:center;gap:5px;min-width:0;height:40px;display:flex}.frame-field>span{display:none}.frame-upload{cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:#fbfaf5;border:1px dashed #a8aa9e;border-radius:3px;flex:1;place-items:center;min-width:0;height:40px;padding:0 7px;font-size:9px;font-weight:800;display:grid;overflow:hidden}.frame-upload:hover{background:#f2f9d7;border-color:#6d7c28}.frame-upload.has-frame{color:#526516;background:#edf5d0;border-style:solid;border-color:#bdcc84}.frame-upload input{display:none}.remove-frame{width:25px;height:25px;color:var(--danger);cursor:pointer;background:#fff5f3;border:1px solid #ebc4c0;border-radius:50%;flex:none;line-height:1}.remove-ratio{height:40px;color:var(--danger);cursor:pointer;text-underline-offset:3px;background:0 0;border:0;padding:0;font-size:10px;font-weight:750;text-decoration:underline}.remove-ratio:disabled{opacity:.3;cursor:not-allowed}.add-ratio{cursor:pointer;background:#fbfaf5;border:1px dashed #a8aa9e;min-height:42px;margin:16px 26px 4px;font-size:11px;font-weight:800}.add-ratio:hover:not(:disabled){background:#f2f9d7;border-color:#6d7c28}.add-ratio:disabled{opacity:.45;cursor:not-allowed}.add-ratio span{background:var(--accent);border-radius:50%;place-items:center;width:20px;height:20px;margin-right:7px;display:inline-grid}.settings-error{color:var(--danger);background:#fff1ef;border:1px solid #e4aaa4;margin:10px 26px 0;padding:10px 12px;font-size:11px}.settings-footer{border-top:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding:15px 26px;display:flex}.settings-footer>div{gap:8px;display:flex}.reset-defaults{color:var(--muted);border:0;padding-left:0}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1050px){.start-grid{grid-template-columns:minmax(0,1fr) 330px}.workspace-grid{grid-template-columns:minmax(0,1fr) 300px}.sources-panel{grid-template-columns:140px minmax(0,1fr) 200px;gap:5px 12px;padding-inline:14px}.source-panel-actions{padding-left:12px}.preset-grid{grid-template-columns:1fr}.preset-canvas{max-height:150px}.control-bar{flex-direction:column;align-items:stretch}.zoom-control{min-width:0}.control-actions{justify-content:flex-start}}@media (max-width:760px){.topbar{grid-template-columns:1fr auto;min-height:62px;padding:0 18px}.topbar-note{display:none}.privacy-note{font-size:10px}.topbar-actions{gap:8px}.start-workspace{padding:28px 0 42px}.start-heading{flex-direction:column;align-items:start;gap:20px}.start-grid{grid-template-columns:1fr}.start-upload{border-right:0;border-bottom:1px solid var(--line);padding:16px}.start-ratios{padding:16px}.start-upload .uploader{min-height:370px}.start-upload .upload-hit-area{min-height:344px}.start-ratio-list{grid-template-columns:1fr 1fr;max-height:none}.start-ratio-note{margin-top:16px}.source-bar{align-items:flex-start}.source-actions{flex-direction:column;align-items:stretch}.workspace-grid{grid-template-columns:1fr}.sources-panel{flex-direction:column;grid-column:auto;align-items:stretch;gap:10px;max-height:380px;padding:16px;display:flex}.source-selection-actions{border-bottom:1px solid var(--line);width:100%;padding-bottom:8px}.source-items{grid-template-columns:1fr 1fr;width:100%;min-height:0;padding:0 4px 6px 0;display:grid;overflow:hidden auto}.source-item{width:auto}.source-panel-actions{border-left:0;border-top:1px solid var(--line);grid-template-columns:1fr 1fr;width:100%;padding:10px 0 0}.source-panel-actions>p{grid-column:1/-1}.editor-panel{border-right:0;border-bottom:1px solid var(--line);padding:14px}.editor-viewport{height:min(66vh,540px)}.presets-panel{max-height:none;padding:16px}.preset-grid{grid-template-columns:1fr 1fr;overflow:visible}.preset-canvas{max-height:190px}.control-bar{padding:14px}.zoom-control{grid-template-columns:auto 1fr 40px}.control-actions{grid-template-columns:1fr 1fr;display:grid}.segmented{grid-column:span 2}.segmented button{flex:1}.button--copy{grid-column:span 2}.export-bar{z-index:15;min-height:78px;padding:12px;position:sticky;bottom:0}.button--primary{min-width:170px}.settings-backdrop{align-items:end;padding:0}.settings-dialog{border-bottom:0;width:100%;max-height:92vh}.settings-header{padding:20px 18px 16px}.settings-labels{display:none}.settings-list{padding:5px 18px 0}.settings-row{grid-template-columns:minmax(0,1fr) 82px 42px;align-items:start;gap:9px;padding:14px 0}.settings-row>label:first-child{grid-column:1/2}.settings-row>label:nth-child(2){grid-column:2/3}.settings-row fieldset{grid-area:2/1/auto/3}.settings-row>.quality-field{grid-area:3/1}.settings-row>.ratio-lock{grid-area:3/2;align-self:end}.settings-row>.frame-field{grid-area:4/1/auto/3;grid-template-columns:minmax(0,1fr) 25px;gap:5px;height:auto;display:grid}.settings-row>.frame-field>span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;grid-column:1/-1;font-size:8px;display:block}.settings-row>.frame-field .frame-upload{min-height:40px}.settings-row>.remove-ratio{border:1px solid #ebc4c0;border-radius:3px;grid-area:1/3;font-size:0}.settings-row>.remove-ratio:after{content:"×";font-size:20px}.settings-row>label>span:first-child,.settings-row fieldset label>span,.settings-row legend{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:8px;display:block}.settings-row fieldset label>span{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.add-ratio{margin:14px 18px 2px}.settings-error{margin:9px 18px 0}.settings-footer{align-items:stretch;padding:14px 18px}.settings-footer,.settings-footer>div{flex-direction:column-reverse}.settings-footer .button{width:100%}}@media (max-width:480px){.privacy-note{display:none}.topbar{grid-template-columns:1fr}.topbar-actions{position:absolute;right:15px}.workflow-steps{justify-content:space-between;gap:5px;width:100%}.workflow-steps i{flex:1}.start-ratio-list,.preset-grid,.source-items,.source-panel-actions{grid-template-columns:1fr}.source-panel-actions>p{grid-column:auto}.preset-canvas{max-height:240px}.source-details .source-name{max-width:43vw}.export-summary p{display:none}.button--primary{min-width:145px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}
