:root{
  --mx-bg:#060c18;
  --mx-bg2:#0b1220;
  --mx-panel:#0f172a;
  --mx-panel-2:#111c31;
  --mx-border:rgba(148,163,184,.18);
  --mx-border-strong:rgba(148,163,184,.35);
  --mx-text:#e5e7eb;
  --mx-muted:#94a3b8;
  --mx-soft:#cbd5e1;

  --mx-blue:#38bdf8;
  --mx-blue2:#2563eb;
  --mx-violet:#a855f7;
  --mx-green:#22c55e;
  --mx-amber:#f59e0b;
  --mx-red:#ef4444;

  --mx-radius:18px;
  --mx-radius-sm:12px;

  --mx-shadow:0 20px 50px rgba(0,0,0,.35);
  --mx-shadow-soft:0 10px 26px rgba(0,0,0,.22);

  --mx-font:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --mx-mono:"JetBrains Mono","Cascadia Code","Fira Code",Consolas,monospace;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--mx-text);
  font-family:var(--mx-font);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.12), transparent 30%),
    radial-gradient(circle at top right, rgba(168,85,247,.10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(34,197,94,.08), transparent 25%),
    linear-gradient(180deg, #040816 0%, #08101d 38%, #09111f 100%);
  min-height:100vh;
}

a{
  color:inherit;
  text-decoration:none;
}

code,
pre,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select{
  font-family:var(--mx-mono);
}

/* =========================================================
   SHELL
========================================================= */

.mx-shell-top{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 22px;
  border-bottom:1px solid var(--mx-border);
  background:rgba(4,8,22,.82);
  backdrop-filter:blur(12px);
}

.mx-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.mx-brand-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:800;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(56,189,248,.95), rgba(168,85,247,.95));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 0 24px rgba(56,189,248,.22);
}

.mx-brand-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:.02em;
}

.mx-brand-sub{
  font-size:13px;
  color:var(--mx-muted);
  margin-top:2px;
}

.mx-top-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.mx-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border:1px solid var(--mx-border);
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:var(--mx-soft);
  font-size:13px;
  white-space:nowrap;
}

.mx-pill strong{
  color:#fff;
  font-weight:800;
}

.mx-topnav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:14px 20px 0;
  max-width:1500px;
  margin:0 auto;
}

.mx-topnav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--mx-border);
  background:rgba(15,23,42,.62);
  color:var(--mx-soft);
  font-size:14px;
  transition:.18s ease;
}

.mx-topnav a:hover{
  border-color:rgba(56,189,248,.45);
  background:rgba(15,23,42,.88);
  color:#fff;
  transform:translateY(-1px);
}

.mx-topnav a.is-active{
  color:#fff;
  border-color:rgba(56,189,248,.55);
  background:
    linear-gradient(180deg, rgba(56,189,248,.16), rgba(56,189,248,.06)),
    rgba(15,23,42,.92);
  box-shadow:0 0 0 1px rgba(56,189,248,.08) inset;
}

.mx-wrap{
  max-width:1500px;
  margin:0 auto;
  padding:18px 20px 38px;
}

.mx-footer{
  margin-top:26px;
  border-top:1px solid var(--mx-border);
  background:rgba(2,6,23,.72);
}

.mx-footer-inner{
  max-width:1500px;
  margin:0 auto;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  color:var(--mx-muted);
  font-size:13px;
}

.mx-footer a{
  color:var(--mx-soft);
}

.mx-footer a:hover{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* =========================================================
   COMMON BLOCKS
========================================================= */

.mx-banner{
  max-width:1500px;
  margin:14px auto 0;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid var(--mx-border);
  box-shadow:var(--mx-shadow-soft);
}

.mx-banner-warn{
  color:#ffedd5;
  background:linear-gradient(135deg, rgba(124,45,18,.92), rgba(69,26,3,.92));
  border-color:rgba(251,146,60,.35);
}

.mx-panel{
  margin-top:18px;
  padding:20px;
  border-radius:24px;
  border:1px solid var(--mx-border);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.06), transparent 25%),
    radial-gradient(circle at bottom right, rgba(168,85,247,.06), transparent 24%),
    rgba(15,23,42,.82);
  backdrop-filter:blur(10px);
  box-shadow:var(--mx-shadow);
}

.mx-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.mx-panel-head h2{
  margin:0;
  font-size:24px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.01em;
}

.mx-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--mx-border);
  background:rgba(2,6,23,.5);
  color:var(--mx-soft);
  font-size:14px;
  transition:.18s ease;
}

.mx-back:hover{
  border-color:rgba(56,189,248,.4);
  color:#fff;
  transform:translateY(-1px);
}

.mx-box,
.mx-sidecard,
.mx-maincard{
  border:1px solid var(--mx-border);
  border-radius:20px;
  background:rgba(2,6,23,.46);
  box-shadow:var(--mx-shadow-soft);
}

