.hn-workspace-dialog{width:min(680px,94vw);max-height:88dvh;padding:0;border:1px solid var(--theme-border,#ccd2cd);border-radius:16px;background:var(--theme-surface,#fff);color:var(--theme-ink,#24342c);box-shadow:0 16px 60px #0004}
.hn-workspace-dialog::backdrop{background:#0006}.hn-workspace-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 20px;border-bottom:1px solid var(--theme-border,#ddd)}
.hn-workspace-dialog h2{font-size:19px;margin:0}.hn-workspace-body{padding:20px;overflow:auto;max-height:calc(88dvh - 80px);display:flex;flex-direction:column;gap:12px}
.hn-workspace-dialog :is(button,input,textarea,select),.hn-search-filters select{font:inherit;border:1px solid var(--theme-border,#ccd2cd);color:var(--theme-ink,#24342c);background:var(--theme-raised,#fafbf9);border-radius:8px;padding:10px;min-height:40px}
.hn-workspace-dialog button{cursor:pointer}.hn-workspace-dialog button:hover{background:var(--theme-hover,#eee)}.hn-workspace-dialog textarea{min-height:100px;resize:vertical}.hn-workspace-dialog small{color:var(--theme-muted,#5b6b61)}
.hn-workspace-row,.hn-board-row{display:flex;flex-direction:column;gap:7px;border:1px solid var(--theme-border,#ddd);border-radius:10px;padding:12px;text-align:start}.hn-board-row{width:100%}.hn-workspace-dialog a,.hn-file a{color:var(--theme-accent,#246049)}
.hn-search-filters{display:flex;gap:8px;padding:8px;position:sticky;top:0;background:var(--theme-surface,#fff);z-index:1}.hn-search-filters select{min-width:0;width:50%;font-size:12px}.search-result-item small{display:block;color:var(--theme-muted,#666)}
.hn-search-heading{display:block;padding:10px 12px 5px;color:var(--theme-muted,#666);font-size:11px;font-weight:700}.search-results .hn-board-row{border:0;border-radius:0;box-shadow:none;padding:10px 12px}.search-results .hn-board-row strong{font-size:13px}.search-results .hn-board-row small{font-size:11px;color:var(--theme-muted,#666)}
.hn-boards-dialog{width:min(460px,calc(100vw - 24px));overflow:hidden;box-sizing:border-box}
.hn-boards-dialog>header{padding:12px 16px;gap:12px}.hn-boards-dialog .hn-workspace-body{padding:14px;gap:10px;max-height:min(490px,calc(88dvh - 80px));overflow:hidden;box-sizing:border-box}
.hn-boards-dialog input,.hn-board-views{flex-shrink:0}.hn-boards-dialog input{width:100%;box-sizing:border-box}
.hn-board-views{display:flex;gap:4px}.hn-boards-dialog .hn-board-view{min-height:34px;padding:6px 11px;border:0;background:transparent;color:var(--theme-muted,#666);font-size:12px}
.hn-boards-dialog .hn-board-view[aria-pressed="true"]{background:var(--theme-hover,#edf0f1);color:var(--theme-ink,#24342c);font-weight:600}
.hn-board-switcher-list{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.hn-board-nav-row{display:flex;align-items:center;flex:0 0 auto;min-width:0;min-height:44px;gap:2px;box-sizing:border-box;border-radius:7px}
.hn-board-nav-row.is-current{background:var(--theme-hover,#edf0f1)}
.hn-boards-dialog .hn-board-open{display:flex;align-items:center;flex:1 1 auto;min-width:0;gap:9px;min-height:44px;padding:7px 8px;border:0;background:transparent;text-align:start;font-size:13px}
.hn-boards-dialog .hn-board-open:hover{background:var(--theme-hover,#edf0f1)}
.hn-board-nav-icon.favorite-board-icon{width:26px;height:26px;flex:0 0 26px;border-radius:6px}.hn-board-nav-icon.has-board-icon::after{inset:5px}
.hn-board-nav-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px}.hn-board-nav-text strong,.hn-board-nav-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:19px;text-align:match-parent}.hn-board-nav-text strong{font-weight:600}.hn-board-nav-text small{font-size:11px}
.hn-boards-dialog[dir="ltr"] .hn-board-nav-text>*{text-align:left}.hn-boards-dialog[dir="rtl"] .hn-board-nav-text>*{text-align:right}
.hn-board-current{flex:0 0 auto;color:var(--theme-muted,#666);font-size:10px;font-weight:400}
.hn-boards-dialog .hn-board-disclosure,.hn-board-disclosure-space{display:grid;place-items:center;width:28px;flex:0 0 28px;height:36px;min-height:36px;padding:0;border:0;background:transparent;color:var(--theme-muted,#666)}
.hn-board-chevron{display:block;width:16px;height:16px;background:currentColor;-webkit-mask:url('icon.php?n=arrow-right-s&v=2.4.0') center/contain no-repeat;mask:url('icon.php?n=arrow-right-s&v=2.4.0') center/contain no-repeat}
[dir="rtl"] .hn-board-chevron{transform:rotate(180deg)}.hn-board-disclosure[aria-expanded="true"] .hn-board-chevron{transform:rotate(90deg)}
.hn-boards-dialog :is(button,input):focus-visible{outline:2px solid var(--theme-accent,#4f8f72);outline-offset:-2px}
.hn-board-empty{margin:14px 8px;color:var(--theme-muted,#666);font-size:13px;line-height:1.6}
.hn-boards-dialog [hidden]{display:none!important}
.hn-search-filter-host{flex-shrink:0}.hn-search-filter-host:empty{display:none}
.hn-boards-dialog .hn-search-filters{position:static;padding:0;background:transparent;gap:8px}.hn-boards-dialog .hn-search-filters select{font-size:12px;padding:7px 9px;min-height:38px}
.hn-search-section-title{flex:0 0 auto;margin:10px 8px 3px;color:var(--theme-muted,#666);font-size:11px;font-weight:600}
.hn-search-limit{flex:0 0 auto;margin:6px 8px;font-size:11px;line-height:1.5;color:var(--theme-muted,#666)}
.hn-content-nav-row{flex:0 0 auto;min-width:0}
.hn-boards-dialog .hn-content-open{display:flex;align-items:flex-start;gap:9px;width:100%;min-width:0;min-height:52px;padding:8px;border:0;background:transparent;text-align:start;font-size:13px}
.hn-search-item-icon{width:26px;height:26px;flex:0 0 26px;background:var(--theme-muted,#666);-webkit-mask:var(--hn-search-icon) center/22px no-repeat;mask:var(--hn-search-icon) center/22px no-repeat}
.hn-search-result-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px}
.hn-search-result-text strong,.hn-search-result-text small,.hn-search-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:19px}
.hn-search-result-text strong{font-weight:600}.hn-search-result-text small{font-size:11px}.hn-search-preview{font-size:12px;color:var(--theme-ink,#24342c)}
.hn-boards-dialog[dir=ltr] .hn-search-result-text>*{text-align:left}.hn-boards-dialog[dir=rtl] .hn-search-result-text>*{text-align:right}
@media(max-width:700px){.hn-boards-dialog .hn-search-filters select{font-size:13px;min-height:44px}}
@media(max-width:700px){.hn-workspace-dialog.hn-boards-dialog{width:calc(100vw - 24px)}.hn-boards-dialog .hn-board-disclosure,.hn-board-disclosure-space{width:44px;flex-basis:44px}.hn-boards-dialog .hn-board-disclosure{height:44px;min-height:44px}.hn-boards-dialog .hn-board-view{min-height:44px}}
.folder-card-meta{display:block!important;color:var(--theme-muted,#626b64)!important;margin-top:4px;font-size:11px;font-weight:500;line-height:1.4;white-space:normal}.column-folder-content{flex-wrap:wrap;column-gap:10px;row-gap:6px}.hn-column-summary{flex:0 0 100%;box-sizing:border-box;min-width:0;padding-inline-start:42px;font-size:12px;font-weight:500;color:var(--content-muted,var(--theme-muted,#626b64));line-height:1.4;overflow-wrap:anywhere;unicode-bidi:plaintext}
.hn-file{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:15px;height:100%;box-sizing:border-box;overflow:auto}.hn-file strong{overflow-wrap:anywhere;font-size:14px}.hn-file-icon{border:1px solid currentColor;border-radius:6px;padding:10px;font-size:14px}.hn-file small{font-size:11px}.hn-file-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:12px}.hn-file-actions button{font:inherit;color:inherit;border:1px solid var(--theme-border,#aaa);background:transparent;padding:5px 7px;border-radius:6px;cursor:pointer}
.hn-file-poster{display:block;max-width:100%;max-height:130px;object-fit:contain;border-radius:6px;background:#111}
.hn-file-preview{width:min(1100px,96vw)}.hn-file-preview iframe{width:100%;height:65dvh;border:0;background:white}.hn-file-preview video{max-height:65dvh;width:100%;background:#111}.hn-file-preview audio{width:100%}
.hn-file-preview-image{display:block;max-width:100%;max-height:65dvh;object-fit:contain;align-self:center}.hn-file-preview-message{margin:0;color:var(--theme-muted,#5b6b61)}
.hn-file-limitation{max-width:240px;line-height:1.35;color:var(--theme-muted,#5b6b61)}
.hn-upload-status{position:fixed;inset-inline-end:16px;bottom:60px;z-index:18000;width:min(300px,calc(100vw - 32px));display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid var(--theme-border,#ccd2cd);border-radius:12px;background:var(--theme-surface,#fff);color:var(--theme-ink,#24342c);box-shadow:0 8px 28px #0003;font-size:12px;pointer-events:none}
.hn-upload-status strong{font-size:13px;overflow-wrap:anywhere}.hn-upload-status progress{width:100%;height:7px;accent-color:var(--theme-accent,#246049)}
#board-menu{max-height:80dvh;overflow:auto}#board-menu button{white-space:normal}
.hn-presenting :is(.topbar,.sidebar,.hn-contextual-rail,.selection-tools,.text-format-toolbar,.canvas-hint,.web-status-dock,.hn-mobile-dock,.hn-mobile-header,.hn-mobile-selected,.hn-mobile-editor-header,.collaboration-presence,.card>.drag-handle,.resize-handle){visibility:hidden!important}
.hn-presentation-exit{position:fixed;inset-block-start:12px;inset-inline-end:12px;z-index:20000;background:var(--theme-surface,#fff);color:var(--theme-ink,#222);border:1px solid var(--theme-border,#aaa);border-radius:8px;padding:12px;cursor:pointer}
.hn-presentation-bar{position:fixed;inset-block-start:12px;inset-inline-end:12px;z-index:20000;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 24px);padding:7px 10px;border:1px solid var(--theme-border,#aaa);border-radius:9px;background:var(--theme-surface,#fff);color:var(--theme-ink,#222);box-shadow:0 6px 22px #0002}
.hn-presentation-bar small{color:var(--theme-muted,#666)}.hn-presentation-bar button,.hn-presentation-focus>button{border:1px solid var(--theme-border,#aaa);border-radius:7px;padding:7px 10px;background:var(--theme-raised,#f7f8f8);color:var(--theme-ink,#222);cursor:pointer}
.hn-presentation-focus{position:fixed;inset:0;z-index:20001;display:grid;place-items:center;padding:32px;background:#16232acb;box-sizing:border-box}.hn-presentation-focus>.card{position:relative!important;left:auto!important;top:auto!important;transform:none!important;max-width:min(90vw,850px);max-height:80dvh;overflow:auto;pointer-events:auto;box-shadow:0 20px 65px #0005}.hn-presentation-focus>button{position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:2}.hn-presentation-focus :is(.drag-handle,.resize-handle){display:none!important}
@media(max-width:700px){.hn-presentation-bar{inset-inline:8px;justify-content:space-between}.hn-presentation-bar small{display:none}.hn-presentation-focus{padding:15px}}
@media(max-width:700px){}
.collaboration-editing-label{position:absolute;inset-block-start:-24px;inset-inline-start:0;white-space:nowrap;font-size:11px;background:var(--theme-surface,#fff);color:var(--theme-ink,#333);border-radius:5px;padding:3px 7px}
@media(max-width:700px){.hn-workspace-dialog{width:96vw}.hn-workspace-body{padding:14px}.hn-workspace-dialog button{min-height:44px}.hn-file-preview iframe{height:65dvh}.hn-upload-status{bottom:84px}}


/* Board entries inside lists keep the Milanote-style icon and details on the
   same left edge regardless of the interface or board-title language. */
.column-entry.column-board {
  box-sizing: border-box;
  min-height: 92px;
  padding: 15px 24px !important;
}
.column-entry.column-board .column-folder-content {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  min-height: 60px;
  padding: 0;
  direction: ltr;
}
.column-entry.column-board .column-folder-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 60px !important;
  height: 60px !important;
  margin: 0 !important;
  border-radius: 13px !important;
  align-self: center;
}
.column-entry.column-board .column-folder-icon.has-board-icon::before {
  inset: 14px !important;
}
.column-entry.column-board .column-folder-title,
.column-entry.column-board .hn-column-summary {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  padding: 0 !important;
  margin: 0;
  text-align: left !important;
  unicode-bidi: plaintext;
}
.column-entry.column-board .column-folder-title {
  grid-row: 1;
  align-self: end;
  padding-right: 16px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
.column-entry.column-board .hn-column-summary {
  grid-row: 2;
  align-self: start;
  flex: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}
/* Board typography follows the readable hierarchy of the Milanote canvas.
   Keep saved card coordinates and sizes intact; only the text presentation
   changes, so existing company boards are not laid out again on load. */
.column-card .column-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: -.2px;
}
.column-card .column-note-text,
.note-card .note-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.board-card .folder-card-view {
  padding: 5px 4px 4px;
  gap: 3px;
}
/* A saved tile can be 112px tall. Let its visible hit area contain a long
   title without writing a new card size into the shared project. */
.board-card { min-height: max-content !important; }
.board-card .card-body { height: auto !important; }
.board-card .folder-icon-large { margin-top: 0; }
.board-card .folder-card-title.folder-title-input {
  min-height: 20px !important;
  padding: 0 2px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -.2px;
  unicode-bidi: plaintext;
}
.board-card .folder-card-meta {
  margin-top: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}
html[lang="en"] .board-card .folder-card-meta { direction: ltr; }

/* A list reads like a Milanote column: its heading and live item count share
   one centered block, while the collapse control occupies the quiet top edge. */
.column-card .column-header-row {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center !important;
  gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 1px 30px 10px !important;
}
.column-card .column-title {
  box-sizing: border-box;
  flex: 0 1 auto !important;
  width: 100%;
  margin: 0;
  text-align: center !important;
}
.column-card .column-count {
  box-sizing: border-box;
  display: block !important;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--content-muted,var(--theme-muted,#8e9089)) !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  unicode-bidi: plaintext;
}
/* Lists use the collapse control in the drag strip's top-right slot. The
   generic two-dot grip would sit behind it and create a second, offset mark. */
.column-card > .drag-handle > .card-dots { display: none !important; }
/* The header grip and Compact View button otherwise occupy the same slot.
   Task-row reorder grips are separate and stay available. */
.card.has-compact-toggle > .drag-handle > .card-dots { display: none !important; }
.card.has-compact-toggle > .drag-handle > .scene-compact-toggle {
  display: grid;
  place-items: center;
  top: 2px;
  right: 1px;
  width: 26px;
  height: 21px;
  padding: 0;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  color: var(--content-muted,var(--theme-muted,#6e716a)) !important;
  box-shadow: none;
}
.card.has-compact-toggle > .drag-handle > .scene-compact-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.card.has-compact-toggle > .drag-handle > .scene-compact-toggle:hover,
.card.has-compact-toggle > .drag-handle > .scene-compact-toggle:focus-visible {
  background: rgba(0,0,0,.09) !important;
  color: var(--content-ink,var(--theme-ink,#343631)) !important;
}
.card.has-compact-toggle > .drag-handle > .scene-compact-toggle:focus-visible {
  outline: 2px solid var(--theme-accent,#4f8f72);
  outline-offset: 1px;
}
.column-card > .column-collapse-float,
.column-card.collapsed > .column-collapse-float {
  display: grid;
  place-items: center;
  top: 2px;
  right: 1px;
  left: auto;
  width: 26px;
  height: 21px;
  padding: 0;
  border: 0 !important;
  border-radius: 5px;
  background: transparent !important;
  color: var(--content-muted,var(--theme-muted,#6e716a)) !important;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, background-color .14s ease, color .14s ease;
}
.column-card > .column-collapse-float svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.column-card:hover > .column-collapse-float,
.column-card:focus-within > .column-collapse-float {
  opacity: 1;
  pointer-events: auto;
}
.column-card > .column-collapse-float:hover,
.column-card > .column-collapse-float:focus-visible {
  background: rgba(0,0,0,.09) !important;
  color: var(--content-ink,var(--theme-ink,#343631)) !important;
}
.column-card > .column-collapse-float:focus-visible {
  outline: 2px solid var(--theme-accent,#4f8f72);
  outline-offset: 1px;
}
/* Existing collapsed cards have a fixed 62px height. Keep long titles inside
   that footprint; the count returns when the list is expanded. */
.column-card.collapsed .column-header-row {
  gap: 0;
  padding-bottom: 0 !important;
}
.column-card.collapsed .column-count { display: none !important; }
.column-card.collapsed .column-title {
  max-width: 100%;
  text-overflow: ellipsis !important;
}
/* Touch screens have no hover state, so the same collapse action stays visible. */
@media (hover: none) {
  .column-card > .column-collapse-float {
    opacity: 1;
    pointer-events: auto;
  }
}
/* The dark theme's raised-control rule is more specific than the normal list
   styling; keep this one control and the count visually quiet in both modes. */
body.hn-dark .card[data-theme-surface="neutral"] > .column-collapse-float,
body.hn-dark .card[data-theme-surface="neutral"] .column-count {
  border: 0 !important;
  background: transparent !important;
  color: var(--content-muted,var(--theme-muted,#b7c0c0)) !important;
}
body.hn-dark .card[data-theme-surface="neutral"] > .column-collapse-float:hover,
body.hn-dark .card[data-theme-surface="neutral"] > .column-collapse-float:focus-visible {
  background: rgba(0,0,0,.20) !important;
  color: var(--content-ink,var(--theme-ink,#fff)) !important;
}
#scene-compact-btn.hidden { display: none !important; }

/* Regular cards have one uninterrupted surface. Keep the existing drag
   target in the quiet top edge, with action icons floating over the card. */
body.hn-themed:not(.hn-mobile) .card:is(.note-card,.column-card,.checklist-card,.link-card,.calendar-card,.planner-card,.monthplan-card,.file-card,.heading-card) > .drag-handle {
  position: absolute;
  top: 2px;
  left: 8px;
  right: 8px;
  height: 22px;
  padding: 0;
  z-index: 2;
  border: 0 !important;
  background: transparent !important;
}
body.hn-themed:not(.hn-mobile) .card:is(.note-card,.column-card,.checklist-card,.link-card,.calendar-card,.planner-card,.monthplan-card,.file-card,.heading-card) > .drag-handle > :is(.card-kind,.card-dots) { display: none; }
body.hn-themed:not(.hn-mobile) .card:is(.note-card,.column-card,.checklist-card,.link-card,.calendar-card,.planner-card,.monthplan-card,.file-card,.heading-card) > .card-body { padding-top: 24px !important; }
body.hn-themed:not(.hn-mobile) .column-card.collapsed > .card-body {
  height: 100% !important;
  max-height: 100% !important;
  padding-block: 18px !important;
}
body.hn-themed:not(.hn-mobile) .card.has-compact-toggle > .drag-handle > .scene-compact-toggle { opacity: 0; pointer-events: none; }
body.hn-themed:not(.hn-mobile) .card.has-compact-toggle:is(:hover,:focus-within) > .drag-handle > .scene-compact-toggle { opacity: 1; pointer-events: auto; }
body.hn-themed:not(.hn-mobile) .card.scene-compact > .card-body { max-height: calc(100% - 32px) !important; }

/* Timeline content retains its larger type. Middle date badges are another
   fifteen percent larger and retain their own decorated theme palette. */
.timeline-card .timeline-floating-title { font-size: 14.3px; right: calc(100% + 133.5px) !important; }
.timeline-card .timeline-endpoint-date { font-size: 11px; width: 115.5px; }
.timeline-card .timeline-date-marker { width: 48.3px !important; min-width: 48.3px !important; height: 34.5px !important; min-height: 34.5px !important; margin-top: -2.25px; gap: 1.15px; font-size: 11.385px !important; }
.timeline-card .timeline-date-value { font-size: 10.7525px; line-height: 11.385px; }
.timeline-card .timeline-weekday-label { color: var(--content-muted, currentColor); font-size: 8.855px; line-height: 10.12px; }
.timeline-badge-guide { position: absolute; width: 1px; transform: translateX(-50%); z-index: 2; background: var(--theme-muted, #7b827e); opacity: .65; pointer-events: none; }
.timeline-card .timeline-empty { font-size: 12.1px; }
.timeline-card .timeline-note { font-size: 12.1px; }
.timeline-card .timeline-task textarea { font-size: 11px; }
body.hn-themed:not(.hn-mobile-editing) .timeline-centered-note .note-text { font-size: 15.4px; line-height: 22px; }
/* The quiet drag target is already absolute: attached notes must not reserve
   the removed top strip again inside their centered content area. */
body.hn-themed:not(.hn-mobile) .timeline-centered-note > .card-body { height: 100% !important; }

/* Canvas elements use the same modest rounding as the list collapse control.
   Boards retain their own shape; transparent frames and Tables stay square. */
body.hn-themed .card:not(.board-card):not(.timeline-card):not(.frame-card):not(.simple-table-card) { border-radius: 5px !important; }
body.hn-themed .card:not(.board-card):not(.timeline-card):not(.frame-card):not(.simple-table-card) > .drag-handle { border-top-left-radius: 4px !important; border-top-right-radius: 4px !important; }
body.hn-themed :is(.column-note,.column-checklist,.timeline-note,.timeline-checklist) { border-radius: 5px !important; }
body.hn-themed .column-entry:is(.column-note,.column-checklist) { border-radius: 5px !important; }
body.hn-themed .image-card > .card-body { border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; }

/* Notes have no compact-view strip. Leave only a quiet drag target in the
   narrow top edge, so the first text line remains directly editable. */
body.hn-themed:not(.hn-mobile-editing) .card.note-card > .card-body { padding: 8px 10px !important; height: 100% !important; }
body.hn-themed:not(.hn-mobile) .card.note-card > .drag-handle { top: 1px; left: 4px; right: 4px; height: 6px; }
body.hn-mobile:not(.hn-mobile-editing) .note-card:not(.selected) > .drag-handle { position: absolute; }

/* PDF cards show the page first, with a compact document caption below. */
body.hn-themed:not(.hn-mobile-editing) .card.note-card > .card-body.hn-file-body { padding: 0 !important; overflow: hidden; }
.column-entry.hn-file-body { padding: 0 !important; overflow: hidden; }
.hn-file.hn-file-pdf { padding: 0; gap: 0; min-height: 0; overflow: hidden; text-align: start; align-items: stretch; justify-content: flex-start; }
.column-entry > .hn-file-pdf { height: 240px; }
.hn-file-cover { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 72px; overflow: hidden; background: #f5f6f7; border-bottom: 1px solid var(--theme-border,#ddd); }
.hn-file-placeholder { color: #7a838b; border: 1px solid #cbd0d4; border-radius: 3px; padding: 14px 10px; font: 12px/1 Arial,sans-serif; }
.hn-file-page { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; pointer-events: none; user-select: none; }
/* While a picture is on its way, its space pulses softly instead of staying blank. */
@keyframes hn-picture-wait { 50% { opacity: .45; } }
.hn-file-cover.hn-file-loading .hn-file-placeholder { animation: hn-picture-wait 1.4s ease-in-out infinite; }
.image-card.hn-image-loading .card-body { background: color-mix(in srgb, var(--theme-muted,#5b6b61) 13%, transparent) !important; animation: hn-picture-wait 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hn-file-cover.hn-file-loading .hn-file-placeholder, .image-card.hn-image-loading .card-body { animation: none; } }
.hn-file-info { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; width: 100%; box-sizing: border-box; padding: 11px 12px; direction: ltr; text-align: left; }
.hn-file-pdf .hn-file-icon { position: relative; flex: 0 0 32px; width: 32px; height: 40px; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 7px; box-sizing: border-box; border: 0; border-radius: 0; color: #c34f5b; font: 500 11px/1 Arial,sans-serif; text-transform: lowercase; }
.hn-file-pdf .hn-file-icon::before { content: ''; position: absolute; inset: 0; background: var(--theme-border,#d9dde2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M1 1h20l10 10v28H1V1Zm20 0v10h10' fill='none' stroke='black' stroke-linejoin='miter'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M1 1h20l10 10v28H1V1Zm20 0v10h10' fill='none' stroke='black' stroke-linejoin='miter'/%3E%3C/svg%3E") center/contain no-repeat; pointer-events: none; }
body.hn-dark .hn-file-pdf .hn-file-icon { color: #ed8791; }
.hn-file-text { flex: 1; min-width: 0; }
.hn-file-pdf .hn-file-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 18px; text-align: left; }
.hn-file-pdf .hn-file-actions { align-items: center; justify-content: flex-start; gap: 4px 10px; margin-top: 3px; direction: ltr; color: color-mix(in srgb,var(--content-ink,var(--theme-ink,#26332b)) 68%,transparent); font: 11px/20px Arial,sans-serif; }
.hn-file-pdf .hn-file-actions :is(button,a) { appearance: none; border: 0; border-radius: 2px; padding: 0; margin: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; }
.hn-file-pdf .hn-file-actions :is(button,a):hover { color: var(--content-ink,var(--theme-ink,#24342c)); }
.hn-file-pdf .hn-file-actions :is(button,a):focus-visible { outline: 2px solid var(--theme-accent,#246049); outline-offset: 3px; }
.hn-file-size { white-space: nowrap; color: inherit; font: inherit; direction: ltr; unicode-bidi: isolate; }
body.hn-mobile .hn-file-pdf .hn-file-actions :is(button,a) { min-height: 32px; display: inline-flex; align-items: center; }
.card.hn-body-dragging, .card.hn-body-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
