.cpa-photo-adjustments{margin:16px 0;padding:15px;border:1px solid #d8cbb8;border-radius:12px;background:#fffaf1;color:#43372e}.cpa-photo-heading>span{font-size:9px;letter-spacing:1.5px;font-weight:700;color:#8a6251}.cpa-photo-heading h2{font-family:Georgia,serif;font-size:21px;line-height:1.2;margin:8px 0 10px;font-weight:400}.cpa-photo-hint{font-size:11px;line-height:1.6;color:#76685b;margin:0 0 12px}.cpa-adjust-row{display:grid;grid-template-columns:1fr 68px;gap:6px 8px;margin:12px 0}.cpa-adjust-row label{font-size:11px;font-weight:600;align-self:center}.cpa-adjust-row label small{font-weight:400;color:#7e6c5d}.cpa-adjust-row input[type=range]{grid-column:1/-1;width:100%;min-height:22px;accent-color:#875349}.cpa-adjust-number{width:68px;border:1px solid #d4c8b8;border-radius:5px;padding:4px 6px;color:#40362e;background:#fff;font-size:11px}.cpa-adjust-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.cpa-adjust-actions button,.cpa-file-button{font-size:11px;font-weight:600;padding:9px 10px;border:1px solid #cdbdab;border-radius:6px;background:#f8f2e6;color:#664637;cursor:pointer}.cpa-adjust-actions button:first-child{background:#80524a;color:#fff;border-color:#80524a}.cpa-adjust-actions button:disabled{opacity:.45;cursor:default}.cpa-crop-tools{border-top:1px solid #dacebd;margin-top:16px;padding-top:12px}.cpa-crop-tools summary,.cpa-project-files summary{cursor:pointer;font-size:12px;font-weight:700;color:#785043;min-height:28px}.cpa-crop-tools>label{display:flex;justify-content:space-between;font-size:11px;margin-top:12px}.cpa-crop-tools>select{padding:8px;background:#fff;color:#41362c;border:1px solid #cdbfae;border-radius:5px;width:100%;font-size:12px;margin-top:6px}.cpa-crop-tools>input{width:100%;accent-color:#80524a;margin:9px 0}.cpa-crop-tools p,.cpa-project-files p,.cpa-project-files small{font-size:10px;line-height:1.65;color:#726557}.cpa-project-files{border:1px solid #d7caba;background:#f7f2e8;border-radius:10px;padding:13px;margin:15px 0}.cpa-project-files .cpa-file-button{display:inline-flex;align-items:center;position:relative;overflow:hidden}.cpa-file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.cpa-compare-dialog,.cpa-name-dialog{width:calc(100% - 30px);max-width:1000px;max-height:90vh;overflow:auto;background:#fbf7ef;color:#44372c;border:1px solid #d6c5b0;border-radius:14px;padding:24px;box-shadow:0 20px 80px #0004}.cpa-compare-dialog::backdrop,.cpa-name-dialog::backdrop{background:#241a15ad}.cpa-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:20px}.cpa-dialog-head h2,.cpa-name-dialog h2{font-family:Georgia,serif;font-size:27px}.cpa-dialog-head p{font-size:12px;line-height:1.6;color:#746451;margin-top:10px}.cpa-dialog-head>button{background:#e5d9c8;border-radius:50%;width:35px;height:35px;flex-shrink:0;font-size:24px}.cpa-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cpa-comparison figure{margin:0;background:#e8e0d2;padding:12px;border-radius:8px}.cpa-comparison img{width:100%;height:55vh;object-fit:contain}.cpa-comparison figcaption{font-size:11px;font-weight:700;padding:3px 0 12px;text-transform:uppercase;letter-spacing:1px}.cpa-name-dialog{max-width:450px}.cpa-name-dialog label{font-size:12px;display:block;margin:20px 0 7px}.cpa-name-dialog input{padding:10px;width:100%;border:1px solid #c9b49b;border-radius:6px;background:white;color:#433428}.cpa-name-dialog form>div{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.cpa-name-dialog button{padding:9px 16px;background:#eadeca;border-radius:6px}.cpa-name-dialog button[value=save]{background:#80524a;color:white}.cpa-layer-extra{font-size:10px!important;width:auto!important;min-width:34px;padding:4px 7px!important}.cpa-photo-adjustments :focus-visible,.cpa-project-files :focus-visible,.cpa-compare-dialog :focus-visible{outline:2px solid #905446;outline-offset:3px}
@media(max-width:640px){.cpa-comparison{grid-template-columns:1fr}.cpa-comparison img{height:30vh}.cpa-compare-dialog{padding:18px}.cpa-adjust-actions button{min-height:40px}.cpa-adjust-row input[type=range]{min-height:30px}.cpa-photo-heading h2{font-size:20px}}
/* Keep every tool and the layers inspector reachable on smaller screens. */
@media(max-width:980px){
 body{overflow:auto}
 body>div{height:auto!important;min-height:100vh}
 body>div>header{height:auto!important;min-height:72px;flex-wrap:wrap;gap:12px;padding:12px}
 body>div>header>div:last-child{flex-wrap:wrap;min-width:0;max-width:100%}
 .app-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;overflow:visible}
 #workspace{grid-row:1;height:65vh;min-height:390px;max-width:100%;overflow:auto}
 .left-panel{grid-row:2;width:100%;min-width:0;overflow:visible}
 .tool-stack{display:block;overflow:visible;padding:16px;max-width:680px;margin:auto}
 .tool-label,.upload-copy{display:inline}
 .right-panel{display:block;grid-row:3;width:100%;min-width:0;overflow:visible}
 .cpa-photo-adjustments,.cpa-project-files{min-width:0}
}
