:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;color:#17213b;background:#eef2f8;font-synthesis:none;--blue: #3267d6;--blue-dark: #19459e;--line: #d8dfeb;--muted: #68738a;--paper: #fff}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,textarea{font:inherit}.topbar{height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#10182b;color:#fff;border-bottom:1px solid #28344f}.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#4c7ee8;font-weight:700}.brand strong,.brand small{display:block}.brand small{margin-top:3px;color:#9ba8c4;font-size:11px}.status{color:#c3ccdd;font-size:13px}.status-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#57c690;box-shadow:0 0 0 4px #57c69020}.workspace{display:grid;grid-template-columns:minmax(360px,.78fr) minmax(520px,1.22fr);min-height:calc(100vh - 72px)}.editor-panel,.preview-panel{min-width:0}.editor-panel{display:flex;flex-direction:column;border-right:1px solid var(--line);background:#f8faff}.preview-panel{padding-bottom:64px;overflow:auto}.panel-head{min-height:98px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:#fff}.panel-head h1,.panel-head h2{margin:3px 0 0;font-size:18px}.eyebrow{color:var(--blue);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.button{border:1px solid transparent;border-radius:9px;padding:10px 14px;cursor:pointer;font-size:12px;font-weight:700;transition:.15s ease}.button:hover{transform:translateY(-1px)}.button.primary{color:#fff;background:var(--blue);box-shadow:0 7px 18px #3267d62a}.button.primary:hover{background:var(--blue-dark)}.button.secondary{color:#30415e;background:#fff;border-color:var(--line)}.dropzone{position:relative;flex:1;min-height:480px}.dropzone.dragging:after{content:"Отпустите файл";position:absolute;inset:18px;display:grid;place-items:center;border:2px dashed var(--blue);border-radius:14px;color:var(--blue);background:#edf3ffec;font-weight:700}#source{width:100%;height:100%;min-height:calc(100vh - 210px);padding:26px;resize:none;border:0;outline:none;color:#27324a;background:transparent;font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.drop-hint{display:none}.editor-footer{height:40px;padding:0 26px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);color:var(--muted);background:#fff;font-size:11px}.preview-head{position:sticky;top:0;z-index:2}.document{width:min(900px,calc(100% - 52px));min-height:1100px;margin:28px auto;padding:64px 74px;background:var(--paper);box-shadow:0 18px 52px #1f2e4b18}.document h1{margin:0 0 26px;padding-bottom:18px;border-bottom:2px solid #dfe7f5;font-size:34px;letter-spacing:-.03em}.document h2{margin:44px 0 16px;color:#213d75;font-size:23px}.document h3{margin-top:30px;color:#30415e}.document p,.document li{color:#38445c;font-size:14px;line-height:1.72}.document table{width:100%;margin:20px 0;border-collapse:collapse;font-size:12px}.document th,.document td{padding:10px 12px;border:1px solid #dce3ef;text-align:left;vertical-align:top}.document th{background:#eff4fc}.document pre{overflow:auto;padding:18px;border-radius:8px;color:#dce6ff;background:#182238;font-size:12px}.document blockquote{margin:20px 0;padding:4px 18px;border-left:4px solid var(--blue);color:#50617f;background:#f5f8fd}.document .mermaid{margin:28px auto;text-align:center}.document .mermaid svg{max-width:100%;height:auto}.error{width:min(900px,calc(100% - 52px));margin:24px auto -10px;padding:12px 16px;border:1px solid #ef9c9c;border-radius:8px;color:#8e2020;background:#fff1f1;font-size:12px}@media(max-width:980px){.workspace{grid-template-columns:1fr}.editor-panel{border-right:0;border-bottom:1px solid var(--line)}#source{min-height:520px}.document{padding:42px}.status{display:none}}@media print{@page{size:A4 landscape;margin:14mm}.topbar,.editor-panel,.preview-head,.error{display:none!important}.workspace,.preview-panel{display:block;min-height:0;background:#fff}.document{width:auto;min-height:0;margin:0;padding:0;box-shadow:none}.document h1,.document h2,.document h3{break-after:avoid}.document table,.document .mermaid,.document pre{break-inside:avoid}}@font-face{font-family:Manrope;font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/Manrope-DIRNzeTG.ttf) format("truetype")}:root{font-family:Manrope,Arial,sans-serif;color:#102b3a;background:#edf4f7;--blue: #187da9;--blue-dark: #176184;--line: #d8e5ea;--muted: #5e6e77}.topbar{border-top:3px solid #4e9dc5;border-bottom-color:#274654;background:#0b1e29}.brand{text-decoration:none;color:#e8f2f6}.brand strong{font-size:19px;font-weight:800}.brand small{color:#70c2e5}.brand-mark{position:relative;width:29px;height:29px;border:3px solid #53add4;border-radius:50%;background:transparent}.brand-mark:after{content:"";position:absolute;inset:6px;border-radius:50%;background:#53add4}.topbar-actions{display:flex;gap:20px;align-items:center}.button{border-radius:11px;font-size:13px}.button.primary{box-shadow:none}.document{color:#102b3a;--paper: #fff}.document h2{color:#176184}.document h3{color:#294552}.document p,.document li{color:#3f5a67}.document th{background:#eaf6fb}.document blockquote{color:#3f5a67;background:#edf4f7}.document img{max-width:100%;height:auto}html[data-theme=dark]{color-scheme:dark;color:#e8f2f6;background:#07151f;--line: #274654;--muted: #9bb0ba;--blue: #70c2e5;--blue-dark: #8ed4f0}html[data-theme=dark] .editor-panel{background:#0b1e29}html[data-theme=dark] .panel-head,html[data-theme=dark] .editor-footer{background:#102631}html[data-theme=dark] #source{color:#c7d9e0}html[data-theme=dark] .button.secondary{background:#102631;color:#c7d9e0}html[data-theme=dark] .button.primary{color:#06131c}html[data-theme=dark] .document{color-scheme:light;color:#102b3a;--blue: #187da9}html[data-theme=dark] .error{color-scheme:light}html[data-embed=true] .topbar{display:none}html[data-embed=true] .workspace{min-height:100vh}:focus-visible{outline:3px solid #70c2e5;outline-offset:3px}#source:focus-visible{outline-offset:-3px}@media(max-width:600px){.topbar{padding-inline:14px;gap:10px}.brand{gap:8px}.brand strong{font-size:16px}.brand small{font-size:10px}.topbar-actions .button{padding:8px;font-size:11px}.panel-head{padding:18px 16px;gap:12px;flex-wrap:wrap}.panel-head h1,.panel-head h2{font-size:17px}.document{width:calc(100% - 24px);padding:25px 20px;min-height:600px;overflow-wrap:anywhere}.document h1{font-size:27px}.workspace{grid-template-columns:minmax(0,1fr)}#source{padding:20px 16px;min-height:430px}}@media print{html[data-theme=dark],html[data-theme=light],body{color-scheme:light;background:#fff}}
