
.laxeh-native-widget{
  --la:#f33535;--laxeh-dark:#d92b2b;--laxeh-soft:#fff1f1;
  --navy:#0F2549;--navy2:#17345f;--navy-soft:#eef3f9;
  --ink:#172033;--muted:#667085;--line:#e4e7ec;--line2:#d0d5dd;
  --paper:#fff;--workspace:#f4f7fb;
}
.laxeh-native-widget,.laxeh-native-widget *{box-sizing:border-box}
.laxeh-native-widget{margin:0;color:var(--ink);font-family:"Montserrat", Arial, sans-serif}
.laxeh-native-widget button{cursor:pointer}
.laxeh-markdown{
  width:100%;max-width:1180px;margin:28px auto;background:#fff;border:1px solid var(--line);
  border-radius:13px;box-shadow:0 12px 35px rgba(15,37,73,.08);overflow:hidden;
  display:flex;flex-direction:column;min-height:680px;position:relative
}
.laxeh-head{
  min-height:62px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;
  gap:14px;border-bottom:1px solid var(--line);background:#fff
}
.laxeh-brand{display:flex;align-items:center;gap:10px;min-width:0}
.laxeh-logo{
  width:36px;height:36px;border-radius:9px;background:var(--navy);color:#fff;display:grid;place-items:center;
  box-shadow:0 4px 10px rgba(15,37,73,.14)
}
.laxeh-title strong{display:block;color:var(--navy);font-size:15px}
.laxeh-title small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.laxeh-head-actions,.laxeh-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.laxeh-btn{
  height:34px;padding:0 11px;border:1px solid var(--line2);background:#fff;color:#344054;border-radius:7px;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:700;transition:.18s
}
.laxeh-btn:hover{background:#f8fafc;border-color:#98a2b3;color:var(--navy)}
.laxeh-btn.primary{background:var(--la);border-color:var(--la);color:#fff}
.laxeh-btn.primary:hover{background:var(--laxeh-dark);border-color:var(--laxeh-dark);color:#fff}
.laxeh-btn.navy{background:var(--navy);border-color:var(--navy);color:#fff}
.laxeh-btn.navy:hover{background:var(--navy2);color:#fff}
.laxeh-btn.icon{width:34px;padding:0}
.laxeh-tool-switcher{
  display:none;align-items:center;gap:12px;padding:9px 13px;background:#f8fafc;border-bottom:1px solid var(--line)
}
.laxeh-markdown.is-expanded .laxeh-tool-switcher{display:flex}
.laxeh-tool-switcher-label{
  display:flex;align-items:center;gap:7px;flex:0 0 auto;font-size:10px;font-weight:800;color:var(--navy);
  white-space:nowrap;text-transform:uppercase;letter-spacing:.035em
}
.laxeh-tool-switcher-label i{color:var(--la)}
.laxeh-tool-switcher-links{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
.laxeh-tool-switcher-links::-webkit-scrollbar{display:none}
.laxeh-converter-link{
  display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:0 10px;border:1px solid #d7dee8;
  border-radius:7px;background:#fff;color:#475467;text-decoration:none;font-size:10px;font-weight:700;white-space:nowrap
}
.laxeh-converter-link:hover{border-color:#9aabc0;background:#f4f7fb;color:var(--navy)}
.laxeh-converter-link.active{border-color:var(--navy);background:var(--navy);color:#fff}
.laxeh-toolbar{
  padding:8px 12px;border-bottom:1px solid var(--line);background:#fbfcfe;display:flex;align-items:center;
  gap:6px;flex-wrap:wrap
}
.laxeh-toolbar .sep{width:1px;height:22px;background:var(--line);margin:0 2px}
.laxeh-info{
  margin-left:auto;font-size:10px;color:#667085;display:flex;align-items:center;gap:6px
}
.laxeh-info i{color:var(--navy)}
.laxeh-expanded-workspace{flex:1;min-height:0}
.laxeh-editor-shell{
  height:100%;min-height:540px;background:var(--workspace);padding:16px;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px
}
.laxeh-markdown:not(.is-expanded) .laxeh-panel{height:546px}
.laxeh-panel{
  min-width:0;min-height:0;background:#fff;border:1px solid #d9e1eb;border-radius:10px;overflow:hidden;
  box-shadow:0 5px 18px rgba(15,37,73,.055);display:flex;flex-direction:column
}
.laxeh-panel-head{
  min-height:44px;padding:8px 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;
  justify-content:space-between;gap:10px;background:#fff
}
.laxeh-panel-title{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:var(--navy)}
.laxeh-panel-title i{color:var(--la)}
.laxeh-panel-actions{display:flex;gap:5px}
.laxeh-mini{
  width:29px;height:29px;border:1px solid var(--line);background:#fff;color:#667085;border-radius:6px;display:grid;place-items:center
}
.laxeh-mini:hover{color:var(--navy);border-color:#9aabc0;background:#f8fafc}
.laxeh-code-wrap{flex:1;min-height:0;position:relative;height:500px}
.CodeMirror{height:100%;font-size:13px;line-height:1.55;font-family:Consolas,"SFMono-Regular",monospace}
.laxeh-code-wrap .CodeMirror-scroll{overflow:auto!important}
.laxeh-output .CodeMirror{background:#fff;color:#243247}
.laxeh-output .CodeMirror-gutters{background:#f8fafc;border-right:1px solid #e5eaf0}
.laxeh-output .CodeMirror-linenumber{color:#98a2b3}
.laxeh-status{
  min-height:38px;border-top:1px solid var(--line);background:#fff;padding:7px 12px;display:flex;
  align-items:center;justify-content:space-between;gap:10px;color:#64748b;font-size:10px
}
.laxeh-stats{display:flex;gap:14px;flex-wrap:wrap}.laxeh-stats i{color:var(--navy);margin-right:4px}
.laxeh-ad-rail{display:none}
.laxeh-ad-label{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8290a5;margin-bottom:8px;text-align:center}
.laxeh-ad-slot{
  width:100%;min-height:280px;max-height:600px;display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #c9d5e4;border-radius:10px;overflow:hidden;box-shadow:0 7px 22px rgba(15,37,73,.07)
}
.laxeh-ad-placeholder{
  min-height:280px;width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:7px;color:#8290a5;text-align:center;font-size:11px;padding:12px
}
.laxeh-ad-placeholder i{font-size:24px;color:#9eacc0}.laxeh-ad-placeholder span{font-weight:700;color:var(--navy)}
.laxeh-markdown.is-expanded{
  position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;margin:0;border:0;border-radius:0;z-index:2147483647;
  box-shadow:none;min-height:0
}
body.laxeh-lock{overflow:hidden}
.laxeh-markdown.is-expanded .laxeh-expanded-workspace{
  flex:1;min-height:0;display:grid;grid-template-columns:minmax(145px,180px) minmax(0,1fr) minmax(145px,180px);
  gap:16px;padding:16px;background:#dfe7f1
}
.laxeh-markdown.is-expanded .laxeh-editor-shell{
  min-width:0;min-height:0;height:100%;padding:12px;border:1px solid #c7d3e2;border-radius:12px;
  box-shadow:0 10px 30px rgba(15,37,73,.09)
}

.laxeh-markdown.is-expanded .laxeh-panel{height:auto}
.laxeh-markdown.is-expanded .laxeh-code-wrap{height:auto;flex:1;min-height:0}

.laxeh-markdown.is-expanded .laxeh-ad-rail{
  display:flex;min-width:0;min-height:0;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:16px 10px;background:#e8eef6;border:1px solid #ced9e7;border-radius:12px
}
.laxeh-modal-backdrop{
  display:none;position:absolute;inset:0;z-index:50;background:rgba(15,37,73,.32);backdrop-filter:blur(2px);
  align-items:center;justify-content:center;padding:20px
}
.laxeh-modal-backdrop.open{display:flex}
.laxeh-modal{
  width:min(430px,100%);background:#fff;border-radius:13px;border:1px solid #dbe2ea;box-shadow:0 24px 70px rgba(15,37,73,.22);overflow:hidden
}
.laxeh-modal-body{padding:20px}.laxeh-modal-top{display:flex;gap:12px;align-items:flex-start}
.laxeh-modal-icon{width:42px;height:42px;border-radius:11px;background:var(--navy-soft);color:var(--navy);display:grid;place-items:center;flex:0 0 auto}
.laxeh-modal h3{margin:1px 0 5px;font-size:15px;color:var(--navy)}.laxeh-modal p{margin:0;color:#667085;font-size:11px;line-height:1.55}
.laxeh-modal-actions{padding:12px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:7px;background:#fafbfc}
.laxeh-toast{
  position:absolute;right:15px;bottom:52px;z-index:60;background:var(--navy);color:#fff;border-radius:8px;
  padding:9px 12px;font-size:10px;font-weight:700;box-shadow:0 8px 24px rgba(15,37,73,.18);
  opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s
}
.laxeh-toast.show{opacity:1;transform:none}
@media(max-width:1100px){
 .laxeh-markdown.is-expanded .laxeh-expanded-workspace{grid-template-columns:minmax(130px,155px) minmax(0,1fr);gap:10px;padding:10px}
 .laxeh-markdown.is-expanded .laxeh-ad-right{display:none}
}
@media(max-width:850px){
 .laxeh-markdown.is-expanded .laxeh-expanded-workspace{display:block;padding:8px}
 .laxeh-markdown.is-expanded .laxeh-ad-rail{display:none}
 .laxeh-markdown.is-expanded .laxeh-editor-shell{height:100%}
 .laxeh-editor-shell{grid-template-columns:1fr;min-height:0}
 .laxeh-markdown:not(.is-expanded) .laxeh-panel{height:440px}
 .laxeh-markdown:not(.is-expanded) .laxeh-code-wrap{height:394px}
}
@media(max-width:760px){
 .laxeh-markdown{margin:0;border-radius:0;border-left:0;border-right:0}
 .laxeh-head{align-items:flex-start}.laxeh-title small{display:none}
 .laxeh-markdown.is-expanded .laxeh-tool-switcher{align-items:flex-start;flex-direction:column;gap:7px}
 .laxeh-tool-switcher-links{width:100%}
 .laxeh-info{display:none}
}


/* Native Elementor integration */
.laxeh-native-widget{isolation:isolate;width:100%;}
html.laxeh-page-lock,body.laxeh-page-lock{overflow:hidden!important;}
.laxeh-native-widget .laxeh-markdown,.laxeh-native-widget .laxeh-wordhtml{max-width:100%!important;}
.laxeh-native-widget.laxeh-native-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;z-index:2147483647!important;margin:0!important;padding:0!important;background:#dfe7f1!important;}
.laxeh-native-widget.laxeh-native-expanded>.laxeh-markdown,.laxeh-native-widget.laxeh-native-expanded>.laxeh-wordhtml{width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;}


/* ============================================================
   Elementor / Astra isolation layer
   Intentionally scoped to Learning Axis widgets only.
   ============================================================ */
.laxeh-native-widget,
.laxeh-native-widget * ,
.laxeh-native-widget *::before,
.laxeh-native-widget *::after { box-sizing:border-box !important; }

.laxeh-native-widget {
  --la:#f33535; --laxeh-dark:#d92b2b; --laxeh-soft:#fff1f1;
  --navy:#0F2549; --navy2:#17345f; --navy-soft:#eef3f9;
  --ink:#172033; --muted:#667085; --line:#e4e7ec; --line2:#d0d5dd;
  --paper:#fff; --workspace:#f4f7fb;
  width:100% !important;
  max-width:none !important;
  color:var(--ink) !important;
  font-family:"Montserrat", Arial, sans-serif !important;
  font-size:16px !important;
  font-style:normal !important;
  font-weight:400 !important;
  line-height:1.5 !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  text-align:left;
}
.laxeh-native-widget button,
.laxeh-native-widget input,
.laxeh-native-widget select,
.laxeh-native-widget textarea {
  font-family:"Montserrat", Arial, sans-serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  box-shadow:none;
}
.laxeh-native-widget button { cursor:pointer; }
.laxeh-native-widget a { text-decoration:none; }
.laxeh-native-widget img { max-width:100%; height:auto; }
.laxeh-native-widget h1,.laxeh-native-widget h2,.laxeh-native-widget h3,
.laxeh-native-widget h4,.laxeh-native-widget h5,.laxeh-native-widget h6,
.laxeh-native-widget p { font-family:"Montserrat", Arial, sans-serif; }

/* Exact component rules below override broad Astra button/form selectors. */
.laxeh-native-widget .laxeh-btn {
  -webkit-appearance:none !important; appearance:none !important;
  min-width:0 !important; min-height:0 !important; width:auto;
  height:34px !important; padding:0 11px !important;
  margin:0 !important; border:1px solid var(--line2) !important;
  background:#fff !important; color:#344054 !important;
  border-radius:7px !important; box-shadow:none !important;
  font-size:11px !important; font-weight:700 !important; line-height:1 !important;
}
.laxeh-native-widget .laxeh-btn:hover { background:#f8fafc !important; border-color:#98a2b3 !important; color:var(--navy) !important; }
.laxeh-native-widget .laxeh-btn.primary { background:var(--la) !important; border-color:var(--la) !important; color:#fff !important; }
.laxeh-native-widget .laxeh-btn.primary:hover { background:var(--laxeh-dark) !important; border-color:var(--laxeh-dark) !important; color:#fff !important; }
.laxeh-native-widget .laxeh-btn.navy { background:var(--navy) !important; border-color:var(--navy) !important; color:#fff !important; }
.laxeh-native-widget .laxeh-btn.icon { width:34px !important; padding:0 !important; }
.laxeh-native-widget .laxeh-mini {
  -webkit-appearance:none !important; appearance:none !important;
  width:29px !important; min-width:29px !important; height:29px !important; min-height:29px !important;
  padding:0 !important; margin:0 !important; border:1px solid var(--line) !important;
  background:#fff !important; color:#667085 !important; border-radius:6px !important; box-shadow:none !important;
}
.laxeh-native-widget .laxeh-converter-link { text-decoration:none !important; box-shadow:none !important; }
.laxeh-native-widget .CodeMirror,
.laxeh-native-widget .CodeMirror * { font-family:Consolas,"SFMono-Regular",monospace !important; }

/* ==========================================================
   v2.0.2 — EXPLICIT THEME ISOLATION
   Explicit editor typography; theme typography is not used.
   ========================================================== */
.laxeh-native-widget {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #172033 !important;
  background-color: transparent !important;
}
.laxeh-native-widget button,
.laxeh-native-widget input,
.laxeh-native-widget select,
.laxeh-native-widget textarea {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}
.laxeh-native-widget .laxeh-head,
.laxeh-native-widget .laxeh-toolbar,
.laxeh-native-widget .laxeh-panel,
.laxeh-native-widget .laxeh-panel-head,
.laxeh-native-widget .laxeh-status,
.laxeh-native-widget .laxeh-modal,
.laxeh-native-widget .laxeh-tool-switcher { color:#172033 !important; }
.laxeh-native-widget .laxeh-title strong {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:15px !important;font-weight:700 !important;line-height:1.25 !important;color:#0F2549 !important;
}
.laxeh-native-widget .laxeh-title small {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:11px !important;font-weight:400 !important;line-height:1.35 !important;color:#667085 !important;
}
.laxeh-native-widget .laxeh-btn {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:11px !important;font-weight:700 !important;line-height:1 !important;letter-spacing:normal !important;
  text-transform:none !important;text-decoration:none !important;color:#344054 !important;background:#fff !important;
  border:1px solid #d0d5dd !important;border-radius:7px !important;margin:0 !important;padding:0 11px !important;
  box-shadow:none !important;text-shadow:none !important;appearance:none !important;-webkit-appearance:none !important;
}
.laxeh-native-widget .laxeh-btn:hover {background:#f8fafc !important;border-color:#98a2b3 !important;color:#0F2549 !important;}
.laxeh-native-widget .laxeh-btn.primary {background:#f33535 !important;border-color:#f33535 !important;color:#fff !important;}
.laxeh-native-widget .laxeh-btn.primary:hover {background:#d92b2b !important;border-color:#d92b2b !important;color:#fff !important;}
.laxeh-native-widget .laxeh-btn.navy {background:#0F2549 !important;border-color:#0F2549 !important;color:#fff !important;}
.laxeh-native-widget .laxeh-btn.navy:hover {background:#17345f !important;border-color:#17345f !important;color:#fff !important;}
.laxeh-native-widget .laxeh-mini {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:11px !important;font-weight:400 !important;line-height:1 !important;color:#667085 !important;background:#fff !important;
  border:1px solid #e4e7ec !important;border-radius:6px !important;margin:0 !important;padding:0 !important;box-shadow:none !important;
}
.laxeh-native-widget .laxeh-panel-title {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:11px !important;font-weight:800 !important;line-height:1.3 !important;color:#0F2549 !important;
}
.laxeh-native-widget .laxeh-info,
.laxeh-native-widget .laxeh-status,
.laxeh-native-widget .laxeh-stats {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:10px !important;font-weight:400 !important;line-height:1.4 !important;color:#64748b !important;
}
.laxeh-native-widget .laxeh-tool-switcher-label {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:10px !important;font-weight:800 !important;line-height:1.2 !important;color:#0F2549 !important;
}
.laxeh-native-widget .laxeh-converter-link {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:10px !important;font-weight:700 !important;line-height:1 !important;color:#475467 !important;
  background:#fff !important;text-decoration:none !important;text-transform:none !important;border:1px solid #d7dee8 !important;
  border-radius:7px !important;box-shadow:none !important;
}
.laxeh-native-widget .laxeh-converter-link:hover {color:#0F2549 !important;background:#f4f7fb !important;border-color:#9aabc0 !important;}
.laxeh-native-widget .laxeh-converter-link.active {color:#fff !important;background:#0F2549 !important;border-color:#0F2549 !important;}
.laxeh-native-widget .laxeh-modal h1,
.laxeh-native-widget .laxeh-modal h2,
.laxeh-native-widget .laxeh-modal h3,
.laxeh-native-widget .laxeh-modal h4,
.laxeh-native-widget .laxeh-modal h5,
.laxeh-native-widget .laxeh-modal h6 {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-style:normal !important;text-transform:none !important;letter-spacing:normal !important;color:#0F2549 !important;
}
.laxeh-native-widget .laxeh-modal h3 {font-size:15px !important;font-weight:700 !important;line-height:1.3 !important;}
.laxeh-native-widget .laxeh-modal p {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:11px !important;font-weight:400 !important;line-height:1.55 !important;color:#667085 !important;
}
.laxeh-native-widget .laxeh-toast {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size:10px !important;font-weight:700 !important;line-height:1.3 !important;color:#fff !important;
}
.laxeh-native-widget .laxeh-ad-label,
.laxeh-native-widget .laxeh-ad-placeholder {
  font-family: "Montserrat", Arial, sans-serif !important;
  font-style:normal !important;text-transform:none !important;
}
.laxeh-native-widget .CodeMirror,
.laxeh-native-widget .CodeMirror pre,
.laxeh-native-widget .CodeMirror-code,
.laxeh-native-widget .CodeMirror-line,
.laxeh-native-widget .CodeMirror-line-like {
  font-family: Consolas, Monaco, "SFMono-Regular", "Liberation Mono", "Courier New", monospace !important;
  font-size:13px !important;font-weight:400 !important;font-style:normal !important;line-height:1.55 !important;
  letter-spacing:normal !important;text-transform:none !important;text-shadow:none !important;
}


/* =========================================================
   v2.0.3 — VIEWPORT LAYER / STACKING ISOLATION
   The expanded native widget must sit above Astra/Elementor
   sticky headers, transformed containers and other stacking contexts.
   ========================================================= */
html.laxeh-page-lock,
body.laxeh-page-lock,
body.laxeh-lock,
body.laxeh-editor-expanded {
  overflow: hidden !important;
}
.laxeh-fullscreen-ancestor {
  position: relative !important;
  z-index: 2147483646 !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  isolation: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
}
.laxeh-native-widget.laxeh-native-expanded {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #dfe7f1 !important;
}
.laxeh-native-widget.laxeh-native-expanded > .laxeh-wordhtml,
.laxeh-native-widget.laxeh-native-expanded > .laxeh-markdown {
  z-index: 2147483647 !important;
  background: #dfe7f1 !important;
}

/* =========================================================
   v2.0.4 BODY-PORTAL FULLSCREEN
   Expanded widgets are moved directly under <body> so Astra/
   Elementor parent stacking contexts cannot cover the editor.
   ========================================================= */
html.laxeh-page-lock,
body.laxeh-page-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body > .laxeh-native-widget.laxeh-body-portal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background: #f4f7fb !important;
  z-index: 2147483647 !important;
}

body > .laxeh-native-widget.laxeh-body-portal > .laxeh-markdown,
body > .laxeh-native-widget.laxeh-body-portal > .laxeh-wordhtml {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  z-index: 1 !important;
}
