.rt-editor { position: relative; isolation: isolate; }
.rt-editor img { cursor: move; touch-action: none; }
.rt-editor img.rt-image-selected { outline: 2px solid #0a246a; outline-offset: 2px; }
.rt-image-handle { position: fixed; width: 12px; height: 12px; padding: 0; background: #fff; border: 2px solid #0a246a; z-index: 900; cursor: nwse-resize; touch-action: none; }
.rt-context-bar { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 6px; border-bottom: 1px solid #808080; background: #eeeade; font-size: 11px; }
.rt-context-bar strong { color: #0a246a; }
.rt-context-bar .hint { flex: 1 0 100%; }
.rt-properties { display: grid; gap: 10px; }
.rt-field { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.rt-field > span { flex: 1; }
.rt-field .input { width: 130px; }
.rt-field input[type=checkbox] { width: auto; }
.rt-crop-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rt-crop-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: stretch; }
.rt-crop-canvas { max-width: 100%; height: auto; background: #eee; border: 1px solid #808080; cursor: crosshair; touch-action: none; }
.rt-text-btn { min-width: 36px; }
.rt-editor table { max-width: 100%; margin: 8px 0; }
.rt-editor table.rt-table-selected { outline: 2px solid #0a246a; outline-offset: 2px; }
.rt-table-handle { position: fixed; width: 12px; height: 12px; padding: 0; border: 2px solid #0a246a; background: #fff; z-index: 900; touch-action: none; }
.rt-table-move { width: 18px; height: 18px; line-height: 12px; cursor: move; background: #0a246a; color: #fff; font-size: 15px; }
.rt-table-corner { cursor: nwse-resize; }
.rt-table-width { cursor: ew-resize; }
.rt-table-height { cursor: ns-resize; }
.rt-table-style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.rt-table-style-grid .rt-field { gap: 8px; }
.rt-table-style-grid .rt-field .input { width: 120px; }
.rt-table-style-grid .hint { grid-column: 1 / -1; }
@media (max-width: 600px) { .rt-table-style-grid { grid-template-columns: 1fr; } }
.rt-editor td, .rt-editor th { min-width: 24px; overflow-wrap: anywhere; vertical-align: top; }
.rt-editor td:focus-within, .rt-editor th:focus-within { outline: 1px solid #0a246a; }
@media (max-width: 720px) { .rt-context-bar { max-height: 120px; overflow: auto; } .modal-mask .window { max-width: calc(100vw - 20px); } }
