/* Fixed four-column editable grid: keep the size independent of pasted source. */
#pasteGrid{width:100%;overflow:auto!important;max-height:55dvh;overscroll-behavior:contain;touch-action:pan-x pan-y}
#pasteGrid .paste-zoom-surface{width:850px;min-width:100%}
#pasteGrid table{min-width:850px!important;width:100%!important;table-layout:fixed!important}
#pasteGrid colgroup col:nth-child(1){width:30px!important}
#pasteGrid colgroup col:nth-child(2){width:22%}
#pasteGrid colgroup col:nth-child(3){width:19%}
#pasteGrid colgroup col:nth-child(4){width:23%}
#pasteGrid colgroup col:nth-child(5){width:36%}
#pasteGrid th,#pasteGrid td{padding:1px!important;vertical-align:middle}
#pasteGrid th{height:26px!important;font-size:11px}
#pasteGrid textarea{height:auto!important;min-height:29px!important;line-height:1.25!important;font-size:12px!important;padding:4px 6px!important;resize:vertical;overflow-y:hidden}
#pasteGrid textarea:focus{background:var(--paper)}
.source-mapping-fields{display:flex;gap:8px;flex-wrap:wrap;margin:7px 0}
.source-mapping-fields label{flex:1 1 125px}
@media(min-width:850px){.dialog:has(#pasteGrid){width:min(1400px,90vw)!important;max-width:90vw!important}}
@media(max-width:849px){.dialog:has(#pasteGrid){width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important}.dialog:has(#pasteGrid) #modalBody{max-height:calc(100dvh - 70px)}}
