/* ==========================================================================
   canvas.css - SVG Canvas elements, selection handles, and minimap
   ========================================================================== */

/* Page Sheet & Canvas */
.canvas-page-sheet {
  transition: all 0.2s ease;
}

.page-size-label {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Shapes */
.canvas-shape {
  cursor: move;
  transition: filter 0.15s ease;
}

.canvas-shape:hover {
  filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.3));
}

.shape-text-label {
  user-select: none;
  pointer-events: all;
  cursor: pointer;
}

.group-text-label {
  font-weight: 600;
  letter-spacing: 0.2px;
  pointer-events: all;
  cursor: pointer;
}

.canvas-inline-text-editor {
  position: absolute;
  box-sizing: border-box;
  font-family: inherit;
  border: 1px dashed rgba(2, 132, 199, 0.65);
  background: transparent;
  outline: none;
  box-shadow: none;
  border-radius: 2px;
  padding: 1px 3px;
  margin: 0;
  z-index: 150;
  resize: none;
  overflow: hidden;
  white-space: pre;
}

.canvas-inline-text-editor:focus {
  border-color: #0284c7;
}

.canvas-inline-text-helper {
  display: none !important;
}

/* Connectors */
.canvas-connector {
  transition: opacity 0.15s ease;
}

/* Hovering over connector hit area should highlight WITHOUT changing stroke-width or jumping markers */
.connector-hit-area:hover + .connector-path {
  filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.5));
}

/* Selection Marquee */
.selection-marquee {
  fill: rgba(2, 132, 199, 0.1);
  stroke: #0284c7;
  stroke-width: 1;
  stroke-dasharray: 4, 3;
  pointer-events: none;
}

/* Transform Handles */
.selection-bbox {
  cursor: move;
  pointer-events: stroke;
}

.handle-resize {
  transition: stroke-width 0.1s ease;
}

.handle-resize:hover {
  stroke-width: 2.5px;
  stroke: #0369a1;
}

.handle-rotate:hover {
  fill: #0284c7 !important;
}

/* Group Selection Theme */
.selection-transform-group.is-group .handle-resize {
  stroke: #8b5cf6;
}

.selection-transform-group.is-group .handle-resize:hover {
  stroke: #6d28d9;
  stroke-width: 2.5px;
}

.selection-transform-group.is-group .handle-rotate {
  stroke: #8b5cf6;
}

.selection-transform-group.is-group .handle-rotate:hover {
  fill: #8b5cf6 !important;
  stroke: #6d28d9;
}

