/* styles-canvas.css — extracted from styles.css (Canvas mode styles) */

/* ── Canvas custom properties ──── */
:root {
  --cv-handle-color: #0D99FF;
}

/* ── Canvas (canvas.js, canvas-layout.js, canvas-draw.js) ──── */

#canvas-view {
  position: fixed; inset: 0; z-index: var(--z-modal-bg);
  background: var(--bg-solid);
  backdrop-filter: blur(20px);
  display: none; flex-direction: column;
  -webkit-app-region: no-drag;
}
.cv-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 24px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  z-index: var(--z-base); flex-shrink: 0;
  -webkit-app-region: no-drag;
}
.cv-toolbar-row2 { padding-top: 0; padding-left: 16px; border-top: none; }
.cv-figma-bottom {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  padding: 6px 10px; gap: 4px;
  background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-bottom: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: var(--z-float); flex-shrink: 0;
  flex-direction: column; align-items: center;
  -webkit-app-region: no-drag;
}
.cv-figma-content {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.cv-figma-row1, .cv-figma-row2 {
  display: flex; align-items: center; gap: 3px;
}
.cv-figma-row2 {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 3px; margin-top: 1px;
}
.cv-figma-collapsed .cv-figma-content { display: none; }
.cv-fig-collapse-btn {
  width: 24px !important; height: 14px !important; min-width: 24px !important;
  font-size: var(--fs-xs); color: rgba(255,255,255,0.3); border: none; background: transparent;
  cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.cv-fig-collapse-btn:hover { color: rgba(255,255,255,0.6); }
.cv-fig-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px;
  padding: 0; border: none; border-radius: var(--radius-sm);
  background: transparent; color: rgba(255,255,255,0.55);
  cursor: pointer; transition: all 0.12s ease;
  flex-shrink: 0; position: relative;
}
.cv-fig-btn svg { width: 18px; height: 18px; }
.cv-fig-btn:hover { background: rgba(var(--primary-rgb), 0.15); color: #fff; }
.cv-fig-btn:active { transform: scale(0.92); }
.cv-fig-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -1px; }
.cv-fig-btn.cv-fig-active { background: rgba(var(--primary-rgb), 0.25); color: var(--primary-light); box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.4); }
.cv-fig-more {
  width: auto; padding: 0 8px; font-size: var(--fs-base); font-weight: 600;
  color: rgba(255,255,255,0.4); gap: 4px;
}
.cv-fig-more:hover { color: rgba(255,255,255,0.7); }
.cv-shapes-group { gap: 1px; }
.cv-fig-sep {
  width: 1px; height: 20px; background: rgba(255,255,255,0.1);
  margin: 0 4px; flex-shrink: 0;
}
.cv-tb-sep {
  width: 1px; height: 18px; background: rgba(255,255,255,0.1);
  margin: 0 4px; flex-shrink: 0; align-self: center;
}
.cv-quick-color-indicator {
  width: 14px; height: 14px; border-radius: var(--radius-full);
  background: var(--primary); border: 2px solid rgba(255,255,255,0.3);
  display: block;
}
.cv-quick-color-popup {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  padding: 8px; background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--primary-rgb), 0.2); border-radius: var(--radius-md);
  z-index: var(--z-modal);
}
.cv-qc-swatch {
  width: 24px; height: 24px; border-radius: var(--radius-full); border: 2px solid transparent;
  cursor: pointer; transition: all 0.12s;
}
.cv-qc-swatch:hover { transform: scale(1.2); border-color: rgba(255,255,255,0.5); }
.cv-qc-swatch.cv-qc-active { border-color: var(--text-main); box-shadow: 0 0 6px rgba(255,255,255,0.3); }
.cv-recent-shapes { gap: 1px; }
.cv-fig-recent { opacity: 0.7; }
.cv-fig-recent:hover { opacity: 1; }
.cv-shape-tool-ghost {
  pointer-events: none;
  position: absolute;
  border: 2px dashed #4a9eff;
  border-radius: var(--radius-xs);
  background: rgba(74,158,255,0.08);
  z-index: var(--z-sticky);
}
.cv-shape-tooltip {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 12px; background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--primary-rgb), 0.25); border-radius: var(--radius-md);
  transform: translateX(-50%); z-index: var(--z-toast); pointer-events: none;
  animation: cv-tip-in 0.15s ease;
}
.cv-shape-tooltip-svg { width: 48px; height: 48px; }
.cv-shape-tooltip-svg .cv-shape-path { stroke: var(--primary-light); stroke-width: 3; fill: none; }
.cv-shape-tooltip-label { font-size: var(--fs-sm); color: rgba(255,255,255,0.8); white-space: nowrap; }
.cv-shape-tooltip-kbd {
  display: inline-block; padding: 1px 6px; font-size: var(--fs-xs); font-family: monospace;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xs); color: rgba(255,255,255,0.6);
}
body.light-mode .cv-figma-bottom { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.1); }
body.light-mode .cv-fig-btn { color: rgba(0,0,0,0.5); }
body.light-mode .cv-fig-btn:hover { background: rgba(var(--primary-rgb), 0.1); color: rgba(0,0,0,0.8); }
body.light-mode .cv-fig-btn.cv-fig-active { background: rgba(var(--primary-rgb), 0.15); color: var(--primary); }
body.light-mode .cv-fig-more { color: rgba(0,0,0,0.35); }
body.light-mode .cv-fig-sep { background: rgba(0,0,0,0.1); }
body.light-mode .cv-tb-sep { background: rgba(0,0,0,0.1); }
body.light-mode .cv-figma-row2 { border-top-color: rgba(0,0,0,0.08); }
body.light-mode .cv-quick-color-popup { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.15); }
body.light-mode .cv-fig-collapse-btn { color: rgba(0,0,0,0.3); }
body.light-mode .cv-fig-collapse-btn:hover { color: rgba(0,0,0,0.6); }
body.light-mode .cv-shape-tooltip { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.12); }
body.light-mode .cv-shape-tooltip-svg .cv-shape-path { stroke: var(--primary); }
body.light-mode .cv-shape-tooltip-label { color: rgba(0,0,0,0.7); }
body.light-mode .cv-shape-tooltip-kbd { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: rgba(0,0,0,0.5); }
.cv-tb-group {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: var(--radius-base);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
}
.cv-tool-btn {
  padding: 4px 8px; border: 1px solid rgba(var(--primary-rgb), 0.2);
  background: rgba(var(--primary-rgb), 0.08); color: var(--text-main);
  border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-base); white-space: nowrap;
  transition: all 0.15s;
}
.cv-tool-btn:hover { background: rgba(var(--primary-rgb), 0.2); border-color: rgba(var(--primary-rgb), 0.4); }
.cv-zoom-label { font-size: var(--fs-base); color: var(--text-dim); min-width: 36px; text-align: center; }
.cv-zoom-btn { min-width: 28px; text-align: center; font-weight: 700; font-size: var(--fs-md); }
.cv-workspace { flex: 1; overflow: hidden; position: relative; cursor: grab; }
.cv-workspace:active { cursor: grabbing; }
.cv-layer { position: absolute; top: 0; left: 0; width: 0; height: 0; transform-origin: 0 0; }
.cv-arrows { position: absolute; top: 0; left: 0; width: 32000px; height: 32000px; overflow: visible; pointer-events: none; z-index: 0; }
.cv-empty-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--text-dim); opacity: 0.5; font-size: var(--fs-lg); pointer-events: none;
}
.cv-block {
  position: absolute; background: var(--card-bg-solid);
  border: 1.5px solid rgba(var(--primary-rgb), 0.25);
  border-radius: var(--radius-md); overflow: visible;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column; min-width: 120px; min-height: 60px;
  cursor: move;
}
.cv-block:hover { border-color: rgba(var(--primary-rgb), 0.5); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.cv-block.cv-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.3), 0 6px 24px rgba(0,0,0,0.4); }
.cv-block.cv-arrow-drop-target { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.4), 0 6px 24px rgba(0,0,0,0.4) !important; }
.cv-rubber-band { position: absolute; border: 1.5px solid var(--primary); background: rgba(var(--primary-rgb), 0.08); pointer-events: none; z-index: var(--z-dropdown); border-radius: var(--radius-xs); }
.cv-multi-toolbar { position: fixed; display: flex; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 6px 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: var(--z-modal); transform: translateX(-50%); white-space: nowrap; }
.cv-multi-count { font-size: var(--fs-base); color: var(--text-dim); margin-right: 4px; }
.cv-multi-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 4px 8px; cursor: pointer; font-size: var(--fs-base); color: var(--text-main); transition: background 0.15s; }
.cv-multi-btn:hover { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.cv-arrow-label-input { position: fixed; width: 120px; background: var(--card-bg); border: 1.5px solid var(--primary); border-radius: var(--radius-sm); padding: 2px 8px; color: var(--text-main); font-size: var(--fs-base); font-family: var(--font-main); outline: none; z-index: var(--z-modal); text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.cv-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; background: rgba(var(--primary-rgb), 0.08);
  cursor: move; user-select: none; flex-shrink: 0;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
}
.cv-block-icon { font-size: var(--fs-base); }
.cv-block-del {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: var(--fs-base); padding: 0 2px; border-radius: var(--radius-xs);
  opacity: 0; transition: opacity 0.15s;
}
.cv-block:hover .cv-block-del { opacity: 1; }
.cv-block-del:hover { color: var(--color-danger); background: rgba(var(--color-danger-rgb),0.15); }
.cv-block-color {
  background: none; border: none; cursor: pointer; font-size: var(--fs-base);
  padding: 0 2px; border-radius: var(--radius-xs); opacity: 0; transition: opacity 0.15s;
  margin-right: auto;
}
.cv-block:hover .cv-block-color { opacity: 0.7; }
.cv-block-color:hover { opacity: 1 !important; }
.cv-block[data-color="cv-color-yellow"] { border-color: rgba(234,179,8,0.6); background: rgba(234,179,8,0.08); border-left: 3px solid #EAB308; }
.cv-block[data-color="cv-color-yellow"] .cv-block-header { background: rgba(234,179,8,0.15); }
.cv-block[data-color="cv-color-green"]  { border-color: rgba(34,197,94,0.6); background: rgba(34,197,94,0.08); border-left: 3px solid #22C55E; }
.cv-block[data-color="cv-color-green"]  .cv-block-header { background: rgba(34,197,94,0.15); }
.cv-block[data-color="cv-color-red"]    { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.08); border-left: 3px solid #EF4444; }
.cv-block[data-color="cv-color-red"]    .cv-block-header { background: rgba(239,68,68,0.15); }
.cv-block[data-color="cv-color-blue"]   { border-color: rgba(59,130,246,0.6); background: rgba(59,130,246,0.08); border-left: 3px solid #3B82F6; }
.cv-block[data-color="cv-color-blue"]   .cv-block-header { background: rgba(59,130,246,0.15); }
.cv-block[data-color="cv-color-purple"] { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.08); border-left: 3px solid #A855F7; }
.cv-block[data-color="cv-color-purple"] .cv-block-header { background: rgba(168,85,247,0.15); }
.cv-block[data-color="cv-color-orange"] { border-color: rgba(249,115,22,0.6); background: rgba(249,115,22,0.08); border-left: 3px solid #F97316; }
.cv-block[data-color="cv-color-orange"] .cv-block-header { background: rgba(249,115,22,0.15); }
.cv-block[data-color="cv-color-dark"]   { border-color: rgba(100,116,139,0.6); background: rgba(30,30,45,0.9); border-left: 3px solid #64748B; }
.cv-block[data-color="cv-color-dark"]   .cv-block-header { background: rgba(100,116,139,0.2); }
.cv-marker-bar { position: absolute; bottom: 4px; left: 6px; display: flex; gap: 2px; pointer-events: none; }
.cv-marker { font-size: var(--fs-base); line-height: 1; }
.cv-marker-picker {
  position: fixed; z-index: var(--z-modal); background: var(--card-bg);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  padding: 8px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cv-marker-opt {
  font-size: var(--fs-xl); cursor: pointer; padding: 4px; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: border-color 0.15s, background 0.15s;
  line-height: 1;
}
.cv-marker-opt:hover { background: rgba(255,255,255,0.08); }
.cv-marker-opt.active { border-color: var(--primary); background: rgba(var(--primary-rgb),0.12); }
.cv-block-marker {
  background: none; border: none; cursor: pointer; font-size: var(--fs-sm);
  padding: 2px 3px; border-radius: var(--radius-xs); opacity: 0.6; transition: opacity 0.15s;
  color: var(--text-main);
}
.cv-block-marker:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.cv-color-picker-popup {
  z-index: var(--z-modal); background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-base); padding: 6px; display: flex; gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.cv-color-swatch {
  background: none; border: 2px solid transparent; border-radius: var(--radius-xs);
  cursor: pointer; font-size: var(--fs-lg); padding: 2px 4px; transition: border-color 0.15s;
}
.cv-color-swatch:hover { border-color: var(--primary); }
.cv-color-swatch.active { border-color: var(--primary); }
.cv-block-content {
  flex: 1; padding: 8px 10px; overflow: hidden;
  font-size: var(--fs-base); line-height: 1.5; color: var(--text-main); outline: none;
  cursor: default; border-radius: var(--radius-md);
}
.cv-block-content[contenteditable] { cursor: text; }
.cv-block-content:focus { background: rgba(var(--primary-rgb), 0.04); }
.cv-note-title { font-weight: 600; color: var(--primary-light); margin-bottom: 4px; font-size: var(--fs-base); }
.cv-note-snippet { font-size: var(--fs-base); color: var(--text-dim); line-height: 1.4; }
.cv-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); opacity: 0.6; }
.cv-handle {
  position: absolute; width: 8px; height: 8px; background: var(--card-bg-solid);
  border: 1.5px solid var(--cv-handle-color); border-radius: var(--radius-xs); z-index: var(--z-float);
  opacity: 0; transition: opacity 0.12s; pointer-events: all; box-sizing: border-box;
}
.cv-block.cv-selected .cv-handle { opacity: 1; }
.cv-block:hover .cv-handle { opacity: 0.5; }
.cv-block.cv-selected:hover .cv-handle { opacity: 1; }
.cv-handle-nw { top: -4px; left: -4px; cursor: nwse-resize; }
.cv-handle-ne { top: -4px; right: -4px; cursor: nesw-resize; }
.cv-handle-se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.cv-handle-sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
.cv-handle-n { top: -4px; left: 50%; margin-left: -4px; cursor: ns-resize; }
.cv-handle-s { bottom: -4px; left: 50%; margin-left: -4px; cursor: ns-resize; }
.cv-handle-e { top: 50%; right: -4px; margin-top: -4px; cursor: ew-resize; }
.cv-handle-w { top: 50%; left: -4px; margin-top: -4px; cursor: ew-resize; }
.cv-handle:hover { background: var(--cv-handle-color); }
.cv-dim-label {
  position: fixed; background: var(--cv-handle-color); color: var(--text-main); font-size: var(--fs-xs);
  padding: 2px 6px; border-radius: var(--radius-xs); pointer-events: none; z-index: var(--z-toast);
  white-space: nowrap; display: none; font-family: var(--font-main);
  font-weight: 500; letter-spacing: 0.3px;
}
.cv-connector {
  position: absolute; width: 12px; height: 12px;
  border-radius: var(--radius-full); background: rgba(var(--primary-rgb), 0.3);
  border: 2px solid var(--primary);
  cursor: crosshair; opacity: 0; transition: opacity 0.15s; z-index: var(--z-above);
}
.cv-block:hover .cv-connector { opacity: 1; }
.cv-connector:hover { background: var(--primary); transform: scale(1.3); }
.cv-conn-top    { top: -6px; left: 50%; margin-left: -6px; }
.cv-conn-bottom { bottom: -6px; left: 50%; margin-left: -6px; }
.cv-conn-left   { left: -6px; top: 50%; margin-top: -6px; }
.cv-conn-right  { right: -6px; top: 50%; margin-top: -6px; }
.cv-note-picker-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,0.6); display: flex;
  align-items: center; justify-content: center;
}
.cv-note-picker {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); width: 380px; max-height: 500px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.cv-note-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--glass-border); font-weight: 600;
}
.cv-note-picker-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: var(--fs-md); }
.cv-note-picker-search {
  margin: 8px 12px; padding: 8px 12px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-base);
  background: var(--bg); color: var(--text-main); font-size: var(--fs-base); outline: none;
}
.cv-note-picker-search:focus { border-color: var(--primary); }
.cv-note-picker-list { overflow-y: auto; max-height: 350px; padding: 4px 0; }
.cv-note-picker-item {
  padding: 8px 16px; cursor: pointer; font-size: var(--fs-base);
  color: var(--text-main); transition: background 0.1s;
}
.cv-note-picker-item:hover { background: rgba(var(--primary-rgb), 0.1); }
body.light-mode #canvas-view { background: rgba(245, 245, 250, 0.97); }
body.light-mode .cv-toolbar { background: rgba(255,255,255,0.95); border-bottom-color: rgba(0,0,0,0.08); }
body.light-mode .cv-tb-group { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
body.light-mode .cv-block { background: rgba(255,255,255,0.95); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
body.light-mode .cv-empty-hint { color: var(--text-muted); }
.cv-minimap { position: absolute; bottom: 16px; right: 16px; width: 180px; height: 120px; border-radius: var(--radius-base); z-index: var(--z-dropdown); cursor: crosshair; opacity: 0.82; transition: opacity 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.6); pointer-events: auto; }
.cv-minimap:hover { opacity: 1; }
.cv-block-collapse {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: var(--fs-sm); padding: 0 2px; opacity: 0; transition: opacity 0.15s;
  line-height: 1;
}
.cv-block:hover .cv-block-collapse { opacity: 0.5; }
.cv-block-collapse:hover { opacity: 1 !important; color: var(--primary); }
.cv-block-collapse.collapsed { opacity: 0.7; color: var(--primary); }
.cv-collapse-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--primary); color: var(--text-main); font-size: var(--fs-sm); font-weight: 600;
  padding: 1px 6px; border-radius: var(--radius-md); pointer-events: none; z-index: var(--z-float);
}
.cv-block-section {
  background: rgba(var(--primary-rgb),0.06) !important;
  border: 2px dashed rgba(var(--primary-rgb),0.4) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  z-index: var(--z-base);
}
.cv-block-section .cv-block-header {
  background: rgba(var(--primary-rgb),0.12);
  border-bottom: 1px dashed rgba(var(--primary-rgb),0.25);
}
.cv-block-section .cv-block-content {
  padding: 4px 8px; height: calc(100% - 28px);
}
.cv-section-title {
  font-size: var(--fs-md); font-weight: 600; color: rgba(var(--primary-rgb),0.9);
  outline: none; padding: 2px 4px; border-radius: var(--radius-xs);
  cursor: text; display: inline-block;
  max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-section-title:focus { background: rgba(var(--primary-rgb),0.1); }
body.light-mode .cv-block-section {
  background: rgba(var(--primary-rgb),0.04) !important;
  border-color: rgba(var(--primary-rgb),0.3) !important;
}
body.light-mode .cv-block-section .cv-block-header { background: rgba(var(--primary-rgb),0.08); }
body.light-mode .cv-section-title { color: var(--primary); }
body.light-mode .cv-section-title:focus { background: rgba(var(--primary-rgb),0.08); }
.cv-block-shape {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
}
.cv-block-shape .cv-block-header {
  position: absolute; top: -2px; right: -2px; left: auto;
  background: transparent; border: none;
  z-index: var(--z-above); width: auto; padding: 2px 4px;
  opacity: 0; transition: opacity 0.15s;
}
.cv-block-shape:hover .cv-block-header,
.cv-block-shape.cv-selected .cv-block-header { opacity: 1; }
.cv-shape-content {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 !important;
}
.cv-shape-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.cv-shape-path {
  fill: rgba(var(--primary-rgb), 0.08);
  stroke: rgba(var(--primary-rgb), 0.6);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s, stroke 0.15s;
}
g.cv-shape-path > * {
  fill: inherit; stroke: inherit; stroke-width: inherit;
  vector-effect: non-scaling-stroke;
}
.cv-block-shape:hover .cv-shape-path {
  stroke: rgba(var(--primary-rgb), 0.85);
  fill: rgba(var(--primary-rgb), 0.12);
}
.cv-block-shape.cv-selected .cv-shape-path {
  stroke: var(--primary);
  fill: rgba(var(--primary-rgb), 0.15);
  stroke-width: 2.5;
}
.cv-block-shape:hover { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25) !important; }
.cv-block-shape.cv-selected { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.5), 0 0 16px rgba(var(--primary-rgb), 0.15) !important; }
.cv-block-shape[data-color="cv-color-yellow"] .cv-shape-path { stroke: rgba(234,179,8,0.7); fill: rgba(234,179,8,0.1); }
.cv-block-shape[data-color="cv-color-green"]  .cv-shape-path { stroke: rgba(34,197,94,0.7); fill: rgba(34,197,94,0.1); }
.cv-block-shape[data-color="cv-color-red"]    .cv-shape-path { stroke: rgba(239,68,68,0.7); fill: rgba(239,68,68,0.1); }
.cv-block-shape[data-color="cv-color-blue"]   .cv-shape-path { stroke: rgba(59,130,246,0.7); fill: rgba(59,130,246,0.1); }
.cv-block-shape[data-color="cv-color-purple"] .cv-shape-path { stroke: rgba(168,85,247,0.7); fill: rgba(168,85,247,0.1); }
.cv-block-shape[data-color="cv-color-orange"] .cv-shape-path { stroke: rgba(249,115,22,0.7); fill: rgba(249,115,22,0.1); }
.cv-block-shape[data-color="cv-color-dark"]   .cv-shape-path { stroke: rgba(100,116,139,0.7); fill: rgba(30,30,45,0.3); }
.cv-shape-label {
  position: relative; z-index: var(--z-base);
  font-size: var(--fs-md); color: var(--text-main);
  text-align: center; outline: none;
  padding: 4px 8px; max-width: 80%;
  word-break: break-word;
  max-height: 100%; overflow: hidden; text-overflow: ellipsis;
}
.cv-shape-label:empty::before { content: ''; }
.cv-shape-label:focus { background: rgba(var(--primary-rgb), 0.08); border-radius: var(--radius-xs); }
body.light-mode .cv-block-shape { background: transparent !important; border: none !important; box-shadow: none !important; }
body.light-mode .cv-block-shape:hover { box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important; }
body.light-mode .cv-shape-path { fill: rgba(var(--primary-rgb), 0.06); stroke: rgba(var(--primary-rgb), 0.5); stroke-width: 1.5; }
body.light-mode .cv-block-shape:hover .cv-shape-path { fill: rgba(var(--primary-rgb), 0.12); }
.cv-shape-picker {
  z-index: var(--z-modal);
  background: var(--card-bg-solid);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md); padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: gn-popup-in 0.12s ease-out;
}
body.light-mode .cv-shape-picker {
  background: rgba(255,255,255,0.97);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.cv-shape-picker-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.cv-shape-picker-btn {
  width: 44px; height: 44px;
  border: 1.5px solid transparent;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-base); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; transition: all 0.15s;
}
.cv-shape-picker-btn:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.4);
}
.cv-shape-picker-btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
.cv-shape-picker-btn.active {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
}
.cv-shape-picker-icon { width: 28px; height: 28px; }
.cv-shape-picker-icon .cv-shape-path {
  fill: rgba(255,255,255,0.15); stroke: rgba(255,255,255,0.7); stroke-width: 2.5;
}
.cv-shape-picker-btn:hover .cv-shape-path {
  fill: rgba(var(--primary-rgb), 0.2); stroke: var(--primary-light);
}
.cv-shape-picker-btn.active .cv-shape-path {
  fill: rgba(var(--primary-rgb), 0.25); stroke: var(--primary);
}
body.light-mode .cv-shape-picker-btn { background: rgba(0,0,0,0.04); }
body.light-mode .cv-shape-picker-btn:hover { background: rgba(var(--primary-rgb), 0.1); }
body.light-mode .cv-shape-picker-icon .cv-shape-path { fill: rgba(0,0,0,0.06); stroke: rgba(0,0,0,0.55); }
body.light-mode .cv-shape-picker-btn:hover .cv-shape-path { fill: rgba(var(--primary-rgb), 0.1); stroke: var(--primary); }
.cv-present-bar {
  display: none; position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-sticky); background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border-radius: var(--radius-md); padding: 8px 16px; gap: 12px; align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.cv-present-bar.active { display: flex; }
