/* ==========================================================================
   OW Onboarding Tool v0.108.0
   Professional Canvas Navigation: adaptive, quiet and touch-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Interaction surface
   -------------------------------------------------------------------------- */
body.content-editor-mode .ow-canvas-stage,
body.content-review-mode .ow-canvas-stage {
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: contain;
}

body.content-editor-mode .ow-canvas-stage.ow-canvas-inertia,
body.content-review-mode .ow-canvas-stage.ow-canvas-inertia {
  cursor: grabbing !important;
}

body.content-editor-mode .ow-canvas-stage .cm-node,
body.content-review-mode .ow-canvas-stage .cm-node {
  transition:
    box-shadow .18s cubic-bezier(.22, 1, .36, 1),
    filter .18s cubic-bezier(.22, 1, .36, 1),
    opacity .18s ease,
    border-color .16s ease;
}

body.content-editor-mode .ow-canvas-stage.ow-canvas-dragging-node .cm-node.dragging,
body.content-review-mode .ow-canvas-stage.ow-canvas-dragging-node .cm-node.dragging {
  z-index: 80 !important;
  opacity: .98;
  filter: saturate(1.04) drop-shadow(0 18px 24px rgba(28, 31, 28, .18));
  box-shadow:
    0 0 0 2px rgba(57, 91, 206, .2),
    0 16px 44px rgba(28, 31, 28, .18) !important;
}

/* Long press is communicated visually instead of vibrating the device. */
body.content-editor-mode .cm-node.ow-canvas-longpress-target.is-arming,
body.content-review-mode .cm-node.ow-canvas-longpress-target.is-arming {
  animation: ow-canvas-longpress-arm var(--ow-longpress-duration, 360ms) linear both;
}

body.content-editor-mode .cm-node.ow-canvas-longpress-target.is-active,
body.content-review-mode .cm-node.ow-canvas-longpress-target.is-active {
  box-shadow:
    0 0 0 3px rgba(58, 94, 213, .22),
    0 12px 34px rgba(28, 31, 28, .16) !important;
}

@keyframes ow-canvas-longpress-arm {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 94, 213, 0), 0 6px 18px rgba(28, 31, 28, .08);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(58, 94, 213, .18), 0 12px 32px rgba(28, 31, 28, .14);
  }
}

/* --------------------------------------------------------------------------
   Floating navigation dock
   -------------------------------------------------------------------------- */
body.content-editor-mode .cm-zoom-controls.ow-canvas-controls,
body.content-review-mode .owr-zoom.ow-canvas-controls {
  position: absolute;
  left: 50% !important;
  right: auto !important;
  bottom: 16px;
  z-index: 42;
  width: auto;
  max-width: calc(100% - 28px);
  min-height: 44px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  transform: translateX(-50%);
  border: 1px solid rgba(35, 38, 34, .12);
  border-radius: 15px;
  background: rgba(252, 252, 251, .94);
  box-shadow:
    0 1px 2px rgba(24, 27, 23, .06),
    0 12px 34px rgba(24, 27, 23, .13);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  isolation: isolate;
}

body.content-review-mode .owr-zoom.ow-canvas-controls > .owr-structure-status {
  display: none !important;
}

body.content-editor-mode .ow-canvas-controls button,
body.content-review-mode .ow-canvas-controls button {
  position: relative;
  box-sizing: border-box;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #666a64;
  -webkit-text-fill-color: #666a64;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition:
    background .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    transform .15s cubic-bezier(.22, 1, .36, 1);
}

body.content-editor-mode .ow-canvas-controls button:hover,
body.content-review-mode .ow-canvas-controls button:hover {
  background: rgba(37, 40, 36, .065);
  color: #20231f;
  -webkit-text-fill-color: #20231f;
}

body.content-editor-mode .ow-canvas-controls button:active,
body.content-review-mode .ow-canvas-controls button:active {
  transform: scale(.95);
}

