/* ═══════════════════════════════════════════════════════════
   Marsh Editor v1.0.0  —  Core Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --marsh-bg: #ffffff;
  --marsh-border: #d1d5db;
  --marsh-toolbar-bg: #f8fafc;
  --marsh-toolbar-border: #e2e8f0;
  --marsh-btn-hover: #e2e8f0;
  --marsh-btn-active: #c7d2fe;
  --marsh-btn-active-text: #111827;
  --marsh-btn-text: #374151;
  --marsh-accent: #4f46e5;
  --marsh-accent-hover: #4338ca;
  --marsh-text: #111827;
  --marsh-placeholder: #9ca3af;
  --marsh-shadow: 0 4px 24px rgba(0,0,0,0.10);
  --marsh-radius: 10px;
  --marsh-code-bg: #1e293b;
  --marsh-code-text: #e2e8f0;
  --marsh-blockquote-bg: #f0f4ff;
  --marsh-blockquote-border: #4f46e5;
  --marsh-table-head: #f1f5f9;
  --marsh-table-border: #e2e8f0;
  --marsh-modal-overlay: rgba(15,23,42,0.55);
  --marsh-statusbar-bg: #f1f5f9;
}

[data-theme="dark"] .marsh-editor-wrapper {
  --marsh-bg: var(--bg-card, #243557);
  --marsh-border: #3b5282;
  --marsh-toolbar-bg: var(--code-bg, #0d1929);
  --marsh-toolbar-border: #3b5282;
  --marsh-btn-hover: #314875;
  --marsh-btn-active: var(--gold, #f5c518);
  --marsh-btn-active-text: #06101f;
  --marsh-btn-text: #e8ecf4;
  --marsh-accent: var(--gold, #f5c518);
  --marsh-accent-hover: #e0b010;
  --marsh-text: #e8ecf4;
  --marsh-placeholder: #9aaed2;
  --marsh-blockquote-bg: #1c2d4c;
  --marsh-blockquote-border: var(--gold, #f5c518);
  --marsh-table-head: #1c2d4c;
  --marsh-table-border: #4c679b;
  --marsh-statusbar-bg: #1c2d4c;
}

/* ── Wrapper ────────────────────────────────────────────────── */
.marsh-editor-wrapper {
  border: 1.5px solid var(--marsh-border);
  border-radius: var(--marsh-radius);
  background: var(--marsh-bg);
  box-shadow: var(--marsh-shadow);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.marsh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  background: var(--marsh-toolbar-bg);
  border-bottom: 1.5px solid var(--marsh-toolbar-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.marsh-toolbar-group {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 0 4px;
  border-right: 1.5px solid var(--marsh-toolbar-border);
}

.marsh-toolbar-group:last-child {
  border-right: none;
}

.marsh-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--marsh-btn-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}

.marsh-btn:hover {
  background: var(--marsh-btn-hover);
  border-color: var(--marsh-border);
}

.marsh-btn.active,
.marsh-btn:active {
  background: var(--marsh-btn-active);
  color: var(--marsh-btn-active-text);
  border-color: var(--marsh-accent);
}

/* Tooltip */
.marsh-btn::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

.marsh-btn:hover::after {
  opacity: 1;
}

.marsh-dropdown-toggle {
  gap: 4px;
}

.marsh-dropdown-toggle > .bi-chevron-down {
  font-size: 9px;
}

.marsh-toolbar-dropdown {
  position: relative;
}

.marsh-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 250;
  grid-template-columns: repeat(3, 34px);
  gap: 4px;
  min-width: max-content;
  padding: 6px;
  background: var(--marsh-bg);
  border: 1px solid var(--marsh-border);
  border-radius: 8px;
  box-shadow: var(--marsh-shadow);
}

.marsh-toolbar-group[title="Heading"] .marsh-dropdown-menu {
  grid-template-columns: repeat(2, minmax(42px, 1fr));
}

.marsh-dropdown-menu.show {
  display: grid;
}

.marsh-dropdown-item {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--marsh-btn-text);
  cursor: pointer;
  font-size: 14px;
}

.marsh-dropdown-item:hover,
.marsh-dropdown-item:focus-visible {
  background: var(--marsh-btn-hover);
  border-color: var(--marsh-border);
  outline: none;
}

.marsh-dropdown-item .bi,
.marsh-dropdown-toggle .bi {
  font-size: 15px;
}

.marsh-list-glyph {
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

/* Color picker overlay */
.marsh-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Editor Body ─────────────────────────────────────────────── */
.marsh-editor-body {
  min-height: 220px;
  max-height: 600px;
  overflow-y: auto;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--marsh-text);
  outline: none;
  word-break: break-word;
}

