/* Редакторы кода (24.10.2026) — tools-code.js; группы кнопок .shx-grp — из tools-sheet.css (подключена ниже копией правил) */
.cde{position:relative}
.cde-bar{flex-wrap:wrap;gap:8px}
.cde-bar .pe-acts{margin-left:auto}
.cde .shx-grp{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-right:10px;border-right:1px solid var(--c-line)}
.cde .shx-grp .pe-tg{height:36px;padding:0 11px;font-size:13.5px}
.cde .shx-grp .phe-sel{width:auto;height:36px;margin:0;font-size:13.5px}
.cde .shx-grp .dse-chk{margin:0 0 0 6px}
.cde-work{display:grid;grid-template-columns:1fr 1fr;height:clamp(460px,calc(100vh - 290px),780px)}
.cde-edw{position:relative;display:flex;min-width:0;border-right:1px solid var(--c-line);background:#fbfaf8}
.cde-gut{flex:0 0 auto;margin:0;padding:14px 8px 14px 12px;min-width:34px;text-align:right;color:#b3aea5;font:13px/21px var(--c-mono,ui-monospace,monospace);overflow:hidden;user-select:none;background:#f3f1ed;border-right:1px solid #e6e3de;white-space:pre}
.cde-in{flex:1;min-width:0;margin:0;padding:14px;border:0;outline:none;resize:none;background:transparent;font:13.5px/21px var(--c-mono,ui-monospace,monospace);color:var(--c-ink);tab-size:2;white-space:pre;overflow:auto}
.cde[data-mode=markdown] .cde-in{white-space:pre-wrap;font-family:inherit;font-size:15px;line-height:21px}
.cde-outw{min-width:0;overflow:auto;background:#fff}
.cde-out{padding:16px 18px}
.cde-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.cde-st{padding:8px 16px;border-top:1px solid var(--c-line);font-size:13px;color:var(--c-mute);min-height:34px;box-sizing:border-box}
.cde-ok{color:#1b5e20;font-weight:700}
.cde-bad{color:#c62828;font-weight:700}
.cde-empty{color:var(--c-mute)}
.cde-err{padding:14px 16px;border-radius:12px;background:#fdecea;color:#8e1c1c}
.cde-err p{margin:6px 0}
.cde-tree{font:13.5px/1.7 var(--c-mono,ui-monospace,monospace)}
.cde-tree summary{cursor:pointer;list-style:none}
.cde-tree summary::-webkit-details-marker{display:none}
.cde-tree summary::before{content:'▸';display:inline-block;width:14px;color:#8b877f}
.cde-tree details[open]>summary::before{content:'▾'}
.cde-ch{padding-left:18px;border-left:1px dashed #e0dcd5;margin-left:5px}
.cde-row{padding-left:14px}
.cde-k{color:#7b1fa2}.cde-s{color:#2e7d32}.cde-n{color:#1565c0}.cde-b{color:#c2440e}.cde-null{color:#9e9e9e}.cde-br{color:#8b877f}.cde-more{color:#8b877f}
.cde-md{font-size:16px;line-height:1.6;color:var(--c-ink)}
.cde-md h1,.cde-md h2,.cde-md h3{margin:.8em 0 .4em;line-height:1.25}
.cde-md pre{background:#f5f3ef;padding:12px;border-radius:8px;overflow:auto}
.cde-md code{background:#f5f3ef;padding:1px 5px;border-radius:4px;font-size:.9em}
.cde-md pre code{background:none;padding:0}
.cde-md table{border-collapse:collapse;margin:10px 0}
.cde-md td,.cde-md th{border:1px solid #e0dcd5;padding:6px 10px}
.cde-md blockquote{border-left:4px solid #f15a24;margin:10px 0;padding:2px 14px;color:#555}
.cde-md img{max-width:100%}
.cde-md ul,.cde-md ol{padding-left:24px}
@media(max-width:900px){.cde-work{grid-template-columns:1fr;height:auto}.cde-edw{height:50vh;border-right:0;border-bottom:1px solid var(--c-line)}.cde-outw{height:50vh}.cde .shx-grp{border-right:0}}
.cde-md ul{list-style:disc}.cde-md ol{list-style:decimal}.cde-md li{display:list-item}.cde-md li:has(>input){list-style:none}.cde-md a{color:#c2440e;text-decoration:underline}
