/* Informe de Corrección Inteligente con áreas únicas y sin modificar la escena. */
.melamina-smart-overlay[hidden]{display:none!important}
.melamina-smart-overlay{position:fixed;inset:0;z-index:2147478000;display:grid;place-items:center;padding:16px;box-sizing:border-box;background:rgba(8,17,29,.73);font:calc(12px + var(--melamina-font-offset, 0px))/1.45 system-ui,Segoe UI,Arial,sans-serif}
.melamina-smart-dialog{width:min(1080px,97vw);height:min(83vh,820px);min-height:min(460px,96vh);min-width:min(560px,96vw);max-width:calc(100vw - 12px);max-height:calc(100vh - 12px);box-sizing:border-box;resize:both;display:flex;flex-direction:column;overflow:hidden;border-radius:12px;border:1px solid #8baac2;box-shadow:0 20px 65px #0008;background:#fff;color:#18354e}
.melamina-smart-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:grab;touch-action:none;user-select:none;background:#edf4fa;border-bottom:1px solid #b7cfe0;padding:4px 8px}
.melamina-smart-heading h2{margin:0;font-size:calc(17px + var(--melamina-font-offset, 0px));color:#163a5d}
.melamina-smart-dialog button{font:600 calc(12px + var(--melamina-font-offset, 0px)) system-ui,Segoe UI,sans-serif;cursor:pointer;border-radius:6px;border:1px solid #8caec8;background:#eef6fc;color:#164268;padding:6px 11px}
.melamina-smart-dialog button:focus-visible{outline:2px solid #126db6;outline-offset:2px}
.melamina-smart-dialog button:hover{background:#dcefff}
.melamina-smart-summary{flex:none;max-height:25%;overflow:auto;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:4px 8px;flex-wrap:wrap}
.melamina-smart-metrics{display:flex;gap:7px}.melamina-smart-metric{border:1px solid #cfdee9;background:#f7fafc;border-radius:6px;min-width:68px;text-align:center;padding:3px 7px;display:flex;flex-direction:column}.melamina-smart-metric b{font-size:calc(16px + var(--melamina-font-offset, 0px))}.melamina-smart-metric small{font-size:calc(10px + var(--melamina-font-offset, 0px));color:#4c657c}
.melamina-smart-categories{flex:none;display:flex;flex-wrap:wrap;gap:5px;padding:0 17px 10px;border-bottom:1px solid #e3ebf1}.melamina-smart-categories button{border-radius:16px;padding:4px 10px}.melamina-smart-filter[aria-pressed=true]{background:#155788;color:#fff;border-color:#155788}
.melamina-smart-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(220px,42%) minmax(0,1fr)}
.melamina-smart-left{min-height:0;min-width:0;display:flex;flex-direction:column;border-right:1px solid #dce8f0}
.melamina-smart-right{min-width:0;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:10px 15px}
.melamina-smart-pane-heading{font-size:calc(12px + var(--melamina-font-offset, 0px));color:#385b74;margin:0;padding:10px 13px 8px;background:#f7fafd}
.melamina-smart-right>.melamina-smart-pane-heading{background:transparent;padding:0 0 9px}
.melamina-smart-list{min-height:32px;flex:1 1 52%;overflow:auto;padding:6px 8px;display:flex;flex-direction:column;gap:3px;background:#fff}
.melamina-smart-dialog button.melamina-smart-finding{width:100%;display:flex;align-items:center;gap:8px;text-align:left;min-height:32px;font-size:calc(11px + var(--melamina-font-offset, 0px));font-weight:600;line-height:1.3;padding:7px 8px;border:1px solid transparent;border-radius:5px;background:#fff;color:#26475f}
.melamina-smart-dialog button.melamina-smart-finding:hover{border-color:#b8d8ee;background:#eef8ff}
.melamina-smart-dialog button.melamina-smart-finding[aria-selected=true]{border-color:#2579b1;background:#d8ecfa;color:#113f65;box-shadow:inset 3px 0 0 #1979b7;font-weight:750}
.melamina-smart-dot{flex:0 0 7px;height:7px;border-radius:50%;background:#44829f}.melamina-smart-finding[data-level=alta] .melamina-smart-dot{background:#c34e48}.melamina-smart-finding[data-level=revision] .melamina-smart-dot{background:#b87b25}
.melamina-smart-selected-detail{flex:1 1 48%;min-height:0;max-height:49%;overflow-y:auto;border-top:1px solid #c9ddeb;background:#f7fafc;padding:12px 14px}
.melamina-smart-detail-head{display:flex;justify-content:space-between;gap:8px;color:#547187;font-size:calc(10px + var(--melamina-font-offset, 0px));text-transform:uppercase;font-weight:700}
.melamina-smart-selected-detail h4{font-size:calc(13px + var(--melamina-font-offset, 0px));color:#163a5d;margin:5px 0 7px}.melamina-smart-detail,.melamina-smart-advice,.melamina-smart-plan{font-size:calc(11px + var(--melamina-font-offset, 0px));color:#334e64;margin:0 0 7px;overflow-wrap:anywhere}.melamina-smart-manual{font-size:calc(11px + var(--melamina-font-offset, 0px));color:#955728;margin:0 0 7px}.melamina-smart-detail-actions{display:flex;flex-wrap:wrap;gap:8px}.melamina-smart-dialog button.melamina-smart-correct{background:#126a51;border-color:#126a51;color:white}.melamina-smart-dialog button.melamina-smart-correct:hover{background:#0d5845}
.melamina-smart-preview{flex:1 0 auto;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px}
.melamina-smart-preview svg{width:100%;height:auto;max-height:420px;display:block;flex:0 1 auto}
.melamina-smart-preview-note{font-size:calc(11px + var(--melamina-font-offset, 0px));text-align:center;color:#597285;margin:0}
.melamina-smart-empty,.melamina-smart-more{color:#587188;padding:6px}
@media(max-width:700px){.melamina-smart-overlay{padding:6px}.melamina-smart-dialog{width:100%;height:95vh}.melamina-smart-workspace{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(0,42%)}.melamina-smart-left{border-right:0;border-bottom:1px solid #dce8f0}.melamina-smart-selected-detail{max-height:43%}.melamina-smart-right{padding:7px 12px}.melamina-smart-metrics{width:100%;justify-content:space-between}}

.melamina-smart-header.is-dragging{cursor:grabbing}
.melamina-smart-header-actions{display:flex;gap:4px;align-items:center;flex-shrink:0;margin-left:auto}
.melamina-smart-dialog .melamina-smart-header-actions button{padding:3px 7px}
.melamina-smart-dialog .melamina-smart-header-actions :is(.melamina-smart-close,.melamina-smart-maximize){width:26px;height:26px;padding:0;display:grid;place-items:center;line-height:1;font-size:18px}
.melamina-smart-dialog.is-maximized{max-width:100vw;max-height:100vh;resize:none;border-radius:0}
.melamina-smart-dialog.is-maximized .melamina-smart-header{cursor:default}
.melamina-smart-selected-detail[hidden],.melamina-smart-detail-actions[hidden]{display:none!important}
.melamina-smart-left>.melamina-smart-detail-actions{flex:none;padding:8px 14px;border-top:1px solid #c9ddeb;background:#f7fafc}
.melamina-smart-contextual{display:flex;flex-direction:column;gap:4px;min-width:0}
.melamina-smart-miniature{height:clamp(120px,25vh,240px);border:1px solid #c9ddeb;background:#f7fafc;border-radius:6px;padding:3px 6px;box-sizing:border-box}
.melamina-smart-miniature svg{height:100%;width:100%;max-height:none}
.melamina-smart-comparisons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.melamina-smart-dialog button.melamina-smart-comparison{min-width:0;padding:0;border:1px solid transparent;background:transparent;overflow:hidden}
.melamina-smart-dialog button.melamina-smart-comparison:hover,.melamina-smart-dialog button.melamina-smart-comparison:focus-visible{border-color:#2579b1;background:transparent}
.melamina-smart-comparison svg{width:100%;height:auto;max-height:none}
.melamina-smart-dialog button.melamina-smart-comparison:disabled{cursor:default;opacity:.65}
.melamina-smart-finding{flex-shrink:0}
@media(max-width:700px){.melamina-smart-header{flex-wrap:wrap}.melamina-smart-miniature{height:120px}}
