/* Editor de imagens — interface de aplicativo, isolada das demais páginas. */
.image-editor{--editor-ink:#1b3032;--editor-accent:#0f756d;--editor-line:var(--border);--editor-bg:var(--surface-2);padding:clamp(1rem,2.4vw,1.7rem)!important}
.image-editor [hidden]{display:none!important}
.image-editor .editor-app-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.2rem}
.image-editor .editor-kicker{margin:0 0 .3rem;font-size:.7rem;letter-spacing:.19em;font-weight:900;color:var(--brand);text-transform:uppercase}
.image-editor .editor-app-heading h2{font:700 clamp(1.35rem,2.7vw,1.75rem)/1.2 Georgia,serif;letter-spacing:-.04em;margin:0;color:var(--text)}
.image-editor .editor-private{font-size:.77rem;color:var(--muted);font-weight:700;background:var(--surface-2);border:1px solid var(--border);padding:.5rem .8rem;border-radius:100px}
.image-editor .editor-drop{border:1.5px dashed var(--border);border-radius:14px;background:var(--surface-2);text-align:center;padding:2.3rem 1rem}
.image-editor .editor-drop:focus-within,.image-editor .editor-drop.dragover{border-color:var(--brand)}
.image-editor .editor-drop__art{display:grid;place-items:center;width:64px;height:64px;background:var(--surface);border:1px solid var(--border);border-radius:17px;margin:0 auto 1.1rem;color:var(--brand)}
.image-editor .editor-drop__art svg{width:32px;height:32px}
.image-editor .editor-drop label{display:grid;gap:.35rem;justify-items:center;margin:0;cursor:pointer}
.image-editor .editor-drop label strong{font-size:1.12rem}
.image-editor .editor-drop label span{color:var(--muted);font-size:.9rem}
.image-editor .editor-drop input{display:block;width:min(100%,400px);margin:1rem auto .4rem}
.image-editor .editor-drop p{margin:.5rem 0 0;color:var(--muted);font-size:.85rem}
.image-editor .editor-topbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.7rem;background:var(--surface-2);border:1px solid var(--border);padding:.6rem .85rem;border-radius:10px;margin-bottom:.85rem}
.image-editor .editor-file{display:flex;align-items:center;gap:.55rem;min-width:0;flex:1 1 170px}
.image-editor .editor-file p{margin:0;font-size:.82rem;color:var(--muted);overflow-wrap:anywhere}
.image-editor .editor-file__dot{width:9px;height:9px;border-radius:50%;background:#0e9c83;flex-shrink:0}
.image-editor .editor-topbar__actions{display:flex;gap:.4rem;flex-wrap:wrap}
.image-editor .editor-top-action{min-height:36px!important;display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.4rem .7rem!important;font-size:.8rem!important}
.image-editor .editor-top-action svg{width:16px;height:16px}
.image-editor .editor-studio{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:0;min-height:450px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}
.image-editor .editor-canvas-area{min-width:0;background:#20292a;display:flex;flex-direction:column}
.image-editor .editor-canvas-header{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;font-size:.67rem;letter-spacing:.13em;font-weight:800;color:#c9d8d4;padding:.85rem 1rem;background:#263233;border-bottom:1px solid #394a49}
.image-editor .editor-canvas-header__tip{letter-spacing:0;font-weight:500}
.image-editor .editor-preview{flex:1;display:flex;align-items:center;justify-content:center;min-height:380px;padding:1.25rem;overflow:hidden;background:repeating-conic-gradient(#263132 0% 25%,#303b3c 0% 50%) 50%/20px 20px}
.image-editor .editor-preview canvas{display:block;max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain;box-shadow:0 8px 35px rgba(0,0,0,.27)}
.image-editor .editor-preview-details{font-size:.76rem;line-height:1.4;text-align:center;color:#d0dcda;margin:0;padding:.75rem .9rem;background:#263233;border-top:1px solid #394a49;overflow-wrap:anywhere}
.image-editor .editor-control-area{min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--surface)}
.image-editor .editor-tool-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid var(--border);background:var(--surface-2)}
.image-editor .editor-tool{min-height:79px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;border:0!important;border-right:1px solid var(--border)!important;border-radius:0!important;background:transparent!important;color:var(--muted)!important;font-weight:750;font-size:.69rem;line-height:1.2;padding:.65rem .2rem!important;text-align:center}
.image-editor .editor-tool:last-child{border-right:0!important}
.image-editor .editor-tool svg{height:23px;width:23px;flex-shrink:0}
.image-editor .editor-tool:hover{background:var(--surface-strong)!important;color:var(--text)!important}
.image-editor .editor-tool.is-active{background:var(--surface)!important;color:var(--brand)!important;box-shadow:inset 0 -3px 0 var(--brand-strong)}
.image-editor .editor-tool:focus-visible{outline:2px solid #e39b36;outline-offset:-3px}
.image-editor .editor-panel-host{padding:1.2rem;min-width:0}
.image-editor .editor-panel{display:block;min-width:0;margin:0;padding:0;border:0}
.image-editor .editor-panel legend{font-size:1rem;font-weight:850;color:var(--text);margin:0 0 .2rem;padding:0}
.image-editor .editor-hint{font-size:.84rem;line-height:1.55;color:var(--muted);margin:.55rem 0 1.2rem}
.image-editor .editor-crop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.image-editor .field{min-width:0;margin:0}
.image-editor .field label{font-size:.82rem}
.image-editor .field input:not([type=range]){min-height:43px}
.image-editor .editor-control-buttons{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:1rem}
.image-editor .editor-control-buttons button,.image-editor .editor-quick-actions button{min-height:40px!important;font-size:.8rem!important;padding:.45rem .55rem!important}
.image-editor .editor-quick-actions{display:grid;grid-template-columns:1fr;gap:.6rem}
.image-editor .editor-quick-actions button{display:flex;align-items:center;justify-content:center;gap:.55rem}
.image-editor .editor-quick-actions button span{font-size:1.3rem}
.image-editor .editor-quick-actions button[aria-pressed=true]{border:1px solid var(--brand)!important;background:var(--surface-strong)!important;color:var(--brand)!important}
.image-editor .editor-orientation{margin-top:1.2rem}
.image-editor .editor-adjust-grid,.image-editor .editor-export-grid{display:grid;gap:1.25rem}
.image-editor .editor-adjust-grid output,.image-editor .editor-export-grid output{float:right;font-weight:850;color:var(--text)}
.image-editor input[type=range]{width:100%;min-height:37px;padding:0;accent-color:var(--brand-strong)}
.image-editor .editor-export-button{display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:47px;margin-top:1.25rem;font-weight:800}
.image-editor .editor-export-button svg{width:20px;height:20px}
.image-editor .editor-feedback{margin:1rem 0 0}
.image-editor .editor-result{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1rem;padding:1rem 1.2rem;background:var(--surface-2);border:1px solid var(--border);border-radius:10px}
.image-editor .editor-result h3{margin:0 0 .2rem;font-size:1.02rem}
.image-editor .editor-result p{margin:0;color:var(--muted);font-size:.85rem}
.image-editor .editor-result .button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.5rem 1rem}
@media(max-width:1000px){.image-editor .editor-studio{grid-template-columns:1fr}.image-editor .editor-control-area{border-left:0;border-top:1px solid var(--border)}.image-editor .editor-tool{min-height:70px}.image-editor .editor-panel-host{min-height:175px}.image-editor .editor-preview{min-height:310px}.image-editor .editor-preview canvas{max-height:490px}.image-editor .editor-crop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.image-editor .editor-export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.image-editor{padding:.8rem!important}.image-editor .editor-app-heading h2{font-size:1.25rem}.image-editor .editor-private{font-size:.7rem}.image-editor .editor-topbar{padding:.6rem}.image-editor .editor-topbar__actions{width:100%}.image-editor .editor-top-action{flex:1}.image-editor .editor-canvas-header{font-size:.62rem}.image-editor .editor-canvas-header__tip{display:none}.image-editor .editor-preview{min-height:260px;padding:.65rem}.image-editor .editor-preview canvas{max-height:390px}.image-editor .editor-tool{min-height:67px;padding:.55rem .1rem!important;font-size:.66rem}.image-editor .editor-tool svg{height:21px;width:21px}.image-editor .editor-panel-host{padding:1rem}.image-editor .editor-crop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-editor .editor-export-grid{grid-template-columns:1fr}.image-editor .editor-result .button{width:100%}}
@media(max-width:380px){.image-editor .editor-tool{font-size:.58rem}.image-editor .editor-tool svg{width:19px;height:19px}.image-editor .editor-control-buttons{grid-template-columns:1fr}}