.mx-box{
  padding:18px;
}

.mx-sidecard,
.mx-maincard{
  padding:16px;
}

.mx-subhead{
  margin:0 0 12px;
  font-size:15px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#dbeafe;
}

.mx-msg{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--mx-border);
  font-size:14px;
}

.mx-msg.ok{
  background:rgba(34,197,94,.10);
  border-color:rgba(34,197,94,.30);
  color:#bbf7d0;
}

.mx-msg.err{
  background:rgba(239,68,68,.10);
  border-color:rgba(239,68,68,.28);
  color:#fecaca;
}

.mx-empty{
  padding:18px;
  border-radius:16px;
  border:1px dashed rgba(148,163,184,.22);
  background:rgba(2,6,23,.36);
  color:var(--mx-muted);
  text-align:center;
}

.mx-empty.small{
  padding:12px;
  font-size:13px;
}

.mx-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  font-family:var(--mx-font);
  font-size:14px;
  font-weight:800;
  letter-spacing:.01em;
  color:#06111d;
  background:linear-gradient(135deg, var(--mx-blue), var(--mx-violet));
  box-shadow:0 10px 24px rgba(56,189,248,.14);
  transition:.18s ease;
}

.btn:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

.btn.alt{
  color:#fff;
  background:linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.btn.ghost{
  color:var(--mx-soft);
  background:rgba(2,6,23,.35);
  border:1px solid var(--mx-border);
  box-shadow:none;
}

.btn.ghost:hover{
  color:#fff;
  border-color:rgba(56,189,248,.38);
  background:rgba(2,6,23,.55);
}

.btn.danger{
  color:#fff;
  background:linear-gradient(135deg, #b91c1c, #ef4444);
}

/* =========================================================
   FORMS
========================================================= */

.mx-form,
.mx-form-inline{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mx-form-inline{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
}

.mx-grid-2,
.mx-grid-3,
.mx-db-grid{
  display:grid;
  gap:14px;
}

.mx-grid-2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.mx-grid-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.mx-db-grid{
  grid-template-columns:320px minmax(0, 1fr);
}

label{
  display:block;
  margin:0 0 6px;
  color:var(--mx-soft);
  font-size:13px;
  font-weight:700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea{
  width:100%;
  min-width:0;
  border:1px solid rgba(148,163,184,.24);
  border-radius:14px;
  background:rgba(2,6,23,.68);
  color:var(--mx-text);
  padding:11px 12px;
  font-size:14px;
  outline:none;
  transition:.18s ease;
}

input[type="file"]{
  padding:10px;
}

input::placeholder,
textarea::placeholder{
  color:#64748b;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(56,189,248,.6);
  box-shadow:0 0 0 4px rgba(56,189,248,.10);
}

textarea{
  resize:vertical;
  min-height:130px;
}

.mx-inline-check{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}

.mx-inline-check input{
  width:auto;
  margin:0;
}

/* =========================================================
   DASHBOARD
========================================================= */

.mx-hero{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) 320px;
  gap:18px;
  padding:24px;
  border-radius:24px;
  border:1px solid var(--mx-border);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(168,85,247,.12), transparent 26%),
    rgba(15,23,42,.82);
  box-shadow:var(--mx-shadow);
}

.mx-hero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.02em;
}

.mx-hero p{
  margin:0;
  max-width:820px;
  color:var(--mx-soft);
  line-height:1.65;
  font-size:15px;
}

.mx-hero-side{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mx-stat{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--mx-border);
  background:rgba(2,6,23,.55);
}

.mx-stat span{
  display:block;
  color:var(--mx-muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
}

.mx-stat strong,
.mx-stat code{
  color:#fff;
  font-size:14px;
  font-weight:800;
  word-break:break-word;
}

.mx-card-grid{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.mx-card{
  display:flex;
  flex-direction:column;
  min-height:170px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--mx-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    rgba(2,6,23,.54);
  box-shadow:var(--mx-shadow-soft);
  transition:.18s ease;
}

.mx-card:hover{
  transform:translateY(-2px);
  border-color:rgba(56,189,248,.42);
  box-shadow:
    0 16px 38px rgba(0,0,0,.26),
    0 0 0 1px rgba(56,189,248,.08) inset;
}

.mx-card-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:linear-gradient(135deg, rgba(56,189,248,.22), rgba(168,85,247,.22));
  border:1px solid rgba(148,163,184,.18);
  margin-bottom:14px;
}

.mx-card h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:800;
}

.mx-card p{
  margin:0;
  color:var(--mx-muted);
  font-size:14px;
  line-height:1.55;
}

/* =========================================================
   TABLES / LISTS / BREADCRUMB
========================================================= */

.mx-table-wrap{
  margin-top:16px;
  overflow:auto;
  border:1px solid var(--mx-border);
  border-radius:18px;
  background:rgba(2,6,23,.40);
}

.mx-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}

