/* DLE 14 native addcomments.tpl — WRM-2 comment form, reuse the shared BBCode editor. */
.wrm2-comments-form{--wrbc-line:var(--wrm2-line);--wrbc-strong:var(--wrm2-line-strong);max-width:100%;border:1px solid var(--wrm2-line-strong);background:var(--wrm2-panel);min-width:0}
.wrm2-comments-form__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--wrm2-line)}
.wrm2-comments-form__head h2{font:900 clamp(17px,1.8vw,22px)/1.2 var(--wrm2-display);letter-spacing:0;margin:4px 0 0}
.wrm2-comments-form__kicker{font:900 10px/1.4 var(--wrm2-font);color:var(--wrm2-mint);letter-spacing:.12em;margin:0}
.wrm2-comments-form__body{min-width:0;padding:16px}
.wrm2-comments-form__guests{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.wrm2-comments-form__field{display:grid;gap:7px;min-width:0;font:900 10px/1.4 var(--wrm2-font);color:var(--wrm2-text)}
.wrm2-comments-form__field>span{color:var(--wrm2-muted)}
.wrm2-comments-form :is(input[type="text"],input[type="email"]){width:100%;min-width:0;height:40px;padding:9px 11px;background:var(--wrm2-canvas);border:1px solid var(--wrm2-line-strong);border-radius:0;color:var(--wrm2-text);font:500 12px/1.5 var(--wrm2-font)}
.wrm2-comments-form :is(input[type="text"],input[type="email"]):focus{outline:1px solid var(--wrm2-mint);border-color:var(--wrm2-mint)}
.wrm2-comments-form .wr-bc-mini-editor{margin:0}
.wrm2-comments-form .wr-bc-rich-surface{min-height:145px}
.wrm2-comments-form .wrm2-comments-form__editor-native{min-width:0}
.wrm2-comments-form .wrm2-comments-form__editor-native textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:145px;padding:12px;border:0;border-radius:0;background:var(--wrm2-canvas);color:var(--wrm2-text);font:500 12px/1.65 var(--wrm2-font);resize:vertical}
.wrm2-comments-form .wrm2-comments-form__editor-native :is(.bb-editor,.wseditor){min-width:0;max-width:100%}
/* Hide the legacy DLE toolbar and its enormous icon dropdown on first paint,
   BEFORE the shared rich-editor JS initializes. Textarea remains usable if JS fails. */
