/* ═══════════════════════════════════════════════════════════
   M2H — Markdown → HTML  ·  Modern UI Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent: #38BDF8;
  --accent-light: #7DD3FC;
  --accent-dim: rgba(56, 189, 248, 0.10);
  --accent-glow: rgba(56, 189, 248, 0.30);
  --accent-grad: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);

  --bg-app: #F5FAFE;
  --bg-panel: #FFFFFF;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-gutter: #F4F9FD;
  --bg-modal: rgba(13, 42, 64, 0.40);

  --text-primary: #12283A;
  --text-secondary: #4E6B82;
  --text-muted: #8FA9BC;
  --text-inverse: #F5FAFE;

  --border: #DCEBF5;
  --border-focus: var(--accent);
  --border-muted: #EAF3F9;

  --danger: #EF4467;
  --danger-dim: rgba(239, 68, 103, 0.09);
  --danger-hover: #DC2F54;

  --success: #10B981;
  --success-dim: rgba(16, 185, 129, 0.12);

  --panel-editor-bg: #FBFDFE;
  --panel-preview-bg: #FFFFFF;
  --gutter-color: #DCEBF5;
  --line-num-text: #A9C3D4;
  --handle-bg: #CFE5F2;

  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-prose: 'Lora', 'Georgia', serif;

  --header-h: 56px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 40, 58, 0.05);
  --shadow-md: 0 6px 20px rgba(18, 40, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(18, 40, 58, 0.16);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 130ms;
  --dur-mid: 220ms;
}

[data-theme="dark"] {
  --bg-app: #081420;
  --bg-panel: #0E1E2C;
  --bg-header: rgba(10, 26, 39, 0.85);
  --bg-gutter: #0B1926;
  --bg-modal: rgba(0, 0, 0, 0.65);

  --text-primary: #E6F3FB;
  --text-secondary: #93B2C7;
  --text-muted: #55748A;
  --text-inverse: #12283A;

  --border: #1C3448;
  --border-muted: #14283A;

  --panel-editor-bg: #0C1B29;
  --panel-preview-bg: #0E1E2C;
  --gutter-color: #1C3448;
  --line-num-text: #3A566B;
  --handle-bg: #1C3448;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-app);
  color: var(--text-primary);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--dur-mid) var(--ease),
    color var(--dur-mid) var(--ease);
}

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  font-family: inherit;
}

::selection {
  background: var(--accent-glow);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  gap: 12px;
  z-index: 50;
  position: relative;
  transition: background var(--dur-mid) var(--ease),
    border-color var(--dur-mid) var(--ease);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-grad);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.brand-icon svg {
  fill: #fff !important;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Control bar */
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.95);
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn--ghost:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--outline {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-dim);
  box-shadow: 0 2px 10px var(--accent-glow);
}

.btn--danger {
  color: var(--danger);
  border: 1px solid transparent;
  background: var(--danger-dim);
}

.btn--danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 103, 0.35);
}

.btn-icon {
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.btn--success-flash {
  color: var(--success) !important;
  border-color: var(--success) !important;
  background: var(--success-dim) !important;
}

/* ── WORKSPACE SPLIT ────────────────────────────────────────── */
.workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ── PANELS ─────────────────────────────────────────────────── */
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--dur-mid) var(--ease);
  min-width: 0;
}

.panel--editor {
  flex: 0 0 50%;
  background: var(--panel-editor-bg);
  border-right: 1px solid var(--border);
}

.panel--preview {
  flex: 1;
  background: var(--panel-preview-bg);
}

/* Panel header strip */
.panel-header {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  border-bottom: 1px solid var(--border-muted);
  flex-shrink: 0;
  transition: border-color var(--dur-mid) var(--ease);
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel-dot--editor {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.panel-dot--preview {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.panel-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Formatting toolbar */
.format-toolbar {
  min-height: 38px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-gutter);
  flex-shrink: 0;
}

.format-btn {
  width: 29px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.format-btn:hover,
.format-btn:focus-visible {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent-glow);
}

.format-divider {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: var(--border);
}

/* Panel footer */
.panel-footer {
  height: 32px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--border-muted);
  flex-shrink: 0;
  transition: border-color var(--dur-mid) var(--ease);
}

.panel-footer--preview {
  justify-content: flex-end;
  gap: 0;
}

.counter-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.counter {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.counter-sep {
  color: var(--border);
  margin: 0 7px;
  font-size: 0.7rem;
}

.save-indicator {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--success);
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}

.save-indicator.visible {
  opacity: 1;
}

/* ── EDITOR AREA ────────────────────────────────────────────── */
.editor-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.line-numbers {
  width: 48px;
  padding: 16px 0;
  background: var(--bg-gutter);
  border-right: 1px solid var(--border-muted);
  overflow: hidden;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--line-num-text);
  transition: background var(--dur-mid) var(--ease);
}

.line-numbers span {
  display: block;
  padding-right: 10px;
}

.md-textarea {
  flex: 1;
  padding: 16px 18px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  tab-size: 2;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  transition: color var(--dur-mid) var(--ease);
  caret-color: var(--accent);
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.md-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
  font-size: 0.82rem;
}

.md-textarea:focus {
  box-shadow: none;
}

.editor-wrap:focus-within {
  box-shadow: inset 0 0 0 2px var(--accent-glow);
}

/* Scrollbar — Webkit */
.md-textarea::-webkit-scrollbar,
.preview-scroll::-webkit-scrollbar {
  width: 6px;
}

.md-textarea::-webkit-scrollbar-track,
.preview-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.md-textarea::-webkit-scrollbar-thumb,
.preview-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.md-textarea::-webkit-scrollbar-thumb:hover,
.preview-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--line-num-text);
}

