/* ===========================================================================
   MYKINO.CC · ORANGE NOIR — PRIVATE MESSAGES V5
   Complete self-contained PM page styles. No engine.css/styles.css required.
   All selectors are scoped to .mk-pm-page and do not alter other DLE pages.
   =========================================================================== */

.mk-pm-page {
  --pm-bg: #0b0c10;
  --pm-surface: #14161c;
  --pm-elevated: #1b1d24;
  --pm-elevated-hover: #25232a;
  --pm-border: rgba(255, 255, 255, 0.10);
  --pm-text: #f6f6f8;
  --pm-muted: #a4a5af;
  --pm-accent: #ff783e;
  --pm-accent-soft: rgba(255, 120, 62, 0.11);
  --pm-ring: rgba(255, 120, 62, 0.24);

  box-sizing: border-box;
  width: min(100%, 1390px);
  max-width: 100%;
  margin: 0 auto 76px;
  padding: 20px 0 36px;
  color: var(--pm-text);
  font-family: "BPG WEB 001", "Noto Sans Georgian", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.mk-pm-page,
.mk-pm-page *,
.mk-pm-page *::before,
.mk-pm-page *::after {
  box-sizing: border-box;
}

.mk-pm-page :is(h1, h2, h3, p, ul, ol) {
  margin-top: 0;
}

.mk-pm-page a {
  color: #f1f2f5;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mk-pm-page a:hover {
  color: #ffad86;
  text-decoration: none;
}

.mk-pm-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #ff986c;
  outline-offset: 3px;
}

.mk-pm-page svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

/* Header */
.mk-pm-page .mk-pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 4px 1px 24px;
}

.mk-pm-page .mk-pm-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #ff9b6d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.mk-pm-page .mk-pm-header h1 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 850;
  letter-spacing: -0.3px;
  line-height: 1.28;
}

.mk-pm-page .mk-pm-header p {
  margin: 0;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.7;
}

.mk-pm-page .mk-pm-header-icon {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 120, 62, 0.3);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(255, 120, 62, 0.16), rgba(255, 120, 62, 0.03));
  color: var(--pm-accent);
  box-shadow: 0 10px 27px rgba(255, 120, 62, 0.06);
}

.mk-pm-page .mk-pm-header-icon svg {
  width: 26px;
  height: 26px;
}

/* Navigation and quota */
.mk-pm-page .mk-pm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mk-pm-page .mk-pm-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  padding: 5px;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  background: #16171c;
}