.wrm2-comments-form .wrm2-comments-form__editor-native .bb-editor .bb-pane,
.wrm2-comments-form .wrm2-comments-form__editor-native .bb-editor .bb-pane-dropdown{display:none!important}
.wrm2-comments-form .wrm2-comments-form__validation{margin:8px 0 0;color:#ff647e;font:700 11px/1.5 var(--wrm2-font)}
.wrm2-comments-form .wrm2-comments-form__validation[hidden]{display:none!important}
.wrm2-comments-form .wr-bc-editor-toolbar[hidden]{display:none!important}
.wrm2-comments-form__protect{display:grid;gap:12px;margin-top:15px;min-width:0}
.wrm2-comments-form__question{display:grid;gap:8px}
.wrm2-comments-form__question>div:first-child{font:500 12px/1.6 var(--wrm2-font);color:var(--wrm2-text)}
.wrm2-comments-form__captcha{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.wrm2-comments-form__captcha>input{flex:1 1 160px;max-width:260px}
.wrm2-comments-form__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px}
.wrm2-comments-form__footer-info{display:grid;gap:8px;min-width:0}
.wrm2-comments-form__subscribe:empty{display:none}
.wrm2-comments-form__subscribe .wrm2-checkbox{min-height:30px;color:var(--wrm2-text)}
.wrm2-comments-form__footnote{color:var(--wrm2-muted);font:500 10px/1.55 var(--wrm2-font);margin:0}
.wrm2-comments-form .comments_subscribe:not(.wrm2-checkbox){display:inline-flex;align-items:center;gap:7px;color:var(--wrm2-muted);font-size:11px}
.wrm2-comments-form__actions{display:flex;gap:8px;align-items:center;margin-left:auto}
.wrm2-comments-form__submit{box-sizing:border-box;flex:none;height:38px;min-height:38px;width:auto;min-width:0;padding:0 14px;white-space:nowrap}
.wrm2-comments-form :is(.fr-box,.tox,.mce-tinymce){max-width:100%}
@media(max-width:620px){.wrm2-comments-form__head{padding:13px}.wrm2-comments-form__body{padding:12px}.wrm2-comments-form__guests{grid-template-columns:1fr}.wrm2-comments-form__footer{flex-direction:column;align-items:stretch}.wrm2-comments-form__actions{margin-left:0}.wrm2-comments-form__submit{width:auto}}

/* Fullstory discussion heading shares the site-wide benefits and meta-guide UI. */
.wrm2-discussion-intro{margin:30px 0 16px;min-width:0}
.wrm2-discussion-intro .wrm2-meta-guide-head{border-bottom:0;padding:0}

/* Native DLE comments listing, using shared panels and author-group avatar component. */
.wrm2-discussion{min-width:0;margin:12px 0}
.wrm2-comment{display:grid;grid-template-columns:48px minmax(0,1fr);gap:13px;min-width:0;padding:16px;border:1px solid var(--wrm2-line-strong);background:var(--wrm2-panel);color:var(--wrm2-text);transition:border-color .15s ease}
.wrm2-comment:hover{border-color:var(--wrm2-muted)}
.wrm2-comment:has(.wrm2-comment__select input:checked){border-color:var(--wrm2-mint)}
.wrm2-comment__portrait{position:relative;width:48px;height:48px;min-width:0}
.wrm2-comment__portrait>a{display:block;width:48px;height:48px}
.wrm2-comment__avatar{display:block;width:48px;height:48px;object-fit:cover;border-radius:50%}
.wrm2-comment__content{min-width:0}
.wrm2-comment__meta{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px;padding-bottom:11px;border-bottom:1px solid var(--wrm2-line)}
.wrm2-comment__identity{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0}
.wrm2-comment__author{color:var(--wrm2-text);font:900 12px/1.5 var(--wrm2-font);overflow-wrap:anywhere}
.wrm2-comment__author>a:hover{color:var(--wrm2-mint)}
.wrm2-comment__role{color:var(--wrm2-muted);font:900 12px/1.5 var(--wrm2-font)}
.wrm2-comment__timestamp{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--wrm2-muted);font:600 10px/1.5 var(--wrm2-font)}
.wrm2-comment__number{color:var(--wrm2-subtle)}
.wrm2-comment__text{min-width:0;overflow-wrap:anywhere;font:400 12px/1.8 var(--wrm2-font);color:var(--wrm2-text)}
.wrm2-comment__text :is(p,blockquote,ul,ol){max-width:100%}
.wrm2-comment__text p:last-child{margin-bottom:0}
.wrm2-comment__text :is(img,video,iframe){max-width:100%;height:auto}
/* DLE [quote=name] emits consecutive .title_quote + .quote blocks. */
.wrm2-comment__text .title_quote{margin:12px 0 0;padding:9px 13px;border:1px solid var(--wrm2-line-strong);border-left:3px solid var(--wrm2-mint);border-bottom:0;background:var(--wrm2-canvas2);color:var(--wrm2-mint);font:900 10px/1.5 var(--wrm2-font);letter-spacing:.06em;overflow-wrap:anywhere}
.wrm2-comment__text .quote{margin:0 0 12px;padding:10px 13px 12px;border:1px solid var(--wrm2-line-strong);border-left:3px solid var(--wrm2-mint);background:var(--wrm2-canvas2);color:var(--wrm2-text);font:500 12px/1.7 var(--wrm2-font);overflow-wrap:anywhere}

