/* =====================================================================
   NOTES — une liste, et la page de la note éditée en place (js/notes.js)
   =====================================================================
   « On veut quelque chose de solide, moderne et efficace avec une esthétique
   soignée » (Mathieu, 24/09/26). Chargée APRÈS style.css, shell.css et
   ux-refresh.css ; les éléments redessinés portent des classes NOUVELLES
   (nx-*), que les anciennes règles .note-* ne touchent pas.
   Toutes les couleurs passent par la palette de la coquille (--gs-*) : le
   thème sombre suit tout seul.
   ===================================================================== */

.notes-view.nx {
  --nx-side-w: 316px;
  --nx-page-w: 740px;
  --nx-bar-h: 58px;
  --nx-tool-h: 50px;
  max-width: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: var(--nx-side-w) minmax(0, 1fr);
  height: calc(100dvh - var(--gs-universal-h, 72px));
  background: var(--gs-ground); color: var(--gs-ink);
}
.notes-view.nx.hidden { display: none; }
/* Sous la coquille, la vue tient la fenêtre (comme Communications) : la liste
   et la page défilent chacune de leur côté. */
@media (min-width: 861px) {
  body.shell-on .notes-view.nx {
    position: fixed; top: var(--gs-universal-h); left: var(--gs-rail-w); right: 0; bottom: 0;
    height: auto; z-index: 2;
  }
  /* Fenêtre détachée (?popup=1) : ni rail ni en-tête autour. */
  body.gs-popup-mode .notes-view.nx { inset: 0; }
}

/* ── La liste ─────────────────────────────────────────────────────────── */
/* #notesHome porte encore, PAR ID, les règles de l'ancienne liste
   (ux-refresh.css : marges, fond, défilement) : on les reprend ici. */
.notes-view.nx #notesHome {
  min-width: 0; min-height: 0; padding: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--gs-line); background: var(--gs-search-bg, var(--gs-panel));
  overflow: hidden;
}
.nx-side-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 18px 14px; }
.nx-side-titre h2 { margin: 4px 0 0; font: 720 24px/1.1 'Outfit', 'Inter', sans-serif; letter-spacing: -.01em; color: var(--gs-ink); }
.nx-eyebrow { display: block; font: 700 9.5px/1 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gs-ink-faint); }
.nx-new {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px;
  border: 0; border-radius: 10px; background: var(--gs-ink); color: var(--gs-panel);
  font: 650 12.5px/1 'Inter', sans-serif; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s, background .12s;
}
.nx-new svg { width: 16px; height: 16px; }
.nx-new:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(40,34,24,.18); }
.nx-new:active { transform: none; }

.nx-search {
  margin: 0 18px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px;
  border: 1px solid var(--gs-line); border-radius: 10px; background: var(--gs-panel); color: var(--gs-ink-faint);
  transition: border-color .12s, box-shadow .12s;
}
.nx-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nx-search:focus-within { border-color: var(--gs-accent); box-shadow: 0 0 0 3px var(--gs-accent-soft); }
.nx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--gs-ink); font: 500 13px 'Inter', sans-serif; }
.nx-search input::placeholder { color: var(--gs-ink-faint); }

.nx-filters { display: flex; gap: 2px; margin: 12px 18px 8px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--gs-ink) 5%, transparent); }
.nx-filters button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px;
  border: 0; border-radius: 8px; background: transparent; color: var(--gs-ink-dim);
  font: 600 11.5px/1 'Inter', sans-serif; cursor: pointer; transition: background .12s, color .12s;
}
.nx-filters button:hover { color: var(--gs-ink); }
.nx-filters button.on { background: var(--gs-panel); color: var(--gs-ink); box-shadow: 0 1px 2px rgba(40,34,24,.12); }
.nx-count { font: 600 10px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; opacity: .6; }