body.content-editor-mode .ow-canvas-controls button:focus-visible,
body.content-review-mode .ow-canvas-controls button:focus-visible {
  outline: 2px solid rgba(57, 91, 206, .5);
  outline-offset: 1px;
  background: rgba(57, 91, 206, .07);
  color: #25386f;
  -webkit-text-fill-color: #25386f;
}

body.content-editor-mode .ow-canvas-controls button.active,
body.content-review-mode .ow-canvas-controls button.active,
body.content-editor-mode .ow-canvas-controls button[aria-pressed="true"],
body.content-review-mode .ow-canvas-controls button[aria-pressed="true"] {
  background: #272a26;
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 4px 12px rgba(22, 25, 22, .18);
}

body.content-editor-mode .ow-canvas-controls button svg,
body.content-review-mode .ow-canvas-controls button svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px;
  stroke-width: 1.85;
  pointer-events: none;
}

body.content-editor-mode .ow-canvas-sr-only,
body.content-review-mode .ow-canvas-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.content-editor-mode .ow-canvas-tool-toggle,
body.content-review-mode .ow-canvas-tool-toggle,
body.content-editor-mode .ow-canvas-zoom-group,
body.content-review-mode .ow-canvas-zoom-group {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

body.content-editor-mode .ow-canvas-tool-toggle,
body.content-review-mode .ow-canvas-tool-toggle {
  padding: 2px;
  border-radius: 12px;
  background: rgba(36, 39, 35, .06);
}

body.content-editor-mode .ow-canvas-tool-toggle button,
body.content-review-mode .ow-canvas-tool-toggle button {
  width: 31px;
  min-width: 31px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 9px;
}

body.content-editor-mode .ow-canvas-zoom-group,
body.content-review-mode .ow-canvas-zoom-group {
  padding: 0 1px;
}

body.content-editor-mode .ow-canvas-zoom-value,
body.content-review-mode .ow-canvas-zoom-value {
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 5px !important;
  color: #5f635d !important;
  -webkit-text-fill-color: #5f635d !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

body.content-editor-mode .ow-canvas-zoom-value:hover,
body.content-review-mode .ow-canvas-zoom-value:hover {
  background: rgba(37, 40, 36, .05) !important;
  color: #252824 !important;
  -webkit-text-fill-color: #252824 !important;
}

body.content-editor-mode .ow-canvas-control-divider,
body.content-review-mode .ow-canvas-control-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  flex: 0 0 1px;
  background: rgba(38, 41, 37, .11);
}

body.content-editor-mode .ow-canvas-navigation-popover,
body.content-review-mode .ow-canvas-navigation-popover {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Quiet custom tooltips
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  body.content-editor-mode .ow-canvas-controls [data-tooltip]::after,
  body.content-review-mode .ow-canvas-controls [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 110;
    padding: 6px 8px;
    transform: translate(-50%, 3px);
    border-radius: 7px;
    background: rgba(28, 30, 27, .96);
    color: #fff;
    -webkit-text-fill-color: #fff;
    box-shadow: 0 6px 18px rgba(18, 20, 18, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity .14s ease .25s, transform .14s ease .25s, visibility 0s linear .39s;
  }

  body.content-editor-mode .ow-canvas-controls [data-tooltip]:hover::after,
  body.content-review-mode .ow-canvas-controls [data-tooltip]:hover::after,
  body.content-editor-mode .ow-canvas-controls [data-tooltip]:focus-visible::after,
  body.content-review-mode .ow-canvas-controls [data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: .35s, .35s, 0s;
  }
}

/* --------------------------------------------------------------------------
   Canvas options popover
   -------------------------------------------------------------------------- */
body.content-editor-mode .ow-canvas-navigation-menu,
body.content-review-mode .ow-canvas-navigation-menu {
  position: absolute;
  right: -4px;
  bottom: calc(100% + 12px);
  z-index: 100;
  width: 300px;
  max-width: calc(100vw - 28px);
  padding: 8px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(35, 38, 34, .13);
  border-radius: 18px;
  background: rgba(253, 253, 252, .985);
  box-shadow:
    0 2px 5px rgba(24, 27, 23, .06),
    0 22px 58px rgba(24, 27, 23, .18);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  text-align: left;
  transform-origin: bottom right;
  animation: ow-canvas-popover-in .18s cubic-bezier(.22, 1, .36, 1) both;
}

body.content-editor-mode .ow-canvas-navigation-menu[hidden],
body.content-review-mode .ow-canvas-navigation-menu[hidden] {
  display: none !important;
}

@keyframes ow-canvas-popover-in {
  from { opacity: 0; transform: translateY(6px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.content-editor-mode .ow-canvas-navigation-menu span,
body.content-review-mode .ow-canvas-navigation-menu span {
  min-width: 0 !important;
  text-align: left !important;
}

body.content-editor-mode .ow-canvas-menu-header,
body.content-review-mode .ow-canvas-menu-header {
  min-height: 48px;
  padding: 7px 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.content-editor-mode .ow-canvas-menu-header > div,
body.content-review-mode .ow-canvas-menu-header > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.content-editor-mode .ow-canvas-menu-header strong,
body.content-review-mode .ow-canvas-menu-header strong {
  color: #252824;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -.015em;
}

body.content-editor-mode .ow-canvas-input-caption,
body.content-review-mode .ow-canvas-input-caption {
  min-width: 0;
  color: #8b8f88;
  font-size: 9px;
  font-weight: 520;
  line-height: 1.25;
}

body.content-editor-mode .ow-canvas-menu-section,
body.content-review-mode .ow-canvas-menu-section {
  padding: 8px;
  border-top: 1px solid rgba(38, 41, 37, .08);
}

body.content-editor-mode .ow-canvas-menu-label,
body.content-review-mode .ow-canvas-menu-label {
  display: block;
  margin: 0 0 7px;
  color: #969a93;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.content-editor-mode .ow-canvas-navigation-options,
body.content-review-mode .ow-canvas-navigation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

body.content-editor-mode .ow-canvas-navigation-options button,
body.content-review-mode .ow-canvas-navigation-options button {
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 8px 7px !important;
  display: grid !important;
  align-content: center;
  justify-items: start;
  gap: 3px;
  border: 1px solid rgba(36, 39, 35, .08) !important;
  border-radius: 11px !important;
  background: #f7f8f6 !important;
  color: #555a53 !important;
  -webkit-text-fill-color: #555a53 !important;
  box-shadow: none !important;
  text-align: left;
}

body.content-editor-mode .ow-canvas-navigation-options button:hover,
body.content-review-mode .ow-canvas-navigation-options button:hover {
  border-color: rgba(36, 39, 35, .15) !important;
  background: #f2f3f0 !important;
}

body.content-editor-mode .ow-canvas-navigation-options button.active,
body.content-review-mode .ow-canvas-navigation-options button.active,
body.content-editor-mode .ow-canvas-navigation-options button[aria-checked="true"],
body.content-review-mode .ow-canvas-navigation-options button[aria-checked="true"] {
  border-color: rgba(52, 80, 174, .22) !important;
  background: #eef2fd !important;
  color: #29427f !important;
  -webkit-text-fill-color: #29427f !important;
  box-shadow: inset 0 0 0 1px rgba(52, 80, 174, .04) !important;
}

body.content-editor-mode .ow-canvas-navigation-options strong,
body.content-review-mode .ow-canvas-navigation-options strong {
  min-width: 0;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

body.content-editor-mode .ow-canvas-navigation-options span,
body.content-review-mode .ow-canvas-navigation-options span {
  min-width: 0;
  color: #92968f;
  -webkit-text-fill-color: #92968f;
  font-size: 8px;
  font-weight: 520;
  line-height: 1.2;
}

body.content-editor-mode .ow-canvas-touch-section,
body.content-review-mode .ow-canvas-touch-section {
  display: none;
}

body.content-editor-mode .ow-canvas-touch-section p,
body.content-review-mode .ow-canvas-touch-section p {
  margin: 0;
  color: #676b65;
  font-size: 9px;
  line-height: 1.55;
}

body.content-editor-mode .ow-canvas-touch-section b,
body.content-review-mode .ow-canvas-touch-section b {
  color: #292c28;
  font-weight: 700;
}

body.content-editor-mode .ow-canvas-menu-actions,
body.content-review-mode .ow-canvas-menu-actions {
  display: grid;
  gap: 2px;
}

body.content-editor-mode .ow-canvas-menu-row,
body.content-review-mode .ow-canvas-menu-row {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 7px 7px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 11px !important;
  background: transparent !important;
  color: #313430 !important;
  -webkit-text-fill-color: #313430 !important;
  box-shadow: none !important;
  text-align: left;
}

body.content-editor-mode .ow-canvas-menu-row:hover,
body.content-review-mode .ow-canvas-menu-row:hover {
  background: #f4f5f2 !important;
}

body.content-editor-mode .ow-canvas-menu-row > span:nth-child(2),
body.content-review-mode .ow-canvas-menu-row > span:nth-child(2) {
  width: auto !important;
  min-width: 0 !important;
  display: grid;
  gap: 2px;
  text-align: left !important;
}

body.content-editor-mode .ow-canvas-menu-row strong,
body.content-review-mode .ow-canvas-menu-row strong {
  display: block;
  width: auto !important;
  min-width: 0 !important;
  color: #313430;
  text-align: left !important;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.2;
}

body.content-editor-mode .ow-canvas-menu-row small,
body.content-review-mode .ow-canvas-menu-row small {
  display: block;
  width: auto !important;
  min-width: 0 !important;
  color: #93978f;
  text-align: left !important;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.3;
}

body.content-editor-mode .ow-canvas-menu-row-icon,
body.content-review-mode .ow-canvas-menu-row-icon {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef0ec;
  color: #6b6f68;
  -webkit-text-fill-color: #6b6f68;
}

body.content-editor-mode .ow-canvas-menu-row-icon svg,
body.content-review-mode .ow-canvas-menu-row-icon svg {
  width: 14px !important;
  height: 14px !important;
}

body.content-editor-mode .ow-canvas-menu-row kbd,
body.content-review-mode .ow-canvas-menu-row kbd,
body.content-editor-mode .ow-canvas-shortcuts kbd,
body.content-review-mode .ow-canvas-shortcuts kbd {
  min-width: 23px;
  min-height: 20px;
  padding: 3px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe1dc;
  border-bottom-color: #cfd2cb;
  border-radius: 6px;
  background: #fff;
  color: #777b74;
  box-shadow: 0 1px 1px rgba(25, 28, 24, .05);
  font: 600 8px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.content-editor-mode .ow-canvas-switch,
body.content-review-mode .ow-canvas-switch {
  position: relative;
  width: 28px;
  height: 17px;
  border-radius: 999px;
  background: #d8dbd5;
  transition: background .16s ease;
}

body.content-editor-mode .ow-canvas-switch::after,
body.content-review-mode .ow-canvas-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(28, 31, 27, .2);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}

body.content-editor-mode .ow-canvas-menu-row.active .ow-canvas-switch,
body.content-review-mode .ow-canvas-menu-row.active .ow-canvas-switch,
body.content-editor-mode .ow-canvas-menu-row[aria-pressed="true"] .ow-canvas-switch,
body.content-review-mode .ow-canvas-menu-row[aria-pressed="true"] .ow-canvas-switch {
  background: #3152a8;
}

body.content-editor-mode .ow-canvas-menu-row.active .ow-canvas-switch::after,
body.content-review-mode .ow-canvas-menu-row.active .ow-canvas-switch::after,
body.content-editor-mode .ow-canvas-menu-row[aria-pressed="true"] .ow-canvas-switch::after,
body.content-review-mode .ow-canvas-menu-row[aria-pressed="true"] .ow-canvas-switch::after {
  transform: translateX(11px);
}

body.content-editor-mode .ow-canvas-shortcuts,
body.content-review-mode .ow-canvas-shortcuts {
  padding: 9px 8px 7px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  border-top: 1px solid rgba(38, 41, 37, .08);
  color: #92968f;
  font-size: 8px;
  line-height: 1.2;
}

body.content-editor-mode .ow-canvas-shortcuts span,
body.content-review-mode .ow-canvas-shortcuts span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Adapt the menu and toolbar as soon as a touch or pen input is detected. */
body.content-editor-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-tool-toggle,
body.content-review-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-tool-toggle,
body.content-editor-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-tool-toggle,
body.content-review-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-tool-toggle {
  display: none;
}

body.content-editor-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-navigation-section,
body.content-review-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-navigation-section,
body.content-editor-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-navigation-section,
body.content-review-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-navigation-section,
body.content-editor-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-shortcuts,
body.content-review-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-shortcuts,
body.content-editor-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-shortcuts,
body.content-review-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-shortcuts {
  display: none;
}

body.content-editor-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-touch-section,
body.content-review-mode .ow-canvas-controls[data-canvas-input="touch"] .ow-canvas-touch-section,
body.content-editor-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-touch-section,
body.content-review-mode .ow-canvas-controls[data-canvas-input="pen"] .ow-canvas-touch-section {
  display: block;
}

/* --------------------------------------------------------------------------
   Minimap
   -------------------------------------------------------------------------- */
body.content-editor-mode .ow-canvas-minimap,
body.content-review-mode .ow-canvas-minimap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 38;
  width: 182px;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(35, 38, 34, .13);
  border-radius: 15px;
  background: rgba(250, 250, 248, .96);
  box-shadow:
    0 1px 2px rgba(24, 27, 23, .05),
    0 14px 38px rgba(24, 27, 23, .13);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: ow-canvas-minimap-in .18s cubic-bezier(.22, 1, .36, 1) both;
}

body.content-review-mode .ow-canvas-minimap {
  top: 58px;
}

body.content-editor-mode .ow-canvas-minimap[hidden],
body.content-review-mode .ow-canvas-minimap[hidden] {
  display: none !important;
}

body.content-editor-mode .ow-canvas-minimap canvas,
body.content-review-mode .ow-canvas-minimap canvas {
  display: block;
  width: 180px;
  height: 110px;
  cursor: crosshair;
  touch-action: none;
}

body.content-editor-mode .ow-canvas-minimap-close,
body.content-review-mode .ow-canvas-minimap-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 40, 36, .1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #6e726b !important;
  -webkit-text-fill-color: #6e726b !important;
  box-shadow: 0 3px 9px rgba(24, 27, 23, .1) !important;
  cursor: pointer;
}

body.content-editor-mode .ow-canvas-minimap-close:hover,
body.content-review-mode .ow-canvas-minimap-close:hover {
  background: #fff !important;
  color: #242722 !important;
  -webkit-text-fill-color: #242722 !important;
}

body.content-editor-mode .ow-canvas-minimap-close svg,
body.content-review-mode .ow-canvas-minimap-close svg {
  width: 12px !important;
  height: 12px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

@keyframes ow-canvas-minimap-in {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Contextual gesture hint
   -------------------------------------------------------------------------- */
body.content-editor-mode .ow-canvas-gesture-hint,
body.content-review-mode .ow-canvas-gesture-hint {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 72px;
  z-index: 40;
  max-width: min(560px, calc(100% - 32px));
  min-height: 34px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(31, 34, 30, .94);
  color: rgba(255, 255, 255, .88);
  -webkit-text-fill-color: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 32px rgba(20, 22, 20, .2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 560;
  line-height: 1.3;
  animation: ow-canvas-hint-v108-in .22s cubic-bezier(.22, 1, .36, 1) both;
}

body.content-editor-mode .ow-canvas-gesture-hint-icon,
body.content-review-mode .ow-canvas-gesture-hint-icon {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #8ba7ff;
  box-shadow: 0 0 0 4px rgba(139, 167, 255, .13);
}

body.content-editor-mode .ow-canvas-gesture-hint.is-leaving,
body.content-review-mode .ow-canvas-gesture-hint.is-leaving {
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .2s ease;
}

@keyframes ow-canvas-hint-v108-in {
  from { opacity: 0; transform: translate(-50%, 7px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   Responsive and coarse-pointer refinement
   -------------------------------------------------------------------------- */
@media (pointer: coarse) {
  body.content-editor-mode .ow-canvas-controls button,
  body.content-review-mode .ow-canvas-controls button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  body.content-editor-mode .ow-canvas-zoom-value,
  body.content-review-mode .ow-canvas-zoom-value {
    width: 50px !important;
    min-width: 50px !important;
  }

  body.content-editor-mode .ow-canvas-controls [data-tooltip]::after,
  body.content-review-mode .ow-canvas-controls [data-tooltip]::after {
    display: none !important;
  }
}

@media (max-width: 930px) {
  body.content-editor-mode .cm-zoom-controls.ow-canvas-controls,
  body.content-review-mode .owr-zoom.ow-canvas-controls {
    left: 50% !important;
    right: auto !important;
    bottom: 10px;
    max-width: calc(100% - 20px);
    transform: translateX(-50%);
  }

  body.content-review-mode .ow-canvas-minimap {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 620px) {
  body.content-editor-mode .ow-canvas-tool-toggle,
  body.content-review-mode .ow-canvas-tool-toggle {
    display: none;
  }

  body.content-editor-mode .ow-canvas-control-divider:first-of-type,
  body.content-review-mode .ow-canvas-control-divider:first-of-type {
    display: none;
  }

  body.content-editor-mode .ow-canvas-navigation-menu,
  body.content-review-mode .ow-canvas-navigation-menu {
    position: absolute;
    left: auto;
    right: -50px;
    bottom: calc(100% + 10px);
    width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    transform-origin: bottom center;
  }

  body.content-editor-mode .ow-canvas-shortcuts,
  body.content-review-mode .ow-canvas-shortcuts {
    display: none;
  }

  body.content-editor-mode .ow-canvas-gesture-hint,
  body.content-review-mode .ow-canvas-gesture-hint {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: min(340px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    justify-content: center;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 390px) {
  body.content-editor-mode .cm-zoom-controls.ow-canvas-controls,
  body.content-review-mode .owr-zoom.ow-canvas-controls {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    min-height: 42px;
    padding: 3px;
    gap: 1px;
  }

  body.content-editor-mode .ow-canvas-controls button,
  body.content-review-mode .ow-canvas-controls button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  body.content-editor-mode .ow-canvas-zoom-value,
  body.content-review-mode .ow-canvas-zoom-value {
    width: 45px !important;
    min-width: 45px !important;
  }

  body.content-editor-mode .ow-canvas-control-divider,
  body.content-review-mode .ow-canvas-control-divider {
    margin: 0 1px;
  }

  body.content-editor-mode .ow-canvas-minimap,
  body.content-review-mode .ow-canvas-minimap {
    width: 154px;
    height: 95px;
  }

  body.content-editor-mode .ow-canvas-minimap canvas,
  body.content-review-mode .ow-canvas-minimap canvas {
    width: 152px;
    height: 93px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.content-editor-mode .ow-canvas-stage .cm-node,
  body.content-review-mode .ow-canvas-stage .cm-node,
  body.content-editor-mode .ow-canvas-controls button,
  body.content-review-mode .ow-canvas-controls button,
  body.content-editor-mode .ow-canvas-navigation-menu,
  body.content-review-mode .ow-canvas-navigation-menu,
  body.content-editor-mode .ow-canvas-minimap,
  body.content-review-mode .ow-canvas-minimap,
  body.content-editor-mode .ow-canvas-gesture-hint,
  body.content-review-mode .ow-canvas-gesture-hint,
  body.content-editor-mode .cm-node.ow-canvas-longpress-target,
  body.content-review-mode .cm-node.ow-canvas-longpress-target {
    animation: none !important;
    transition: none !important;
  }
}