.wrm2-comment__actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-top:15px;padding-top:11px;border-top:1px solid var(--wrm2-line);font:900 10px/1.3 var(--wrm2-font);letter-spacing:.04em}
.wrm2-comment__engagement,.wrm2-comment__moderation{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.wrm2-comment__moderation{margin-left:auto}
.wrm2-comment__actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:5px 9px;border:1px solid var(--wrm2-line);background:var(--wrm2-canvas2);color:var(--wrm2-muted);text-decoration:none;transition:border-color .15s,color .15s}
.wrm2-comment__actions a:hover{border-color:var(--wrm2-mint);color:var(--wrm2-mint)}
.wrm2-comment__action-icon{display:block;flex:none;width:14px;height:14px;object-fit:contain}
/* Use DLE's rating/reaction anchors unmodified; visuals are shared SVG masks. */
.wrm2-comment__rating{display:inline-flex;align-items:center;min-height:30px;border:0;background:transparent;color:var(--wrm2-muted);letter-spacing:0}
.wrm2-comment__actions .wrm2-comment__rating a{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:30px;padding:4px 5px;border:0;background:transparent;color:var(--wrm2-muted);text-decoration:none}
.wrm2-comment__actions .wrm2-comment__rating a:hover,.wrm2-comment__actions .wrm2-comment__rating a:focus-visible{border:0;background:transparent;color:var(--wrm2-mint)}
.wrm2-comment__actions .wrm2-comment__rating a:focus-visible{outline:1px solid var(--wrm2-mint);outline-offset:1px}
.wrm2-comment__rating-symbol{display:block;width:17px;height:17px;flex:none;background:currentColor;pointer-events:none}
.wrm2-comment__rating-symbol--up{-webkit-mask:url("../../ui/fa-thumbs-up.svg") center / contain no-repeat;mask:url("../../ui/fa-thumbs-up.svg") center / contain no-repeat}
.wrm2-comment__rating-symbol--down{-webkit-mask:url("../../ui/fa-thumbs-down.svg") center / contain no-repeat;mask:url("../../ui/fa-thumbs-down.svg") center / contain no-repeat}
.wrm2-comment__rating-score{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:30px;padding:3px 4px;color:var(--wrm2-text);font:900 12px/1 var(--wrm2-font);font-variant-numeric:tabular-nums}
.wrm2-comment__rating-score .ratingtypeplusminus,.wrm2-comment__rating-score .ratingtypeplus{color:var(--wrm2-text)}
.wrm2-comment__rating-score .ratingplus{color:var(--wrm2-mint)}
.wrm2-comment__rating-score .ratingminus{color:var(--wrm2-red)}
.wrm2-comment__rating-score--positive,.wrm2-comment__rating-score--positive .ignore-select{color:var(--wrm2-mint)}
.wrm2-comment__rating-score--negative,.wrm2-comment__rating-score--negative .ignore-select{color:var(--wrm2-red)}
.wrm2-comment__rating--stars{padding:0 5px}
.wrm2-comment__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wrm2-comment__select{padding-left:5px;white-space:nowrap}
.wrm2-comment__topic{font:800 10px/1.5 var(--wrm2-font);letter-spacing:.04em;color:var(--wrm2-muted);margin:0 0 7px}
.wrm2-comment__topic a{color:var(--wrm2-mint)}
/* DLE 14 builds this moderation block OUTSIDE comments.tpl, inside #dlemasscomments. */
#dlemasscomments .mass_comments_action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;margin:10px 0 10px;padding:14px 16px;border:1px solid var(--wrm2-line-strong);background:var(--wrm2-canvas2);color:var(--wrm2-text);font:800 11px/1.4 var(--wrm2-font)}
#dlemasscomments .wrm2-mass-comments__heading{display:flex;flex:1 1 150px;align-items:center;gap:9px;min-width:0}
#dlemasscomments .wrm2-mass-comments__heading>span{color:var(--wrm2-mint);letter-spacing:.05em}
#dlemasscomments .wrm2-mass-comments__controls{display:flex;align-items:center;gap:9px;flex:1 1 360px;justify-content:flex-end;flex-wrap:wrap;min-width:0}
#dlemasscomments .wrm2-mass-comments__count{color:var(--wrm2-muted);font:800 10px/1.4 var(--wrm2-font);white-space:nowrap}
#dlemasscomments .mass_comments_action select[name="mass_action"]{flex:1 1 165px;max-width:270px;min-width:138px;min-height:38px;height:38px}
#dlemasscomments .mass_comments_action input[type="submit"]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:38px;height:38px;padding:0 16px;border:1px solid var(--wrm2-mint);border-radius:0;background:var(--wrm2-mint);color:#06170e;cursor:pointer;font:900 10px/1 var(--wrm2-font);letter-spacing:.04em;transition:background .15s}
#dlemasscomments .mass_comments_action input[type="submit"]:hover{background:#75ffb7}
#dlemasscomments .mass_comments_action input[type="submit"]:focus-visible{outline:2px solid var(--wrm2-mint);outline-offset:2px}
#dlemasscomments .mass_comments_action input[type="submit"]:disabled{opacity:.45;cursor:not-allowed}
#dlemasscomments .mass_comments_action .wrm2-mass-comments__all{white-space:nowrap}
/* DLE 14 already emits a real nested <ol>/<li> tree; theme it without moving rows. */
#dlemasscomments .comments-tree-list{list-style:none;margin:0;padding:0;min-width:0}
#dlemasscomments .comments-tree-item{position:relative;list-style:none;min-width:0;margin:0 0 10px;padding:0}
#dlemasscomments .comments-tree-item>.wrm2-discussion{margin:0}
#dlemasscomments .comments-tree-item>.comments-tree-list{margin:0 0 0 24px;padding:0 0 0 22px}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item{margin:12px 0 0}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item:first-child{margin-top:0}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item::before{content:"";position:absolute;left:-22px;top:0;bottom:-12px;width:1px;background:var(--wrm2-line-strong);pointer-events:none}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item:last-child::before{top:0;bottom:auto;height:35px}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item::after{content:"";position:absolute;top:35px;left:-22px;width:22px;height:1px;background:var(--wrm2-line-strong);pointer-events:none}
#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item>.wrm2-discussion>.wrm2-comment{border-left:2px solid var(--wrm2-mint)}
/* Keep deep discussions legible without pushing content outside the viewport. */
#dlemasscomments .comments-tree-list .comments-tree-list .comments-tree-list .comments-tree-list{margin-left:0;padding-left:10px}
#dlemasscomments .comments-tree-list .comments-tree-list .comments-tree-list .comments-tree-list>.comments-tree-item::before{left:-10px;width:10px}
@media(max-width:620px){.wrm2-comment{grid-template-columns:38px minmax(0,1fr);gap:10px;padding:11px}.wrm2-comment__portrait,.wrm2-comment__portrait>a,.wrm2-comment__avatar{width:38px;height:38px}.wrm2-comment__tier{width:21px;height:21px;right:-4px;bottom:-4px}.wrm2-comment__tier img{width:18px;height:18px}.wrm2-comment__meta{gap:5px 10px}.wrm2-comment__engagement,.wrm2-comment__moderation{gap:5px}.wrm2-comment__actions{align-items:flex-start}.wrm2-comment__moderation{margin-left:0}.wrm2-comment__select{padding-left:0}#dlemasscomments .mass_comments_action{align-items:stretch;padding:12px;flex-direction:column}#dlemasscomments .wrm2-mass-comments__heading,#dlemasscomments .wrm2-mass-comments__controls{flex:0 1 auto;width:100%;justify-content:flex-start}#dlemasscomments .mass_comments_action select[name="mass_action"]{max-width:none}#dlemasscomments .comments-tree-item>.comments-tree-list{margin-left:9px;padding-left:12px}#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item::before{left:-12px;top:0;bottom:-12px;width:1px}#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item:last-child::before{height:29px;bottom:auto}#dlemasscomments .comments-tree-item>.comments-tree-list>.comments-tree-item::after{left:-12px;width:12px;top:29px}#dlemasscomments .comments-tree-list .comments-tree-list .comments-tree-list{margin-left:0;padding-left:8px}#dlemasscomments .comments-tree-list .comments-tree-list .comments-tree-list>.comments-tree-item::before{left:-8px}#dlemasscomments .comments-tree-list .comments-tree-list .comments-tree-list>.comments-tree-item::after{left:-8px;width:8px}}

/* Stage 3.149: DLE 14 simple-reply safe fallback before/without enhancement.
   Matches only the native AJAX container, never the main form or other fields. */
#dlefastreplycomments{box-sizing:border-box;max-width:100%;min-width:0;overflow-wrap:anywhere;color:var(--wrm2-text);font:600 12px/1.6 var(--wrm2-font)}
#dlefastreplycomments > form{box-sizing:border-box;min-width:0;max-width:100%;margin:10px 0 0;padding:12px;border:1px solid var(--wrm2-line-strong);background:var(--wrm2-canvas2)}
#dlefastreplycomments > form.wrm2-comments-form--inline{margin:10px 0 0}
#dlefastreplycomments > form .bb-editor{box-sizing:border-box;max-width:100%;min-width:0}
#dlefastreplycomments > form textarea[id^="comments"]:not([hidden]){box-sizing:border-box;display:block;min-width:0;width:100%;max-width:100%;min-height:155px;padding:12px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-canvas);color:var(--wrm2-text);font:500 12px/1.7 var(--wrm2-font);resize:vertical}
#dlefastreplycomments > form .comments_subscribe{display:inline-flex;align-items:center;gap:9px;margin-top:12px;color:var(--wrm2-text);font:700 11px/1.5 var(--wrm2-font)}
#dlefastreplycomments > form .comments_subscribe input[type=checkbox]{appearance:none;box-sizing:border-box;flex:none;width:17px;height:17px;margin:0;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-canvas);cursor:pointer}
#dlefastreplycomments > form .comments_subscribe input[type=checkbox]:checked{border-color:var(--wrm2-mint);background:var(--wrm2-mint)}
#dlefastreplycomments > form .comments_subscribe input[type=checkbox]:checked::after{content:'✓';display:block;text-align:center;font:900 12px/15px var(--wrm2-font);color:#06170e}
#dlefastreplycomments > .save-buttons{box-sizing:border-box;max-width:100%;margin:0;padding:10px 12px;border:1px solid var(--wrm2-line-strong);border-top:0;background:var(--wrm2-canvas2)}
#dlefastreplycomments > .save-buttons .bbcodes{box-sizing:border-box;min-height:36px;padding:0 13px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-panel2);color:var(--wrm2-text);font:900 11px/1.2 var(--wrm2-font);letter-spacing:.07em;cursor:pointer}
#dlefastreplycomments > .save-buttons .applychanges{border-color:var(--wrm2-mint);background:var(--wrm2-mint);color:#06170e}

/* DLE 14 AJAX edit / threaded reply use the SAME BBCode editor component. */
.wrm2-comments-form--inline{--wrbc-line:var(--wrm2-line);--wrbc-strong:var(--wrm2-line-strong);box-sizing:border-box;max-width:100%;min-width:0;margin:14px 0;padding:12px;background:var(--wrm2-canvas2)}
.wrm2-comments-form--inline .wr-bc-mini-editor{margin:0}
.wrm2-comments-form--inline .wrm2-comments-form__editor-native textarea{min-height:155px}
/* Safe themed fallback when addcomments.tpl is unavailable and there is no
   shared toolbar to clone (e.g. restricted comment posting in DLE). */
.wrm2-comments-form--native-editor .bb-editor > textarea:not([hidden]){box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:155px;padding:12px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-canvas);color:var(--wrm2-text);font:500 12px/1.7 var(--wrm2-font);resize:vertical}

