/* Presentation mode keeps the document visible through sheet-shaped holes
   while editor-only guides and chrome are suppressed. */
.ui-presentation-overlay {
  display: none;
}

body.presentation-mode .canvas-area {
  background: var(--arhix-document-presentation-mask);
}

body.presentation-mode #canvas {
  /* Retained SVG text and automatic hatches inherit paper ink, while the
     surrounding editor keeps its own canvas/chrome theme. */
  --arhix-canvas-ink: var(--arhix-paper-ink);
  --arhix-canvas-text-placeholder: var(--arhix-paper-text-placeholder);
  background: var(--arhix-document-presentation-paper);
}

body.presentation-mode #grid-canvas,
body.presentation-mode .canvas-origin-marker,
body.presentation-mode #overlay-layer,
body.presentation-mode #ghost-layer {
  display: none;
}

/* The ruler is the one presentation tool that intentionally consumes the
   engine interaction overlay: its live measure and snap feedback must remain
   visible while the rest of the editor chrome stays suppressed. */
body.presentation-mode[data-ui-active-tool="distance"] #overlay-layer {
  display: inline;
}

body.presentation-mode .ui-local-image {
  display: none;
}

body.presentation-mode .ui-sheet-frame__title,
body.presentation-mode .ui-sheet-frame .ui-frame-title-placeholder {
  display: none;
}

body.presentation-mode .ui-view-frame__rect,
body.presentation-mode .ui-view-frame__hit-area,
body.presentation-mode .ui-view-frame__title,
body.presentation-mode .ui-view-frame .ui-frame-title-placeholder {
  display: none;
}

body.presentation-mode [data-text-frame].ui-view-frame._sticky._selected .ui-view-frame__rect {
  display: inline;
}

body.presentation-mode .ui-presentation-overlay {
  display: block;
  fill: var(--arhix-document-presentation-mask);
}

/* The resolved full-dark theme applies to the stage, including public links.
   Paper and drawing projection remain light. */
body[data-theme-mode="full"].presentation-mode .canvas-area {
  background: var(--arhix-document-presentation-mask-dark);
}

body[data-theme-mode="full"].presentation-mode .ui-presentation-overlay {
  fill: var(--arhix-document-presentation-mask-dark);
}

body.presentation-mode .ui-sheet-frame__paper {
  fill: none;
  stroke: var(--arhix-document-presentation-frame);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: default;
}