.marsh-editor-body:empty::before {
  content: 'Start typing...';
  color: var(--marsh-placeholder);
  pointer-events: none;
}

.marsh-editor-body:focus {
  outline: none;
}

.marsh-editor-body.marsh-editor-invalid {
  box-shadow: inset 0 0 0 2px #ef4444;
}

/* ── Inline content styles ───────────────────────────────────── */
.marsh-editor-body a.marsh-link,
.marsh-editor-body a {
  color: var(--marsh-accent);
  text-decoration: underline;
}

.marsh-editor-body img.marsh-img,
.marsh-editor-body img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  margin: 8px 0;
}

.marsh-editor-body blockquote.marsh-blockquote,
.marsh-editor-body blockquote {
  border-inline-start: 4px solid var(--marsh-blockquote-border);
  background: var(--marsh-blockquote-bg);
  margin: 12px 0;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

.marsh-editor-body hr.marsh-divider,
.marsh-editor-body hr {
  border: none;
  border-top: 2px solid var(--marsh-border);
  margin: 18px 0;
}

.marsh-editor-body h1 { font-size: 2em; font-weight: 700; margin: .5em 0; }
.marsh-editor-body h2 { font-size: 1.5em; font-weight: 700; margin: .5em 0; }
.marsh-editor-body h3 { font-size: 1.25em; font-weight: 600; margin: .5em 0; }
.marsh-editor-body h4 { font-size: 1.12em; font-weight: 600; margin: .5em 0; }
.marsh-editor-body h5 { font-size: 1em; font-weight: 600; margin: .45em 0; }
.marsh-editor-body h6 { font-size: .9em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: .45em 0; }

.marsh-editor-body ul, .marsh-editor-body ol {
  padding-inline-start: 2em;
  margin: 8px 0;
}

.marsh-editor-body .marsh-check-list {
  list-style: none;
  padding-inline-start: 0;
  margin: 8px 0;
}

.marsh-editor-body .marsh-check-list li {
  position: relative;
  padding-inline-start: 1.8em;
  margin: 4px 0;
}

.marsh-editor-body .marsh-check-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
}

.marsh-editor-body .marsh-check-list--check li::before { content: '✔️'; }
.marsh-editor-body .marsh-check-list--box li::before { content: '☑️'; }
.marsh-editor-body .marsh-check-list--done li::before { content: '✅'; }

/* ── Image Slider ───────────────────────────────────────────── */
.marsh-image-slider {
  width: 100%;
  margin: 14px 0;
  border: 1px solid var(--marsh-border);
  border-radius: 10px;
  background: var(--marsh-toolbar-bg);
  overflow: hidden;
  position: relative;
}

.marsh-image-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.marsh-slider-slide {
  flex: 0 0 100%;
  margin: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  background: var(--marsh-bg);
}

.marsh-slider-slide img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  box-shadow: none;
  margin: 0;
}

.marsh-image-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--marsh-border);
}

.marsh-image-slider-dots span {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--marsh-btn-hover);
  color: var(--marsh-btn-text);
  font-size: 11px;
  font-weight: 700;
}

.marsh-slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--marsh-border);
  border-radius: 999px;
  background: rgba(15,23,42,.72);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
}

.marsh-slider-prev { inset-inline-start: .65rem; }
.marsh-slider-next { inset-inline-end: .65rem; }
.marsh-slider-control:hover {
  background: var(--marsh-accent);
}

/* ── Code Block ──────────────────────────────────────────────── */
.marsh-code-block {
  border-radius: 8px;
  overflow: hidden;
  margin: 14px 0;
  background: var(--marsh-code-bg);
  border: 1px solid #334155;
}

.marsh-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0f172a;
}

