.page-editor .tiptap{color:var(--text);overflow-wrap:anywhere;outline:none;flex-direction:column;gap:2px;min-height:120px;font-size:16px;line-height:1.5;display:flex}.page-editor .tiptap>*{margin:0}.page-editor .tiptap p{margin:0;padding:3px 2px}.page-editor .tiptap h1,.page-editor .tiptap h2,.page-editor .tiptap h3,.page-editor .tabpanel:before{margin:0;padding:3px 2px;font-weight:600;line-height:1.3}.page-editor .tiptap h1{margin-top:18px;font-size:30px}.page-editor .tiptap h2{margin-top:14px;font-size:24px}.page-editor .tiptap h3,.page-editor .tabpanel:before{margin-top:10px;font-size:20px}.page-editor .tiptap ul,.page-editor .tiptap ol{margin:0;padding-left:26px}.page-editor .tiptap ul{list-style:outside}.page-editor .tiptap ol{list-style:decimal}.page-editor .tiptap li>p{padding:2px}.page-editor .tiptap ul[data-type=taskList]{padding-left:4px;list-style:none}.page-editor .tiptap ul[data-type=taskList] li{align-items:flex-start;gap:8px;display:flex}.page-editor .tiptap ul[data-type=taskList] li>label{flex:none;margin-top:5px}.page-editor .tiptap ul[data-type=taskList] li>label input{width:16px;height:16px;accent-color:var(--link);cursor:pointer}.page-editor .tiptap ul[data-type=taskList] li>div{flex:1;min-width:0}.page-editor .tiptap ul[data-type=taskList] li[data-checked=true]>div{color:var(--text3);text-decoration:line-through}.page-editor .tiptap blockquote{border-left:3px solid var(--text);margin:0;padding:2px 14px;font-size:17px}.page-editor .tiptap hr{border:none;border-top:1px solid var(--border);margin:12px 0}.page-editor .tiptap a{color:inherit;text-decoration:underline;-webkit-text-decoration-color:var(--text3);text-decoration-color:var(--text3)}.page-editor .tiptap code{background:var(--fill);color:var(--danger);border-radius:3px;padding:1px 4px;font-size:85%}.page-editor .tiptap .mention{background:var(--mention-bg);color:var(--mention-fg);border-radius:3px;padding:0 2px;font-weight:500}.page-editor .tiptap p.is-empty:before,.page-editor .tiptap h1.is-empty:before,.page-editor .tiptap h2.is-empty:before,.page-editor .tiptap h3.is-empty:before{content:attr(data-placeholder);color:var(--text3);float:left;pointer-events:none;height:0}.page-editor .tiptap[contenteditable=false] .is-empty:before{content:none}.page-editor .callout{background:var(--fill);border-radius:6px;align-items:flex-start;gap:8px;margin:4px 0;padding:12px 14px 12px 10px;display:flex}.page-editor .callout-ic{cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;width:26px;height:26px;font-size:18px;line-height:1}.page-editor .callout-ic:hover:not(:disabled){background:var(--hover-strong)}.page-editor .callout-body{flex:1;min-width:0}.page-editor [data-type=details]{gap:4px;margin:0;display:flex}.page-editor [data-type=details]>button{width:22px;height:26px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;display:flex}.page-editor [data-type=details]>button:before{content:"▸";transition:transform .12s}.page-editor [data-type=details].is-open>button:before{transform:rotate(90deg)}.page-editor [data-type=details]>button:hover{background:var(--hover)}.page-editor [data-type=details]>div{flex:1;min-width:0}.page-editor [data-type=details] summary{padding:3px 2px;list-style:none}.page-editor [data-type=details] summary::-webkit-details-marker{display:none}.page-editor .tableblock{width:100%;margin:6px 0}.page-editor .tableWrapper{overflow-x:auto}.page-editor .tableinner{width:100%}.page-editor table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:15px}.page-editor th,.page-editor td{border:1px solid var(--border);vertical-align:top;text-align:left;overflow-wrap:anywhere;padding:6px 8px;position:relative}.page-editor th{background:var(--fill);font-weight:600}.page-editor th>p,.page-editor td>p{padding:0}.page-editor .selectedCell{background:var(--chip-on)}.page-editor td.tcell-num{text-align:right}.page-editor .tcell-bad{box-shadow:inset 0 0 0 1px var(--danger)}.page-editor td.tcell-widget>p{display:none}.page-editor td.tcell-widget{padding:2px}.page-editor td.tcell-num.tcell-widget{padding:6px 8px}.page-editor .tcell-value{min-height:1.5em;padding:3px 2px;display:block}.page-editor th:has(.thead-menu){padding-right:44px}.page-editor .thead-type{position:absolute;top:5px;right:4px}.page-editor .tabletotals{font-size:15px;display:grid}.page-editor .tabletotal{border:1px solid var(--border);text-align:right;border-top:0;min-height:2.25em;padding:4px}.page-editor .tabletotal+.tabletotal{border-left:0}.page-editor .tableblock .tabletotal:not(:has(button)){padding:6px 8px;font-weight:600}.page-editor .tabletotal-label{color:var(--text2);white-space:pre;font-weight:400}.page-editor .tablebar{flex-wrap:wrap;justify-content:flex-end;gap:4px;padding-bottom:4px;display:flex}.page-editor .blockatom{margin:4px 0}.page-editor .bmcard{border:1px solid var(--border);color:var(--text);border-radius:6px;align-items:center;gap:12px;padding:10px 12px;text-decoration:none;display:flex}.page-editor .tiptap a.bmcard{text-decoration:none}.page-editor a.bmcard:hover{background:var(--hover)}.page-editor .bmletter{background:var(--fill);width:30px;height:30px;color:var(--text2);border-radius:6px;flex:none;justify-content:center;align-items:center;font-weight:600;display:flex}.page-editor .embedframe{aspect-ratio:16/9;background:var(--fill);border-radius:6px;width:100%;position:relative;overflow:hidden}.page-editor .embedframe iframe{border:0;width:100%;height:100%;position:absolute;inset:0}.page-editor .urlform{border:1px dashed var(--border-in);border-radius:6px;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;display:flex}.page-editor .urlform input{flex:220px}.page-editor .cols{grid-template-columns:1fr 1fr;gap:24px;display:grid}.page-editor .col{min-width:0}@media (width<=640px){.page-editor .cols{grid-template-columns:1fr}}.page-editor .tabsblock{min-width:0;margin:6px 0}.page-editor .tabstrip{border-bottom:1px solid var(--divider);align-items:center;gap:2px;min-width:0;margin-bottom:6px;padding-bottom:4px;display:flex}.page-editor .tabpanel{flex-direction:column;gap:2px;min-width:0;display:flex}.page-editor .tabpanel[data-closed]{display:none}@media print{.page-editor .tabstrip{display:none}.page-editor .tabpanel[data-closed]{display:flex}.page-editor .tabpanel:before{content:attr(data-title)}}.drag-handle{width:18px;height:24px;color:var(--icon);cursor:grab;touch-action:none;border-radius:4px;justify-content:center;align-items:center;transition:background-color .12s;display:flex}.drag-handle:hover{background:var(--hover)}.drag-handle:active{cursor:grabbing}.page-editor .ProseMirror-selectednode{background:color-mix(in srgb, var(--accent) 12%, transparent);border-radius:4px}.page-editor .comment-hl{background:var(--tg-yellow-bg);border-bottom:2px solid var(--star);border-radius:2px}.page-editor .thbadge-host,.page-editor .todo-task-host{vertical-align:middle;-webkit-user-select:none;user-select:none;margin-left:6px;display:inline-flex}.thread-pop{width:min(24rem,100vw - 2rem);max-height:70vh;overflow-y:auto}.page-editor .page-image{margin:8px 0}.page-editor .page-image-frame img{border-radius:6px;max-width:100%;max-height:640px;display:block}.page-editor .page-image-missing{border:1px solid var(--border);color:var(--text2);border-radius:6px;align-items:center;gap:8px;padding:10px 12px;display:flex}.page-editor .page-image-caption{color:var(--text2);margin-top:4px;font-size:13px}.page-editor .files-block{margin:12px 0}.page-editor .node-filesBlock.ProseMirror-selectednode{background:0 0}.page-editor .tiptap .files-block h2,.page-editor .tiptap .files-block p,.page-editor .tiptap .files-block a{margin:revert-layer;padding:revert-layer;font-size:revert-layer;line-height:revert-layer;color:revert-layer;-webkit-text-decoration:revert-layer;text-decoration:revert-layer}.page-editor .live-caret{border-inline-start:2px solid var(--live-fg);word-break:normal;pointer-events:none;margin-inline:-1px;position:relative}.page-editor .tiptap:has(.live-caret){overflow-x:clip}.page-editor .live-caret-label{background:var(--live-bg);color:var(--live-fg);font-size:var(--text-2xs);white-space:nowrap;-webkit-user-select:none;user-select:none;border-radius:3px 3px 3px 0;padding:0 4px;font-weight:600;line-height:16px;position:absolute;inset-block-end:100%;inset-inline-start:-2px}.page-editor .live-selection{background:var(--live-bg)}.page-editor :is(.live-caret,.live-selection)[data-color=gray]{--live-bg:var(--tg-gray-bg);--live-fg:var(--tg-gray-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=brown]{--live-bg:var(--tg-brown-bg);--live-fg:var(--tg-brown-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=orange]{--live-bg:var(--tg-orange-bg);--live-fg:var(--tg-orange-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=yellow]{--live-bg:var(--tg-yellow-bg);--live-fg:var(--tg-yellow-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=green]{--live-bg:var(--tg-green-bg);--live-fg:var(--tg-green-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=blue]{--live-bg:var(--tg-blue-bg);--live-fg:var(--tg-blue-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=purple]{--live-bg:var(--tg-purple-bg);--live-fg:var(--tg-purple-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=pink]{--live-bg:var(--tg-pink-bg);--live-fg:var(--tg-pink-fg)}.page-editor :is(.live-caret,.live-selection)[data-color=red]{--live-bg:var(--tg-red-bg);--live-fg:var(--tg-red-fg)}
