.rtb-box{border:1px solid #1e1e1e;border-radius:4px;overflow:hidden;margin:1.5em 0}
.rtb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1e1e1e;color:#fff;padding:10px 16px;flex-wrap:wrap}
.rtb-head-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rtb-badge{background:#7c3aed;color:#fff;padding:3px 10px;border-radius:4px;font-size:13px;font-weight:700}
.rtb-sub{color:#999;font-size:12px}
.rtb-head-right{display:flex;gap:6px;flex-wrap:wrap}
.rtb-tab,.rtb-copy,.rtb-preview-toggle{background:transparent;color:#fff;border:1px solid #555;border-radius:4px;padding:6px 16px;cursor:pointer;font-size:13px;font-weight:600}
.rtb-copy.is-done{background:#2ea043;border-color:#2ea043}
.rtb-tab.is-active{background:#0073aa;border-color:#0073aa}
.rtb-body{background:#282c34}
.rtb-panel{display:none}
.rtb-panel.is-active{display:block}
.rtb-rich-scroll{max-height:500px;overflow-x:auto;overflow-y:auto}
.rtb-code-view{width:100%;min-height:200px;max-height:500px;padding:12px 12px 12px 16px;font-family:"Fira Code","Source Code Pro",Consolas,"Courier New",monospace;font-size:13px;line-height:1.6;color:#abb2bf;background:transparent;border:none;outline:none;resize:vertical;box-sizing:border-box;white-space:pre;overflow-wrap:normal;overflow-x:auto;overflow-y:auto}
.rtb-code-preview-wrap{border-top:1px solid #444}
.rtb-foot{background:#1e1e1e;color:#fff;padding:4px 16px;font-size:12px;font-family:monospace;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rtb-body .rtb-panel[data-rtb-panel="code"]{background:#282c34}
.rtb-code-preview-wrap.is-hidden{display:none}
.rtb-editor-wrapper .rtb-rich-editor-wrap{line-height:1.7;box-sizing:border-box;padding-bottom:8px}
.rtb-editor-wrapper .rtb-rich-editor{padding:12px;min-height:180px}
.rtb-editor-wrapper .rtb-rich-editor:empty:before{content:attr(data-placeholder);color:#757575;pointer-events:none}
.rtb-editor-wrapper .rtb-rich-editor p{margin:0!important;line-height:1.7;min-height:1.7em}
.rtb-editor-wrapper .rtb-rich-editor p:empty:before{content:"\00a0"}
.rtb-editor-wrapper .rtb-rich-editor p:last-child{margin-bottom:0!important}
.rtb-editor-wrapper .rtb-rich-editor h1,.rtb-editor-wrapper .rtb-rich-editor h2,.rtb-editor-wrapper .rtb-rich-editor h3,.rtb-editor-wrapper .rtb-rich-editor h4,.rtb-editor-wrapper .rtb-rich-editor h5,.rtb-editor-wrapper .rtb-rich-editor h6{margin:.2em 0!important;line-height:1.35;font-weight:700;min-height:1.35em;display:block}
.rtb-editor-wrapper .rtb-rich-editor h1{font-size:2em}
.rtb-editor-wrapper .rtb-rich-editor h2{font-size:1.6em}
.rtb-editor-wrapper .rtb-rich-editor h3{font-size:1.35em}
.rtb-editor-wrapper .rtb-rich-editor h4{font-size:1.15em}
.rtb-editor-wrapper .rtb-rich-editor h5{font-size:1em}
.rtb-editor-wrapper .rtb-rich-editor h6{font-size:.9em}
.rtb-editor-wrapper .rtb-rich-editor blockquote{margin:.6em 0;padding:.2em 0 .2em 1em;border-left:4px solid #bbb;color:#444}