.mx-table th,
.mx-table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(148,163,184,.12);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}

.mx-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(8,15,28,.96);
  color:#cbd5e1;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
}

.mx-table tbody tr:nth-child(even){
  background:rgba(255,255,255,.015);
}

.mx-table tbody tr:hover{
  background:rgba(56,189,248,.05);
}

.mx-table td a{
  color:#bae6fd;
}

.mx-table td a:hover{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}

.mx-cell-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width:250px;
}

.mx-cell-actions .inline{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.mx-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--mx-border);
  background:rgba(2,6,23,.36);
  font-size:14px;
}

.mx-breadcrumb strong{
  color:#fff;
}

.mx-breadcrumb span{
  color:var(--mx-muted);
}

.mx-breadcrumb a{
  color:#bae6fd;
}

.mx-breadcrumb a:hover{
  color:#fff;
  text-decoration:underline;
}

.mx-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mx-list li{
  margin:0;
}

.mx-list a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.10);
  background:rgba(255,255,255,.02);
  color:var(--mx-soft);
  transition:.16s ease;
}

.mx-list a:hover{
  color:#fff;
  border-color:rgba(56,189,248,.28);
  background:rgba(56,189,248,.05);
}

/* =========================================================
   EDITOR
========================================================= */

.mx-editor-layout{
  display:grid;
  grid-template-columns:340px minmax(0, 1fr);
  gap:16px;
}

.mx-filehead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.mx-filehead strong{
  font-size:15px;
  word-break:break-word;
}

.mx-editor{
  width:100%;
  min-height:560px;
  resize:vertical;
  border-radius:16px;
  font-size:13px;
  line-height:1.55;
  background:#050b18;
}

.mx-diff{
  margin-top:18px;
  padding-top:8px;
  border-top:1px solid rgba(148,163,184,.12);
}

.mx-diff-row{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:rgba(2,6,23,.34);
  border:1px solid rgba(148,163,184,.12);
}

.mx-diff-row strong{
  display:inline-block;
  margin-bottom:8px;
  color:#fff;
}

.mx-diff-row .old,
.mx-diff-row .new{
  font-family:var(--mx-mono);
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
  word-break:break-word;
  padding:8px 10px;
  border-radius:10px;
}

.mx-diff-row .old{
  margin-top:6px;
  background:rgba(239,68,68,.08);
  color:#fecaca;
}

.mx-diff-row .new{
  margin-top:8px;
  background:rgba(34,197,94,.10);
  color:#bbf7d0;
}

/* =========================================================
   DB
========================================================= */

.mx-sql{
  min-height:220px;
  background:#050b18;
  font-size:13px;
  line-height:1.55;
}

/* =========================================================
   ERROR LOG
========================================================= */

.mx-log{
  margin:0;
  padding:18px;
  border-radius:18px;
  border:1px solid var(--mx-border);
  background:#050b18;
  color:#dbeafe;
  font-size:12px;
  line-height:1.55;
  overflow:auto;
  max-height:560px;
  white-space:pre-wrap;
  word-break:break-word;
}

/* =========================================================
   PO
========================================================= */

.po-edit-block{
  margin-top:16px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--mx-border);
  background:rgba(2,6,23,.36);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px){
  .mx-card-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px){
  .mx-grid-3{
    grid-template-columns:1fr;
  }

  .mx-db-grid,
  .mx-editor-layout,
  .mx-hero{
    grid-template-columns:1fr;
  }

  .mx-card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .mx-shell-top{
    padding:14px 14px;
  }

  .mx-topnav,
  .mx-wrap,
  .mx-footer-inner{
    padding-left:14px;
    padding-right:14px;
  }

  .mx-panel{
    padding:16px;
    border-radius:20px;
  }

  .mx-grid-2{
    grid-template-columns:1fr;
  }

  .mx-card-grid{
    grid-template-columns:1fr;
  }

  .mx-panel-head h2{
    font-size:20px;
  }

  .mx-hero h1{
    font-size:28px;
  }

  .mx-brand-title{
    font-size:16px;
  }

  .mx-brand-sub{
    font-size:12px;
  }

  .mx-pill{
    font-size:12px;
  }
}
/* =========================
   CODEMIRROR EDITOR
========================= */

.mx-maincard .CodeMirror {
  width: 100%;
  height: 68vh;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.22);
  background: #0a0f1a;
  font-family: "JetBrains Mono","Cascadia Code","Fira Code",Consolas,monospace;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.01);
}

.mx-maincard .CodeMirror-gutters {
  background: #0b1220;
  border-right: 1px solid rgba(148,163,184,.14);
}