.nx-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 24px; scrollbar-width: thin; }
.nx-sec { position: sticky; top: 0; z-index: 1; padding: 12px 8px 6px; font: 700 10px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gs-ink-faint); background: var(--gs-search-bg, var(--gs-panel)); }
.nx-item {
  width: 100%; display: grid; gap: 3px; text-align: left; padding: 10px 12px 10px 13px; margin: 1px 0;
  border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; position: relative;
  transition: background .12s;
}
.nx-item:hover { background: color-mix(in srgb, var(--gs-panel) 70%, transparent); }
.nx-item.is-active { background: var(--gs-panel); box-shadow: 0 1px 3px rgba(40,34,24,.10), inset 0 0 0 1px var(--gs-line); }
.nx-item.is-active::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gs-accent); }
.nx-item:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: -2px; }
.nx-item-titre { font: 650 13.5px/1.3 'Inter', sans-serif; color: var(--gs-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-item-apercu { font: 450 12px/1.45 'Inter', sans-serif; color: var(--gs-ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-item-apercu em { font-style: normal; opacity: .7; }
.nx-item-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; font: 500 11px/1 'Inter', sans-serif; color: var(--gs-ink-faint); font-variant-numeric: tabular-nums; }
.nx-item-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; }
.nx-item-tag svg { opacity: .8; }
.nx-empty { padding: 34px 16px; text-align: center; font: 500 12.5px/1.5 'Inter', sans-serif; color: var(--gs-ink-faint); }

/* ── L'accueil (aucune note ouverte) ──────────────────────────────────── */
.nx-welcome { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 48px; text-align: center; background: var(--gs-panel); }
.nx-welcome.hidden { display: none; }
.nx-welcome-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: var(--gs-accent-soft); color: var(--gs-accent); }
.nx-welcome h3 { margin: 20px 0 8px; font: 720 22px/1.2 'Outfit', 'Inter', sans-serif; color: var(--gs-ink); }
.nx-welcome p { max-width: 44ch; margin: 0 0 22px; font: 450 13.5px/1.6 'Inter', sans-serif; color: var(--gs-ink-dim); }
.nx-welcome-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px 0 14px; border: 0; border-radius: 11px; background: var(--gs-ink); color: var(--gs-panel); font: 650 13.5px/1 'Inter', sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(40,34,24,.16); }
.nx-welcome-btn svg { width: 17px; height: 17px; }

/* ── La page ──────────────────────────────────────────────────────────── */
.nx-page { min-width: 0; position: relative; display: flex; flex-direction: column; overflow-y: auto; background: var(--gs-panel); scroll-padding-top: calc(var(--nx-bar-h) + var(--nx-tool-h)); }
.nx-page.hidden { display: none; }

.nx-bar {
  position: sticky; top: 0; z-index: 6; flex: 0 0 auto;
  height: var(--nx-bar-h); box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 22px;
  background: color-mix(in srgb, var(--gs-panel) 94%, transparent); backdrop-filter: blur(12px);
}
.nx-bar-meta { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.nx-date { font: 550 12px/1 'Inter', sans-serif; color: var(--gs-ink-faint); white-space: nowrap; }
.nx-state { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 'Inter', sans-serif; color: var(--gs-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; flex: 0 0 auto; }
.nx-state:empty::before { display: none; }
.nx-state[data-etat="saved"] { color: var(--gs-ok); }
.nx-state[data-etat="saving"]::before, .nx-state[data-etat="dirty"]::before { animation: nx-pulse 1s ease-in-out infinite; }
.nx-state[data-etat="error"], .nx-state[data-etat="toolong"], .nx-state[data-etat="gone"] { color: var(--gs-crit); }
.nx-state[data-etat="empty"] { color: var(--gs-warn); }
@keyframes nx-pulse { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .nx-state::before, .nx-icon.recording, .notes-view.nx #noteMicBtn.recording { animation: none !important; } }

.nx-bar-actions { display: flex; align-items: center; gap: 2px; }
.nx-bar-sep { width: 1px; height: 20px; margin: 0 6px; background: var(--gs-line); }
.nx-icon {
  width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 9px;
  background: transparent; color: var(--gs-ink-dim); cursor: pointer; transition: background .12s, color .12s;
}
.nx-icon:hover { background: var(--gs-accent-soft); color: var(--gs-ink); }
.nx-icon:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 1px; }
.nx-icon.on, .nx-icon[aria-pressed="true"] { color: var(--gs-accent); background: var(--gs-accent-soft); }
.nx-icon.on svg path, #noteViewPin[aria-pressed="true"] svg path { fill: currentColor; fill-opacity: .18; }
.nx-icon.recording, .notes-view.nx #noteMicBtn.recording {   /* (style.css pose encore l'ancien #noteMicBtn.recording) */
  color: var(--gs-crit); background: color-mix(in srgb, var(--gs-crit) 12%, transparent); border-radius: 9px;
  animation: nx-rec 1.2s ease-in-out infinite;
}
@keyframes nx-rec { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.nx-icon.nx-danger:hover { color: var(--gs-crit); background: color-mix(in srgb, var(--gs-crit) 10%, transparent); }
.nx-icon:disabled { opacity: .45; cursor: default; }
.nx-back { display: none; }

/* La barre de mise en forme : TOUJOURS là, collée sous l'en-tête. */
.nx-toolbar {
  position: sticky; top: var(--nx-bar-h); z-index: 5; flex: 0 0 auto;
  display: flex; justify-content: center; padding: 6px 16px 8px;
  /* Fond PLEIN, sans backdrop-filter : un filtre ferait de la barre le repère
     des menus en position fixe, qui s'ouvriraient alors au mauvais endroit. */
  background: var(--gs-panel);
  border-bottom: 1px solid var(--gs-line);
}
.nx-toolbar:empty { display: none; }
.nx-toolbar .grt-bar.grt-bar-doc {
  display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow-x: auto; overflow-y: visible;
  max-width: 100%; margin: 0; padding: 4px; border: 1px solid var(--gs-line); border-radius: 12px;
  background: var(--gs-panel); box-shadow: 0 1px 2px rgba(40,34,24,.06), 0 6px 18px -12px rgba(40,34,24,.28);
  scrollbar-width: none;
}
.nx-toolbar .grt-bar-doc .grt-btn {
  min-width: 32px; height: 32px; padding: 0 6px; display: inline-grid; place-items: center;
  border: 0; border-radius: 8px; opacity: 1; color: var(--gs-ink-dim); background: transparent;
  transition: background .1s, color .1s;
}
.nx-toolbar .grt-bar-doc .grt-btn:hover { background: var(--gs-accent-soft); color: var(--gs-ink); }
.nx-toolbar .grt-bar-doc .grt-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--gs-accent) 20%, transparent); color: var(--gs-ink); border: 0; }
.nx-toolbar .grt-bar-doc .grt-btn:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 1px; }
.nx-toolbar .grt-bar-doc .grt-sep { width: 1px; height: 20px; margin: 0 5px; background: var(--gs-line); }
/* Le menu « Style du paragraphe » : un libellé qui dit où l'on est. */
.nx-toolbar .grt-bloc { position: relative; display: inline-flex; }
.nx-toolbar .grt-bloc-btn { display: inline-flex !important; gap: 6px; width: 118px; justify-content: space-between; padding: 0 8px 0 11px !important; font: 600 12.5px/1 'Inter', sans-serif; color: var(--gs-ink) !important; }
.nx-toolbar .grt-bloc-btn svg { width: 14px; height: 14px; opacity: .6; }
/* Les menus déroulants : l'éditeur les pose en `fixed` sous leur bouton (la
   barre défile de côté sur un écran étroit, elle les rognerait). */
