/* Blocs de l'éditeur. */
.blk { position: relative; display: flex; padding: 1px 0; border-radius: 3px; }
.blk-h { position: absolute; left: -46px; top: 3px; width: 44px; display: flex; opacity: 0; transition: opacity .1s; }
.blk:hover > .blk-h { opacity: 1; }
.blk-h button { width: 22px; height: 24px; color: var(--muted); border-radius: 4px; }
.blk-h button:hover { background: var(--hover); }
.blk-h button[draggable] { cursor: grab; }
.blk-b { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 6px; }
.blk-c { flex: 1; min-width: 0; outline: none; padding: 3px 2px; white-space: pre-wrap; word-break: break-word; }
.blk:not(:focus-within) .blk-c:empty::before { content: ''; }
.blk-text:only-of-type .blk-c:empty::before, .blk:focus-within .blk-c:empty::before { content: attr(data-ph); }
.blk-c a { color: var(--accent); cursor: pointer; }
.blk-c code { background: var(--hover); border-radius: 3px; padding: 1px 4px; font: 13px ui-monospace, Menlo, Consolas, monospace; color: var(--danger); }
.pre { flex: none; width: 22px; text-align: center; padding-top: 3px; }
input.pre { width: 16px; height: 16px; margin: 7px 3px 0; accent-color: var(--accent); }
.blk-h1 .blk-c { font-size: 28px; font-weight: 700; margin-top: 18px; line-height: 1.3; }
.blk-h2 .blk-c { font-size: 22px; font-weight: 650; margin-top: 14px; line-height: 1.3; }
.blk-h3 .blk-c { font-size: 18px; font-weight: 650; margin-top: 8px; }
.blk-h1 .blk-h { top: 24px; } .blk-h2 .blk-h { top: 18px; } .blk-h3 .blk-h { top: 11px; }
.blk-quote .blk-b { border-left: 3px solid var(--text); padding-left: 12px; margin: 2px 0; }
.blk-callout .blk-b { background: var(--side); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 4px 0; }
.blk-code .blk-b { background: var(--side); border-radius: 6px; padding: 12px 14px; margin: 4px 0; }
.blk-code .blk-c { font: 13px/1.55 ui-monospace, Menlo, Consolas, monospace; tab-size: 2; }
.blk-divider .blk-b { display: block; padding: 4px 0; }
.blk.done .blk-c { text-decoration: line-through; color: var(--muted); }
.page-link { display: block; flex: 1; padding: 3px 4px; border-radius: 4px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.page-link:hover { background: var(--hover); }
.img-wrap { display: block; max-width: 100%; margin: 4px 0; line-height: 0; }
.img-wrap img { max-width: 100%; max-height: 80vh; border-radius: 4px; }
.file-link { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 2px 0; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; min-width: 0; }
.file-link:hover { background: var(--hover); }
.file-link .grow { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.file-link .muted { font-size: 12px; white-space: nowrap; }
.blk.dragging { opacity: .4; }
.blk.drop-a { box-shadow: 0 -2px 0 var(--accent); }
.blk.drop-b { box-shadow: 0 2px 0 var(--accent); }
.blocks-tail { height: 120px; cursor: text; }