.mx-maincard .CodeMirror-linenumber {
  color: #64748b;
}

.mx-maincard .CodeMirror-cursor {
  border-left: 1px solid #e5e7eb;
}

.mx-maincard .CodeMirror-selected {
  background: rgba(56,189,248,.18) !important;
}

.mx-maincard .CodeMirror-focused {
  border-color: rgba(56,189,248,.35);
  box-shadow: 0 0 0 4px rgba(56,189,248,.08);
}

/* textarea eltüntetése, ha CodeMirror aktív */
.mx-maincard textarea.mx-editor {
  min-height: 560px;
}

/* mobilon is vállalható, bár itt nem ez a fő cél */
@media (max-width: 760px){
  .mx-maincard .CodeMirror {
    height: 58vh;
    font-size: 12px;
  }
}
/* =========================
   ADVANCED EDITOR
========================= */

.mx-filehead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.mx-filehead-main{
  min-width:0;
}

.mx-filehead-main strong{
  display:block;
  font-size:16px;
  line-height:1.35;
  word-break:break-word;
}

.mx-filemeta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
  color:#94a3b8;
  font-size:12px;
}

.mx-filemeta code{
  color:#e5e7eb;
}

.mx-ro-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(239,68,68,.28);
  background:rgba(239,68,68,.10);
  color:#fecaca;
  font-weight:700;
}

.mx-editor-form{
  position:relative;
}

.mx-editor-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:14px;
  background:rgba(2,6,23,.45);
}

.mx-editor-toolbar-left,
.mx-editor-toolbar-right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.mx-maincard textarea.mx-editor{
  width:100%;
  min-height:620px;
  font-size:13px;
  line-height:1.55;
  background:#050b18;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,.20);
  border-radius:16px;
  padding:14px;
}

.mx-maincard .CodeMirror{
  width:100%;
  height:68vh;
  min-height:620px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.20);
  background:#050b18;
  font-family:"JetBrains Mono","Cascadia Code","Fira Code",Consolas,monospace;
  font-size:13px;
  line-height:1.55;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
}

.mx-maincard .CodeMirror-gutters{
  background:#07101c;
  border-right:1px solid rgba(148,163,184,.12);
}

.mx-maincard .CodeMirror-linenumber{
  color:#64748b;
}

.mx-maincard .CodeMirror-cursor{
  border-left:1px solid #f8fafc;
}

.mx-maincard .CodeMirror-selected{
  background:rgba(56,189,248,.18) !important;
}

.mx-maincard .CodeMirror-focused{
  border-color:rgba(56,189,248,.34);
  box-shadow:0 0 0 4px rgba(56,189,248,.08);
}

.mx-maincard .CodeMirror-activeline-background{
  background:rgba(255,255,255,.025);
}

.mx-maincard .CodeMirror-dialog{
  background:#0b1220;
  color:#e5e7eb;
  border-bottom:1px solid rgba(148,163,184,.18);
}

.mx-maincard .CodeMirror-dialog input{
  background:#020617;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,.22);
}

.mx-editor-fullscreen{
  position:fixed !important;
  inset:10px !important;
  z-index:999999 !important;
  margin:0 !important;
  border-radius:18px !important;
  background:#08111e !important;
  box-shadow:0 30px 90px rgba(0,0,0,.65) !important;
  overflow:auto;
}

.mx-editor-fullscreen .CodeMirror{
  height:calc(100vh - 170px) !important;
  min-height:calc(100vh - 170px) !important;
}

.mx-diff{
  margin-top:18px;
  padding-top:8px;
  border-top:1px solid rgba(148,163,184,.12);
}

.mx-diff-row{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  background:rgba(2,6,23,.34);
  border:1px solid rgba(148,163,184,.10);
}

.mx-diff-row strong{
  display:inline-block;
  margin-bottom:8px;
  color:#fff;
}

.mx-diff-row .old,
.mx-diff-row .new{
  font-family:"JetBrains Mono","Cascadia Code","Fira Code",Consolas,monospace;
  font-size:12px;
  line-height:1.55;
  white-space:pre-wrap;
  word-break:break-word;
  padding:10px 12px;
  border-radius:12px;
}

.mx-diff-row .old{
  margin-top:6px;
  background:rgba(239,68,68,.08);
  color:#fecaca;
  border:1px solid rgba(239,68,68,.10);
}

.mx-diff-row .new{
  margin-top:8px;
  background:rgba(34,197,94,.10);
  color:#bbf7d0;
  border:1px solid rgba(34,197,94,.10);
}

@media (max-width: 980px){
  .mx-maincard .CodeMirror{
    min-height:520px;
    height:60vh;
  }
}

@media (max-width: 760px){
  .mx-editor-toolbar{
    padding:10px;
  }

  .mx-maincard .CodeMirror{
    font-size:12px;
    min-height:460px;
  }
}