.nx-toolbar .grt-bloc-pop, .nx-toolbar .grt-hl-pop, .nx-toolbar .grt-sty-pop {
  z-index: 40; margin: 0; padding: 6px; border: 1px solid var(--gs-line); border-radius: 12px;
  background: var(--gs-panel); box-shadow: 0 12px 32px -8px rgba(40,34,24,.32);
}
.nx-toolbar .grt-bloc-pop { position: absolute; top: 100%; left: 0; display: flex; flex-direction: column; min-width: 200px; }
.nx-toolbar .grt-bloc-pop[hidden], .nx-toolbar .grt-hl-pop[hidden], .nx-toolbar .grt-sty-pop[hidden] { display: none; }
.grt-bloc-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--gs-ink); cursor: pointer; text-align: left; font: 500 13.5px/1.2 'Inter', sans-serif; }
.grt-bloc-item:hover { background: var(--gs-accent-soft); }
.grt-bloc-item kbd { font: 500 10.5px/1 'Inter', sans-serif; color: var(--gs-ink-faint); background: none; border: 0; }
.grt-bloc-item.grt-bloc-h3 span { font: 720 19px/1.2 'Outfit', 'Inter', sans-serif; }
.grt-bloc-item.grt-bloc-h4 span { font: 700 16px/1.2 'Outfit', 'Inter', sans-serif; }
.grt-bloc-item.grt-bloc-h5 span { font: 700 14px/1.2 'Inter', sans-serif; letter-spacing: .01em; }