/* ── RESIZE HANDLE ──────────────────────────────────────────── */
.resize-handle {
  width: 5px;
  background: transparent;
  cursor: col-resize;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
  position: relative;
  z-index: 10;
}

.resize-handle:hover,
.resize-handle.is-dragging {
  background: var(--accent);
}

.resize-handle::after {
  content: '';
  position: absolute;
  inset: 0 -4px;
}

/* ── PREVIEW AREA ───────────────────────────────────────────── */
.preview-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px 44px 56px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  padding: 48px 24px;
}

.preview-empty-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border: 1.5px dashed var(--border);
  padding: 24px 36px;
  border-radius: var(--radius-md);
  opacity: 0.75;
}

/* ── BLOG TYPOGRAPHY (Preview Styles) ───────────────────────── */
.blog-typography {
  font-family: var(--font-prose);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-primary);
  max-width: 720px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-typography h1,
.blog-typography h2,
.blog-typography h3,
.blog-typography h4,
.blog-typography h5,
.blog-typography h6 {
  font-family: var(--font-prose);
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.8em 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-typography h1 {
  font-size: 2.25rem;
  margin-top: 0;
  padding-bottom: 0.3em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-typography h2 {
  font-size: 1.55rem;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 0.25em;
}

.blog-typography h3 {
  font-size: 1.25rem;
}

.blog-typography h4 {
  font-size: 1.05rem;
}

.blog-typography h5 {
  font-size: 0.95rem;
}

.blog-typography h6 {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.blog-typography p {
  margin: 0 0 1.2em;
}

.blog-typography a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-glow);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease),
    text-decoration-color var(--dur-fast) var(--ease);
}

.blog-typography a:hover {
  color: var(--accent-light);
  text-decoration-color: var(--accent);
}

.blog-typography strong {
  font-weight: 700;
}

.blog-typography em {
  font-style: italic;
  color: var(--text-secondary);
}

.blog-typography ul,
.blog-typography ol {
  margin: 0 0 1.2em 1.4em;
  padding-left: 1em;
}

.blog-typography li {
  margin-bottom: 0.35em;
}

.blog-typography li>ul,
.blog-typography li>ol {
  margin-top: 0.35em;
  margin-bottom: 0.35em;
}

.blog-typography blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em 1em 1.4em;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-typography blockquote p {
  margin: 0;
}

.blog-typography blockquote strong {
  color: var(--accent);
  font-style: normal;
}

/* Inline code */
.blog-typography code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

/* Fenced code blocks */
.blog-typography pre {
  background: #0F2A3D;
  color: #DFF2FC;
  border-radius: var(--radius-md);
  padding: 1.2em 1.4em;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  box-shadow: var(--shadow-md);
  position: relative;
}

[data-theme="dark"] .blog-typography pre {
  background: #06121C;
  border: 1px solid var(--border);
}

.blog-typography pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
  border-radius: 0;
}

/* Tables */
.blog-typography table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-typography thead {
  background: var(--accent-grad);
  color: #fff;
}

.blog-typography th {
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.blog-typography td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-muted);
}

.blog-typography tbody tr:last-child td {
  border-bottom: none;
}

.blog-typography tbody tr:nth-child(even) {
  background: var(--bg-gutter);
}

/* Horizontal rule */
.blog-typography hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--border), var(--accent-dim));
  margin: 2.5em 0;
  border-radius: 2px;
}

/* Images */
.blog-typography img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1em 0;
}

/* Task list checkboxes */
.blog-typography input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 6px;
}

/* ── AUTH FORMS ─────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-form label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-in var(--dur-mid) var(--ease);
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modal-in var(--dur-mid) var(--ease);
}

@keyframes modal-in {
  from {
    transform: translateY(14px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--danger-dim);
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: var(--danger);
}

.modal-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  height: 38px;
  padding: 0 20px;
  font-size: 0.83rem;
}

/* ── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-primary);
  color: var(--text-inverse);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity var(--dur-mid) var(--ease),
    transform var(--dur-mid) var(--ease);
  pointer-events: none;
}

.toast[hidden] {
  display: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: var(--success);
  color: #fff;
}

.toast--error {
  background: var(--danger);
  color: #fff;
}

.toast--info {
  background: var(--accent);
  color: #fff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .brand-sub {
    display: none;
  }

  .btn-label {
    display: none;
  }

  .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }

  .btn-icon {
    font-size: 1rem;
  }

  .controls-divider {
    display: none;
  }

  .workspace {
    flex-direction: column;
  }

  .panel--editor {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .line-numbers {
    display: none;
  }

  .format-toolbar {
    padding-left: 10px;
    overflow-x: auto;
  }

  .resize-handle {
    width: 100%;
    height: 5px;
    cursor: row-resize;
  }

  .resize-handle::after {
    inset: -4px 0;
  }

  .panel--preview {
    flex: 1;
  }

  .preview-scroll {
    padding: 16px 18px 32px;
  }

  .blog-typography {
    font-size: 0.95rem;
  }

  .blog-typography h1 {
    font-size: 1.7rem;
    -webkit-text-fill-color: currentColor;
    background: none;
  }

  .blog-typography h2 {
    font-size: 1.25rem;
  }

  .app-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: 0 12px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .panel--editor {
    flex: 0 0 42%;
  }

  .preview-scroll {
    padding: 12px 14px 24px;
  }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {

  .app-header,
  .panel--editor,
  .resize-handle,
  .panel-header,
  .panel-footer {
    display: none !important;
  }

  body {
    height: auto;
    overflow: visible;
  }

  .workspace,
  .panel--preview,
  .preview-scroll {
    overflow: visible;
  }
}