.cv-present-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main); border-radius: var(--radius-base); padding: 6px 14px; cursor: pointer;
  font-size: var(--fs-md); transition: background 0.15s;
}
.cv-present-btn:hover { background: rgba(255,255,255,0.18); }
.cv-present-stop { background: rgba(255,60,60,0.2); border-color: rgba(255,60,60,0.4); }
.cv-present-stop:hover { background: rgba(255,60,60,0.35); }
.cv-present-counter {
  color: var(--text-main); font-size: var(--fs-lg); font-weight: 600;
  min-width: 60px; text-align: center; letter-spacing: 0.5px;
}
.cv-slide-badge {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px;
  border-radius: var(--radius-full); background: linear-gradient(135deg, var(--primary), #00d4ff);
  color: var(--text-main); font-size: var(--fs-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-float); box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.5); pointer-events: none;
}
.cv-block.cv-slide-highlight {
  box-shadow: 0 0 0 3px var(--primary), 0 0 30px rgba(var(--primary-rgb),0.4) !important; z-index: var(--z-sidebar);
}
.cv-block-slide {
  background: none; border: none; cursor: pointer; font-size: var(--fs-md);
  padding: 0 2px; opacity: 0; transition: opacity 0.15s;
}
.cv-block:hover .cv-block-slide { opacity: 0.5; }
.cv-block-slide:hover { opacity: 0.8 !important; }
.cv-block-slide.active { opacity: 1 !important; }
.cv-presenting .cv-toolbar { opacity: 0.3; pointer-events: none; transition: opacity 0.3s; }
.cv-presenting .cv-minimap { opacity: 0.3; pointer-events: none; }
body.light-mode .cv-present-bar { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
body.light-mode .cv-present-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: var(--text-main); }
body.light-mode .cv-present-counter { color: var(--text-main); }
.cv-present-timer {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-md); font-weight: 600;
  letter-spacing: 0.5px; min-width: 44px;
  text-align: center; font-variant-numeric: tabular-nums;
}
body.light-mode .cv-present-timer { color: rgba(0,0,0,0.6); }
.cv-laser-dot {
  position: absolute; width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, #ff2020 30%, rgba(255,32,32,0.4) 70%, transparent 100%);
  box-shadow: 0 0 12px 4px rgba(255,32,32,0.7);
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: var(--z-sticky); opacity: 0; transition: opacity 0.1s;
}
.cv-laser-cursor, .cv-laser-cursor * { cursor: crosshair !important; }
.cv-speaker-notes {
  position: absolute; bottom: 80px; right: 20px; width: 280px;
  background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  padding: 12px 14px; z-index: var(--z-dropdown); box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.cv-sn-header {
  font-size: var(--fs-sm); font-weight: 600; color: var(--primary);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.cv-sn-text {
  font-size: var(--fs-base); color: rgba(255,255,255,0.8);
  line-height: 1.5; white-space: pre-wrap; max-height: 180px; overflow-y: auto;
}
body.light-mode .cv-speaker-notes { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.1); }
body.light-mode .cv-sn-text { color: rgba(0,0,0,0.75); }
.cv-sn-text::-webkit-scrollbar { width: 4px; }
.cv-sn-text::-webkit-scrollbar-track { background: transparent; }
.cv-sn-text::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: var(--radius-xs); }
body.light-mode .cv-sn-text::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
.cv-present-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.15); margin: 0 2px; flex-shrink: 0; }
body.light-mode .cv-present-divider { background: rgba(0,0,0,0.12); }
.cv-slide-fade {
  position: absolute; inset: 0;
  background: var(--bg-solid);
  z-index: var(--z-dropdown); opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
}
.cv-slide-fade.active { opacity: 1; }
.cv-tab-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 4px 8px 0; flex-shrink: 0;
  background: var(--card-bg-solid);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
  overflow-x: auto; scrollbar-width: none; min-height: 32px;
}
.cv-tab-bar::-webkit-scrollbar { display: none; }
.cv-tab {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(255,255,255,0.05); cursor: pointer;
  font-size: var(--fs-base); color: rgba(255,255,255,0.55);
  user-select: none; white-space: nowrap;
  max-width: 150px; min-width: 64px; flex-shrink: 0;
  border: 1px solid transparent; border-bottom: none;
  transition: background 0.15s, color 0.15s;
}
.cv-tab.active {
  background: rgba(255,255,255,0.12); color: var(--text-main);
  border-color: rgba(var(--primary-rgb), 0.2);
}
.cv-tab:hover:not(.active) {
  background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.85);
}
.cv-tab-name { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.cv-tab-close {
  background: none; border: none; color: rgba(255,255,255,0.35);
  cursor: pointer; padding: 0; font-size: var(--fs-lg); line-height: 1;
  width: 16px; height: 16px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-xs); flex-shrink: 0;
}
.cv-tab-close:hover { background: rgba(255,255,255,0.15); color: var(--text-main); }
.cv-tab-add {
  background: none; border: none; color: rgba(255,255,255,0.45);
  cursor: pointer; padding: 0 7px; font-size: var(--fs-2xl); line-height: 1;
  height: 28px; display: flex; align-items: center;
  border-radius: var(--radius-xs); flex-shrink: 0; margin-left: 2px;
}
.cv-tab-add:hover { background: rgba(255,255,255,0.1); color: var(--text-main); }
.cv-tab-rename-input {
  background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xs); color: #fff; font-size: var(--fs-base);
  padding: 1px 4px; width: 90px; outline: none; flex: 1;
}
body.light-mode #canvas-view .cv-tab-bar {
  background: rgba(230, 230, 245, 0.97);
  border-bottom-color: rgba(0,0,0,0.1);
}
body.light-mode #canvas-view .cv-tab {
  background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.5);
}
body.light-mode #canvas-view .cv-tab.active {
  background: rgba(0,0,0,0.09); color: var(--text-main);
  border-color: rgba(0,0,0,0.12);
}
body.light-mode #canvas-view .cv-tab:hover:not(.active) {
  background: rgba(0,0,0,0.07); color: rgba(0,0,0,0.8);
}
body.light-mode #canvas-view .cv-tab-add,
body.light-mode #canvas-view .cv-tab-close { color: rgba(0,0,0,0.4); }
body.light-mode #canvas-view .cv-tab-add:hover,
body.light-mode #canvas-view .cv-tab-close:hover {
  background: rgba(0,0,0,0.08); color: var(--text-main);
}
body.light-mode #canvas-view .cv-tab-rename-input {
  background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.3); color: var(--text-main);
}
.cv-focus-breadcrumb {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-sticky); display: flex; align-items: center; gap: 10px;
  background: var(--card-bg-solid); backdrop-filter: blur(12px);
  border-radius: var(--radius-md); padding: 6px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); border: 1px solid rgba(var(--primary-rgb),0.25);
}
.cv-focus-back {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main); border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer;
  font-size: var(--fs-md); transition: background 0.15s;
}
.cv-focus-back:hover { background: rgba(255,255,255,0.18); }
.cv-focus-label {
  color: rgba(255,255,255,0.85); font-size: var(--fs-md); font-weight: 500;
  white-space: nowrap; max-width: 250px; overflow: hidden; text-overflow: ellipsis;
}
body.light-mode .cv-focus-breadcrumb {
  background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.light-mode .cv-focus-back {
  background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: var(--text-main);
}
body.light-mode .cv-focus-label { color: var(--text-main); }
.cv-context-menu {
  position: fixed; z-index: var(--z-modal);
  background: var(--card-bg-solid); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md);
  padding: 4px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: cvCtxIn 0.12s ease-out;
}
@keyframes cvCtxIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.cv-context-item {
  display: block; width: 100%; background: none; border: none;
  color: rgba(255,255,255,0.85); font-size: var(--fs-md); padding: 7px 12px;
  text-align: left; cursor: pointer; border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.cv-context-item:hover { background: rgba(var(--primary-rgb),0.2); color: var(--text-main); }
body.light-mode .cv-context-menu {
  background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
body.light-mode .cv-context-item { color: var(--text-main); }
body.light-mode .cv-context-item:hover { background: rgba(var(--primary-rgb),0.1); color: var(--text-main); }
.cv-sticker-badge {
  position: absolute; top: -8px; left: -8px;
  font-size: var(--fs-xl); line-height: 1; z-index: var(--z-float);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  pointer-events: none;
}
.cv-priority-badge {
  position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  font-size: var(--fs-sm); line-height: 1; z-index: var(--z-float);
  background: var(--card-bg-solid); padding: 2px 6px; border-radius: var(--radius-base);
  pointer-events: none; white-space: nowrap;
  border: 1px solid rgba(234,179,8,0.3);
}
body.light-mode .cv-priority-badge { background: rgba(255,255,255,0.9); }
.cv-drop-zone {
  box-shadow: 0 0 0 3px rgba(0,200,120,0.6), 0 0 20px rgba(0,200,120,0.2) !important;
  transition: box-shadow 0.15s;
}
.cv-outline-panel {
  position: absolute; top: 36px; left: 0; bottom: 0; width: 260px;
  background: var(--card-bg-solid); backdrop-filter: blur(16px);
  border-right: 1px solid rgba(var(--primary-rgb),0.2);
  z-index: var(--z-dropdown); display: none; flex-direction: column; overflow: hidden;
}
.cv-outline-panel.active { display: flex; }
.cv-outline-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-md); font-weight: 600; color: rgba(255,255,255,0.85);
}
.cv-outline-close {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: var(--fs-lg); padding: 0; line-height: 1;
}
.cv-outline-close:hover { color: var(--text-main); }
.cv-outline-tree {
  flex: 1; overflow-y: auto; padding: 4px 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.cv-outline-row {
  padding: 5px 8px; font-size: var(--fs-base); color: rgba(255,255,255,0.7);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: var(--radius-xs); margin: 1px 4px; transition: background 0.1s;
}
.cv-outline-row:hover { background: rgba(var(--primary-rgb),0.15); color: var(--text-main); }
.cv-block.cv-outline-highlight {
  box-shadow: 0 0 0 2px rgba(59,130,246,0.7), 0 0 16px rgba(59,130,246,0.3) !important;
}
body.light-mode .cv-outline-panel {
  background: rgba(245,245,250,0.97); border-right-color: rgba(0,0,0,0.1);
}
body.light-mode .cv-outline-header { color: var(--text-main); border-bottom-color: rgba(0,0,0,0.08); }
body.light-mode .cv-outline-close { color: rgba(0,0,0,0.4); }
body.light-mode .cv-outline-close:hover { color: var(--text-main); }
body.light-mode .cv-outline-row { color: rgba(0,0,0,0.65); }
body.light-mode .cv-outline-row:hover { background: rgba(var(--primary-rgb),0.1); color: var(--text-main); }
.cv-sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 4px;
}
.cv-emoji-btn {
  background: none;
  border: none;
  font-size: var(--fs-2xl);
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.cv-emoji-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
}
.cv-priority-row {
  display: flex;
  gap: 4px;
  padding: 8px;
}
.cv-outline-empty {
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-base);
  padding: 8px;
}
.cv-ai-map-box {
  background: var(--card-bg-solid);
  border: 1px solid rgba(var(--primary-rgb),0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 400px;
  max-width: 90vw;
  backdrop-filter: blur(16px);
}
.cv-ai-map-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}
.cv-ai-map-desc {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.cv-ai-map-input {
  width: 100%;
  height: 80px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-base);
  color: var(--text-main);
  padding: 10px;
  font-size: var(--fs-md);
  resize: none;
  outline: none;
  box-sizing: border-box;
}
.cv-ai-map-cancel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
  border-radius: var(--radius-base);
  padding: 6px 16px;
  cursor: pointer;
  font-size: var(--fs-md);
}
.cv-ai-map-go {
  background: rgba(var(--primary-rgb),0.3);
  border: 1px solid rgba(var(--primary-rgb),0.5);
  color: var(--text-main);
  border-radius: var(--radius-base);
  padding: 6px 16px;
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 600;
}
body.light-mode .cv-ai-map-box {
  background: rgba(255,255,255,0.97);
  border-color: rgba(var(--primary-rgb),0.2);
}
body.light-mode .cv-ai-map-title { color: var(--text-main); }
body.light-mode .cv-ai-map-desc { color: rgba(0,0,0,0.5); }
body.light-mode .cv-ai-map-input { background: var(--card-bg-solid); border-color: rgba(0,0,0,0.12); color: var(--text-main); }
body.light-mode .cv-outline-empty { color: rgba(0,0,0,0.35); }
      body.light-mode .cv-sn-text::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.03); }

/* ── Focus-visible (a11y) ─────────────────── */
.cv-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cv-tab-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cv-tab-add:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cv-fig-collapse-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── Canvas shape-tool SVG ghost (canvas.js) ─────────────── */
.cv-shape-svg-ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-sticky);
  overflow: visible;
}

/* ── Canvas image block (canvas.js) ──────────────────────── */
.cv-img-full { width: 100%; height: 100%; object-fit: contain; }

/* ── Canvas freehand draw SVG (canvas-draw.js) ───────────── */
.cv-draw-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-dropdown);
  overflow: visible;
}

/* ── Canvas priority picker button (canvas-draw.js) ──────── */
.cv-priority-btn {
  border: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-base);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: #fff;
  min-width: 32px;
  background: none;
}
.cv-priority-btn--active { background: rgba(234,179,8,0.3); }