.selection-group-badge {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Connector Endpoint Handles - NO transform scaling to prevent coordinate jump */
.connector-endpoint-handle {
  transition: stroke-width 0.1s ease, stroke 0.1s ease;
}

.connector-endpoint-handle:hover {
  stroke-width: 3.5px;
  stroke: #0284c7;
}

/* Vector Waypoint & Midpoint Handles */
.path-waypoint-handle,
.connector-waypoint-handle {
  pointer-events: all;
}

.path-waypoint-handle:hover {
  stroke: #0369a1;
  stroke-width: 2.5px;
}

.path-waypoint-handle.is-active-waypoint {
  fill: #f59e0b !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

.connector-waypoint-handle:hover {
  stroke: #7c3aed;
  stroke-width: 2.5px;
}

.connector-waypoint-handle.is-active-waypoint {
  fill: #f59e0b !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

/* Bézier Tangent Handles (Illustrator Style) */
.path-tangent-line {
  pointer-events: none;
}

.path-tangent-handle {
  pointer-events: all;
  cursor: pointer;
}

.path-tangent-handle:hover {
  fill: #db2777 !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

.path-midpoint-handle,
.connector-midpoint-handle {
  pointer-events: all;
}

.path-midpoint-handle:hover,
.connector-midpoint-handle:hover {
  fill-opacity: 1 !important;
}

.canvas-shape.is-locked {
  cursor: not-allowed;
}

/* Port Snap Aura Ring */
.port-snap-ring {
  animation: pulse-ring 1.2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% {
    stroke-opacity: 1;
    fill-opacity: 0.35;
  }
  50% {
    stroke-opacity: 0.45;
    fill-opacity: 0.12;
  }
  100% {
    stroke-opacity: 1;
    fill-opacity: 0.35;
  }
}

/* Snapped Target Active Reticle Cursor (Point vs Line snapping) */
body.snapped-point-active,
body.snapped-point-active #canvas-viewport,
body.snapped-point-active #canvas-svg,
body.snapped-point-active #canvas-overlay-svg,
body.snapped-point-active *,
body.snapped-target-active,
body.snapped-target-active #canvas-viewport,
body.snapped-target-active #canvas-svg,
body.snapped-target-active #canvas-overlay-svg,
body.snapped-target-active * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='7' fill='none' stroke='%2310b981' stroke-width='2'/><circle cx='12' cy='12' r='2' fill='%2310b981'/><line x1='12' y1='1' x2='12' y2='5' stroke='%2310b981' stroke-width='2'/><line x1='12' y1='19' x2='12' y2='23' stroke='%2310b981' stroke-width='2'/><line x1='1' y1='12' x2='5' y2='12' stroke='%2310b981' stroke-width='2'/><line x1='19' y1='12' x2='23' y2='12' stroke='%2310b981' stroke-width='2'/></svg>") 12 12, crosshair !important;
}

body.snapped-line-active,
body.snapped-line-active #canvas-viewport,
body.snapped-line-active #canvas-svg,
body.snapped-line-active #canvas-overlay-svg,
body.snapped-line-active * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><rect x='5' y='5' width='14' height='14' fill='none' stroke='%2306b6d4' stroke-width='1.8' rx='2'/><circle cx='12' cy='12' r='2' fill='%2306b6d4'/><line x1='2' y1='12' x2='22' y2='12' stroke='%2306b6d4' stroke-width='2' stroke-dasharray='3 2'/><line x1='12' y1='2' x2='12' y2='6' stroke='%2306b6d4' stroke-width='2'/><line x1='12' y1='18' x2='12' y2='22' stroke='%2306b6d4' stroke-width='2'/></svg>") 12 12, crosshair !important;
}

/* Minimap Card */
#minimap-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 30;
  pointer-events: auto;
}

.minimap-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: crosshair;
}

/* ==========================================================================
   Print Stylesheet - Clean print of active diagram page
   ========================================================================== */
@media print {
  @page {
    margin: 0;
  }

  body, html {
    background: #ffffff !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  #topbar-container,
  #toolbar-container,
  #properties-container,
  #minimap-container,
  #context-menu,
  #canvas-grid-rect,
  #page-grid-rect,
  .canvas-page-grid,
  #canvas-overlay-svg,
  #ports-overlay,
  .page-size-label,
  .modal-backdrop {
    display: none !important;
  }

  /* When explicitly enabled by user, allow workspace paper grid to print */
  body.print-grid-enabled #page-grid-rect,
  body.print-grid-enabled .canvas-page-grid {
    display: block !important;
  }

  #app-container {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  #canvas-viewport {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    overflow: hidden !important;
  }

  #canvas-svg {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: block !important;
    overflow: hidden !important;
  }

  .canvas-page-sheet {
    fill: #ffffff !important;
    filter: none !important;
    stroke: none !important;
  }
}

