.widget-history-preview { display: block; width: 100%; height: 100%; pointer-events: none; }
.field-color-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; width: 100%; }
.field-color-cell { display: flex; align-items: center; justify-content: space-between; min-width: 0; padding: 4px 6px; border: 1px solid #dce5e4; border-radius: 4px; font-size: 11px; color: #536266; }
.field-color-cell[hidden] { display: none; }
.field-color-cell input { width: 30px; height: 26px; padding: 1px; border: 0; background: transparent; }
.widget-record-preview { width: 100%; height: 100%; table-layout: fixed; border-collapse: collapse; pointer-events: none; }
.widget-record-preview th, .widget-record-preview td { padding: 0 2px; overflow: hidden; white-space: nowrap; text-overflow: clip; font-weight: normal; }
.widget-container-preview { display: flex; align-items: center; justify-content: center; background: #e8f1f9; border: 1px solid #93afc3; color: #385268; }
.widget-container-caption { padding: 8px; max-width: 100%; max-height: 100%; overflow: hidden; text-align: center; white-space: pre-line; font-size: 13px; line-height: 1.4; }
.widget-media-preview { display: grid; place-items: center; color: #eef2f6; border: 1px dashed #8b98a5; overflow: hidden; }
.widget-media-preview img { position: absolute; width: 100%; height: 100%; }
.widget-media-preview span { position: relative; color: #eef2f6; text-shadow: 0 1px 2px #111; }
.media-sources-dialog { width: min(860px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 24px)); padding: 16px; border: 1px solid #b9c8c8; border-radius: 6px; background: #fff; color: #223234; }
.media-sources-dialog h2 { margin: 0 0 12px; font-size: 17px; }
.media-sources-table-wrap { max-height: min(430px, calc(100vh - 185px)); overflow: auto; }
.media-sources-dialog table { width: 100%; min-width: 560px; border-collapse: collapse; }
.media-sources-dialog th, .media-sources-dialog td { padding: 5px; border-bottom: 1px solid #dce5e4; text-align: left; font-size: 12px; }
.media-sources-dialog th { position: sticky; top: 0; background: #f4f7f7; }
.media-sources-dialog tr.selected { background: #e7f2f6; }
.media-sources-dialog td input, .media-sources-dialog td select { width: 100%; min-width: 66px; }
.media-sources-dialog td:first-child { width: 34px; }
.media-sources-actions, .media-sources-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.media-sources-actions select { min-width: 140px; max-width: 240px; }
.media-sources-footer { justify-content: flex-end; }
.data-columns-dialog { width: min(640px, calc(100vw - 24px)); max-height: min(760px, calc(100vh - 24px)); padding: 18px; border: 1px solid #b9c8c8; border-radius: 6px; background: #fff; color: #223234; }
.data-columns-dialog h2 { margin: 0 0 14px; font-size: 18px; }
.data-columns-dialog table { display: block; max-height: min(590px, calc(100vh - 150px)); overflow: auto; width: 100%; border-collapse: collapse; }
.data-columns-dialog th, .data-columns-dialog td { padding: 6px; border-bottom: 1px solid #dce5e4; text-align: left; font-size: 13px; }
.data-columns-dialog th { position: sticky; top: 0; z-index: 1; background: #f4f7f7; }
.data-columns-dialog td:nth-child(3) { width: 100%; }
.data-columns-dialog input[type=text] { width: 100%; min-width: 110px; }
.data-columns-dialog td:nth-child(3) select { width: 100%; margin-top: 4px; }
.data-columns-dialog input[type=number] { width: 76px; }
.data-columns-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
