/* UX consistente de archivos y herramientas recientes: escritorio/móvil. */
.oyg-file-control{max-width:100%;min-width:0;margin:4px 0 16px}
.oyg-file-zone{position:relative;min-height:138px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:22px 18px;background:#f7f9ff;border:2px dashed #b7c7e7;border-radius:16px;color:#344e7d;transition:background .16s,border-color .16s;cursor:pointer}
.oyg-file-zone:hover,.oyg-file-zone:focus-within,.oyg-file-zone.is-dragover{border-color:#315cf3;background:#edf3ff;outline-offset:2px}
.oyg-file-zone.has-files{background:#f1faf5;border-color:#74b995;color:#194c37}
.oyg-file-zone input[type=file],.tool-shell .oyg-file-zone input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;margin:0!important;z-index:1;padding:0!important}
.oyg-file-zone .oyg-file-prompt{font-size:14px;font-weight:680;line-height:1.4}
.oyg-file-zone .oyg-file-selected{display:grid;gap:5px;font-size:13px;line-height:1.45;color:#596c8e;max-width:100%;overflow-wrap:anywhere}
.oyg-file-zone.has-files .oyg-file-selected{color:#21553d}
.oyg-file-zone .oyg-file-selected strong{display:block;font-size:14px}
.tool-stage:has([data-new-tool]){max-width:min(100%,860px)}
.tool-stage:has([data-new-tool]) .tool-shell{padding:clamp(18px,3vw,32px);border:1px solid #d8e2f1;box-shadow:0 14px 38px rgba(28,47,82,.08)}
.tool-stage:has([data-new-tool]) .new-panel{max-width:100%;margin:0 auto;display:grid;gap:18px;min-width:0}
.tool-stage:has([data-new-tool]) .new-panel .field{margin:0;min-width:0}
.tool-stage:has([data-new-tool]) .new-panel label{font-size:14px;font-weight:700;color:#233452}
.tool-stage:has([data-new-tool]) .new-panel>p{color:#576b86;line-height:1.55;margin:0}
.tool-stage:has([data-new-tool]) .new-panel [data-new-run]{width:100%;min-height:48px;font-size:15px;border-radius:12px}
.tool-stage:has([data-new-tool]) [data-new-status]{margin:0;min-height:0;color:#1d7351;font-weight:650}
.tool-stage:has([data-new-tool]) [data-new-status]:empty{display:none}
.tool-stage:has([data-new-tool]) [data-new-status].oyg-ux-error{color:#ad243d}
.tool-stage:has([data-new-tool]) [data-new-result]{min-width:0;overflow-wrap:anywhere}
.oyg-conversion-result{display:grid;gap:17px;margin-top:5px;padding-top:18px;border-top:1px solid #e4e9f2}
.oyg-conversion-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.oyg-conversion-heading strong{font-size:16px}
.oyg-conversion-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px}
.oyg-conversion-item{display:grid;align-content:start;gap:8px;border:1px solid #dfe6f0;border-radius:14px;padding:10px;background:#fafbff;min-width:0}
.oyg-conversion-item img{display:block;width:100%;height:170px;object-fit:contain;background:#fff;border-radius:8px;border:1px solid #edf0f5}
.oyg-conversion-item span{font-size:13px;color:#52627a;overflow-wrap:anywhere}
.oyg-conversion-item .btn{display:block;padding:10px;font-size:13px;text-align:center;text-decoration:none}
.oyg-conversion-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start;flex-wrap:wrap}
.oyg-conversion-actions button{background:#eef2fb;border:1px solid #cfd9eb;border-radius:10px;padding:11px 14px;font-weight:690;color:#263d64;cursor:pointer}
.oyg-conversion-note{font-size:13px;color:#5c6d82;line-height:1.5}
@media(max-width:640px){.oyg-file-zone{min-height:124px;padding:18px 12px}.oyg-conversion-list{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.oyg-conversion-item img{height:140px}.tool-stage:has([data-new-tool]) .tool-shell{padding:18px}}

.oyg-file-zone.invalid-files{border-color:#d95466;background:#fff3f5;color:#922638}
.oyg-file-zone.invalid-files .oyg-file-selected{color:#922638;font-weight:650}
.oyg-file-zone:focus-visible{outline:3px solid #315cf3;outline-offset:3px}
