/* MYKINO.CC — Comments V21 / Orange Noir. Fullstory only. */
body.mk-dle #mk-fullstory #addcomment .mk-reply-context {
  display:flex; align-items:center; gap:13px; padding:13px 15px; margin:0 0 14px;
  border:1px solid #ff783e47; border-left:3px solid #ff783e; border-radius:11px;
  background:linear-gradient(110deg,#ff783e13,#14161c); color:#f5f5f8;
}
body.mk-dle #mk-fullstory #addcomment .mk-reply-context[hidden],
body.mk-dle #mk-fullstory #addcomment .mk-reply-error[hidden] {display:none!important}
body.mk-dle #mk-fullstory #addcomment .mk-reply-symbol {
  display:grid; place-items:center; width:35px;height:35px;flex:0 0 35px;
  color:#ff9565; background:#ff783e15;border-radius:9px;
}
body.mk-dle #mk-fullstory #addcomment .mk-reply-symbol svg {width:20px;height:20px}
body.mk-dle #mk-fullstory #addcomment .mk-reply-copy {flex:1;min-width:0;display:grid;gap:5px}
body.mk-dle #mk-fullstory #addcomment .mk-reply-label {font-size:12px;font-weight:750;color:#ffac85;overflow-wrap:anywhere}
body.mk-dle #mk-fullstory #addcomment .mk-reply-preview {font-size:11px;line-height:1.6;color:#b4b7c1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.mk-dle #mk-fullstory #addcomment .mk-reply-cancel {
  flex:none;display:grid;place-items:center;width:35px;height:35px;padding:0;
  background:#20222a;border:1px solid #ffffff25;border-radius:9px;color:#bdc0ca;cursor:pointer;
}
body.mk-dle #mk-fullstory #addcomment .mk-reply-cancel svg {width:17px;height:17px}
body.mk-dle #mk-fullstory #addcomment .mk-reply-cancel:hover {color:#ff9565;border-color:#ff783e80}
body.mk-dle #mk-fullstory #addcomment.mk-is-replying {border-color:#ff783e55!important}
body.mk-dle #mk-fullstory #addcomment .mk-reply-error {
  padding:12px 14px;margin:0 0 14px;border:1px solid #ff77774d;border-radius:9px;
  color:#ffb5b5;background:#ff444410;font-size:12px;line-height:1.6;overflow-wrap:anywhere;
}
body.mk-dle #mk-fullstory #addcomment button:disabled {opacity:.55;cursor:wait}
body.mk-dle #mk-fullstory .mk-reply-anchor {height:0;overflow:hidden}
/* Native quote blocks after publication and in the edit body. */
body.mk-dle #mk-fullstory .mk-comment-body :is(.quote_block,.quote,.title_quote) {max-width:100%;overflow-wrap:anywhere}
body.mk-dle #mk-fullstory .mk-comment-body .quote_block {margin:8px 0 12px}
body.mk-dle #mk-fullstory .mk-comment-body .title_quote {
  color:#ffab82;background:#ff783e12;border:1px solid #ff783e25;border-bottom:0;
  padding:8px 11px;border-radius:8px 8px 0 0;font-weight:750;font-size:11px;line-height:1.5;
}
body.mk-dle #mk-fullstory .mk-comment-body .quote {
  background:#191b22;border:1px solid #ffffff15;border-left:2px solid #ff783e;
  padding:11px 13px;margin:0 0 9px;border-radius:0 0 8px 8px;color:#ced1db;line-height:1.7;
}
body.mk-dle #mk-fullstory .mk-comment-body .quote_body {margin:0;padding:0;border:0;background:none}
/* DLE ajax_comm_edit replaces the comm-id container. Style its real controls. */
body.mk-dle #mk-fullstory .mk-comment-body:has(textarea[id^="dleeditcomments"]),
body.mk-dle #mk-fullstory [id^="comm-id-"]:has(textarea[id^="dleeditcomments"]) {min-width:0;max-width:100%}
body.mk-dle #mk-fullstory [id^="comm-id-"] textarea[id^="dleeditcomments"],
body.mk-dle #mk-fullstory #dlefastreplycomments textarea {
  display:block; width:100%!important;max-width:100%!important;min-height:148px;
  padding:14px 15px!important;border:1px solid #393b46!important;border-radius:10px!important;
  background:#0f1117!important;color:#f5f5f8!important;font:inherit;font-size:13px;line-height:1.7;
  resize:vertical;outline:0;box-shadow:none;
}
body.mk-dle #mk-fullstory [id^="comm-id-"] :is(textarea,input):focus,
body.mk-dle #mk-fullstory #dlefastreplycomments :is(textarea,input):focus {border-color:#ff783e!important;outline:2px solid #ff783e33}
body.mk-dle #mk-fullstory [id^="comm-id-"]:has(textarea[id^="dleeditcomments"]) input[type="text"],
body.mk-dle #mk-fullstory #dlefastreplycomments input:not([type="hidden"],[type="checkbox"],[type="radio"],[type="submit"],[type="button"]) {
  max-width:100%;min-height:38px;padding:8px 11px;border:1px solid #393b46;border-radius:8px;background:#0f1117;color:#fff;
}
body.mk-dle #mk-fullstory [id^="comm-id-"]:has(textarea[id^="dleeditcomments"]) :is(input[type="button"],input[type="submit"],button):not(.tox-tbtn,.tox-mbtn,.tox-button,.tox-split-button),
body.mk-dle #mk-fullstory #dlefastreplycomments :is(input[type="button"],input[type="submit"],button):not(.tox-tbtn,.tox-mbtn,.tox-button,.tox-split-button) {
  min-height:36px;margin:7px 6px 3px 0;padding:8px 13px;border:1px solid #ffffff25;border-radius:8px;
  background:#252730;color:#e1e3eb;font:inherit;font-size:12px;font-weight:700;cursor:pointer;
}
body.mk-dle #mk-fullstory [id^="comm-id-"] :is(button,input)[onclick*="ajax_save_comm_edit"],
body.mk-dle #mk-fullstory #dlefastreplycomments :is(button,input)[onclick*="ajax_fast_reply"] {background:#ff783e;color:#21110a;border-color:#ff783e}
body.mk-dle #mk-fullstory [id^="comm-id-"] :is(button,input)[onclick*="ajax_cancel_comm_edit"]:hover {border-color:#ff783e;color:#ffac85}
/* Native jQuery UI dialogs, attached to body by DLE, not the fullstory node. */
body.mk-dle:has(#mk-fullstory):has(.mk-comment-dialog:not([style*="display: none"])) .ui-widget-overlay {
  position:fixed!important;inset:0!important;width:100%!important;height:100%!important;
  background:#07080dc4!important;opacity:1!important;backdrop-filter:blur(4px);z-index:10998!important;
}
body.mk-dle .ui-dialog.mk-comment-dialog,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup),
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlepopup.dle-confirm,#dlepopup.dle-alert) {
  position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;z-index:10999!important;
  box-sizing:border-box!important;max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;
  height:auto!important;min-height:0!important;padding:0!important;overflow:auto!important;
  background:linear-gradient(145deg,#1e2028,#14161c 80%)!important;
  border:1px solid #ffffff25!important;border-radius:16px!important;color:#f5f5f8!important;
  box-shadow:0 24px 90px #000b!important;font-family:inherit!important;
}
body.mk-dle .mk-comment-dialog *,body.mk-dle .mk-comment-dialog *::before {box-sizing:border-box}
body.mk-dle .mk-comment-dialog .ui-dialog-titlebar,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-titlebar {
  display:flex!important;align-items:center;justify-content:space-between;gap:12px;
  position:relative!important;padding:17px 19px!important;border:0!important;border-bottom:1px solid #ffffff15!important;
  background:transparent!important;color:#f7f7f8!important;border-radius:0!important;
}
body.mk-dle .mk-comment-dialog .ui-dialog-title {float:none!important;width:auto!important;margin:0!important;white-space:normal!important;font-size:15px;font-weight:800;line-height:1.5}
body.mk-dle .mk-comment-dialog .ui-dialog-titlebar-close,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-titlebar-close {
  position:relative!important;inset:auto!important;flex:0 0 34px;width:34px!important;height:34px!important;
  margin:0!important;padding:0!important;display:grid!important;place-items:center;border-radius:9px!important;
  background:#282b33!important;border:1px solid #ffffff23!important;color:#d7d9e1!important;cursor:pointer;font-size:0!important;
}
body.mk-dle .mk-comment-dialog .ui-dialog-titlebar-close::after,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-titlebar-close::after {content:'×';font:24px/1 system-ui,sans-serif}
body.mk-dle .mk-comment-dialog .ui-dialog-titlebar-close .ui-icon,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-titlebar-close .ui-icon {display:none!important}
body.mk-dle .mk-comment-dialog .ui-dialog-content,
body.mk-dle:has(#mk-fullstory) :is(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) {
  height:auto!important;min-height:0!important;max-width:100%;padding:19px!important;
  border:0!important;background:transparent!important;color:#dfe1e8!important;font-size:13px;line-height:1.75;overflow-wrap:anywhere;
}
body.mk-dle:has(#mk-fullstory) #dlereplypopup textarea {
  width:100%!important;max-width:100%;min-height:150px;padding:12px!important;resize:vertical;
  border:1px solid #393b46!important;border-radius:10px!important;background:#0f1117!important;color:#fff!important;
}
body.mk-dle .mk-comment-dialog .ui-dialog-buttonpane,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-buttonpane {border:0!important;border-top:1px solid #ffffff15!important;background:transparent!important;padding:13px 19px!important;margin:0!important}
body.mk-dle .mk-comment-dialog .ui-dialog-buttonset,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-buttonset {display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:9px;float:none!important}
body.mk-dle .mk-comment-dialog .ui-dialog-buttonpane button,
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-buttonpane button {
  min-height:41px;padding:9px 16px!important;margin:0!important;border:1px solid #ffffff28!important;border-radius:9px!important;
  background:#24262e!important;color:#e2e4ec!important;font:inherit;font-size:12px;font-weight:750;cursor:pointer;
}
body.mk-dle .mk-comment-dialog .ui-dialog-buttonpane button:last-child {background:#ff783e!important;border-color:#ff783e!important;color:#21110a!important}
body.mk-dle .ui-dialog .ui-dialog-buttonpane button.ui-button-delete {background:#d7414c!important;border-color:#f16b75!important;color:#fff!important}
body.mk-dle .mk-comment-dialog button:focus-visible,body.mk-dle #mk-fullstory #addcomment .mk-reply-cancel:focus-visible {outline:2px solid #ffad86;outline-offset:2px}
@media(max-width:650px) {
  body.mk-dle #mk-fullstory #addcomment .mk-reply-context {padding:10px;gap:9px}
  body.mk-dle #mk-fullstory #addcomment .mk-reply-symbol {width:29px;height:29px;flex-basis:29px}
  body.mk-dle #mk-fullstory [id^="comm-id-"] textarea[id^="dleeditcomments"] {font-size:16px;min-height:128px}
  body.mk-dle .mk-comment-dialog .ui-dialog-titlebar,body.mk-dle .mk-comment-dialog .ui-dialog-content {padding:14px!important}
  body.mk-dle .mk-comment-dialog .ui-dialog-buttonpane {padding:12px!important}
  body.mk-dle .mk-comment-dialog .ui-dialog-buttonset button {flex:1 1 100px}
}
/* Match specificity of the body-attached DLE fallback selectors. */
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-buttonpane button:last-child {background:#ff783e!important;border-color:#ff783e!important;color:#21110a!important}
body.mk-dle:has(#mk-fullstory) .ui-dialog:has(#dlereplypopup,#dlepopup.dle-confirm,#dlepopup.dle-alert) .ui-dialog-buttonpane button.ui-button-delete {background:#d7414c!important;border-color:#f16b75!important;color:#fff!important}
