.catalog-sections{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.catalog-sections a,.catalog-category-links a{display:block;padding:12px 16px;border:1px solid var(--border,#7775);border-radius:12px;color:inherit;text-decoration:none;background:var(--card,#8881)}.catalog-sections a[aria-current=page]{border-color:#c4a04d;background:#c4a04d25;font-weight:700}.catalog-categories{margin:16px 0 28px}.catalog-categories summary{cursor:pointer;font-weight:600}.catalog-category-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}.catalog-category-links a:hover,.catalog-sections a:hover{border-color:#c4a04d}.gre-families{max-height:480px;overflow:auto;margin-top:18px}.gre-family{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #8884}.gre-family label{display:flex;flex-direction:column;gap:5px}.gre-family small,.gre-table small{display:block;margin:6px 0;line-height:1.5}.gre-family input,.gre-family select{width:100%;min-width:0}.gre-table{min-width:1000px}.gre-table td{vertical-align:top;max-width:340px}.gre-table label{display:block;margin:8px 0}.gre-table select,.gre-table input[type=number]{max-width:300px;width:100%}.gre-table input[type=checkbox],.actions input[type=checkbox]{width:auto}#gre-progress{display:block;width:100%;height:14px;margin-top:20px;accent-color:#c4a04d}#gre-result{white-space:pre-wrap}.admin-main>.panel{margin-bottom:24px}.provider-options{margin:10px 0;grid-column:1/-1}.provider-options select{width:100%}.provider-options small{display:block;line-height:1.5;margin-top:8px}@media(max-width:900px){.gre-family{grid-template-columns:1fr 1fr}.gre-family>div{grid-column:1/-1}.catalog-category-links{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-sections{gap:6px}.catalog-sections a{padding:10px;font-size:.9rem}}@media(max-width:480px){.gre-family{grid-template-columns:1fr}.catalog-category-links{grid-template-columns:1fr 1fr}.catalog-category-links a{font-size:.85rem;padding:10px}}

.gre-import-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.gre-import-heading .pill{white-space:nowrap}.gre-job-status{margin-top:28px}.gre-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0 8px}.gre-stats>div{padding:18px;border:1px solid #8884;border-radius:12px}.gre-stats strong{display:block;font-size:1.8rem}.gre-stats span{display:block;line-height:1.5;margin-top:6px}#gre-error{color:var(--danger,#c64b4b);padding:12px;border:1px solid currentColor;border-radius:8px}.gre-import-panel [hidden]{display:none!important}@media(max-width:650px){.gre-import-heading{display:block}.gre-import-heading .pill{display:inline-block;margin-bottom:18px}.gre-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gre-stats>div{padding:12px}.gre-stats strong{font-size:1.4rem}}

.gre-table [hidden]{display:none!important}.gre-comparison{width:min(1000px,96vw);max-height:90vh;overflow:auto}.gre-comparison small{display:block;margin-top:5px}.gre-comparison form{display:flex;gap:12px;align-items:end;margin:16px 0}.gre-comparison input{max-width:150px}.gre-comparison td{vertical-align:top}

/* R8: colas independientes y decisiones expresas de imagen. */
.gre-manual-controls{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:26px 0}.gre-manual-controls>div{padding:22px;border:1px solid var(--line);border-radius:14px}.gre-manual-controls h3{margin-top:0}.gre-manual-controls .actions{flex-wrap:wrap}
.gre-review-panel{margin-top:28px;padding:24px}.gre-image-summary{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:25px}.gre-image-summary>span{border:1px solid var(--line);padding:10px 15px;border-radius:10px;font-size:13px}.gre-image-summary strong{font-size:20px;margin-right:7px}.gre-review-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin:22px 0;padding-block:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.gre-review-toolbar label{font-size:14px}.gre-review-toolbar .actions{margin-left:auto;flex-wrap:wrap}.gre-review-toolbar>span{font-size:12px;color:var(--muted)}.gre-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.gre-review-card{border:1px solid var(--line);background:var(--surface);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}.gre-image-select{display:flex;align-items:center;gap:8px;padding:13px 16px;font-size:12px}.gre-review-panel input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.gre-review-zoom{border:0;border-block:1px solid var(--line);background:#fff;position:relative;padding:12px;height:240px;cursor:zoom-in;width:100%}.gre-review-zoom img{width:100%;height:100%;object-fit:contain}.gre-review-zoom>span{position:absolute;right:8px;bottom:8px;background:#122027;color:#fff;padding:7px 12px;font-size:11px;border-radius:20px}.gre-review-info{padding:18px;display:flex;flex-direction:column;flex:1}.gre-review-info h2{font-size:14px;line-height:1.5;margin:8px 0 18px}.gre-review-info small{font-size:12px;color:var(--muted)}.gre-review-info .actions{margin-top:auto;flex-wrap:wrap;gap:8px}.gre-review-grid>.notice{grid-column:1/-1}.gre-image-dialog{max-width:95vw;width:900px;max-height:92dvh;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:20px}.gre-image-dialog::backdrop{background:rgb(0 0 0 / .8)}.gre-image-dialog img{max-height:70dvh;width:100%;object-fit:contain;background:#fff;margin-top:15px}.gre-image-dialog>button{float:right}.gre-image-dialog p{font-size:14px}
@media(max-width:1200px){.gre-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gre-manual-controls{grid-template-columns:1fr}}
@media(max-width:600px){.gre-review-grid{grid-template-columns:1fr}.gre-review-panel{padding:15px}.gre-review-toolbar .actions{margin-left:0}.gre-review-zoom{height:270px}}

/* R9: paneles alineados y con el mismo margen interior. */
.gremiline-page .admin-main{min-width:0}.gremiline-page .admin-main>.panel{padding:24px}.gremiline-page .admin-main>.panel>h2:first-child{margin-top:0}
.gremiline-page .actions{display:flex;flex-wrap:wrap;gap:10px}.gremiline-page .gre-stats{align-items:stretch}.gremiline-page .gre-stats>div{min-width:0;display:flex;flex-direction:column;justify-content:center}
.gre-manual-controls>div{min-width:0;display:flex;flex-direction:column}.gre-manual-controls .actions{margin-top:auto}.gre-manual-controls p{line-height:1.6}.gre-incident-summary{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.gre-incident-summary span{padding:10px 14px;border:1px solid var(--line);border-radius:10px}.gre-incident-summary strong{margin-right:6px}
.gre-maint-list{margin:18px 0}.gre-maint-list summary{cursor:pointer;font-weight:700}.gre-maint-list p{overflow-wrap:anywhere}.gre-job-help{padding:14px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;line-height:1.6}
@media(max-width:650px){.gremiline-page .admin-main>.panel{padding:16px}.gre-manual-controls>div{padding:16px}.gre-import-heading h2{font-size:1.25rem}.gre-stats span{font-size:.82rem}}
.gremiline-page [hidden]{display:none!important}

/* R10 · Editor individual; nunca arranca la cola de descargas. */
.gre-edit-background{width:100%;margin:12px 0}
.gre-editor{width:min(1180px,calc(100vw - 32px));max-width:1180px;max-height:94dvh;padding:26px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-sizing:border-box;overflow:auto}
.gre-editor::backdrop{background:rgb(0 0 0 / .65);backdrop-filter:blur(4px)}.gre-editor[hidden]{display:none}.gre-editor [hidden]{display:none!important}
.gre-editor-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.gre-editor-head>div{min-width:0}.gre-editor h2{font-size:24px;margin:5px 0 10px}.gre-editor-head p{margin:0;overflow-wrap:anywhere;font-size:13px}.gre-editor .helper{font-size:12px;line-height:1.6}
.gre-editor-head>.btn{flex:none}.gre-editor-tools{display:grid;grid-template-columns:1fr 1.3fr .7fr;gap:20px;padding:18px;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);margin:20px 0 12px}
.gre-editor-tools>div{min-width:0}.gre-editor-tools label,.gre-editor-label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.gre-editor-tools input[type=range]{width:100%;padding:0;accent-color:var(--accent);margin:6px 0 10px}.gre-editor-tools small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:8px}.gre-editor-tools .actions{gap:6px;flex-wrap:wrap;margin-bottom:12px}.gre-editor-tools [aria-pressed=true]{border-color:var(--accent);color:var(--text);background:color-mix(in srgb,var(--accent) 15%,var(--surface))}.gre-editor-actions{display:flex;flex-direction:column;justify-content:center;gap:8px}
.gre-editor-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px}.gre-editor figure{margin:0;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--surface-2)}.gre-editor figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;min-height:52px;box-sizing:border-box;font-size:12px;font-weight:650}.gre-editor figcaption a{color:var(--accent);font-size:11px}.gre-editor figcaption label{display:flex;align-items:center;gap:6px}.gre-editor figcaption select{padding:5px;border:1px solid var(--line);border-radius:7px;color:var(--text);background:var(--surface)}
.gre-editor-original-wrap,.gre-editor-scroll{height:360px;overflow:auto;background:white}.gre-editor-original-wrap{display:flex;align-items:start;justify-content:center}.gre-editor-original-wrap img{display:block;max-width:100%;object-fit:contain;max-height:100%}
#gre-editor-stage{position:relative;width:100%;line-height:0;min-height:1px}#gre-editor-canvas{display:block;width:100%;height:auto}#gre-editor-overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
#gre-editor-message{font-size:13px;line-height:1.6;min-height:22px}.gre-editor-footer{border-top:1px solid var(--line);padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.gre-editor-confirm{font-size:12px;line-height:1.6;display:flex;align-items:start;gap:9px;max-width:520px}.gre-editor-confirm input{margin-top:3px;accent-color:var(--accent);flex:none;width:16px;height:16px}.gre-editor-footer .actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:800px){.gre-editor-tools{grid-template-columns:1fr 1fr}.gre-editor-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.gre-editor-original-wrap,.gre-editor-scroll{height:280px}.gre-editor-footer{flex-direction:column;align-items:stretch}.gre-editor-footer .actions{justify-content:stretch}.gre-editor-footer .actions>.btn{flex:1}}
@media(max-width:520px){.gre-editor{padding:16px;width:calc(100vw - 16px);max-height:96dvh;border-radius:14px}.gre-editor-head{gap:10px}.gre-editor h2{font-size:19px}.gre-editor-head>.btn{padding:9px 12px;font-size:12px}.gre-editor-tools{grid-template-columns:1fr;gap:16px;padding:13px}.gre-editor-comparison{grid-template-columns:1fr}.gre-editor-original-wrap{height:150px}.gre-editor-scroll{height:320px}.gre-editor-footer .actions{flex-direction:column}.gre-editor-tools .btn{font-size:11px}}