/* ── La feuille ───────────────────────────────────────────────────────── */
.nx-doc { flex: 1 0 auto; width: 100%; max-width: var(--nx-page-w); box-sizing: border-box; margin: 0 auto; padding: 42px 48px 64px; display: flex; flex-direction: column; }
.nx-doc .grt-wrap { flex: 0 0 auto; }
.nx-doc textarea#noteEditContent:not(.grt-hidden-source) {   /* repli sans éditeur enrichi */
  width: 100%; min-height: 50vh; border: 0; outline: 0; resize: vertical; background: transparent;
  color: var(--gs-ink); font: 450 16px/1.7 'Inter', sans-serif;
}
.nx-doc .grt-editor {
  min-height: 46vh; max-height: none; overflow: visible; padding: 0; border-radius: 0;
  font: 450 16px/1.72 'Inter', sans-serif; color: var(--gs-ink); caret-color: var(--gs-accent);
  word-break: normal; overflow-wrap: anywhere;
}
.nx-doc .grt-editor ::selection { background: color-mix(in srgb, var(--gs-accent) 26%, transparent); }
/* La PREMIÈRE ligne est le titre de la note (c'est elle que la liste affiche). */
.nx-doc .grt-editor > :is(div, p, h3, h4, h5):first-child {
  margin: 0 0 14px; font: 740 30px/1.22 'Outfit', 'Inter', sans-serif; letter-spacing: -.02em; color: var(--gs-ink);
}
.nx-doc .grt-editor.grt-empty::after {
  content: attr(data-placeholder); color: var(--gs-ink-faint); opacity: .55;
  font: 740 30px/1.22 'Outfit', 'Inter', sans-serif; letter-spacing: -.02em;
}
.nx-doc .grt-editor h3 { margin: 26px 0 10px; font: 720 23px/1.3 'Outfit', 'Inter', sans-serif; letter-spacing: -.01em; }
.nx-doc .grt-editor h4 { margin: 22px 0 8px; font: 700 18.5px/1.35 'Outfit', 'Inter', sans-serif; }
.nx-doc .grt-editor h5 { margin: 18px 0 6px; font: 700 13px/1.4 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .07em; color: var(--gs-ink-dim); }
.nx-doc .grt-editor ul, .nx-doc .grt-editor ol { margin: 6px 0 10px; padding-left: 26px; }
.nx-doc .grt-editor li { margin: 3px 0; padding-left: 2px; }
.nx-doc .grt-editor li::marker { color: var(--gs-accent); }
.nx-doc .grt-editor blockquote { margin: 12px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--gs-accent); color: var(--gs-ink-dim); }
.nx-doc .grt-editor hr { margin: 22px 0; border: 0; border-top: 1px solid var(--gs-line-strong); }
.nx-doc .grt-editor a { color: var(--gs-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nx-doc .grt-editor code { padding: 1px 5px; border-radius: 5px; background: var(--gs-accent-soft); font-size: .92em; }
/* Une image du texte est une image de la page, pas une vignette de message :
   grande (style.css la plafonne à 140 px dans les composeurs), et elle
   s'ouvre en grand au double-clic (notes.js) — le clic simple la désigne. */
.nx-doc .grt-editor img.grt-img { max-width: 100%; max-height: 420px; width: auto; border-radius: 10px; }

/* ── Pièces jointes ───────────────────────────────────────────────────── */
.nx-atts { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--gs-line); }
.nx-atts[hidden] { display: none; }
.nx-atts h3 { margin: 0 0 12px; font: 700 10.5px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gs-ink-faint); }
.nx-atts-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-piece { position: relative; max-width: 100%; }
.nx-piece .gc-atts { margin: 0; }
.nx-piece-x {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--gs-line); border-radius: 50%; background: var(--gs-panel); color: var(--gs-ink-dim);
  font-size: 11px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; box-shadow: 0 2px 6px rgba(40,34,24,.14);
}
.nx-piece:hover .nx-piece-x, .nx-piece-x:focus-visible { opacity: 1; }
@media (hover: none) { .nx-piece-x { opacity: 1; } }
.nx-piece-x:hover { color: var(--gs-crit); }
/* La zone d'envoi garde ses boutons ; ses pastilles (sauf celles en cours d'envoi)
   laissent la place à la galerie ci-dessus, qui s'ouvre au clic. */
.nx-atts-zone { margin-top: 16px; }
.nx-atts-zone .gc-attachzone { border: 1px dashed var(--gs-line-strong); border-radius: 12px; padding: 8px 10px; background: transparent; }   /* une zone neuve par note (notes.js) */
.nx-atts-zone .gc-chips > .gc-chip:not(.gc-chip-pending) { display: none; }
.nx-atts-zone .gc-toolbar { margin: 0 !important; }
.nx-atts-zone .gc-tb { border-radius: 8px; color: var(--gs-ink-dim); }

.nx-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font: 500 11.5px/1 'Inter', sans-serif; color: var(--gs-ink-faint); font-variant-numeric: tabular-nums; }