/* Smart Alignment Guides & Spacing Badges */
.smart-guide-line {
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.smart-spacing-badge {
  pointer-events: none;
  user-select: none;
}

/* Dimension Callout Handles & Elements */
.dim-endpoint-handle {
  cursor: crosshair;
}

.dim-endpoint-handle:hover {
  fill: #e0f2fe !important;
  stroke: #0284c7 !important;
}

.dim-offset-handle {
  cursor: ns-resize;
}

.dim-offset-handle:hover {
  fill: #0284c7 !important;
  stroke: #e0f2fe !important;
}

.dim-label-group {
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Phase 2: Animated Flow Connectors
   ========================================================================== */
.connector-flow-path {
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.connector-flow-path.flow-dashes {
  animation: connectorFlowDashes 1.2s linear infinite;
}

.connector-flow-path.flow-pulse {
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px currentColor);
  animation: connectorFlowPulse 1.2s linear infinite;
}

.connector-flow-path.flow-beam {
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px currentColor);
  animation: connectorFlowBeam 1.5s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}

@keyframes connectorFlowDashes {
  from {
    stroke-dashoffset: 48;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes connectorFlowPulse {
  from {
    stroke-dashoffset: 40;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes connectorFlowBeam {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.presentation-mode-active #app-container {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  position: fixed !important;
  inset: 0 !important;
}

.presentation-mode-active #canvas-viewport {
  width: 100vw !important;
  height: 100vh !important;
}

.presentation-mode-active #toolbar-container,
.presentation-mode-active #properties-container,
.presentation-mode-active #topbar-container,
.presentation-mode-active #minimap-container {
  display: none !important;
}

#presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

#presentation-overlay.is-hidden {
  display: none !important;
}

/* Dimmed backdrop layer with radial focus */
.presentation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Animated Glowing Spotlight on Active Shape */
.presentation-spotlight-ring {
  position: absolute;
  box-sizing: border-box;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 4px #0ea5e9, 0 0 35px 8px rgba(14, 165, 233, 0.6), inset 0 0 20px rgba(14, 165, 233, 0.2);
  animation: spotlightPulse 2s ease-in-out infinite alternate;
  transition: opacity 0.3s ease;
  border: 2px solid #38bdf8;
  z-index: 10;
}

@keyframes spotlightPulse {
  0% {
    box-shadow: 0 0 0 3px #0ea5e9, 0 0 25px 4px rgba(14, 165, 233, 0.5);
  }
  100% {
    box-shadow: 0 0 0 5px #38bdf8, 0 0 45px 12px rgba(14, 165, 233, 0.85);
  }
}

/* Glowing active shape/path during presentation */
.presentation-active-shape {
  filter: drop-shadow(0 0 6px #38bdf8) drop-shadow(0 0 14px #0ea5e9);
  transition: filter 0.3s ease;
}

/* Floating Presentation HUD Bar */
.presentation-hud {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(14, 165, 233, 0.3);
  user-select: none;
  animation: slideUpHud 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpHud {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.presentation-hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.presentation-hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

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

.presentation-hud-btn.primary {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

.presentation-hud-btn.primary:hover {
  background: #0369a1;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.7);
}

.presentation-info {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  min-width: 140px;
  text-align: center;
}

.presentation-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.presentation-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presentation-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.presentation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.presentation-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.presentation-dot.active {
  background: #38bdf8;
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 8px #38bdf8;
}

.presentation-exit-btn {
  border-radius: 6px;
  width: auto;
  padding: 0 10px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.presentation-exit-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   Walkthrough Step Recording UI
   ========================================================================== */
#recording-steps-bar {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(239, 68, 68, 0.3);
  user-select: none;
  animation: slideDownRec 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownRec {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.recording-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: recPulse 1.2s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.recording-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #f87171;
  text-transform: uppercase;
}

.recording-count {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 2px 8px;
  border-radius: 12px;
}

.recording-hint {
  font-size: 12px;
  color: #94a3b8;
}

/* Numbered Step Badges on Canvas */
.recording-step-badge {
  position: absolute;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(239, 68, 68, 0.6);
  animation: stepBadgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translate(-50%, -50%);
}

@keyframes stepBadgePop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ==========================================
   Phase 3: Mermaid.js 2-Way Sync Modal
   ========================================== */

.mermaid-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

.mermaid-modal-overlay.is-hidden {
  display: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mermaid-modal-dialog {
  width: 820px;
  max-width: 95vw;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.mermaid-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mermaid-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mermaid-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mermaid-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.mermaid-modal-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

.mermaid-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mermaid-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mermaid-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.mermaid-toolbar-left,
.mermaid-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mermaid-select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  outline: none;
}

.mermaid-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.mermaid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  border: 1px solid transparent;
}

.mermaid-btn.secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.mermaid-btn.secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.mermaid-btn.primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.mermaid-btn.primary:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.mermaid-modal-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.mermaid-textarea {
  width: 100%;
  height: 280px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #0f172a;
  color: #f8fafc;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.mermaid-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.mermaid-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mermaid-footer-options {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mermaid-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
}

.mermaid-checkbox-label input[type="checkbox"] {
  accent-color: #0284c7;
  cursor: pointer;
}

.mermaid-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


