
/* editor two-pane layout */
#deContent{display:grid;grid-template-columns:400px 6px 1fr;gap:0;padding:0!important;overflow:hidden}
#deLeftPane{overflow-y:auto;overflow-x:hidden;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background:#fbfbfd;min-width:0}
#deSplitter{cursor:col-resize;background:var(--gray-m);position:relative}
#deSplitter:hover,#deSplitter.on{background:var(--blue)}
#deSplitter::after{content:'';position:absolute;left:-4px;right:-4px;top:0;bottom:0}
#deRightPane{display:flex;flex-direction:column;overflow:hidden;background:#e9ecf0;min-width:0}
#deCanvasScroll{flex:1;overflow:auto;padding:16px 18px}
#deBody{min-height:calc(100% - 4px);background:#fff;border:1px solid #d8dde3;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.07);padding:26px 32px;font-size:13px;line-height:1.55;outline:none;max-width:1000px;margin:0 auto}
#dePreviewWrap{max-width:1000px;margin:0 auto}
@media(max-width:900px){
  #deContent{display:flex;flex-direction:column;overflow:auto}
  #deSplitter{display:none}
  #deLeftPane{border-bottom:1px solid var(--gray-m);overflow:visible}
  #deRightPane{overflow:visible;min-height:65vh}
  #deCanvasScroll{overflow:visible}
  #deBody{padding:16px 14px}
}

/* ── W52h: EDITOR-ONLY table & link ergonomics ─────────────────────────────
   Display aids for the AUTHORING pane only. Stored document HTML is never
   touched by these rules, and the reader render keeps its own rules — this
   file styles #deBody, which exists only inside the editor modal. */
/* Tables fit the editor width instead of running off the right edge; the
   width attributes / inline widths DEKRA's conversion baked in are display-
   overridden (author !important beats inline styles and width attributes). */
#deBody table{table-layout:fixed;width:100%!important;max-width:100%}
#deBody col,#deBody td,#deBody th{width:auto!important;min-width:0!important;max-width:none!important}
/* Cell content wraps instead of extending past the cell wall on one line. */
#deBody td,#deBody th{white-space:normal!important;overflow-wrap:anywhere}
#deBody td *,#deBody th *{white-space:normal!important}
/* Links still carrying a legacy RCI address show RED in the editor — the
   remap walk's "what's left" indicator. A document is done when nothing in
   it renders red. Readers never see this. */
#deBody a[href*="applications.rci-safety.com" i]{background:#fdecec;border-bottom:2px dotted #d64545;color:#b91c1c}
html[data-theme="dark"] #deBody a[href*="applications.rci-safety.com" i]{background:#4a1d1d;border-bottom-color:#d64545;color:#f2a0a0}
