/* Independent subtree preview; bounded scrolling for large trees and small screens. */
.rt-copy-editor { display: grid; gap: 14px; min-width: 0; }
.rt-copy-options { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid #cbd5e1; border-radius: 12px; }
.rt-copy-check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.rt-copy-check input { margin-top: 4px; flex-shrink: 0; }
.rt-copy-preview { display: grid; gap: 12px; border-top: 1px solid #cbd5e1; padding-top: 14px; min-width: 0; }
.rt-copy-preview h3,.rt-copy-preview p { margin: 0; }
.rt-copy-counts,.rt-copy-warnings,.rt-copy-errors { margin: 0; padding-left: 22px; overflow-wrap: anywhere; }
.rt-copy-errors { color: #a42323; }
.rt-copy-tree { max-height: 340px; overflow: auto; list-style: none; margin: 8px 0; padding: 0; }
.rt-copy-tree li { margin: 4px 0; padding: 8px 10px; margin-left: calc(var(--copy-depth, 0) * 12px); border-left: 2px solid #b9d8c6; background: #f5f9f7; overflow-wrap: anywhere; }
.rt-copy-tree small { display: block; color: #526172; }
.rt-copy-editor details { min-width: 0; }
.rt-copy-editor summary { cursor: pointer; font-weight: 600; }
@media (max-width: 600px) { .rt-copy-options { padding: 10px; } .rt-copy-tree li { margin-left: calc(var(--copy-depth, 0) * 5px); } }
