/* ProseMirror layout essentials (MIT), with UCManiak's existing colours. */
.ProseMirror{position:relative;word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;font-variant-ligatures:none;font-feature-settings:"liga" 0;outline:none;min-height:100%;counter-reset:note-list}
.ProseMirror-hideselection *::selection{background:transparent}.ProseMirror-hideselection{caret-color:transparent}
.ProseMirror p{margin:0;min-height:1.8em;color:inherit;font-size:inherit;line-height:inherit;overflow-wrap:anywhere;counter-reset:note-list}
.ProseMirror p[data-numbered=true]{counter-reset:none;counter-increment:note-list;position:relative;padding-left:2.3em}
.ProseMirror p[data-numbered=true]::before{content:counter(note-list) ".";position:absolute;left:0;width:1.8em;text-align:right;color:var(--green);font-variant-numeric:tabular-nums;user-select:none}
.ProseMirror p:only-child:has(>br:only-child)::after{content:'Ce que je veux retenir…';color:var(--muted);pointer-events:none}
#notebook-text{padding:10px 12px;overflow:auto;white-space:normal;resize:none;overscroll-behavior:contain;scrollbar-gutter:stable;cursor:text;min-height:110px}
#notebook-text:focus-within{outline:2px solid var(--green);outline-offset:2px}
.notebook-tabbar{display:flex;gap:6px;align-items:flex-start;margin:2px 0 6px;flex-shrink:0;min-width:0}
#notebook-tabs{display:flex;flex-wrap:wrap;gap:5px;min-width:0;max-height:86px;overflow-y:auto;flex:1;padding:2px}
#notebook-tabs .notebook-tab{max-width:100%;min-width:0;min-height:34px;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--soft);padding:6px 8px;font-size:12px;font-weight:500;text-overflow:ellipsis;cursor:text}
#notebook-tabs .notebook-tab[aria-current=true]{background:var(--green);color:white;border-color:var(--green)}
#notebook-tabs .notebook-tab:focus{outline:2px solid var(--green);outline-offset:2px;background:white;color:var(--ink)}
#notebook-add-tab{flex:0 0 34px;min-height:34px;margin:2px 0;border:1px solid var(--line);border-radius:7px;background:var(--soft);font-size:22px;line-height:1}
.notebook-help{margin:2px 0!important}.notebook-heading{margin-bottom:4px!important}
.notebook-toolbar{display:flex;gap:4px;align-items:center;flex-shrink:0;margin:2px 0 6px}
.notebook-toolbar button{min-height:34px;min-width:36px;padding:5px 10px;border:1px solid var(--line);border-radius:6px;background:white;font-size:13px;color:var(--ink)}
.notebook-toolbar button[aria-pressed=true]{color:white;background:var(--green);border-color:var(--green)}
.notebook-toolbar button:focus-visible,#notebook-add-tab:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.notebook-floating #notebook-text{min-height:50px}
.notebook-floating .notebook-heading,.notebook-floating .notebook-tabbar,.notebook-floating .notebook-toolbar{flex-shrink:0}
.notebook-floating #notebook-tabs{max-height:70px}
.notebook-floating>p.hint:not(#notebook-context):not(#notebook-status){display:none}
@media(min-width:1001px){.video-information{grid-column:2}#notebook-text{min-height:100px}.theater>.empty-state{max-height:100%;overflow:auto}}