.marsh-code-lang {
  font-size: 12px;
  color: var(--marsh-code-accent, #94a3b8);
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.marsh-code-copy {
  font-size: 12px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.marsh-code-copy:hover { color: #e2e8f0; border-color: #64748b; }

.marsh-code-block pre {
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.marsh-code-block pre code {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--marsh-code-text);
  line-height: 1.65;
  display: block;
}

.marsh-code-line {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  min-width: max-content;
}

.marsh-code-line:nth-child(even) {
  background: rgba(255,255,255,.025);
}

.marsh-code-no {
  padding: 0 .75rem;
  color: #64748b;
  text-align: right;
  user-select: none;
  border-inline-end: 1px solid rgba(148,163,184,.18);
}

.marsh-code-text {
  padding: 0 1rem;
  white-space: pre;
}

.marsh-code-source {
  display: none;
}

.marsh-syn-keyword { color: var(--marsh-syn-keyword, #c084fc); font-weight: 700; }
.marsh-syn-string { color: var(--marsh-syn-string, #86efac); }
.marsh-syn-number { color: var(--marsh-syn-number, #fbbf24); }
.marsh-syn-comment { color: var(--marsh-syn-comment, #94a3b8); font-style: italic; }
.marsh-syn-tag { color: var(--marsh-syn-tag, #fb7185); }
.marsh-syn-attr { color: var(--marsh-syn-attr, #38bdf8); }

.marsh-code-theme-web { --marsh-code-accent:#fb7185; --marsh-syn-keyword:#f472b6; --marsh-syn-string:#fde68a; --marsh-syn-tag:#fb7185; --marsh-syn-attr:#67e8f9; }
.marsh-code-theme-script { --marsh-code-accent:#f7df1e; --marsh-syn-keyword:#facc15; --marsh-syn-string:#86efac; --marsh-syn-number:#f97316; }
.marsh-code-theme-style { --marsh-code-accent:#38bdf8; --marsh-syn-keyword:#60a5fa; --marsh-syn-string:#a7f3d0; --marsh-syn-number:#fbbf24; }
.marsh-code-theme-backend { --marsh-code-accent:#a78bfa; --marsh-syn-keyword:#c084fc; --marsh-syn-string:#86efac; --marsh-syn-number:#fbbf24; }
.marsh-code-theme-data { --marsh-code-accent:#22c55e; --marsh-syn-keyword:#34d399; --marsh-syn-string:#bef264; --marsh-syn-number:#f59e0b; }
.marsh-code-theme-shell { --marsh-code-accent:#10b981; --marsh-syn-keyword:#5eead4; --marsh-syn-string:#bbf7d0; --marsh-syn-comment:#6ee7b7; }
.marsh-code-theme-science { --marsh-code-accent:#f97316; --marsh-syn-keyword:#fb923c; --marsh-syn-string:#fde68a; --marsh-syn-number:#facc15; }
.marsh-code-theme-functional { --marsh-code-accent:#ec4899; --marsh-syn-keyword:#f0abfc; --marsh-syn-string:#93c5fd; --marsh-syn-number:#fdba74; }
.marsh-code-theme-hardware { --marsh-code-accent:#94a3b8; --marsh-syn-keyword:#cbd5e1; --marsh-syn-string:#a7f3d0; --marsh-syn-number:#fda4af; }
.marsh-code-theme-plain { --marsh-code-accent:#94a3b8; }

[data-theme="light"] .marsh-code-block {
  --marsh-code-bg: #0f172a;
  --marsh-code-text: #e2e8f0;
}

/* ── Table ───────────────────────────────────────────────────── */
.marsh-table-wrapper {
  overflow-x: auto;
  margin: 14px 0;
}

.marsh-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.marsh-table th,
.marsh-table td {
  border: 1.5px solid var(--marsh-table-border);
  padding: 10px 14px;
  text-align: start;
}

.marsh-table thead th {
  background: var(--marsh-table-head);
  font-weight: 700;
  color: #374151;
}

.marsh-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.marsh-table tbody tr:hover {
  background: #f0f4ff;
}

/* ── Status Bar ──────────────────────────────────────────────── */
.marsh-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--marsh-statusbar-bg);
  border-top: 1.5px solid var(--marsh-toolbar-border);
  font-size: 12px;
  color: #6b7280;
}

.marsh-word-count { font-family: monospace; }

.marsh-mode-btn {
  background: transparent;
  border: 1px solid var(--marsh-border);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #4b5563;
  transition: background .15s;
}

.marsh-mode-btn:hover { background: var(--marsh-btn-hover); }

.marsh-source-area {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  border: none;
  outline: none;
  resize: vertical;
  background: #1e293b;
  color: #e2e8f0;
  box-sizing: border-box;
}

/* ── Emoji Picker ────────────────────────────────────────────── */
.marsh-emoji-picker {
  position: absolute;
  right: 8px;
  top: 52px;
  width: 320px;
  background: var(--marsh-bg);
  border: 1.5px solid var(--marsh-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200;
  overflow: hidden;
}

.marsh-emoji-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1.5px solid var(--marsh-border);
  outline: none;
  font-size: 13px;
  box-sizing: border-box;
}

.marsh-emoji-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1.5px solid var(--marsh-border);
  background: var(--marsh-toolbar-bg);
}

.marsh-emoji-cat-btn {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: #4b5563;
}

.marsh-emoji-cat-btn.active,
.marsh-emoji-cat-btn:hover {
  background: var(--marsh-btn-active);
  color: var(--marsh-btn-active-text);
  border-color: var(--marsh-accent);
}

.marsh-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.marsh-emoji-btn {
  font-size: 20px;
  padding: 4px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: background .1s;
  line-height: 1;
}

.marsh-emoji-btn:hover { background: var(--marsh-btn-hover); }

/* ── Modals ──────────────────────────────────────────────────── */
.marsh-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--marsh-modal-overlay);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.marsh-modal {
  background: var(--marsh-bg);
  border-radius: 12px;
  width: 560px;
  max-width: 96vw;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.marsh-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--marsh-toolbar-bg);
  border-bottom: 1.5px solid var(--marsh-border);
  font-weight: 700;
  font-size: 15px;
  color: var(--marsh-text);
}

.marsh-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
  border-radius: 5px;
  padding: 2px 8px;
  transition: background .15s;
}

.marsh-modal-close:hover { background: #fee2e2; color: #ef4444; }

.marsh-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.marsh-form-group {
  margin-bottom: 14px;
}

.marsh-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--marsh-btn-text);
  margin-bottom: 5px;
}

.marsh-help-text {
  display: block;
  margin-top: 5px;
  color: var(--marsh-placeholder);
  font-size: 12px;
  line-height: 1.35;
}

.marsh-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--marsh-border);
  border-radius: 7px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  background: var(--marsh-bg);
  color: var(--marsh-text);
}

.marsh-input:focus { border-color: var(--marsh-accent); }

.marsh-input.marsh-sm { width: auto; max-width: 120px; }
input[type="color"].marsh-input.marsh-sm {
  width: 58px;
  height: 38px;
  padding: 3px;
}

.marsh-code-ta {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
  direction: ltr;
  text-align: left;
  tab-size: 2;
  resize: vertical;
}

.marsh-row {
  display: flex;
  gap: 14px;
}

.marsh-row > * { flex: 1; }

.marsh-modal-btn {
  width: 100%;
  padding: 10px;
  background: var(--marsh-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.marsh-modal-btn:hover { background: var(--marsh-accent-hover); }

.marsh-mini-btn {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1.5px solid var(--marsh-accent);
  border-radius: 7px;
  background: var(--marsh-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.marsh-mini-btn:hover {
  background: var(--marsh-accent-hover);
}

.marsh-slider-file-control,
.marsh-slider-url-control {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.marsh-slider-file-control .marsh-input,
.marsh-slider-url-control .marsh-input {
  min-width: 0;
}

.marsh-slider-url-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  color: var(--marsh-placeholder);
  font-size: 12px;
}

.marsh-slider-url-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.marsh-slider-url-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--marsh-border);
  border-radius: 7px;
  background: var(--marsh-toolbar-bg);
  color: var(--marsh-text);
  font-size: 12px;
}

.marsh-slider-url-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marsh-slider-url-item button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  cursor: pointer;
  font-weight: 800;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.marsh-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--marsh-border);
  padding-bottom: 8px;
}

.marsh-tab {
  padding: 6px 16px;
  border: 1.5px solid transparent;
  border-radius: 6px 6px 0 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}

.marsh-tab.active {
  background: var(--marsh-btn-active);
  color: var(--marsh-btn-active-text);
  border-color: var(--marsh-accent);
}

.marsh-tab-pane { display: none; }
.marsh-tab-pane.active { display: block; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .marsh-toolbar { gap: 1px; padding: 5px 6px; }
  .marsh-btn { min-width: 28px; height: 28px; font-size: 12px; }
  .marsh-editor-body { padding: 12px 12px; font-size: 14px; }
  .marsh-emoji-picker { width: 98vw; right: 1vw; }
  .marsh-slider-file-control,
  .marsh-slider-url-control { flex-direction: column; }
  .marsh-mini-btn { width: 100%; }
  .marsh-slider-control { width: 30px; height: 30px; }
  .marsh-slider-prev { inset-inline-start: .35rem; }
  .marsh-slider-next { inset-inline-end: .35rem; }
}

/* ── Scrollbar Styling ───────────────────────────────────────── */
.marsh-editor-body::-webkit-scrollbar,
.marsh-emoji-grid::-webkit-scrollbar { width: 6px; }
.marsh-editor-body::-webkit-scrollbar-track,
.marsh-emoji-grid::-webkit-scrollbar-track { background: transparent; }
.marsh-editor-body::-webkit-scrollbar-thumb,
.marsh-emoji-grid::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