/* The main editor already supplies the source toggle; AJAX clones only
   its static controls. Keep DLE's own toolbar out of the enhanced surface. */
.wrm2-comments-form--inline .wr-bc-rich-surface{min-height:155px}
.wrm2-comments-form--inline:not(.wrm2-comments-form--native-editor) .bb-editor > .bb-pane,
.wrm2-comments-form--inline:not(.wrm2-comments-form--native-editor) .bb-editor > .bb-pane-dropdown{display:none!important}
.wrm2-comments-form--inline .save-buttons{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:9px;margin-top:12px;padding-top:10px;border-top:1px solid var(--wrm2-line)}
.wrm2-comments-form--inline :is(.applychanges,.cancelchanges),#dlefastreplycomments .wrm2-comments-inline-actions :is(.applychanges,.cancelchanges){box-sizing:border-box;min-height:36px;padding:0 13px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-panel2);color:var(--wrm2-text);font:900 11px/1.2 var(--wrm2-font);letter-spacing:.07em;cursor:pointer}
.wrm2-comments-form--inline .applychanges,#dlefastreplycomments .wrm2-comments-inline-actions .applychanges{border-color:var(--wrm2-mint);background:var(--wrm2-mint);color:#06170e}
.wrm2-comments-form--inline .cancelchanges:hover,#dlefastreplycomments .wrm2-comments-inline-actions .cancelchanges:hover{border-color:var(--wrm2-mint);color:var(--wrm2-mint)}
#dlefastreplycomments .wrm2-comments-inline-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:-5px 0 15px;padding:0 12px 12px;border:1px solid var(--wrm2-line-strong);border-top:0;background:var(--wrm2-canvas2)}
#dlefastreplycomments .wrm2-comments-reply{margin-bottom:0;border-bottom:0}
#dlefastreplycomments > :first-child:not(form):not(.save-buttons){color:var(--wrm2-muted);font:700 12px/1.5 var(--wrm2-font)}
.wrm2-comments-reply .comments_subscribe{margin:12px 0 0;color:var(--wrm2-text)}
.wrm2-comments-reply :is(input[type=text],input[type=email]){box-sizing:border-box;min-height:38px;max-width:100%;padding:8px 11px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-canvas);color:var(--wrm2-text)}
/* DLE 14 full Reply: keep its original jQuery UI actions, share the site's
   auth/dialog visual language (tokens, sharp edges, mint kicker and X control). */
