/* ==========================================================================
   DZEditor — Discuz X3.5-equivalent rich text editor styles
   Loaded from /editor-assets/editor.css. All rules are class-scoped so that
   several editor instances can coexist on one page (no #e_* id collisions).
   The toolbar sprite is Discuz's own editor.gif (served at /static/...).
   ========================================================================== */

.dz-editor {
  position: relative;
  margin: 10px 0;
  color: #444;
  font: 12px/1.5 Tahoma, Helvetica, 'Microsoft Yahei', sans-serif;
  zoom: 1;
}

.dz-editor.edt {
  border: 1px solid;
  border-color: #999 #ccc #ccc #999;
  background: #fff;
}

.dz-editor [hidden] { display: none !important; }

/* --------------------------------------------------------------- toolbar -- */
.dz-editor .dz-toolbar {
  border-bottom: 1px solid #ddd;
  background: #f2f2f2;
}

.dz-editor .bar {
  position: relative;
  padding: 3px 5px;
  min-height: 22px;
  border-bottom: 1px solid #e6e6e6;
  background: #f7f7f7;
  z-index: 30;
}

.dz-editor .bar .z { float: left; line-height: 20px; }
.dz-editor .bar .y { float: right; line-height: 20px; }

.dz-editor .bar .dz-mini-btn {
  display: inline-block;
  padding: 0 5px;
  margin-right: 4px;
  height: 18px;
  line-height: 18px;
  border: 1px solid #c2d5e3;
  background: #fff url(/static/image/common/card_btn.png) repeat-x 0 100%;
  color: #336699;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}

.dz-editor .bar .dz-mini-btn:hover { border-color: #09c; color: #09c; }

.dz-editor .dz-source-toggle {
  display: inline-block;
  margin: 0 6px 0 2px;
  line-height: 20px;
  color: #666;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.dz-editor .dz-source-toggle input {
  margin: 0 4px 0 0;
  vertical-align: middle;
}

.dz-editor .btn.dz-btnrow {
  float: none;
  padding: 2px 4px 3px;
  border-right: none;
  overflow: hidden;
}

.dz-editor .b1r,
.dz-editor .b2r {
  position: relative;
  float: left;
  height: 44px;
  padding: 0 3px;
  border-right: 1px solid #ddd;
  border-left: 1px solid #fefefe;
}

.dz-editor .b2r p {
  clear: both;
  margin: 0;
  padding: 0;
}

.dz-editor .b1r { height: 44px; }
.dz-editor .b2r { min-height: 22px; }

.dz-editor .nbl { border-left: none; padding-left: 0; }
.dz-editor .nbr { border-right: none; padding-right: 0; }

/* buttons ---------------------------------------------------------------- */
.dz-editor .bar a.dz-btn,
.dz-editor .btn a.dz-btn {
  float: left;
  display: block;
  height: 20px;
  width: 20px;
  border: 1px solid #f2f2f2;
  background-color: transparent;
  background-image: url(/static/image/editor/editor.gif);
  background-repeat: no-repeat;
  overflow: hidden;
  text-indent: -9999px;
  text-decoration: none;
  cursor: pointer;
}

.dz-editor .b1r a.dz-btn {
  width: 35px;
  height: 15px;
  padding-top: 27px;
  text-indent: 0;
  text-align: center;
  white-space: nowrap;
  font-size: 11px;
  color: #555;
  font-family: Arial, PMingLiU, sans-serif;
  -webkit-text-size-adjust: none;
}

.dz-editor .b1r a.dz-btn:hover { color: #09c; }

.dz-editor .bar a.dz-btn:hover,
.dz-editor .btn a.dz-btn:hover,
.dz-editor .bar a.dz-btn.dz-active,
.dz-editor .btn a.dz-btn.dz-active {
  border-color: #09c;
  background-color: #fff;
  text-decoration: none;
}

.dz-editor .bar a.dz-btn.dz-active,
.dz-editor .btn a.dz-btn.dz-active {
  background-color: #e5f0f7;
  border-color: #09c;
}

/* dropdown triggers (font family / font size) ---------------------------- */
.dz-editor a.dz-btn.dp {
  position: relative;
  width: 78px;
  height: 20px;
  padding: 0 12px 0 2px;
  text-indent: 0;
  border-color: #848484 #e0e0e0 #e0e0e0 #848484;
  background: #fff url(/static/image/common/newarow.gif) no-repeat 100% 0;
  text-align: left;
  line-height: 18px;
  color: #444;
  font-size: 12px;
}

.dz-editor a.dz-btn.dz-dp-size { width: 45px; }

.dz-editor a.dz-btn.dp .dz-drop-label {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dz-editor a.dz-btn.dp:hover {
  border-color: #09c;
  background-position: 100% -23px;
}

/* fallback text buttons without a sprite icon */
.dz-editor a.dz-btn.dz-btn-text {
  width: auto;
  min-width: 20px;
  padding: 0 4px;
  text-indent: 0;
  background-image: none;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: #555;
}

/* sprite positions (from Discuz data/cache/style_1_editor.css, class based) */
.dz-editor [data-cmd="bold"]            { background-position: 0 0; }
.dz-editor [data-cmd="italic"]          { background-position: -20px 0; }
.dz-editor [data-cmd="underline"]       { background-position: -40px 0; }
.dz-editor [data-cmd="forecolor"]       { background-position: -60px 0; }
.dz-editor [data-cmd="backcolor"]       { background-position: -80px 0; }

.dz-editor [data-cmd="url"]             { background-position: -40px -20px; }
.dz-editor [data-cmd="unlink"]          { background-position: -60px -20px; }
.dz-editor [data-cmd="justifyleft"]     { background-position: -80px -20px; }
.dz-editor [data-cmd="justifycenter"]   { background-position: -240px -40px; }
.dz-editor [data-cmd="justifyright"]    { background-position: -260px -40px; }
.dz-editor [data-cmd="insertorderedlist"]   { background-position: -100px -20px; }
.dz-editor [data-cmd="insertunorderedlist"] { background-position: 0 -60px; }
.dz-editor [data-cmd="inserthorizontalrule"]{ background-position: -20px -60px; }
.dz-editor [data-cmd="tbl"]             { background-position: -160px -20px; }
.dz-editor [data-cmd="removeformat"]    { background-position: -60px -40px; }
.dz-editor [data-cmd="autotypeset"]     { background-position: -220px -40px; }
.dz-editor [data-cmd="undo"]            { background-position: -20px -40px; }
.dz-editor [data-cmd="redo"]            { background-position: -40px -40px; }
.dz-editor [data-cmd="hide"]            { background-position: -120px -40px; }
.dz-editor [data-cmd="free"]            { background-position: -140px -40px; }

/* smilies / image / attach: two icon sizes depending on group */
.dz-editor [data-cmd="sml"]             { background-position: -20px -20px; }
.dz-editor [data-cmd="image"]           { background-position: 0 -20px; }
.dz-editor [data-cmd="attach"]          { background-position: -200px -20px; }
.dz-editor [data-cmd="quote"]           { background-position: -140px -20px; }
.dz-editor [data-cmd="code"]            { background-position: -120px -20px; }

.dz-editor .b1r [data-cmd="sml"]        { background-position: -3px -80px; }
.dz-editor .b1r [data-cmd="image"]      { background-position: -43px -80px; }
.dz-editor .b1r [data-cmd="attach"]     { background-position: -83px -80px; }

/* strike: drawn text glyph (Discuz sprite has no strike icon) */
.dz-editor a.dz-btn.dz-btn-strike {
  background-image: none;
  text-indent: 0;
  font: bold 14px/18px Arial, sans-serif;
  text-align: center;
  color: #444;
  text-decoration: line-through;
}

/* indent / outdent: small inline SVG icons (no sprite equivalent) */
.dz-editor .dz-btn[data-cmd="indent"],
.dz-editor .dz-btn[data-cmd="outdent"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cg fill='%23666'%3E%3Crect x='7' y='3' width='11' height='2'/%3E%3Crect x='7' y='9' width='11' height='2'/%3E%3Crect x='7' y='15' width='11' height='2'/%3E%3C/g%3E%3Cpath d='M3 6l4 2-4 2z' fill='%2333699'/%3E%3C/svg%3E");
  background-position: 0 0;
}

.dz-editor .dz-btn[data-cmd="outdent"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cg fill='%23666'%3E%3Crect x='7' y='3' width='11' height='2'/%3E%3Crect x='7' y='9' width='11' height='2'/%3E%3Crect x='7' y='15' width='11' height='2'/%3E%3C/g%3E%3Cpath d='M7 6L3 8l4 2z' fill='%2333699'/%3E%3C/svg%3E");
  background-position: 0 0;
}

/* ------------------------------------------------------------- text area -- */
.dz-editor .area {
  padding: 4px;
  background: #fff;
  zoom: 1;
}

.dz-editor textarea.dz-source {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 400px;
  padding: 2px 4px !important;
  margin: 0;
  border: none;
  background: #fff;
  color: #444;
  font: 14px/1.6 Tahoma, Helvetica, 'Microsoft Yahei', sans-serif;
  resize: vertical;
  outline: none;
}

.dz-editor .dz-wysiwyg {
  display: none;
  box-sizing: border-box;
  min-height: 400px;
  max-height: 640px;
  overflow: auto;
  padding: 2px 4px;
  background: #fff;
  outline: none;
}

/* progressive enhancement: JS adds .dz-ready once initialised */
.dz-editor.dz-ready .dz-toolbar { display: block; }
.dz-editor.dz-ready .dz-source { display: none; }
.dz-editor.dz-ready .dz-wysiwyg { display: block; }
.dz-editor.dz-ready.dz-source-mode .dz-source { display: block; }
.dz-editor.dz-ready.dz-source-mode .dz-wysiwyg { display: none; }

.dz-editor:not(.dz-ready) .dz-toolbar,
.dz-editor:not(.dz-ready) .bbar,
.dz-editor:not(.dz-ready) .dz-attach-panel,
.dz-editor:not(.dz-ready) .dz-popups,
.dz-editor:not(.dz-ready) .dz-preview { display: none; }

/* -------------------------------------------------- WYSIWYG content styles */
/* adapted from Discuz data/cache/style_1_wysiwyg.css, scoped to .dz-wysiwyg */
.dz-wysiwyg,
.dz-wysiwyg * {
  word-wrap: break-word;
}

.dz-wysiwyg {
  background: #fff;
  color: #444;
  font: 14px/1.5 Tahoma, Helvetica, 'Microsoft Yahei', sans-serif;
}

.dz-wysiwyg a { color: #369; }
.dz-wysiwyg a:hover { text-decoration: none; }
.dz-wysiwyg a img { border: none; }

.dz-wysiwyg li { list-style-type: disc; margin-left: 2em; }
.dz-wysiwyg ol li,
.dz-wysiwyg .litype_1 li { list-style-type: decimal; }
.dz-wysiwyg .litype_2 li { list-style-type: lower-alpha; }
.dz-wysiwyg .litype_3 li { list-style-type: upper-alpha; }
.dz-wysiwyg ul,
.dz-wysiwyg ol { padding-left: 1em; }

.dz-wysiwyg hr,
.dz-wysiwyg hr.l {
  height: 1px;
  border: none;
  background: #cdcdcd;
  color: #cdcdcd;
  margin: 8px 0;
}

.dz-wysiwyg table {
  empty-cells: show;
  border-collapse: collapse;
  margin: 4px 0;
}

.dz-wysiwyg table td,
.dz-wysiwyg table th {
  padding: 4px;
  border: 1px solid #cdcdcd;
  min-width: 24px;
}

.dz-wysiwyg th { font-weight: 400; }

.dz-wysiwyg div.quote,
.dz-wysiwyg div.blockcode {
  margin: 10px 0;
  padding: 10px 10px 10px 65px;
}

.dz-wysiwyg div.quote {
  padding-bottom: 5px;
  background: #f9f9f9 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='27'%3e%3cpath fill='%23d8e7f2' d='M11 16v10H1V16C1 10 7 1 11 1v5c-2 0-5 6-5 10h5zm16 0v10H17V16c0-6 6-15 10-15v5c-2 0-5 6-5 10h5z'/%3e%3c/svg%3e") no-repeat 20px 6px;
}

.dz-wysiwyg div.quote blockquote {
  margin: 0;
  padding: 0 65px 5px 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='27'%3e%3cpath fill='%23d8e7f2' d='M17 11V1h10v10c0 6-6 15-10 15v-5c2 0 5-6 5-10h-5zM1 11V1h10v10c0 6-6 15-10 15v-5c2 0 5-6 5-10H1z'/%3e%3c/svg%3e") no-repeat 100% 100%;
  line-height: 1.6em;
}

.dz-wysiwyg div.blockcode {
  border: 1px solid #ccc;
  background: #f7f7f7 url(/static/image/common/codebg.gif) repeat-y 0 0;
}

.dz-wysiwyg div.blockcode blockquote {
  margin: 0;
  padding: 0;
  background: none;
  white-space: pre-wrap;
  font: 12px/1.6 Consolas, Monaco, 'Courier New', monospace;
  color: #333;
}

.dz-wysiwyg div.hide {
  position: relative;
  margin: 8px 0;
  padding: 6px 30px 6px 10px;
  border: 1px dashed #c2d5e3;
  background: #f2f7fa;
}

.dz-wysiwyg div.hide::before {
  content: "隐藏内容";
  position: absolute;
  top: -9px;
  left: 8px;
  padding: 0 4px;
  background: #f2f7fa;
  color: #369;
  font-size: 11px;
}

.dz-wysiwyg span.free {
  padding: 0 2px;
  border-bottom: 1px dashed #090;
  background: #f0fff0;
}

.dz-wysiwyg img {
  max-width: 100%;
  vertical-align: middle;
}

.dz-wysiwyg img.smiley {
  max-width: none;
  vertical-align: middle;
}

.dz-wysiwyg img.dz-attach-img {
  max-width: 100%;
  border: 1px solid #eee;
}

.dz-wysiwyg span.dz-attach-tag,
.dz-wysiwyg span.dz-attach-file {
  display: inline-block;
  padding: 0 4px;
  border: 1px dashed #999;
  background: #fafafa;
  color: #555;
  font-size: 12px;
  cursor: default;
}

.dz-wysiwyg:empty::before,
.dz-wysiwyg[data-empty="1"]::before {
  content: "请输入帖子内容…";
  color: #aaa;
}

/* ------------------------------------------------------ attachment panel -- */
.dz-editor .dz-attach-panel {
  padding: 4px 6px 6px;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.dz-editor .dz-attach-hd {
  padding: 2px 0;
  color: #333;
  font-weight: 700;
}

.dz-editor .dz-attach-list { clear: both; }

.dz-editor .dz-attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-bottom: 1px dashed #ddd;
  background: #fff;
}

.dz-editor .dz-attach-item:last-child { border-bottom: none; }

.dz-editor .dz-attach-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  background: #f7f7f7;
}

.dz-editor .dz-attach-thumb img {
  max-width: 40px;
  max-height: 40px;
}

.dz-editor .dz-attach-thumb .dz-file-icon {
  font-size: 20px;
  color: #888;
}

.dz-editor .dz-attach-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #333;
}

.dz-editor .dz-attach-size {
  flex: 0 0 auto;
  color: #999;
}

.dz-editor .dz-attach-actions {
  flex: 0 0 auto;
}

.dz-editor .dz-attach-actions a {
  margin-left: 8px;
  color: #369;
  text-decoration: none;
}

.dz-editor .dz-attach-actions a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- bbar ---- */
.dz-editor .bbar {
  clear: both;
  height: 22px;
  line-height: 22px;
  padding: 0 6px;
  border-top: 1px solid #ddd;
  background: #f2f2f2;
  color: #999;
  overflow: hidden;
}

.dz-editor .bbar .dz-draft-status {
  float: left;
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.dz-editor .bbar .dz-charcount {
  float: right;
  color: #666;
}

/* ------------------------------------------------------ draft notice ----- */
.dz-editor .dz-draft-notice {
  position: relative;
  margin: 0;
  padding: 4px 30px 4px 10px;
  border-bottom: 1px solid #f7d68f;
  background: #fffae6;
  color: #666;
}

.dz-editor .dz-draft-notice .d {
  position: absolute;
  top: 3px;
  right: 6px;
  color: #999;
  text-decoration: none;
}

/* -------------------------------------------------------------- popups --- */
.dz-editor .dz-popups { position: static; }

.dz-editor .dz-popup {
  display: none;
  position: absolute;
  z-index: 500;
  min-width: 240px;
  border: 1px solid #c2d5e3;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.dz-editor .dz-popup.dz-open { display: block; }

.dz-editor .dz-popup-wide { min-width: 380px; }

.dz-editor .dz-popup-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 8px;
  border-bottom: 1px solid #ddd;
  background: #f2f2f2;
  color: #333;
  font-weight: 700;
}

.dz-editor .dz-popup-close {
  display: block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  color: #999;
  font: bold 14px/18px Arial, sans-serif;
  text-decoration: none;
}

.dz-editor .dz-popup-close:hover { color: #c00; }

.dz-editor .dz-popup-bd { padding: 8px; }

.dz-editor .dz-popup-bd p { margin: 4px 0; }

.dz-editor .dz-popup-input {
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
}

.dz-editor .dz-popup-actions { text-align: right; }

.dz-editor .dz-tabs {
  display: flex;
  flex-wrap: wrap;
  padding: 4px 6px 0;
  border-bottom: 1px solid #ddd;
  background: #f7f7f7;
}

.dz-editor .dz-tabs .dz-tab {
  display: block;
  padding: 3px 10px;
  margin: 0 2px -1px 0;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  background: #f2f2f2;
  color: #555;
  text-decoration: none;
}

.dz-editor .dz-tabs .dz-tab.cur {
  background: #fff;
  color: #336699;
  font-weight: 700;
}

.dz-editor .dz-tab-panes { padding: 6px; }

/* menu list (font names) */
.dz-editor .dz-menu-list {
  max-height: 280px;
  overflow: auto;
  padding: 3px 0;
}

.dz-editor .dz-menu-item {
  display: block;
  padding: 2px 12px;
  color: #444;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.dz-editor .dz-menu-item:hover {
  background: #e5f0f7;
  color: #336699;
}

/* font sizes */
.dz-editor .dz-size-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 6px;
  gap: 4px;
}

.dz-editor .dz-size-item {
  display: block;
  min-width: 28px;
  padding: 2px 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.dz-editor .dz-size-item:hover {
  border-color: #09c;
  background: #e5f0f7;
}

/* colour palette */
.dz-editor .dz-color-grid {
  display: grid;
  grid-template-columns: repeat(13, 16px);
  gap: 2px;
  padding: 2px 0 6px;
}

.dz-editor .dz-color-swatch {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  text-decoration: none;
}

.dz-editor .dz-color-swatch:hover {
  border-color: #09c;
  outline: 1px solid #09c;
}

.dz-editor .dz-color-custom {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #eee;
}

.dz-editor .dz-color-custom .px {
  flex: 1 1 auto;
  height: 22px;
  padding: 2px 4px;
  border: 1px solid #ccc;
}

/* smilies */
.dz-editor .dz-smiley-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-height: 230px;
  overflow: auto;
  padding: 2px;
}

.dz-editor .dz-smiley-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  text-decoration: none;
}

.dz-editor .dz-smiley-item:hover {
  border-color: #09c;
  background: #e5f0f7;
}

.dz-editor .dz-smiley-item img {
  max-width: 24px;
  max-height: 24px;
}

/* upload areas */
.dz-editor .dz-upload-area {
  padding: 10px;
  border: 1px dashed #c2d5e3;
  background: #fbfdff;
  text-align: center;
}

.dz-editor .dz-upload-area p { margin: 4px 0 0; color: #888; }

.dz-editor .dz-upload-status {
  display: none;
  padding: 3px 8px 3px 24px;
  color: #369;
  background: #f2f7fa;
  border-top: 1px solid #e6eef5;
  position: relative;
}

.dz-editor .dz-upload-status.dz-on { display: block; }

/* small spinner while an upload is in flight */
.dz-editor .dz-upload-status.dz-on::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 2px solid #b9d3e8;
  border-top-color: #369;
  border-radius: 50%;
  animation: dz-spin 0.8s linear infinite;
}

@keyframes dz-spin {
  to { transform: rotate(360deg); }
}

.dz-editor .dz-upload-error {
  display: none;
  padding: 4px 8px;
  color: #c00;
  background: #fff2f2;
  border-top: 1px solid #f2c2c2;
}

.dz-editor .dz-upload-error.dz-on { display: block; }

/* hidden native file inputs: off-screen but still actionable */
.dz-editor .dz-file-input {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* editor-level notices (errors / info) */
.dz-editor .dz-editor-notice {
  padding: 4px 8px;
  border-top: 1px solid #c2e0c2;
  background: #f0fff0;
  color: #393;
}

.dz-editor .dz-editor-notice.dz-editor-notice-error {
  border-top-color: #f2c2c2;
  background: #fff2f2;
  color: #c00;
}

/* Discuz control fallbacks so the toolbar/menus also look right in the
   standalone harness (the real page loads Discuz's common CSS for these). */
.dz-editor .pn {
  padding: 2px 10px;
  border: 1px solid #c2d5e3;
  background: #f2f7fa;
  color: #336699;
  cursor: pointer;
  font-size: 12px;
}

.dz-editor .pn:hover { border-color: #09c; }
.dz-editor .pn strong { font-weight: 400; }

.dz-editor .px {
  box-sizing: border-box;
  height: 24px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: #444;
}

.dz-editor .xg1 { color: #999; }

/* preview ---------------------------------------------------------------- */
.dz-editor .dz-preview {
  margin-top: 6px;
  border: 1px solid #c2d5e3;
  background: #fff;
}

.dz-editor .dz-preview-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 8px;
  border-bottom: 1px solid #ddd;
  background: #f2f2f2;
  color: #333;
  font-weight: 700;
}

.dz-editor .dz-preview-body {
  max-height: 460px;
  overflow: auto;
  padding: 10px;
  font: 14px/1.6 Tahoma, Helvetica, 'Microsoft Yahei', sans-serif;
  color: #444;
  word-wrap: break-word;
}

.dz-editor .dz-preview-body img { max-width: 100%; }
.dz-editor .dz-preview-body div.quote,
.dz-editor .dz-preview-body div.blockcode { margin: 10px 0; padding: 10px; background: #f9f9f9; border-left: 3px solid #c2d5e3; }

/* fullscreen ------------------------------------------------------------- */
.dz-editor.dz-fullscreen {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  margin: 0;
  border-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.dz-editor.dz-fullscreen .dz-toolbar { flex: 0 0 auto; }
.dz-editor.dz-fullscreen .area { flex: 1 1 auto; display: flex; overflow: hidden; }
.dz-editor.dz-fullscreen .dz-wysiwyg { flex: 1 1 auto; max-height: none; min-height: 0; }
.dz-editor.dz-fullscreen .dz-source { flex: 1 1 auto; height: 100%; }
.dz-editor.dz-fullscreen .dz-attach-panel { flex: 0 0 auto; max-height: 30%; overflow: auto; }

/* simple mode (quick reply) --------------------------------------------- */
.dz-editor-simple .bar { min-height: 20px; padding: 2px 5px; }
.dz-editor-simple .dz-btnrow { padding: 3px 4px; }
.dz-editor-simple .b2r { height: 24px; min-height: 24px; }
.dz-editor-simple .dz-source { height: 140px; }
.dz-editor-simple .dz-wysiwyg { min-height: 140px; max-height: 320px; }
.dz-editor-simple .dz-attach-panel { display: none !important; }

/* responsive: let groups wrap on narrow screens */
@media (max-width: 720px) {
  .dz-editor .dz-btnrow { overflow: visible; }
  .dz-editor .b1r,
  .dz-editor .b2r { border-right: none; }
  .dz-editor .dz-popup { max-width: calc(100vw - 20px); }
}
