
.edk-signature-form{margin-top:12px;max-width:760px;display:grid;gap:12px}
.edk-signature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.edk-signature-preview{background:#fff;border:1px solid #ccd9ea;border-radius:12px;min-height:128px;padding:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#61738c}
.edk-signature-preview img{width:100%;height:120px;object-fit:contain}
.edk-signature-form input[type=file]{display:block;max-width:100%;width:100%;margin-top:6px}
.edk-signature-form button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.edk-signature-grid{grid-template-columns:1fr}.edk-signature-preview img{height:100px}}
.edk-editor{border:1px solid #c8d8e8;background:#f7faff;border-radius:12px;padding:12px;max-width:100%;min-width:0}
.edk-editor[hidden]{display:none!important}.edk-editor-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;margin-bottom:8px;color:#173c66}.edk-editor-head span{font-size:12px;color:#61738c}
.edk-editor-canvas-wrap{max-width:100%;width:400px;margin:0 auto;background:repeating-conic-gradient(#f0f2f5 0% 25%,#fff 0% 50%) 50%/20px 20px;border:1px solid #c4d2e2;border-radius:8px;overflow:hidden}
.edk-editor canvas{width:100%;height:auto;display:block;touch-action:none;cursor:grab}.edk-editor canvas:active{cursor:grabbing}
.edk-editor-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;margin-top:12px}.edk-editor-controls label{font-size:13px;font-weight:600;display:grid;gap:4px}.edk-editor-controls input[type=range]{width:100%}.edk-editor-toggle{display:flex!important;flex-direction:row;align-items:center;gap:7px}.edk-editor-controls button{max-width:160px}.edk-editor-result{font-size:13px;color:#315777;margin:8px 0 0}
@media(max-width:600px){.edk-editor-controls{grid-template-columns:1fr}.edk-editor{padding:8px}}

.edk-editor-rotation-buttons{display:flex;gap:8px;flex-wrap:wrap}.edk-editor-rotation-buttons button{flex:1;min-width:110px;max-width:none}

/* EDUKALAB: editor compacto dentro de la ficha de autores */
.edk-signature-form{width:100%;max-width:460px;min-width:0;box-sizing:border-box;gap:10px}
.edk-signature-grid{width:100%;min-width:0;gap:10px}
.edk-signature-grid>div{min-width:0}
.edk-signature-preview{min-height:100px;padding:6px}
.edk-signature-preview img{height:95px;max-width:100%}
.edk-editor{width:100%;max-width:460px;box-sizing:border-box;padding:10px}
.edk-editor-canvas-wrap{width:100%;max-width:400px}
.edk-editor-controls{gap:8px;margin-top:9px}
.edk-editor-controls button{max-width:100%;white-space:normal}
.edk-signature-form button{max-width:100%}
@media(max-width:640px){
 .edk-signature-form,.edk-editor{max-width:100%}
 .edk-signature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .edk-signature-preview{min-height:80px}
 .edk-signature-preview img{height:75px}
 .edk-editor-controls{grid-template-columns:1fr}
}
@media(max-width:360px){.edk-signature-grid{grid-template-columns:1fr}}
