dialog.prep-dialog{width:min(1200px,calc(100vw - 32px));max-width:none;padding:0;border:0;border-radius:18px;color:#252b27;background:#fff;max-height:calc(100dvh - 28px);box-shadow:0 30px 120px #0005;overflow:hidden;font-family:inherit}dialog.prep-dialog[open]{display:flex;flex-direction:column}.prep-dialog::backdrop{background:#101812b3;backdrop-filter:blur(4px)}.prep-head{display:flex;align-items:center;gap:14px;padding:22px 28px;background:#19221d;color:#fff;flex-shrink:0}.prep-brand-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #728164;border-radius:14px;background:#2b372d;color:#e8cb77;font-size:30px}.prep-eyebrow{font-size:9px;font-weight:750;letter-spacing:1.9px;color:#d8c085}.prep-head h2{font-size:23px;letter-spacing:-.6px;margin:5px 0}.prep-head p{font-size:11px;color:#c2cbbf;margin:0}.prep-head .icon-button{margin-left:auto;color:#dce5d8;flex-shrink:0}.prep-imagebar{display:flex;align-items:center;gap:12px;padding:13px 28px;border-bottom:1px solid #e6e9e1;background:#fafbf7;flex-shrink:0}.prep-imagebar label{font-size:9px;letter-spacing:1.2px;font-weight:750;color:#65725e}.prep-imagebar select{width:min(320px,44vw);border:1px solid #dbe0d3;background:#fff;padding:7px 10px;border-radius:6px;font-family:inherit;font-size:12px;font-weight:600}.prep-imagebar>span{font-size:11px;color:#788372}.prep-imagebar .prep-safe{margin-left:auto;color:#667d56;font-size:10px}.prep-body{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr);overflow:auto;min-height:0;overscroll-behavior:contain}.prep-workspace{background:#f6f8f1;padding:22px;min-width:0;border-right:1px solid #e5e9df}.prep-preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.prep-switch{display:flex;gap:3px;padding:3px;background:#e6ebdf;border-radius:7px}.prep-switch button{border:0;border-radius:5px;padding:6px 14px;background:transparent;font-size:11px;font-weight:650;color:#6c7666;cursor:pointer}.prep-switch button.active{background:#fff;color:#283621;box-shadow:0 1px 4px #28362112}.prep-backgrounds{display:flex;gap:7px}.prep-backgrounds button{width:22px;height:22px;border:1px solid #bfc7b6;border-radius:50%;cursor:pointer}.prep-backgrounds button.active{outline:2px solid #778c60;outline-offset:2px}.prep-dialog .checker{background-color:#fff;background-image:conic-gradient(#e7e9e3 25%,transparent 0 50%,#e7e9e3 0 75%,transparent 0);background-size:20px 20px}.prep-dialog .white{background:#fff}.prep-dialog .black{background:#1e2220}.prep-preview{height:330px;max-height:42vh;border:1px solid #dfe4d8;border-radius:10px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:28px}.prep-preview img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #0001)}.prep-preview-label{position:absolute;left:12px;top:10px;font-size:8px;letter-spacing:1.1px;background:#ffffffe8;color:#617354;border:1px solid #e2e8d9;border-radius:4px;padding:5px 7px;font-weight:700}.prep-image-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin:13px 1px 7px;color:#697661;flex-wrap:wrap}.prep-image-meta strong{color:#35442b;font-size:12px}.prep-image-meta .low{color:#a05f25}.prep-canvas-note{font-size:9px;line-height:1.6;color:#85907b;margin:0}.prep-edit-trail{display:flex;gap:5px;flex-wrap:wrap;margin:15px 0;min-height:24px}.prep-edit-trail span{font-size:9px;padding:4px 7px;background:#e8efdd;color:#5b7049;border-radius:4px}.prep-edit-trail .muted{background:transparent;color:#7f8b74;padding-left:0}.prep-history{display:flex;gap:14px;flex-wrap:wrap;padding-top:10px;border-top:1px solid #dfe6d6}.prep-history button{font-size:10px}.prep-toolbox{padding:22px;min-width:0}.prep-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.prep-tool-heading h3{font-size:15px;margin:0;letter-spacing:-.2px}.prep-tool-heading>span{font-size:8px;letter-spacing:1.2px;color:#98a28d;font-weight:700}.prep-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.prep-tool{display:flex;align-items:flex-start;gap:10px;text-align:left;background:#fff;border:1px solid #e0e6d8;border-radius:9px;padding:12px 10px;cursor:pointer;transition:.15s;color:inherit;min-width:0;font-family:inherit}.prep-tool:hover{border-color:#a5b48e;background:#fafcf7}.prep-tool.active{border-color:#79905c;background:#f1f6e9;box-shadow:0 0 0 1px #79905c}.prep-tool-icon{display:grid;place-items:center;color:#6f8555;background:#edf2e5;border-radius:7px;font-size:22px;width:32px;height:32px;flex-shrink:0}.prep-tool.active .prep-tool-icon{color:#f1dd9a;background:#34472b}.prep-tool>span:last-child{min-width:0}.prep-tool strong{font-size:11px;display:block;margin:1px 0 4px;line-height:1.3}.prep-tool small{font-size:9px;color:#849079;display:block;line-height:1.4}.prep-tool em{display:block;font-size:7px;font-style:normal;letter-spacing:.8px;margin-top:7px;color:#85946f;font-weight:750}.prep-simple{font-size:7px;line-height:1;padding:3px 5px;border-radius:3px;letter-spacing:.7px;background:#e8d294;color:#4f482a;display:inline-block;margin-left:5px;vertical-align:middle;white-space:nowrap}.prep-controls{border:1px solid #e3e8db;background:#fafbf7;border-radius:10px;margin-top:15px;padding:18px;min-height:175px}.prep-controls h4{margin:0 0 10px;font-size:14px}.prep-controls p{font-size:11px;line-height:1.7;color:#728066;margin:0 0 14px}.prep-welcome{text-align:center;padding:6px 14px}.prep-welcome>span{font-size:25px;color:#a9b78e}.prep-welcome h4{margin-top:8px}.prep-welcome div{font-size:10px;color:#687d50}.prep-simple-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}.prep-simple-heading .prep-simple{margin:0;font-size:8px;padding:5px 7px}.prep-simple-heading>span:last-child{font-size:9px;color:#8b977d}.prep-field{display:block;font-size:10px;font-weight:650;color:#667655;margin-bottom:13px}.prep-field select{margin-top:6px;width:100%;padding:9px;border:1px solid #dce4d1;border-radius:6px;background:#fff;font-family:inherit;font-size:11px;color:#3d4d32}.prep-field input[type=range]{width:100%;accent-color:#637d48;margin:9px 0}.prep-field output{float:right;color:#394b2b}.prep-color-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dce4d1;padding:8px;border-radius:6px;margin-top:6px}.prep-color-row input{width:32px;height:30px;padding:0;border:0;background:transparent;cursor:pointer}.prep-color-row>span:last-child{margin-left:auto;color:#97a18c;font-size:9px;font-weight:400}.prep-checkbox{font-size:10px;color:#68795a;display:flex;align-items:center;gap:7px;margin-bottom:12px}.prep-checkbox input{accent-color:#67804a}.prep-tip{font-size:10px;line-height:1.7;color:#849276;padding:10px 12px;background:#eef2e6;border-radius:6px;margin:10px 0}.prep-run{width:100%;margin-top:5px;justify-content:center}.prep-external-actions{display:flex;gap:7px;flex-wrap:wrap}.prep-external-actions .button{font-size:10px}.prep-controls .prep-service-note{font-size:9px;margin:12px 0 0;color:#8d9981}.prep-processing{position:absolute;inset:0;background:#f8fbf1ed;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;color:#677f4c}.prep-processing strong{font-size:12px}.prep-processing .spinner{display:block}.prep-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 28px;border-top:1px solid #e3e8dc;flex-shrink:0;background:#fff}.prep-footer p{font-size:11px;font-weight:600;margin:0 0 5px;color:#536c3b;line-height:1.5}.prep-footer p.is-error{color:#ac4638}.prep-footer>div>span{font-size:9px;color:#95a187}.prep-footer .button{flex-shrink:0;gap:30px}.prep-discard{padding:12px 28px;display:flex;gap:10px;align-items:center;background:#fcf3db;border-top:1px solid #e7d5a3;flex-shrink:0}.prep-discard p{font-size:11px;flex:1}.prep-dialog button:disabled{opacity:.45;cursor:default}.prep-dialog button:focus-visible,.prep-dialog a:focus-visible,.prep-dialog input:focus-visible,.prep-dialog select:focus-visible{outline:2px solid #977832;outline-offset:3px}.asset-tools-button{border:0;padding:0;margin-top:5px;background:transparent;color:#6a804e;font-size:9px;font-weight:650;cursor:pointer}.asset-tools-button:hover{text-decoration:underline}
@media(min-width:1000px) and (min-height:850px){.prep-preview{height:390px}}
@media(max-width:800px){dialog.prep-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.prep-head{padding:16px;gap:10px}.prep-head h2{font-size:18px}.prep-head p{font-size:10px}.prep-eyebrow{font-size:7px}.prep-brand-icon{width:37px;height:40px;font-size:23px}.prep-imagebar{padding:10px 16px;gap:7px}.prep-imagebar .prep-safe{display:none}.prep-body{grid-template-columns:1fr}.prep-workspace{padding:16px;border-right:0;border-bottom:1px solid #e5e9df}.prep-preview{height:260px;max-height:34vh}.prep-toolbox{padding:16px}.prep-footer{padding:12px 16px;gap:10px}.prep-footer>div>span{display:none}.prep-footer p{font-size:10px}.prep-footer .button{padding:12px;font-size:11px;gap:8px}.prep-discard{padding:12px;flex-wrap:wrap}.prep-discard p{flex-basis:100%;margin:0}.prep-tool{padding:10px 8px;gap:7px}.prep-tool strong{font-size:10px}.prep-tool small{font-size:8px}.prep-tool-icon{width:27px;height:30px}.prep-tool-heading>span{font-size:7px}}

.prep-upscale-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;padding:12px;border:1px solid #e0e7d7;background:#fff;border-radius:7px}.prep-upscale-summary span{font-size:9px;color:#819171}.prep-upscale-summary strong{display:block;font-size:11px;color:#415a30;margin-top:5px}.prep-limit{color:#a55e22!important}