.wrm2-reply-modal-overlay.ui-widget-overlay{position:fixed;inset:0;background:#000e;opacity:1;backdrop-filter:blur(4px)}
.dle-popup-replycomments.wrm2-comment-reply-dialog.ui-dialog{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%);display:flex;flex-direction:column;box-sizing:border-box;width:min(740px,calc(100vw - 24px))!important;min-width:0;max-width:calc(100vw - 24px);height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;padding:0;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-canvas2);color:var(--wrm2-text);box-shadow:0 24px 80px #000c;overflow:hidden}
.dle-popup-replycomments .wrm2-modal-head.ui-dialog-titlebar{position:relative;flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:84px;gap:5px;margin:0;padding:17px 64px 17px 20px;border:0;border-bottom:1px solid var(--wrm2-line);border-radius:0;background:var(--wrm2-canvas2);color:var(--wrm2-text);cursor:default}
.dle-popup-replycomments .wrm2-modal-kicker{display:block;float:none;font:900 10px/1.3 var(--wrm2-font);letter-spacing:.13em;color:var(--wrm2-mint)}
.dle-popup-replycomments .ui-dialog-title{display:block;float:none;width:auto;max-width:100%;margin:0;overflow-wrap:anywhere;color:var(--wrm2-text);font:900 clamp(17px,2.3vw,23px)/1.2 var(--wrm2-display);text-transform:none}
#dlereplypopup.wrm2-comment-reply-popup.ui-dialog-content{box-sizing:border-box;flex:0 1 auto;width:100%!important;min-width:0;height:auto!important;min-height:0!important;max-height:calc(100dvh - 172px);overflow-y:auto;overflow-x:hidden;padding:18px 20px 16px!important;border:0!important;background:var(--wrm2-canvas2);color:var(--wrm2-text);font:500 12px/1.6 var(--wrm2-font)}
#dlereplypopup.wrm2-comment-reply-popup>br{display:none}
#dlereplypopup.wrm2-comment-reply-popup> b{color:var(--wrm2-mint)}
.dle-popup-replycomments .wrm2-comments-form--inline{margin:12px 0 0;padding:0;border:0;background:transparent}
.dle-popup-replycomments .wrm2-comments-form .wr-bc-rich-surface{min-height:160px}
.dle-popup-replycomments .wrm2-comments-form__editor-native .bb-editor>textarea{min-height:160px}
.dle-popup-replycomments .wrm2-comments-reply .comments_subscribe{display:inline-flex;align-items:center;margin:14px 0 0}
.dle-popup-replycomments .ui-dialog-buttonpane{flex:0 0 auto;box-sizing:border-box;width:100%;margin:0;padding:12px 20px;border:0;border-top:1px solid var(--wrm2-line);border-radius:0;background:var(--wrm2-panel)}
.dle-popup-replycomments .ui-dialog-buttonpane .ui-dialog-buttonset{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;float:none;width:100%}
.dle-popup-replycomments .ui-dialog-buttonpane button.wrm2-btn{float:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:38px;height:auto;margin:0;padding:9px 15px;border:1px solid var(--wrm2-line-strong);border-radius:0;background:var(--wrm2-panel2);color:var(--wrm2-text);box-shadow:none;font:900 11px/1.3 var(--wrm2-font);letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.dle-popup-replycomments .ui-dialog-buttonpane button.wrm2-btn:hover{border-color:var(--wrm2-mint)}
.dle-popup-replycomments .ui-dialog-buttonpane button.wrm2-btn-primary{border-color:var(--wrm2-mint);background:var(--wrm2-mint);color:#06170e}
.dle-popup-replycomments .ui-dialog-buttonpane button.wrm2-btn-primary:hover{background:#75ffb7;color:#06170e}
/* DLE full-reply Froala/TinyMCE remains native: no BBCode re-serialization. */
.dle-popup-replycomments .wrm2-comments-form--native-editor :is(.fr-box,.tox,.mce-tinymce){max-width:100%;border:1px solid var(--wrm2-line-strong);border-radius:0}
.dle-popup-replycomments .wrm2-comments-form--native-editor :is(.fr-toolbar,.tox-editor-header){border-color:var(--wrm2-line-strong);background:var(--wrm2-panel2)}
.dle-popup-replycomments .wrm2-comments-form--native-editor :is(.fr-element,.tox-edit-area iframe){min-height:145px}
.dle-popup-replycomments :is(input[type=text],input[type=email],textarea){box-sizing:border-box;max-width:100%;border-radius:0}
@media(max-width:620px){.dle-popup-replycomments.wrm2-comment-reply-dialog.ui-dialog{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.dle-popup-replycomments .wrm2-modal-head.ui-dialog-titlebar{min-height:72px;padding:12px 52px 12px 12px}.dle-popup-replycomments .ui-dialog-titlebar-close.wrm2-close-button{top:14px;right:12px}#dlereplypopup.wrm2-comment-reply-popup.ui-dialog-content{padding:13px!important;max-height:calc(100dvh - 142px)}.dle-popup-replycomments .ui-dialog-buttonpane{padding:10px 12px}.dle-popup-replycomments .ui-dialog-buttonpane button.wrm2-btn{min-height:40px}}
@media(max-width:620px){.wrm2-comments-form--inline{padding:9px}#dlefastreplycomments .wrm2-comments-inline-actions{padding:0 9px 9px}}