.mk-pm-page .mk-pm-menu > :is(a, span, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 15px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #b6b7c0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

/* DLE sometimes renders [inbox]/[new_pm] as a link wrapping a span. */
.mk-pm-page .mk-pm-menu > a > span {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.mk-pm-page .mk-pm-menu > a:hover {
  border-color: rgba(255, 120, 62, 0.32);
  background: rgba(255, 120, 62, 0.09);
  color: #ffc09f;
}

.mk-pm-page .mk-pm-menu > span {
  border-color: rgba(255, 120, 62, 0.30);
  background: rgba(255, 120, 62, 0.13);
  color: #ffb28e;
  cursor: default;
}

.mk-pm-page .mk-pm-menu > :first-child::before,
.mk-pm-page .mk-pm-menu > :nth-child(2)::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm0 2 9 6 9-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm0 2 9 6 9-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mk-pm-page .mk-pm-menu > :nth-child(2)::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mk-pm-page .mk-pm-storage {
  width: min(265px, 100%);
  min-width: 190px;
  color: var(--pm-muted);
  font-size: 11px;
}

.mk-pm-page .mk-pm-progress {
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 20px;
}

.mk-pm-page .mk-pm-storage :is(.pm_progress_bar, .pm_progress, .pm-progress-bar, progress, .progress_bar) {
  display: block;
  width: 100%;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #303138;
  overflow: hidden;
}

.mk-pm-page .mk-pm-storage :is(.pm_progress_bar, .pm_progress, .pm-progress-bar, .progress_bar) :is(span, div) {
  height: 100%;
  border-radius: 20px;
  background: var(--pm-accent);
}

.mk-pm-page .mk-pm-storage progress::-webkit-progress-value { background: var(--pm-accent); }
.mk-pm-page .mk-pm-storage progress::-moz-progress-bar { background: var(--pm-accent); }

.mk-pm-page .mk-pm-storage small {
  display: block;
  color: #a7a8b1;
  font-size: 11px;
}

.mk-pm-page .mk-pm-storage small strong { color: #ffb28c; }

/* Shared panel */
.mk-pm-page .mk-pm-panel {
  min-width: 0;
  overflow: hidden;
  padding: clamp(15px, 2vw, 26px);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  background: var(--pm-surface);
  box-shadow: 0 13px 42px rgba(0, 0, 0, 0.12);
}

.mk-pm-page .mk-pm-panel-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin-bottom: 23px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mk-pm-page .mk-pm-section-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  border: 1px solid rgba(255, 120, 62, 0.24);
  border-radius: 12px;
  background: rgba(255, 120, 62, 0.10);
  color: var(--pm-accent);
}

.mk-pm-page .mk-pm-section-icon svg {
  width: 21px;
  height: 21px;
}

.mk-pm-page .mk-pm-panel-heading h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
}

.mk-pm-page .mk-pm-panel-heading p {
  margin: 0;
  color: var(--pm-muted);
  font-size: 11px;
  line-height: 1.65;
}

/* The DLE-rendered inbox table. Do not modify its native forms, links or names. */
.mk-pm-page .mk-pmlist {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 120, 62, 0.45) transparent;
}

.mk-pm-page .mk-pmlist :is(table, .pm) {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 9px;
  background: none;
  color: #f0f1f5;
  font-size: 12px;
}

.mk-pm-page .mk-pmlist :is(th, td) {
  box-sizing: border-box;
  height: auto;
  padding: 13px 16px;
  border: 0;
  text-align: left;
  vertical-align: middle;
  line-height: 1.55;
}

.mk-pm-page .mk-pmlist th,
.mk-pm-page .mk-pmlist thead td {
  padding: 14px 16px;
  background: #22242d;
  color: #acafba;
  font-size: 11px;
  font-weight: 750;
}

.mk-pm-page .mk-pmlist thead tr > :first-child { border-radius: 10px 0 0 10px; }
.mk-pm-page .mk-pmlist thead tr > :last-child { border-radius: 0 10px 10px 0; }

.mk-pm-page .mk-pmlist tbody td {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: #1b1d25;
  color: #e4e5ed;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mk-pm-page .mk-pmlist tbody tr > td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px 0 0 10px;
}

.mk-pm-page .mk-pmlist tbody tr > td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 0 10px 10px 0;
}

.mk-pm-page .mk-pmlist tbody tr:hover td {
  background: #26252c;
  border-color: rgba(255, 120, 62, 0.18);
}

/* A checked row is highlighted, but the checkbox action remains native DLE. */
.mk-pm-page .mk-pmlist tbody tr:has(input[type="checkbox"]:checked) td {
  background: rgba(255, 120, 62, 0.11);
}

.mk-pm-page .mk-pmlist tr:has(.pm-unread-image) td,
.mk-pm-page .mk-pmlist :is(tr.unread, tr.pm_new, tr.new_pm) td {
  background: #27201f;
}

.mk-pm-page .mk-pmlist td a {
  color: #f7f7fa;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.mk-pm-page .mk-pmlist td a:hover { color: var(--pm-accent); }

.mk-pm-page .mk-pmlist :is(.pm-unread-image, .pm_icon, .pm-unread) {
  color: var(--pm-accent);
}

/*
 * V6 — Real browser-native message checkboxes.
 * Do not replace these with decorative pseudo-elements: DLE uses the native
 * checked property to submit the selected message IDs.
 */
.mk-pm-page .mk-pmlist input[type="checkbox"] {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  accent-color: #ff783e !important;
  color-scheme: dark;
  display: inline-block !important;
  position: relative !important;
  z-index: 1;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  vertical-align: middle;
  -webkit-tap-highlight-color: rgba(255, 120, 62, 0.2);
}

.mk-pm-page .mk-pmlist input[type="checkbox"]::before,
.mk-pm-page .mk-pmlist input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

.mk-pm-page .mk-pmlist input[type="checkbox"]:focus-visible {
  outline: 2px solid #ff783e !important;
  outline-offset: 3px;
}

.mk-pm-page .mk-pmlist input[type="checkbox"]:disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
}