/* ── La petite fenêtre du lien ────────────────────────────────────────── */
.nx-linkpop {
  position: absolute; z-index: 30; width: 320px; padding: 12px; border: 1px solid var(--gs-line); border-radius: 12px;
  background: var(--gs-panel); box-shadow: 0 14px 36px -10px rgba(40,34,24,.35);
}
.nx-linkpop label { display: grid; gap: 6px; font: 600 11.5px/1 'Inter', sans-serif; color: var(--gs-ink-dim); }
.nx-linkpop input { height: 36px; padding: 0 10px; border: 1px solid var(--gs-line-strong); border-radius: 8px; background: var(--gs-panel); color: var(--gs-ink); font: 500 13px 'Inter', sans-serif; outline: 0; }
.nx-linkpop input:focus { border-color: var(--gs-accent); box-shadow: 0 0 0 3px var(--gs-accent-soft); }
/* Le champ a son propre anneau doré : pas le second contour global du focus (ux-refresh.css). */
.notes-view .nx-linkpop input:focus-visible { outline: none; }
.nx-linkpop input[aria-invalid="true"] { border-color: var(--gs-crit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gs-crit) 14%, transparent); }
.nx-linkpop-err { margin: 6px 0 0; font: 500 11.5px/1.4 'Inter', sans-serif; color: var(--gs-crit); }
.nx-linkpop-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.nx-linkpop-actions > span { flex: 1; }
.nx-linkpop-actions button { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; cursor: pointer; font: 600 12px/1 'Inter', sans-serif; }
.nx-linkpop-sec { background: transparent; color: var(--gs-ink-dim); }
.nx-linkpop-sec:hover { background: var(--gs-accent-soft); color: var(--gs-ink); }
.nx-linkpop-ok { background: var(--gs-ink); color: var(--gs-panel); }

/* ── Écrans moyens : la feuille respire moins ─────────────────────────── */
@media (max-width: 1180px) {
  .notes-view.nx { --nx-side-w: 288px; }
  .nx-doc { padding: 34px 32px 56px; }
}

/* ── Téléphone et tablette étroite : la liste, OU la note ─────────────── */
@media (max-width: 860px) {
  /* La page défile avec le document (le clavier du téléphone s'y retrouve) ;
     en-tête et barre de mise en forme se collent SOUS la barre du haut. */
  .notes-view.nx { display: block; height: auto; min-height: calc(100dvh - var(--gs-mobile-content-top, 63px) - var(--gs-mobile-bottom, 57px)); position: static; }
  .notes-view.nx #notesHome { border-right: 0; overflow: visible; background: var(--gs-panel); padding: 0; min-height: 0; }
  .nx-list { overflow: visible; }
  .nx-sec { background: var(--gs-panel); top: var(--gs-mobile-content-top, 0px); }
  .notes-view.nx.note-open #notesHome, .notes-view.nx .nx-welcome { display: none; }
  .nx-page { overflow: visible; min-height: inherit; }
  .nx-bar { padding: 0 8px; top: var(--gs-mobile-content-top, 0px); }
  .nx-toolbar { top: calc(var(--gs-mobile-content-top, 0px) + var(--nx-bar-h)); }
  .nx-back { display: inline-grid; }
  .nx-date { display: none; }
  .nx-bar-sep { display: none; }
  .nx-icon { width: 38px; height: 38px; }
  .nx-toolbar { padding: 6px 8px; justify-content: flex-start; }
  /* La barre défile de côté : un voile au bord droit dit qu'il y a une suite
     (la marge de droite laisse le dernier bouton en sortir). Un voile posé
     PAR-DESSUS, pas un masque : un masque effacerait aussi les menus qui
     s'ouvrent sous la barre. */
  .nx-toolbar .grt-bar.grt-bar-doc { border-radius: 10px; box-shadow: none; padding-right: 30px; }
  .nx-toolbar::after {
    content: ''; position: absolute; top: 7px; bottom: 9px; right: 9px; width: 30px; pointer-events: none;
    border-radius: 0 10px 10px 0; background: linear-gradient(to right, transparent, var(--gs-panel) 80%);
  }
  .nx-toolbar .grt-bar-doc .grt-btn { min-width: 36px; height: 36px; }
  .nx-toolbar .grt-bloc-btn { width: 104px; }
  .nx-doc { padding: 24px 18px 40px; }
  .nx-doc .grt-editor { font-size: 16.5px; }
  .nx-doc .grt-editor > :is(div, p, h3, h4, h5):first-child, .nx-doc .grt-editor.grt-empty::after { font-size: 26px; }
}
