/* Published views use the editor's board and card renderer, with editing UI removed. */
body.hn-public-view :is(
  #hn-contextual-rail, .tool-dock, .hn-mobile-dock, .hn-mobile-selected,
  .sidebar, .sidebar-toggle, .canvas-hint, #web-status-dock,
  .project-start-actions,
  #favorite-boards-panel, #board-menu, #export-menu, #board-background-btn, #workspace-boards-btn,
  .topbar-actions, .topbar .search-wrap, .selection-tools,
  .text-format-toolbar, .timeline-point-toolbar
) { display: none !important; }

body.hn-public-view :is(
  .card .drag-handle, .card .resize-handle, .card .connection-handle,
  .card .column-add-note, .card .collapse-column,
  .card .hn-link-preview-edit
) { visibility: hidden !important; pointer-events: none !important; }
/* A calendar's day list is read here: no adding or reordering. */
body.hn-public-view .card :is(.calendar-task-add, .calendar-task-row .task-reorder-grip) { display: none !important; }
/* A schedule is read here too: no drawing, moving or editing; phases still fold. */
body.hn-public-view .card :is(.schedule-add-row, .schedule-footer, .schedule-bar-edge) { display: none !important; }
body.hn-public-view .card :is(.schedule-bar, .schedule-milestone, .schedule-track[data-draw], .schedule-task-edit, .schedule-phase-color) { cursor: default; }
body.hn-public-view .card :is(.schedule-phase-toggle, .schedule-zoom button) { cursor: pointer; }

body.hn-public-view .card { cursor: default; }
body.hn-public-view .board-card,
body.hn-public-view .column-entry.column-board,
body.hn-public-view .hn-board-shortcut { cursor: pointer; }
body.hn-public-view .card :is(input, textarea, .rich-text-editor[contenteditable="false"]) { cursor: text; }
body.hn-public-view .card :is(input, textarea):focus { outline: none; }
body.hn-public-view :is(.board-card, .column-entry.column-board):focus-visible {
  outline: 2px solid var(--theme-accent, #4c6686);
  outline-offset: 2px;
}
body.hn-public-view .snapshot-readonly-badge {
  display: block;
  position: fixed;
  z-index: 120;
  bottom: 12px;
  left: 12px;
  max-width: calc(100vw - 24px);
  padding: 6px 10px;
  border: 1px solid var(--theme-border, #d9dde1);
  border-radius: 999px;
  background: var(--theme-surface, #fff);
  color: var(--theme-muted, #666d7a);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  font: 12px/1.3 var(--ui-font, Arial), sans-serif;
}
body.hn-public-view .snapshot-readonly-badge[hidden] { display: none !important; }