.mk-pm-page .mk-pmlist :is(select, input[type="text"], input[type="search"]) {
  width: min(100%, 500px);
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #393a45;
  border-radius: 9px;
  background: #1e2028;
  color: #f4f4f6;
  font-family: inherit;
  font-size: 12px;
}

.mk-pm-page .mk-pmlist :is(select, input):focus {
  border-color: var(--pm-accent);
}

.mk-pm-page .mk-pmlist :is(input[type="submit"], input[type="button"], button, .fbutton, .btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid #4a3c38;
  border-radius: 9px;
  background: #29252a;
  color: #f7f7f8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mk-pm-page .mk-pmlist :is(input[type="submit"], input[type="button"], button, .fbutton, .btn):hover {
  border-color: var(--pm-accent);
  background: rgba(255, 120, 62, 0.16);
}

.mk-pm-page .mk-pmlist :is(form, .pm_navigation, .pm_list_form) {
  max-width: 100%;
}

.mk-pm-page .mk-pmlist .pm_navigation {
  padding: 15px 0 0;
}

/* Compose and reply */
.mk-pm-page .mk-pm-compose-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}

.mk-pm-page .mk-pm-field { min-width: 0; }

.mk-pm-page .mk-pm-field label,
.mk-pm-page .mk-pm-editor-head label {
  display: block;
  margin: 0 0 8px;
  color: #c9c9d2;
  font-size: 12px;
  font-weight: 750;
}

.mk-pm-page .mk-pm-field :is(input, textarea, select) {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid #353741;
  border-radius: 10px;
  background: #1c1e26;
  color: #f8f8fa;
  font-family: inherit;
  font-size: 13px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mk-pm-page .mk-pm-field :is(input, textarea, select):focus {
  border-color: var(--pm-accent);
  box-shadow: 0 0 0 3px var(--pm-ring);
  outline: none;
}

.mk-pm-page .mk-pm-field :is(input, textarea)::placeholder {
  color: #858692;
  opacity: 1;
}

.mk-pm-page .mk-pm-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.mk-pm-page .mk-pm-editor-head label { margin: 0; }

.mk-pm-page .mk-pm-editor-head span {
  color: #858994;
  font-size: 11px;
}

.mk-pm-page .mk-pm-editor {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 185px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #363943;
  border-radius: 11px;
  background: #20222b;
}

.mk-pm-page .mk-pm-editor :is(textarea, .bb-editor, .tox-tinymce, .mce-tinymce, iframe) {
  display: block;
  max-width: 100%;
  width: 100%;
}

.mk-pm-page .mk-pm-editor textarea {
  min-height: 210px;
  padding: 14px;
  border: 0;
  background: #20222b;
  color: #f6f6f8;
  resize: vertical;
  font-family: inherit;
}

.mk-pm-page .mk-pm-editor :is(.tox-toolbar, .tox-toolbar__primary, .mce-toolbar-grp, .bb-toolbar, .wysibb-toolbar) {
  background: #2b2d36;
  border-color: rgba(255, 255, 255, 0.08);
}

.mk-pm-page .mk-pm-editor :is(.tox-edit-area, .tox-edit-area__iframe, .mce-edit-area) {
  background: #20222b;
}

.mk-pm-page .mk-pm-security { margin-top: 18px; }

.mk-pm-page .mk-pm-captcha { max-width: 100%; overflow-x: auto; }

.mk-pm-page .mk-pm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pm-border);
}