#gre-editor-stage{margin-inline:auto}
.gre-editor-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.gre-editor-status #gre-editor-message{flex:1 1 240px;margin:0;min-height:0}.gre-editor-status[data-state=error]{border-color:#e58c27;background:color-mix(in srgb,#e58c27 10%,var(--surface))}.gre-editor-status .btn{flex:none}
.gre-auto-selection{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:17px;margin-top:16px;border:1px solid color-mix(in srgb,var(--accent) 65%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--accent) 7%,var(--surface))}.gre-auto-selection>div:first-child{flex:1 1 250px}.gre-auto-selection strong{font-size:14px}.gre-auto-selection p{font-size:12px;line-height:1.5;margin:5px 0 0;color:var(--muted)}.gre-selection-controls{flex:1 0 100%;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;border-top:1px solid var(--line);padding-top:14px}.gre-selection-adjust{flex:1 1 220px;max-width:440px}.gre-selection-adjust label{font-size:12px}.gre-selection-adjust input{display:block;width:100%;accent-color:var(--accent);padding:0;margin:8px 0}.gre-selection-adjust>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.gre-selection-controls .actions{flex-wrap:wrap;gap:8px}@media(max-width:520px){.gre-auto-selection{padding:13px}.gre-auto-selection>.btn{width:100%}.gre-selection-controls .actions{width:100%}.gre-selection-controls .btn{flex:1 1 130px;font-size:12px}}

/* PASO61 R13: traslado explícito, sin activar trabajos. */
.gre-transfer input[type=file]{display:block;max-width:100%;margin:12px 0 16px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.gre-transfer-confirm{display:flex;gap:12px;align-items:flex-start;margin:18px 0;line-height:1.5}.gre-transfer-confirm input{flex:0 0 auto;width:20px;height:20px;margin-top:2px}.gre-transfer td{overflow-wrap:anywhere}.gre-transfer [hidden]{display:none!important}
