.markdown-link-dialog.markdown-table-dialog { width: min(382px, calc(100% - 24px)); max-width: calc(100% - 24px); padding: 14px; }
.markdown-picker-heading, .markdown-picker-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.markdown-picker-heading h2 { font-size: 19px; }
.markdown-table-size { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.markdown-table-dialog p { margin: 0; font-size: 13px; }
.markdown-table-grid, .markdown-table-grid-row { display: grid; gap: 3px; }
.markdown-table-grid-row { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.markdown-table-grid button { display: block; width: 100%; aspect-ratio: 1; min-height: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--panel-subtle); }
.markdown-table-grid button.is-selected { border-color: var(--accent); background: var(--accent-ring-strong); }
.markdown-table-grid button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.markdown-picker-footer { font-size: 12px; }
.markdown-link-dialog.markdown-code-dialog { width: min(560px, calc(100% - 24px)); max-width: calc(100% - 24px); }
.markdown-code-sample { min-width: 0; }
.markdown-code-sample pre { max-height: 210px; margin: 0; font-size: 13px; }
.markdown-code-remove { justify-self: start; font-size: 13px; color: var(--muted); }
.markdown-code-remove[hidden] { display: none; }
@media (max-width: 380px) {
    .markdown-tabs button.markdown-tab { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; }
}

.note-body blockquote { margin: 1em 0; padding: 8px 14px; border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; background: var(--accent-ring); }
.note-body blockquote > :first-child { margin-top: 0; }
.note-body blockquote > :last-child { margin-bottom: 0; }
.note-body blockquote blockquote { margin-bottom: 0; }

/* Token colors follow Memo's light, dark and automatic themes. No font or layout changes. */
.note-body .hljs-comment, .note-body .hljs-quote { color: var(--muted); font-style: italic; }
.note-body .hljs-keyword, .note-body .hljs-selector-tag, .note-body .hljs-literal, .note-body .hljs-deletion { color: var(--danger); }
.note-body .hljs-string, .note-body .hljs-regexp, .note-body .hljs-addition, .note-body .hljs-attribute { color: var(--ok); }
.note-body .hljs-number, .note-body .hljs-symbol, .note-body .hljs-variable, .note-body .hljs-template-variable, .note-body .hljs-meta { color: var(--warn); }
.note-body .hljs-title, .note-body .hljs-name, .note-body .hljs-built_in, .note-body .hljs-type, .note-body .hljs-attr, .note-body .hljs-selector-class { color: var(--accent); }
.note-body .hljs-section, .note-body .hljs-strong { font-weight: 700; }
.note-body .hljs-emphasis { font-style: italic; }