.mk-pm-page .mk-pm-actions-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.mk-pm-page .mk-pm-form-note {
  color: #858894;
  font-size: 11px;
}

.mk-pm-page .mk-pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #3e3d47;
  border-radius: 10px;
  background: #282a33;
  color: #f4f4f6;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mk-pm-page .mk-pm-btn svg { width: 16px; height: 16px; }
.mk-pm-page .mk-pm-btn:hover { background: #35323a; border-color: rgba(255, 120, 62, 0.52); }
.mk-pm-page .mk-pm-btn:active { transform: translateY(1px); }

.mk-pm-page .mk-pm-btn-primary {
  border-color: var(--pm-accent);
  background: var(--pm-accent);
  color: #22120a;
  box-shadow: 0 7px 24px rgba(255, 120, 62, 0.14);
}

.mk-pm-page .mk-pm-btn-primary:hover {
  border-color: #ff9d70;
  background: #ff9d70;
  color: #1c100b;
}

/* Read conversation */
.mk-pm-page .mk-pm-conversation-label {
  display: block;
  margin-bottom: 3px;
  color: #9c9fa9;
  font-size: 10px;
}

.mk-pm-page .mk-pm-messages { display: grid; gap: 14px; }

.mk-pm-page .mk-message {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a1c23;
}

.mk-pm-page .mk-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mk-pm-page .mk-message-avatar {
  display: block;
  width: 45px;
  height: 45px;
  flex: none;
  overflow: hidden;
  border: 2px solid rgba(255, 120, 62, 0.28);
  border-radius: 50%;
  background: #33333e;
}

.mk-pm-page .mk-message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-pm-page .mk-message-person {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 10px;
  min-width: 0;
}

.mk-pm-page .mk-message-person strong {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.mk-pm-page .mk-message-person time {
  color: #969aa8;
  font-size: 11px;
}

.mk-pm-page .mk-message-online {
  color: #45d4a0;
  font-size: 11px;
}

.mk-pm-page .mk-message-body {
  min-height: 64px;
  padding: 16px;
  border-left: 3px solid var(--pm-accent);
  border-radius: 10px;
  background: #101219;
  color: #e5e5ed;
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.mk-pm-page .mk-message-signature {
  margin-top: 20px;
  padding-top: 11px;
  border-top: 1px solid var(--pm-border);
  color: #9da1ab;
}

.mk-pm-page .mk-message-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.mk-pm-page .mk-message-tools a {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #38363e;
  border-radius: 8px;
  background: #292932;
  color: #c6c7cf;
  font-size: 11px;
}

.mk-pm-page .mk-message-tools a:hover {
  border-color: rgba(255, 120, 62, 0.35);
  background: var(--pm-accent-soft);
  color: #ffb78e;
}

.mk-pm-page .mk-pm-reply {
  margin-top: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--pm-border);
}

.mk-pm-page .mk-pm-reply h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 850;
  color: #fff;
}

.mk-pm-page .mk-pm-reply-actions { justify-content: flex-end; }

/* Responsive */
@media (max-width: 800px) {
  .mk-pm-page { padding-top: 12px; }
  .mk-pm-page .mk-pm-header { padding-bottom: 22px; }
  .mk-pm-page .mk-pm-header-icon { width: 49px; height: 49px; }
  .mk-pm-page .mk-pm-compose-fields { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 600px) {
  .mk-pm-page { margin-bottom: 45px; }
  .mk-pm-page .mk-pm-header { gap: 12px; }
  .mk-pm-page .mk-pm-header h1 { font-size: 23px; }
  .mk-pm-page .mk-pm-header p { font-size: 11px; }
  .mk-pm-page .mk-pm-header-icon { width: 43px; height: 43px; border-radius: 11px; }
  .mk-pm-page .mk-pm-header-icon svg { width: 20px; height: 20px; }
  .mk-pm-page .mk-pm-toolbar { align-items: stretch; }
  .mk-pm-page .mk-pm-menu { width: 100%; justify-content: stretch; }
  .mk-pm-page .mk-pm-menu > :is(a, span, button) { flex: 1 1 auto; padding: 10px 12px; }
  .mk-pm-page .mk-pm-storage { width: 100%; }
  .mk-pm-page .mk-pm-panel { padding: 15px; border-radius: 12px; }
  .mk-pm-page .mk-pm-panel-heading { margin-bottom: 16px; padding-bottom: 15px; }
  .mk-pm-page .mk-pm-panel-heading h2 { font-size: 15px; }
  .mk-pm-page .mk-pm-panel-heading p { font-size: 10px; }
  .mk-pm-page .mk-pm-section-icon { width: 37px; height: 37px; }
  .mk-pm-page .mk-pmlist :is(table, .pm) { min-width: 610px; }
  .mk-pm-page .mk-pmlist::after {
    content: "სიის სანახავად გაასქროლე მარჯვნივ →";
    display: block;
    padding: 8px 2px 0;
    color: #8e919b;
    font-size: 10px;
  }
  .mk-pm-page .mk-pm-actions { align-items: stretch; }
  .mk-pm-page .mk-pm-form-note { order: 2; }
  .mk-pm-page .mk-pm-actions-buttons { width: 100%; margin-left: 0; }
  .mk-pm-page .mk-pm-actions-buttons .mk-pm-btn { flex: 1 1 auto; }
}

@media (max-width: 350px) {
  .mk-pm-page .mk-pm-header-icon { display: none; }
  .mk-pm-page .mk-pm-menu { gap: 3px; }
  .mk-pm-page .mk-pm-menu > :is(a, span, button) { font-size: 11px; padding: 9px 8px; }
  .mk-pm-page .mk-pm-panel { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-pm-page *, .mk-pm-page *::before, .mk-pm-page *::after { transition: none !important; }
}
/* ========================================================================== 
   Independent jQuery UI PM dialog base (does not require engine.css)
   The mk-pm-dialog class is attached to DLE's existing dialog by JS.
   ========================================================================== */

.ui-dialog.mk-pm-dialog {
  --mk-pm-accent: #ff783e;
  --mk-pm-accent-light: #ffa77f;
  --mk-pm-text: #f7f7f8;
  --mk-pm-muted: #a0a3ae;
  --mk-pm-panel: #14161c;
  --mk-pm-field: #1c1e26;
  --mk-pm-border: rgba(255, 255, 255, 0.12);

  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(820px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(88vh, 810px);
  max-height: min(88dvh, 810px);
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 120, 62, 0.3) !important;
  border-radius: 17px !important;
  background: var(--mk-pm-panel) !important;
  color: var(--mk-pm-text) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 32px 105px rgba(0, 0, 0, 0.79) !important;
  font-family: "BPG WEB 001", "Noto Sans Georgian", system-ui, sans-serif !important;
  font-size: 13px;
  line-height: 1.55;
  isolation: isolate;
}

.ui-dialog.mk-pm-dialog,
.ui-dialog.mk-pm-dialog *,
.ui-dialog.mk-pm-dialog *::before,
.ui-dialog.mk-pm-dialog *::after {
  box-sizing: border-box;
}

/* DLE/jQuery UI supplies the overlay element; it only needs its presentation. */
.ui-widget-overlay.mk-pm-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 4, 7, 0.8) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar {
  position: relative !important;
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 65px;
  margin: 0 !important;
  padding: 15px 64px 15px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mk-pm-border) !important;
  border-radius: 0 !important;
  background: linear-gradient(100deg, #211b1c 0%, #17191f 55%, #15171c 100%) !important;
  color: #fff !important;
  cursor: default;
  box-shadow: inset 3px 0 0 var(--mk-pm-accent);
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar::before {
  content: "";
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 120, 62, 0.28);
  border-radius: 10px;
  background-color: rgba(255, 120, 62, 0.11);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff783e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5H5l-3 2V7.5A5.5 5.5 0 0 1 7.5 2h8A5.5 5.5 0 0 1 21 7.5z'/%3E%3Cpath d='M7.5 9h9M7.5 13h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 19px 19px;
  background-position: center;
}

.ui-dialog.mk-pm-dialog .ui-dialog-title {
  display: block !important;
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: #f7f7f9 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.5;
  text-overflow: ellipsis;
  text-shadow: none !important;
  white-space: normal;
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  display: grid !important;
  place-items: center;
  width: 35px !important;
  min-width: 35px !important;
  height: 35px !important;
  min-height: 35px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-50%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  background: #292930 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: #e3e3e7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close > span {
  display: none !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close:hover {
  border-color: rgba(255, 120, 62, 0.65) !important;
  background: rgba(255, 120, 62, 0.16) !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close:hover::before {
  background-color: var(--mk-pm-accent);
}

.ui-dialog.mk-pm-dialog :is(button, input, textarea, select):focus-visible {
  outline: 2px solid var(--mk-pm-accent-light) !important;
  outline-offset: 2px;
}

/* Content/editor fields */
.ui-dialog.mk-pm-dialog .ui-dialog-content {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  background: var(--mk-pm-panel) !important;
  color: #e4e4eb !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 120, 62, 0.48) transparent;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content :is(label, .form-group > strong) {
  display: inline-block;
  margin: 0 0 6px;
  color: #c4c5cf !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  min-height: 43px;
  margin: 0 0 13px;
  padding: 11px 13px !important;
  border: 1px solid #373941 !important;
  border-radius: 10px !important;
  background: #1d1e25 !important;
  box-shadow: none !important;
  color: #f7f7f8 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.55;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content :is(input, textarea, select):focus {
  border-color: #ff783e !important;
  box-shadow: 0 0 0 3px rgba(255, 120, 62, 0.13) !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content :is(input, textarea)::placeholder {
  color: #81838f;
  opacity: 1;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content :is(textarea, .bb-editor) {
  min-height: 190px;
  resize: vertical;
}

.ui-dialog.mk-pm-dialog .ui-dialog-content input[type="checkbox"],
.ui-dialog.mk-pm-dialog .ui-dialog-content input[type="radio"] {
  accent-color: var(--mk-pm-accent);
}

/* DLE native toolbar / text editor shell (not the editor's internal iframe document). */
.ui-dialog.mk-pm-dialog :is(.tox, .tox-tinymce, .mce-tinymce, .bb-editor, .wysibb) {
  max-width: 100%;
  border: 1px solid #383941 !important;
  border-radius: 11px !important;
  background: #23252e !important;
  color: #f1f2f4 !important;
  overflow: hidden;
  box-shadow: none !important;
}

.ui-dialog.mk-pm-dialog :is(.tox .tox-editor-header, .tox-toolbar__primary, .tox-toolbar, .tox-menubar, .mce-toolbar-grp, .bb-editor .bb-toolbar, .wysibb-toolbar) {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: #2b2e38 !important;
  color: #f1f1f5 !important;
  box-shadow: none !important;
}

.ui-dialog.mk-pm-dialog :is(.tox .tox-tbtn, .mce-btn, .bb-editor .bb-btn) {
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #e5e6ea !important;
  transition: background 0.18s ease;
}

.ui-dialog.mk-pm-dialog :is(.tox .tox-tbtn, .mce-btn, .bb-editor .bb-btn):hover {
  background: rgba(255, 120, 62, 0.19) !important;
}

.ui-dialog.mk-pm-dialog .tox .tox-tbtn svg {
  fill: #e7e8ee !important;
}

.ui-dialog.mk-pm-dialog :is(.tox-edit-area, .mce-edit-area, .tox-edit-area__iframe, .wysibb-text, .bb-editor textarea) {
  background: #22242d !important;
}

.ui-dialog.mk-pm-dialog :is(.tox-statusbar, .mce-statusbar) {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #22242a !important;
  color: #9fa0ac !important;
}

/* Footer actions */
.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 !important;
  padding: 16px 22px !important;
  border: 0 !important;
  border-top: 1px solid var(--mk-pm-border) !important;
  border-radius: 0 !important;
  background: #17191f !important;
  color: #f6f7f8 !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-buttonset {
  display: flex !important;
  float: none !important;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}

.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane :is(button, .ui-button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 17px !important;
  border: 1px solid #3a3d48 !important;
  border-radius: 10px !important;
  background: #272a33 !important;
  box-shadow: none !important;
  color: #ebecf0 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  text-shadow: none !important;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane :is(button, .ui-button):hover {
  border-color: rgba(255, 120, 62, 0.55) !important;
  background: #303038 !important;
  color: var(--mk-pm-accent-light) !important;
}

/* The class is assigned by UI-only JavaScript using the native DLE button label. */
.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane .mk-pm-submit {
  border-color: #ff783e !important;
  background: #ff783e !important;
  color: #1a100b !important;
  box-shadow: 0 5px 18px rgba(255, 120, 62, 0.18) !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane .mk-pm-submit:hover {
  border-color: #ff9d72 !important;
  background: #ff9d72 !important;
  color: #160e0a !important;
}

.ui-dialog.mk-pm-dialog .ui-dialog-buttonpane :is(button, .ui-button):disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 680px) {
  .ui-dialog.mk-pm-dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 13px !important;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-titlebar {
    min-height: 59px;
    padding: 12px 54px 12px 15px !important;
    gap: 9px;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-titlebar::before {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
    background-size: 17px;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-title {
    font-size: 13px !important;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-titlebar-close {
    right: 10px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-content {
    padding: 16px !important;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-buttonpane {
    padding: 12px 13px !important;
  }

  .ui-dialog.mk-pm-dialog .ui-dialog-buttonset > button {
    flex: 1 1 120px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-dialog.mk-pm-dialog :is(button, input, textarea, select) {
    transition: none !important;
  }
}

/* DLE may assign its own dynamic z-index inline; these are fallback values. */
.ui-dialog.mk-pm-dialog { z-index: 1101; }
.ui-widget-overlay.mk-pm-overlay { z-index: 1100; }

/* ========================================================================
   V6 — inbox / new message navigation (all interaction states)
   Remove external blue focus/hover colors without touching DLE link URLs.
   ======================================================================== */
.mk-pm-page .mk-pm-menu {
  border: 1px solid rgba(255, 120, 62, 0.20) !important;
  border-radius: 12px !important;
  background: #16171c !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: rgba(255, 120, 62, 0.10);
}

.mk-pm-page .mk-pm-menu > :is(a, span, button) {
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #d9d5d7 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  outline-color: #ff783e !important;
}

/* DLE may generate an anchor that wraps our template's inner span. */
.mk-pm-page .mk-pm-menu > a > span,
.mk-pm-page .mk-pm-menu > button > span {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

.mk-pm-page .mk-pm-menu > :is(a, button):is(:hover, :focus, :focus-visible, :active),
.mk-pm-page .mk-pm-menu > :is(a, button).active {
  border-color: rgba(255, 120, 62, 0.60) !important;
  background: rgba(255, 120, 62, 0.15) !important;
  color: #ffab82 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 62, 0.09) !important;
  text-decoration: none !important;
}

.mk-pm-page .mk-pm-menu > :is(a, button):focus-visible {
  outline: 2px solid #ff783e !important;
  outline-offset: 2px;
}

/* The DLE current page is normally emitted as a non-clickable span. */
.mk-pm-page .mk-pm-menu > span,
.mk-pm-page .mk-pm-menu > :is(a, button)[aria-current="page"] {
  border-color: rgba(255, 120, 62, 0.43) !important;
  background: rgba(255, 120, 62, 0.19) !important;
  color: #ffc2a1 !important;
  box-shadow: inset 0 -2px 0 rgba(255, 120, 62, 0.84) !important;
}

.mk-pm-page .mk-pm-menu :is(a, button, span) {
  -webkit-tap-highlight-color: rgba(255, 120, 62, 0.10);
}
