/* What the DSFR does not provide: the file explorer of the Armoires page (bar with the address and
   the search, edge to edge panes of the viewport's height). DSFR tokens only, no new colour. The
   splitters between panes are leptos-dsfr's (`/leptos-dsfr.css`). */

/* Bar: up, address, search, on the whole width. */
.lx-bar {
  align-items: center;
  border-bottom: 1px solid var(--border-default-grey);
  border-top: 1px solid var(--border-default-grey);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .25rem .5rem;
}
.lx-bar__address { flex: 1 1 20rem; min-width: 0; }
.lx-bar__search { flex: 0 1 22rem; }

.lx-address {
  align-items: center;
  cursor: text;
  display: flex;
  gap: .5rem;
  min-height: 2.5rem;
}
.lx-address__nav { flex: 1; min-width: 0; }
/* One line: the middle steps fold into "…" (classes set by the explorer), the current step is
   cut with an ellipsis when it is still too long. */
.lx-address__path {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: .375rem;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.lx-address__path > li { display: flex; flex: 0 0 auto; gap: .375rem; padding-bottom: 0; white-space: nowrap; }
.lx-address__path > .lx-address__step--current { flex: 0 1 auto; min-width: 0; }
.lx-address__step--current > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lx-address__path > .lx-address__more { cursor: help; display: none; }
@media (max-width: 47.99em) {
  .lx-address__path > .lx-address__mid { display: none; }
  .lx-address__path > .lx-address__more { display: flex; }
}
@media (min-width: 48em) {
  .lx-address__path > .lx-address__deep { display: none; }
  .lx-address__path > .lx-address__more--deep { display: flex; }
}
.lx-address__path > li::marker { content: none; }
.lx-address__sep { color: var(--text-mention-grey); }
.lx-address__field { flex: 1; }

/* Type of an entry, shown as an icon before its name. */
.lx-kind { margin-right: .5rem; }

/* Tree of the cabinets: fold, unfold, a menu per cabinet. */
/* The panel's header, set apart from the tree (as the DSFR's table headers). */
.lx-tree__head {
  align-items: center;
  background-color: var(--background-alt-grey);
  border-bottom: 1px solid var(--border-default-grey);
  display: flex;
  justify-content: space-between;
  margin: -.75rem -1rem .5rem;
  min-height: 2.5rem;
  padding: 0 .5rem 0 1rem;
}
.lx-tree__title { font-size: .875rem; font-weight: 700; margin: 0; }
.lx-tree__group { list-style: none; margin: 0; padding: 0; }
.lx-tree__group .lx-tree__group { padding-left: 1.25rem; }
.lx-node { padding-bottom: 0; }
.lx-node::marker { content: none; }
.lx-node__row { align-items: center; display: flex; gap: .125rem; min-height: 2rem; position: relative; }
.lx-node__row:hover { background-color: var(--background-default-grey-hover); }
.lx-node__spacer { flex: 0 0 2rem; }
.lx-node__link {
  background-image: none;
  color: var(--text-default-grey);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lx-node__link[aria-current] { color: var(--text-active-blue-france); font-weight: 700; }
.lx-node__actions { position: relative; }
.lx-menu {
  background-color: var(--background-overlap-grey);
  border: 1px solid var(--border-default-grey);
  filter: drop-shadow(var(--overlap-shadow));
  list-style: none;
  margin: 0;
  min-width: 14rem;
  padding: .25rem 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 10;
}
.lx-menu > li { padding-bottom: 0; }
.lx-menu > li::marker { content: none; }
.lx-menu__item {
  align-items: center;
  background-image: none;
  color: var(--text-default-grey);
  display: flex;
  gap: .5rem;
  padding: .5rem .75rem;
  white-space: nowrap;
}
.lx-menu__item::before { --icon-size: 1rem; }
a.lx-menu__item:hover { background-color: var(--background-default-grey-hover); }
.lx-menu__item--disabled { color: var(--text-disabled-grey); cursor: not-allowed; }

.lx-tree, .lx-list, .lx-versions { padding: .75rem 1rem; }
.lx-versions { color: var(--text-mention-grey); }

@media (max-width: 47.99em) {
  /* One line on a phone: up, then the address or the search (whichever is shown), then the
     magnifier or the cross. */
  .lx-bar { flex-wrap: nowrap; }
  .lx-bar__address, .lx-bar__search { flex: 1 1 0; min-width: 0; }

  /* On a phone: no splitter, no versions; the tree is a drawer from the left. */
  .lx-mobile-hidden, .lx-panes .ldsfr-splitter, .lx-versions { display: none; }
  .lx-tree.lx-drawer {
    background-color: var(--background-default-grey);
    bottom: 0;
    filter: drop-shadow(var(--overlap-shadow));
    left: 0;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform .25s;
    width: min(85vw, 22rem);
    z-index: 1001;
  }
  .lx-tree.lx-drawer--open { transform: none; }
  /* The padding moves to the scrolling list, so that its header still reaches the edges. */
  .lx-tree.lx-drawer { padding: 0; }
  .lx-drawer .lx-tree__nav { height: 100%; overflow-x: hidden; overflow-y: auto; padding: .75rem 1rem; }
  /* The notch sticks out of the drawer's right edge: visible closed, it moves with it. */
  .lx-drawer-notch {
    align-items: center;
    background-color: var(--background-action-high-blue-france);
    background-image: none;
    border-radius: 0 .5rem .5rem 0;
    color: var(--text-inverted-blue-france);
    display: flex;
    height: 4rem;
    justify-content: center;
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
  }
  .lx-drawer-backdrop { background-color: hsla(0, 0%, 9%, .64); inset: 0; position: fixed; z-index: 1000; }
}

@media (min-width: 48em) {
  body.lx-full { display: flex; flex-direction: column; height: 100vh; }
  /* The page never scrolls in the full-screen editor: `clip` (not `hidden`) leaves no scroll
     container, so not even a programmatic focus can move it. */
  body.lx-full > main { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: clip; padding: 0; }
  /* The explorer is an island: its `<leptos-island>` wrapper is part of the column too. */
  body.lx-full > main > leptos-island { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .lx-explorer { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .lx-panes { display: flex; flex: 1; min-height: 0; }
  /* Sizes before the splitters hydrate; then they set `flex` on the tree and the list. */
  .lx-tree { flex: 0 0 22%; min-width: 0; overflow: auto; }
  .lx-main { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
  /* Vertical scroll only: the DSFR buttons group overflows its box by its own negative margin;
     tables scroll sideways in their own wrapper. */
  .lx-list { flex: 0 0 60%; min-height: 0; overflow-x: hidden; overflow-y: auto; }
  .lx-versions { flex: 1; min-height: 0; overflow: auto; }
}

/* A full-height view's notice floats over it (toast); a success fades out by itself, a warning
   or an error stays. */
.lx-toast {
  bottom: 1.5rem;
  filter: drop-shadow(var(--overlap-shadow));
  max-width: min(28rem, calc(100vw - 2rem));
  position: fixed;
  right: 1rem;
  z-index: 1002;
}
.lx-toast .fr-alert { background-color: var(--background-default-grey); margin: 0; }
.lx-toast .fr-alert--success { animation: lx-toast-out .5s ease-in 6s forwards; }
@keyframes lx-toast-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .lx-toast .fr-alert--success { animation-duration: 0s; }
}

/* The act editor's compact shell (task 3d, SPEC §7.10): a one-row header, then the ribbon,
   then the editor (`main`), filling the viewport on large screens. */
@media (min-width: 48em) {
  body.lx-compact > leptos-island:has(> .lx-shell) { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .lx-shell { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  /* The act page never grows past the window: the island, the shell, the editor and the
     assistant's column clip what overflows them (`clip`, not `hidden`: no scroll container, so
     not even a programmatic focus moves anything), and what is not the thread or the composer
     in the assistant's column shrinks and scrolls rather than push the field out (the blocks are
     named: never a wildcard, which would reach the DSFR's modal and its `.fr-sr-only`). */
  body.lx-compact > leptos-island:has(> .lx-shell), body.lx-compact .lx-shell, body.lx-compact .lx-editor, body.lx-compact .lx-assist { overflow: clip; }
  .lx-assistant > :is(.lx-assistant__subs, .lx-assistant__waiting, .lx-assistant-state, .lx-assistant__question, .lx-assistant__choices, .lx-assistant__chips) { flex: 0 1 auto; max-height: 35vh; min-height: 0; overflow-y: auto; position: relative; }
}
/* Too short a window (a strong zoom): the page scrolls again, so that the bottom stays reachable. */
@media (min-width: 48em) and (max-height: 34rem) {
  body.lx-full.lx-compact { height: auto; min-height: 100vh; }
  body.lx-compact > leptos-island:has(> .lx-shell), body.lx-compact .lx-shell, body.lx-compact .lx-editor, body.lx-compact .lx-assist { overflow: visible; }
  body.lx-compact .lx-editor__body { min-height: 28rem; }
}
/* The window scrolls on small screens and at a strong zoom: the top sticks, the header slides
   out going down (crate::shell `tuck`); not with reduced motion, where nothing sticks. */
.lx-editor__top { background-color: var(--background-default-grey); flex: 0 0 auto; position: sticky; top: 0; transition: transform .2s; z-index: 30; }
@media (prefers-reduced-motion: reduce) {
  .lx-editor__top { position: static; transition: none; }
}
.lx-cheader {
  align-items: center;
  border-bottom: 1px solid var(--border-default-grey);
  display: flex;
  flex-wrap: wrap;
  gap: 0 .75rem;
  min-height: 3.25rem;
  padding: 0 1rem 0 .5rem;
}
.lx-cheader [hidden] { display: none !important; }
.lx-cheader > * { margin: 0; }
.lx-cheader__marque { border-right: 1px solid var(--border-default-grey); font-size: .5625rem; font-weight: 700; line-height: 1.1; padding-right: .75rem; text-transform: uppercase; }
.lx-cheader__service { background-image: none; color: var(--text-title-blue-france); font-size: .9375rem; font-weight: 700; line-height: 1.5rem; }
.lx-cheader__crumbs, .lx-cheader__crumbs ol, .lx-cheader__crumbs li { align-items: center; display: flex; font-size: .9375rem; gap: .375rem; line-height: 1.5rem; }
.lx-cheader__crumbs ol { list-style: none; margin: 0; padding: 0; }
.lx-cheader__crumbs li { padding: 0; }
.lx-cheader__crumbs span { color: var(--text-mention-grey); }
/* The DSFR underline sits at the bottom of the box, below the neighbours' text: keep it on the text. */
.lx-cheader__crumbs a { background-image: none; color: var(--text-mention-grey); text-decoration: underline; text-underline-offset: .15em; }
.lx-cheader__title { flex: 1 1 8rem; font-size: .9375rem; line-height: 1.5rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-cheader__notice, .lx-cheader__tools { align-items: center; display: flex; gap: .5rem; white-space: nowrap; }
.lx-cheader__save { color: var(--text-default-success); font-size: .75rem; white-space: nowrap; }
.lx-cheader kbd { border: 1px solid currentColor; border-radius: .1875rem; font: inherit; font-size: .75rem; padding: 0 .25rem; }
.lx-cheader__account { position: relative; }
.lx-cheader__menu {
  background-color: var(--background-default-grey);
  filter: drop-shadow(var(--raised-shadow));
  padding: .5rem 1rem;
  position: absolute;
  right: 0;
  top: 100%;
  width: max-content;
  z-index: 40;
}
.lx-cheader__menu ul { list-style: none; margin: 0; padding: 0; }
.lx-cheader__menu li { padding: .25rem 0; }
.lx-site-menu { list-style: none; padding: 0; }
.lx-site-menu a[aria-current] { font-weight: 700; }
@media (max-width: 62em) {
  /* The account's address is its button's name and tooltip; the breadcrumb stays in the menu. */
  .lx-cheader__crumbs { display: none; }
  .lx-cheader__email { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 47.99em) {
  .lx-cheader__service { display: none; }
}
/* The focus mode: the header's bar, the act and the status bar only. */
.lx-focus .lx-editor__bar, .lx-focus .lx-editor__rail, .lx-focus .lx-editor__panel,
.lx-focus .lx-editor__body > .ldsfr-splitter, .lx-focus .lx-drawer-backdrop { display: none; }

/* The server form of `?action=` once the explorer has moved elsewhere without reloading. */
.lx-hidden { display: none; }
/* Whatever scrolls is positioned: the DSFR's `.fr-sr-only` (and any absolute element) takes the
   nearest positioned ancestor as its containing block, else the initial one, and then escapes the
   scroll container (and any clip) and stretches the document to the height of the thread.
   `:where` keeps the specificity at zero: a drawer's `fixed` still wins. */
:where(.lx-editor__desk, .lx-editor__panel, .lx-editor__panel-content, .lx-assistant__thread, .lx-assistant__pad, .lx-assistant-state, .lx-assistant__composer, .lx-assistant__step-out, .lx-preview, .lx-pieces__text, .lx-pieces__analysis, .lx-piece, .lx-tree, .lx-list, .lx-versions) { position: relative; }

/* The act editor (ADR-0024, layout after Gaël's mock-up): a toolbar, a rail of panels on the left
   (outline, comments, versions), the act as a page on a desk; on large screens it fills the
   viewport under the header (`body.lx-full`), each column scrolling on its own. DSFR tokens only. */
.lx-editor {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.lx-editor__body { display: flex; flex: 1; min-height: 0; }
.lx-editor__rail { flex: 0 0 auto; }
/* Size before the splitter hydrates; then it sets `flex` on the panel. */
.lx-editor__panel { flex: 0 0 22%; min-width: 0; }
.lx-editor__desk { flex: 1; min-width: 0; }
/* No panel shown: no splitter either. */
.lx-editor__body:has(> .lx-editor__panel.lx-hidden) > .ldsfr-splitter { display: none; }
.lx-editor__rail {
  border-right: 1px solid var(--border-default-grey);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem .25rem;
}
/* The open panel: a short blue line on the left edge, as the DSFR's side menu. */
.lx-editor__rail .fr-btn { position: relative; }
/* How many suggestions wait, on the rail's button (its name says it too). */
.lx-rail-count {
  background-color: var(--background-action-high-blue-france);
  border-radius: .5rem;
  color: var(--text-inverted-blue-france);
  font-size: .625rem;
  font-weight: 700;
  line-height: 1rem;
  min-width: 1rem;
  padding: 0 .25rem;
  position: absolute;
  right: 0;
  text-align: center;
  top: .125rem;
}
.lx-rail-count[hidden] { display: none; }
.lx-editor__rail .fr-btn[aria-current] { color: var(--text-active-blue-france); }
.lx-editor__rail .fr-btn[aria-current]::after {
  background-color: var(--border-active-blue-france);
  /* The DSFR masks a button's `::after` with an icon (`fr-btn--icon-right`): not this line. */
  -webkit-mask-image: none;
  mask-image: none;
  bottom: .5rem;
  content: "";
  left: -.25rem;
  position: absolute;
  top: .5rem;
  width: 2px;
}
.lx-editor__panel {
  border-right: 1px solid var(--border-default-grey);
  overflow: auto;
  padding: 1rem;
}
.lx-editor__outline { list-style: none; padding-left: 0; }
.lx-editor__outline li {
  border-left: 2px solid var(--border-default-grey);
  margin-bottom: .5rem;
  padding-left: .75rem;
}
.lx-editor__desk {
  background-color: var(--background-alt-grey);
  overflow: auto;
  padding: 2rem;
}
/* Comments (after Gaël's mock-up): a box for the selection, then one card per thread. */
.lx-comments__new {
  border-bottom: 1px solid var(--border-default-grey);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0 -1rem;
  padding: 0 1rem 1rem;
}
.lx-comments__new .fr-input { margin: 0; resize: vertical; }
.lx-comments__submit { justify-content: center; max-width: none; width: 100%; }
.lx-comments { list-style: none; margin: 0 -1rem; padding: 0; }
.lx-comments > li { padding: 0; }
.lx-comments > li::marker, .lx-thread::marker { content: none; }
.lx-comments__empty { color: var(--text-mention-grey); padding: 1rem !important; }
.lx-thread { border-bottom: 1px solid var(--border-default-grey); padding: .75rem 1rem !important; }
.lx-thread--resolved { opacity: .6; }
.lx-comment--reply { border-left: 2px solid var(--border-default-grey); margin: .75rem 0 0 .75rem; padding-left: .75rem; }
.lx-comment__head { align-items: center; display: flex; gap: .5rem; }
.lx-avatar {
  align-items: center;
  background-color: var(--background-action-high-purple-glycine);
  border-radius: 50%;
  color: var(--text-inverted-grey);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .625rem;
  font-weight: 700;
  height: 1.5rem;
  justify-content: center;
  /* The DSFR's line height would push the initials down. */
  line-height: 1;
  width: 1.5rem;
}
.lx-comment__author { font-size: .875rem; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-comment__author:hover { text-decoration: underline; }
.lx-comment__time { color: var(--text-mention-grey); font-size: .75rem; margin-left: auto; white-space: nowrap; }
.lx-comment__quote {
  background-color: var(--background-contrast-yellow-tournesol);
  border-left: 3px solid var(--border-action-high-yellow-tournesol);
  font-size: .75rem;
  font-style: italic;
  margin: .5rem 0;
  padding: .125rem .5rem;
}
.lx-comment__body { font-size: .875rem; margin: .5rem 0; white-space: pre-wrap; }
.lx-comment__actions { display: flex; gap: 1.5rem; }
.lx-comment__actions .fr-link { font-size: .875rem; }
.lx-comment__resolve { color: var(--text-default-success); }

/* Suggestions (design §3): an insertion underlined, a deletion struck, a node suggested whole
   marked in its margin; the assistant's tinted apart, by its author. Not colour alone: the
   underline and the strike carry the meaning (RGAA 3.1). */
.lx-editor ins[data-suggestion-id] {
  background-color: var(--background-contrast-green-emeraude);
  text-decoration: underline 2px var(--border-plain-success);
}
.lx-editor del[data-suggestion-id] {
  background-color: var(--background-contrast-error);
  text-decoration: line-through 2px var(--border-plain-error);
}
.lx-editor [data-suggestion-id][data-author^="assistant:"],
.lx-editor [data-suggestion][data-author^="assistant:"] {
  background-color: var(--background-contrast-blue-cumulus);
  outline: 1px dashed var(--border-plain-blue-cumulus);
}
.lx-editor [data-suggestion="insert"] { box-shadow: -4px 0 0 var(--border-plain-success); text-decoration: underline; }
.lx-editor [data-suggestion="delete"] { box-shadow: -4px 0 0 var(--border-plain-error); text-decoration: line-through; }
.lx-suggestion-layer { height: 0; position: relative; }
.lx-suggestion-card {
  /* Until the client measures where it goes (CSSOM): the server must render no `style`. */
  top: 0;
  left: 0;
  background-color: var(--background-default-grey);
  border: 1px solid var(--border-default-grey);
  box-shadow: 0 4px 12px rgb(0 0 18 / 16%);
  max-width: 24rem;
  padding: .75rem;
  position: absolute;
  z-index: 10;
}
.lx-suggestion-card p, .lx-suggestion p { margin: 0 0 .25rem; }
.lx-suggestions { list-style: none; margin: 0 -1rem; padding: 0; }
.lx-suggestion { border-bottom: 1px solid var(--border-default-grey); padding: .75rem 1rem !important; }
.lx-suggestion::marker { content: none; }
.lx-suggestion--assistant { border-left: 3px solid var(--border-plain-blue-cumulus); }
.lx-suggestion__head { align-items: center; display: flex; gap: .5rem; }
.lx-suggestion__text { overflow-wrap: anywhere; }
/* An intention of the assistant (design §3bis): a framed block holding its suggestions. */
.lx-proposal { border: 1px solid var(--border-plain-blue-cumulus); margin: .75rem 0; padding: .75rem 1rem 0 !important; }
.lx-proposal::marker { content: none; }
.lx-proposal p { margin: 0 0 .25rem; }
.lx-proposal .lx-suggestions { margin: 0 -1rem; }
/* The assistant panel (SP5 §2, maquette `Main`, its `aside`): a column right of the act,
   380 to 440 px, beside any left panel; the thread picker on top, the banner of a blocking
   question, the thread scrolling on its own, the input at the panel's bottom. Up to 62em a
   drawer from the right (below). */
.lx-assist {
  background-color: var(--background-default-grey);
  border-left: 1px solid var(--border-default-grey);
  display: flex;
  flex: 0 0 clamp(23.75rem, 30vw, 27.5rem);
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.lx-assist:not(.lx-assist--open) { display: none; }
.lx-focus .lx-assist, .lx-focus .lx-assist-backdrop { display: none; }
.lx-assistant { display: flex; flex: 1; flex-direction: column; font-size: .875rem; min-height: 0; }
.lx-assistant__pad { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1rem; }
/* Head (Gaël's screenshots): the clock at the left, « ⋮ » at the right, their menus below. */
.lx-assistant__head { align-items: center; border-bottom: 1px solid var(--border-default-grey); display: flex; flex: none; gap: .5rem; justify-content: space-between; padding: .5rem .75rem; position: relative; }
.lx-assistant__head .fr-btn { margin: 0; }
.lx-assistant__anchor { position: relative; }
.lx-assistant__toggle--on { background-color: var(--background-default-grey-active); }
.lx-assistant__threads { left: 0; max-height: 60vh; overflow-y: auto; right: auto; width: min(24rem, calc(100vw - 2rem)); }
.lx-assistant__more .lx-menu { right: 0; }
button.lx-menu__item { background: none; border: 0; cursor: pointer; font: inherit; text-align: left; width: 100%; }
button.lx-menu__item:hover { background-color: var(--background-default-grey-hover); }
.lx-menu__item--danger { color: var(--text-default-error); }
.lx-assistant__fil { align-items: center; display: flex; gap: .25rem; padding-right: .25rem; }
.lx-assistant__fil-open { flex: 1; min-width: 0; }
.lx-assistant__fil-open[aria-current] { font-weight: 700; }
.lx-assistant__fil-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-assistant__fil-waits { background-color: var(--text-default-warning); border-radius: 50%; flex: none; height: .5rem; width: .5rem; }
.lx-assistant__fil-id { background-color: var(--background-contrast-grey); border-radius: .25rem; color: var(--text-mention-grey); flex: none; font-family: monospace; font-size: .75rem; padding: .125rem .375rem; }
.lx-assistant__fil-delete { color: var(--text-default-error); flex: none; }
.lx-assistant__waiting { background-color: var(--background-contrast-warning); color: var(--text-default-warning); flex: none; font-weight: 700; margin: 0; padding: .625rem 1rem; }
.lx-assistant__subs { flex: none; padding: .75rem 1rem 0; }
.lx-assistant__subs ul { list-style: none; margin: 0; padding: 0; }
.lx-assistant__subs li { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; }
.lx-module-versions__confirm { flex-basis: 100%; }
.lx-assistant__subs li > span { flex: 1; }
.lx-assistant-state { border-bottom: 1px solid var(--border-default-grey); flex: none; max-height: 35vh; overflow-y: auto; padding: .75rem 1rem; }
.lx-assistant-state__head, .lx-assistant-state__sec-head { align-items: center; display: flex; gap: .5rem; justify-content: space-between; }
.lx-assistant-state__title { font-size: 1rem; margin: 0; }
.lx-assistant-state__sec { border-top: 1px solid var(--border-default-grey); margin-top: .5rem; padding-top: .5rem; }
.lx-assistant-state__sec-title { font-size: .875rem; margin: 0 0 .25rem; }
.lx-assistant-state__title::before, .lx-assistant-state__sec-title::before { --icon-size: 1rem; margin-right: .375rem; }
.lx-assistant-state__rows { display: grid; font-size: .875rem; gap: .125rem .5rem; grid-template-columns: auto 1fr; margin: 0; }
.lx-assistant-state__rows dt { color: var(--text-mention-grey); }
.lx-assistant-state__rows dd { margin: 0; text-align: right; }
.lx-assistant-state .lx-module-versions { list-style: none; margin: 0; padding: 0; }
.lx-assistant-state .lx-module-versions li { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; }
.lx-assistant-state .lx-module-versions li > span:first-child { flex: 1; }
.lx-assistant__thread { display: flex; flex: 1; flex-direction: column; gap: .875rem; line-height: 1.5; min-height: 0; overflow-y: auto; padding: 1rem; }
.lx-assistant__thread p { margin: 0; }
.lx-assistant__thread > .lx-assistant__subs { padding: 0; }
.lx-assistant__thread > .lx-assistant__waiting { border-radius: .375rem; }
/* « Nouveaux messages » : above the input, while the user reads higher up in the thread. */
.lx-assistant__unseen { align-self: center; margin: .25rem auto; }
.lx-assistant__mine, .lx-assistant__reply { overflow-wrap: anywhere; padding: .625rem .75rem; white-space: pre-wrap; }
.lx-assistant__mine { align-self: flex-end; background-color: var(--background-action-low-blue-france); border-radius: .5rem .5rem 0 .5rem; max-width: 85%; }
.lx-assistant__reply { align-self: flex-start; background-color: var(--background-alt-grey); border-radius: .5rem .5rem .5rem 0; max-width: 90%; }
.lx-assistant__reply--pending { color: var(--text-mention-grey); font-style: italic; }
/* A complete reply, rendered from Markdown (R95): DSFR typography at the panel's size; a wide
   table or code block scrolls inside the message, never the page. */
.lx-assistant__reply:has(.lx-assistant__md) { white-space: normal; }
.lx-assistant__md { min-width: 0; }
.lx-assistant__md > :first-child { margin-top: 0; }
.lx-assistant__md > :last-child { margin-bottom: 0; }
.lx-assistant__md p, .lx-assistant__md ul, .lx-assistant__md ol, .lx-assistant__md blockquote, .lx-assistant__md pre, .lx-assistant__md table { margin: 0 0 .625rem; }
.lx-assistant__md h3, .lx-assistant__md h4, .lx-assistant__md h5, .lx-assistant__md h6 { font-size: .9375rem; line-height: 1.5rem; margin: .75rem 0 .375rem; }
.lx-assistant__md h3 { font-size: 1rem; }
.lx-assistant__md ul, .lx-assistant__md ol { padding-left: 1.25rem; }
.lx-assistant__md li { padding-bottom: .125rem; }
.lx-assistant__md blockquote { border-left: 3px solid var(--border-default-grey); color: var(--text-mention-grey); padding-left: .75rem; }
.lx-assistant__md code { background-color: var(--background-contrast-grey); border-radius: .1875rem; font-size: .8125rem; padding: 0 .25rem; }
.lx-assistant__md pre { background-color: var(--background-contrast-grey); border-radius: .25rem; overflow-x: auto; padding: .5rem .625rem; white-space: pre; }
.lx-assistant__md pre code { background: none; padding: 0; }
.lx-assistant__md table { border-collapse: collapse; display: block; font-size: .8125rem; max-width: 100%; overflow-x: auto; }
.lx-assistant__md th, .lx-assistant__md td { border: 1px solid var(--border-default-grey); padding: .25rem .5rem; text-align: left; vertical-align: top; }
.lx-assistant__md th { background-color: var(--background-contrast-grey); font-weight: 700; }
.lx-assistant__md a { overflow-wrap: anywhere; }
.lx-assistant__trace { border: 1px solid var(--border-default-grey); border-radius: .5rem; padding: .625rem .75rem; }
.lx-assistant__trace summary { color: var(--text-mention-grey); cursor: pointer; font-size: .75rem; font-weight: 700; }
.lx-assistant__trace ul { list-style: none; margin: .375rem 0 0; padding: 0; }
.lx-assistant__step { padding: 0 !important; }
.lx-assistant__step summary { cursor: pointer; }
.lx-assistant__step summary > span[aria-hidden] { font-weight: 700; }
.lx-assistant__step--done summary > span[aria-hidden] { color: var(--text-default-success); }
/* The detail of a step: the tool, its arguments, its answer, in the text's colour. */
.lx-assistant__step-detail { border-left: 2px solid var(--border-default-grey); color: var(--text-default-grey); display: flex; flex-direction: column; font-size: .75rem; gap: .25rem; margin: .25rem 0 .5rem .375rem; padding-left: .625rem; }
.lx-assistant__step-head { font-weight: 700; }
.lx-assistant__step-args { display: grid; gap: .125rem .5rem; grid-template-columns: max-content 1fr; margin: 0; }
.lx-assistant__step-args dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.lx-assistant__step-out { background-color: var(--background-alt-grey); font-size: .75rem; margin: 0; max-height: 12rem; overflow: auto; padding: .375rem .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.lx-assistant__step--running { color: var(--text-default-warning); }
.lx-assistant__step--failed { color: var(--text-default-error); }
.lx-assistant__question { border: 2px solid var(--border-plain-warning); border-radius: .5rem; display: flex; flex-direction: column; gap: .625rem; padding: .75rem; }
.lx-assistant__question--settled { border: 1px solid var(--border-default-grey); }
.lx-assistant__question-title { font-weight: 700; }
.lx-assistant__muted { color: var(--text-mention-grey); }
.lx-assistant__choices, .lx-assistant__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lx-assistant__choices .fr-btn { margin: 0; }
.lx-assistant__cancel { align-self: flex-start; }
.lx-assistant__chips .fr-tag { min-height: 2.75rem; }
.lx-assistant__composer { background-color: var(--background-default-grey); border-top: 1px solid var(--border-default-grey); display: flex; flex: none; flex-direction: column; gap: .5rem; max-height: 45vh; overflow-y: auto; padding: .75rem 1rem 1rem; }
/* Start: the prompt, then the starters by group (heading in spaced small capitals, a rule). */
.lx-assistant__intro { color: var(--text-mention-grey); font-size: 1rem; }
.lx-assistant__group-title { align-items: center; color: var(--text-mention-grey); display: flex; font-size: .75rem; font-weight: 700; gap: .75rem; letter-spacing: .1em; line-height: 1.25rem; margin: .5rem 0 0; text-transform: uppercase; }
.lx-assistant__group-title::after { border-top: 1px solid var(--border-default-grey); content: ""; flex: 1; }
.lx-assistant__starters { list-style: none; margin: 0; padding: 0; }
.lx-assistant__starters > li { padding: 0; }
.lx-assistant__starter { align-items: center; background: none; border: 0; border-radius: .5rem; color: inherit; cursor: pointer; display: flex; font: inherit; gap: 1rem; padding: .625rem .5rem; text-align: left; width: 100%; }
.lx-assistant__starter:hover { background-color: var(--background-default-grey-hover); }
.lx-assistant__tile { align-items: center; background-color: var(--background-action-low-blue-france); border-radius: .5rem; color: var(--text-action-high-blue-france); display: flex; flex: none; height: 2.75rem; justify-content: center; width: 2.75rem; }
.lx-assistant__starter-text { display: flex; flex-direction: column; min-width: 0; }
.lx-assistant__starter-label { font-size: 1rem; font-weight: 700; line-height: 1.5rem; }
.lx-assistant__starter-desc { -webkit-box-orient: vertical; color: var(--text-mention-grey); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* Input (Gaël's screenshot): the field over the whole width, the paper plane square at its right. */
.lx-assistant__input { align-items: flex-end; display: flex; gap: .5rem; }
.lx-assistant__input .fr-input { flex: 1; margin: 0; max-height: min(12rem, 30vh); min-height: 2.5rem; overflow-y: auto; resize: none; }
.lx-assistant__send-btn { flex: none; margin: 0; }
.lx-assistant__meta { align-items: baseline; color: var(--text-mention-grey); display: flex; flex-wrap: wrap; font-size: .8125rem; gap: .5rem; }
.lx-assistant__meta-value { color: var(--text-default-grey); }
.lx-assistant__picker { background: none; border: 0; border-bottom: 1px solid var(--border-default-grey); color: var(--text-default-grey); font: inherit; max-width: 60%; padding: 0 .25rem; }
.lx-assistant__cost { font-size: .75rem; margin-left: auto; }
.lx-assistant__selection { display: flex; flex-wrap: wrap; gap: .375rem; }
.lx-assistant__selection .fr-tag { margin: 0; max-width: 100%; }
/* The rail's count of questions waiting: the warning colour of the banner (maquette). */
.lx-rail-assistant .lx-rail-count { background-color: var(--background-flat-warning); color: var(--text-inverted-warning); }
@media (max-width: 62em) {
  /* A drawer from the right, over the act, as the left panel's from the left. */
  .lx-assist {
    bottom: 0;
    filter: drop-shadow(var(--overlap-shadow));
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    /* Hidden once slid out: neither read nor reached (it is `inert` too). */
    transition: transform .25s, visibility .25s;
    width: min(92vw, 27.5rem);
    z-index: 1001;
  }
  .lx-assist:not(.lx-assist--open) { display: flex; visibility: hidden; }
  .lx-assist.lx-assist--open { transform: none; visibility: visible; }
}
@media (max-width: 62em) and (prefers-reduced-motion: reduce) {
  .lx-assist { transition: none; }
}
/* A blocking question, heading the act's text and sticking to the top of the desk. */
.lx-assistant-notice { align-items: center; background-color: var(--background-contrast-warning); border: 1px solid var(--border-plain-warning); border-radius: .375rem; display: flex; flex-wrap: wrap; font-size: .875rem; gap: .625rem; margin: 0 auto 1rem; max-width: 52rem; padding: .625rem .875rem; position: sticky; top: 0; z-index: 5; }
.lx-assistant-notice__label { color: var(--text-default-warning); font-weight: 700; }
/* A proposal framed in the act (design §3bis, the validated mockup): its blocks carry a node
   decoration (`data-proposal`); the frame is drawn on them, text in place (negative margin, same
   padding), room kept above the first for the heading the layer lays there (its measured height,
   `--lx-frame-head`, set on the page: the heading may take two lines). */
.lx-editor__page [data-proposal] {
  background-color: var(--background-alt-blue-france);
  border-left: 2px solid var(--border-active-blue-france);
  border-right: 2px solid var(--border-active-blue-france);
  margin: 0 -1rem;
  padding: 0 1rem .5rem;
}
.lx-editor__page [data-proposal="start"], .lx-editor__page [data-proposal="single"] {
  border-top: 2px solid var(--border-active-blue-france);
  border-radius: .375rem .375rem 0 0;
  margin-top: 1rem;
  padding-top: calc(var(--lx-frame-head, 2.75rem) + .5rem);
}
.lx-editor__page [data-proposal="end"], .lx-editor__page [data-proposal="single"] {
  border-bottom: 2px solid var(--border-active-blue-france);
  border-radius: 0 0 .375rem .375rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
}
.lx-editor__page [data-proposal="single"] { border-radius: .375rem; }
/* Room on the right of a block for the sources of its suggestions, as the mockup's tags. */
.lx-editor__page [data-sourced] { padding-right: 12rem; }
.lx-frame-layer { height: 0; position: relative; }
/* The heading wraps rather than hides its buttons (never a focusable control out of sight): the
   buttons go to a second line, right-aligned, their labels on one line. */
.lx-frame-heading {
  align-items: center;
  /* Placed by the client (CSSOM); hidden until then, since a value rendered on the server
     would be a `style` attribute and `style-src 'self'` refuses it (R109). */
  visibility: hidden;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  max-width: 100%;
  padding: .5rem 1rem 0;
  position: absolute;
  z-index: 5;
}
.lx-frame-heading__kicker { color: var(--text-active-blue-france); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lx-frame-heading__label { flex: 1 1 6rem; font-size: .875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-frame-heading__count { color: var(--text-mention-grey); font-size: .75rem; }
/* The group's decisions, as small labels before the heading's text: a green tick, a red cross
   (DSFR's success and error pairs, AA in both themes), a target of at least 24 px. */
.lx-group-actions { display: inline-flex; flex: 0 0 auto; gap: .25rem; }
.lx-chip { align-items: center; background-color: transparent; border: 1px solid currentColor; border-radius: .75rem; cursor: pointer; display: inline-flex; font: inherit; font-size: .75rem; gap: .125rem; line-height: 1.25; min-height: 1.5rem; min-width: 1.5rem; padding: 0 .5rem 0 .25rem; white-space: nowrap; }
.lx-chip--accept { background-color: var(--background-contrast-success); color: var(--text-default-success); }
.lx-chip--refuse { background-color: var(--background-contrast-error); color: var(--text-default-error); }
.lx-chip { position: relative; }
/* The full name as a tip, on hover and on keyboard focus (a `title` shows on hover only). */
.lx-chip::after { background-color: var(--background-default-grey); border: 1px solid var(--border-default-grey); border-radius: .25rem; box-shadow: 0 2px 8px rgb(0 0 18 / 16%); color: var(--text-default-grey); content: attr(data-tip); font-size: .75rem; left: 0; opacity: 0; padding: .25rem .5rem; pointer-events: none; position: absolute; top: calc(100% + .25rem); visibility: hidden; white-space: nowrap; z-index: 40; }
.lx-chip:hover::after, .lx-chip:focus-visible::after { opacity: 1; visibility: visible; }
.lx-chip:hover { text-decoration: underline; }
.lx-chip:focus-visible { outline: 2px solid var(--border-active-blue-france); outline-offset: 2px; }
.lx-chip [class*="fr-icon-"]::before { --icon-size: 1rem; }
/* Sources stay in the margin's column, cut short with an ellipsis (whole in their title and
   accessible name), never past the page or over a control. */
.lx-margin-sources { visibility: hidden; align-items: flex-end; display: flex; flex-direction: column; gap: .25rem; position: absolute; transform: translateX(calc(-100% - .5rem)); width: 11rem; z-index: 5; }
.lx-margin-sources > * { display: block; max-width: 100%; }
.lx-margin-sources .fr-tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 47.99em) {
  /* No room in a phone's margin: the sources stay in the panel and the card. */
  .lx-editor__page [data-sourced] { padding-right: 1rem; }
  .lx-margin-sources { display: none; }
}
/* The review mode (design §3bis): the current passage outlined in the text, a passage reached
   by « Voir dans le texte » outlined for a moment; not colour alone, the outline is a shape. */
.lx-editor .lx-review-current { outline: 3px solid var(--border-active-blue-france); outline-offset: 2px; }
.lx-editor .lx-passage-flash { outline: 3px solid var(--border-plain-warning); outline-offset: 2px; }
/* The mode's bar floats at the bottom of the act, as wide as its page, in the flow after it so
   that the end of the act is never hidden. */
.lx-editor__desk:has(.lx-review-bar) { scroll-padding-bottom: 6rem; }
.lx-review-bar {
  align-items: center;
  max-width: 100%;
  /* DSFR's flat grey with its inverted text: dark with light text, inverted in the dark theme, AA
     in both; one line across the act. */
  background-color: var(--background-flat-grey);
  border-radius: .375rem;
  bottom: 1rem;
  box-shadow: 0 4px 12px rgb(0 0 18 / 24%);
  box-sizing: border-box;
  color: var(--text-inverted-grey);
  display: flex;
  flex-wrap: wrap;
  font-size: .8125rem;
  gap: .25rem 1rem;
  margin: 1rem 0 0;
  padding: .25rem 1rem;
  position: sticky;
  width: 100%;
  z-index: 20;
}
.lx-review-bar__position { font-weight: 700; margin: 0; white-space: nowrap; }
.lx-review-bar__rest { font-weight: 400; opacity: .85; }
/* What the current suggestion leaves to complete, on its own line under the position. */
.lx-review-bar__todo { margin: 0; max-width: 16rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-review-bar__keys { align-items: center; display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 0 .5rem; justify-content: flex-end; }
.lx-review-bar__quiet { opacity: .75; }
.lx-review-bar button { background: transparent; border: 0; color: inherit; font: inherit; min-height: 2.5rem; padding: 0 .25rem; }
.lx-review-bar button:hover:not(:disabled) { text-decoration: underline; }
.lx-review-bar button:disabled { opacity: .6; }
.lx-review-bar :focus-visible { outline: 2px solid var(--text-inverted-grey); outline-offset: 2px; }
.lx-review-bar kbd { border: 1px solid currentColor; border-radius: .1875rem; font: inherit; padding: 0 .375rem; }
.lx-review-bar__preview { opacity: .75; text-decoration: underline; }
/* The preview of a batch (`Apercu` of the mockup): a wide dialog, the act before and after in
   two columns, block by block. */
.lx-preview-modal .fr-col-lg-8 { flex: 0 0 100%; max-width: 74rem; width: 100%; }
.lx-preview { border-top: 1px solid var(--border-default-grey); margin: 1rem 0; max-height: 55vh; overflow-y: auto; }
.lx-preview__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-preview__head { background-color: var(--background-alt-grey); color: var(--text-mention-grey); font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: .5rem 1rem; text-transform: uppercase; }
.lx-preview__cell { border-top: 1px solid var(--border-default-grey); overflow-wrap: anywhere; padding: .75rem 1rem; }
.lx-preview__row > :nth-child(2) { border-left: 1px solid var(--border-default-grey); }
.lx-preview__cell--after:has(ins) { background-color: var(--background-alt-blue-france); }
.lx-preview__cell del { background-color: var(--background-contrast-error); text-decoration: line-through 2px var(--border-plain-error); }
.lx-preview__cell ins { text-decoration: underline 2px var(--border-active-blue-france); }
.lx-preview__kind { color: var(--text-active-blue-france); font-size: .75rem; margin: .25rem 0 0; }
.lx-preview__none { color: var(--text-mention-grey); font-style: italic; }
.lx-preview__foot { align-items: center; border-top: 1px solid var(--border-default-grey); display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding-top: 1rem; }
.lx-preview__foot p { flex: 1 1 20rem; margin: 0; }
.lx-preview__foot .fr-btns-group { margin-left: auto; }
.lx-comment__draft { margin-top: .5rem; }
.lx-comment__draft .fr-input { margin: 0 0 .5rem; resize: vertical; }
.lx-comment__draft-actions { display: flex; gap: .5rem; }

/* The bar: leptos-dsfr's ribbon, for writers. */
.lx-editor__bar { border-bottom: 1px solid var(--border-default-grey); flex: 0 0 auto; }
.lx-editor__bar .ldsfr-ribbon { border-bottom: 0; }
/* Task 3d: one row of tabs (with, folded, the common tools, then the fold button), and under
   it, unfolded, one row of tools. leptos-dsfr's boxes step aside (`display: contents`, no role
   lost) so that the tabs, the tools and the button share the first row of a grid. */
.lx-act-ribbon {
  align-items: center;
  display: grid;
  grid-template-areas: "tabs quick notice toggle" "panel panel panel panel";
  grid-template-columns: minmax(0, max-content) auto minmax(0, 1fr) auto;
}
.lx-act-ribbon .ldsfr-ribbon, .lx-act-ribbon .ldsfr-ribbon__bar { display: contents; }
.lx-act-ribbon .ldsfr-ribbon__tabs { grid-area: tabs; }
.lx-act-ribbon > [hidden] { display: none; }
.lx-act-ribbon__quick { grid-area: quick; padding: 0 .5rem; }
.lx-ribbon-toggle { grid-area: toggle; margin: 0 .25rem; }
/* The tools fit the row (crate::ribbon `Fit`, measured): « Plus d'outils » may open below it;
   a tool that would not fit is clipped (a tab drawn whole before it is measured), never
   scrolling the page. */
.lx-act-ribbon .ldsfr-ribbon__panel { border-top: 1px solid var(--border-default-grey); grid-area: panel; min-width: 0; overflow-x: clip; overflow-y: visible; }
.lx-ribbon-field { align-items: center; display: inline-flex; }
.lx-more__menu .lx-ribbon-field { display: flex; }
/* What came of validating a section; empty, it takes no room but stays a live region. */
.lx-act-ribbon__notice { font-size: .75rem; grid-area: notice; margin: 0; overflow: hidden; padding: 0 .5rem; text-overflow: ellipsis; white-space: nowrap; }
.lx-act-ribbon .ldsfr-ribbon__group-label { font-size: .6875rem; line-height: 1rem; padding: 0; }
/* One row: a button shows its icon only, its name being its tooltip and its accessible name
   (the text stays in the button, at size zero). */
.lx-act-ribbon .ldsfr-ribbon__groups { flex-wrap: nowrap; min-height: 0; }
.lx-act-ribbon .ldsfr-ribbon__group { flex: 0 0 auto; padding-bottom: .25rem; }
.lx-act-ribbon .ldsfr-ribbon__items {
  align-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: .125rem;
  justify-content: center;
  max-height: none;
}
.lx-act-ribbon .ldsfr-ribbon__group-label { overflow-wrap: normal; white-space: normal; }
.lx-act-ribbon .ldsfr-ribbon__btn, .lx-quick .ldsfr-ribbon__btn { font-size: 0; gap: 0; justify-content: center; min-height: 2rem; min-width: 2rem; padding: .25rem; }
.lx-act-ribbon .ldsfr-ribbon__btn::before, .lx-quick .ldsfr-ribbon__btn::before { --icon-size: 1.25rem; }
.lx-quick { display: flex; gap: .125rem; }
/* « Plus d'outils »: a menu under its button, the tools with their names. */
.lx-more { position: relative; }
.lx-more__menu {
  background-color: var(--background-default-grey);
  filter: drop-shadow(var(--raised-shadow));
  max-height: 60vh;
  overflow-y: auto;
  padding: .5rem;
  position: absolute;
  right: 0;
  top: 100%;
  width: max-content;
  max-width: min(22rem, 90vw);
  z-index: 40;
}
.lx-more__menu[hidden] { display: none; }
.lx-more__label { color: var(--text-mention-grey); font-size: .75rem; margin: .25rem 0; }
.lx-act-ribbon .lx-more__menu .ldsfr-ribbon__btn { font-size: .875rem; gap: .5rem; justify-content: flex-start; width: 100%; }
.lx-more__menu .lx-size-select { margin: .25rem 0; width: 100%; }
/* leptos-dsfr's hover (`default-grey-hover`) barely shows on the white ribbon: a contrasted one,
   the icon in blue; a pressed button stays blue. */
.lx-act-ribbon .ldsfr-ribbon__btn:not(:disabled):hover, .lx-quick .ldsfr-ribbon__btn:not(:disabled):hover { background-color: var(--background-contrast-grey); color: var(--text-action-high-blue-france); }
.lx-act-ribbon .ldsfr-ribbon__btn:not(:disabled):active { background-color: var(--background-contrast-grey-hover); }
.lx-act-ribbon .ldsfr-ribbon__btn[aria-pressed="true"]:not(:disabled):hover { background-color: var(--background-action-low-blue-france-hover); }
/* The status bar, at the bottom of the screen: the block holding the cursor on the left, the
   connection to the text on the right; small print. */
.lx-editor__statusbar {
  align-items: center;
  background-color: var(--background-alt-grey);
  border-top: 1px solid var(--border-default-grey);
  bottom: 0;
  display: flex;
  flex: 0 0 auto;
  font-size: .75rem;
  gap: 1rem;
  line-height: 1.25rem;
  min-height: 1.75rem;
  padding: 0 .75rem;
  position: sticky;
  z-index: 1;
}
/* The bar's size, not the DSFR's for a paragraph. */
.lx-editor__statusbar > * { font-size: inherit; line-height: inherit; }
/* The vim mode (crate::vim): its mode or command line in a fixed-width font, as vim's last line,
   then its buttons. */
/* Its parts sit in the status bar itself, so that the reminder can go to the far right. */
.lx-vim { display: contents; }
.lx-vim > * { font-size: inherit; line-height: inherit; }
.lx-vim__mode { font-family: monospace; margin: 0; white-space: pre; }
.lx-vim .fr-btn--sm { font-size: inherit; line-height: inherit; min-height: 1.25rem; padding: 0 .5rem; }
.lx-vim__hint { color: var(--text-mention-grey); margin: 0; order: 1; white-space: nowrap; }
.lx-vim__hint kbd { font-family: monospace; font-size: inherit; }
.lx-vim__macros { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
/* The status bar's breadcrumb: where the cursor is, its steps separated by a chevron (DSFR icon). */
.lx-breadcrumb { min-width: 0; overflow: hidden; }
.lx-breadcrumb__list { align-items: center; display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.lx-breadcrumb__step { align-items: center; display: flex; padding: 0; }
.lx-breadcrumb__step[aria-current] { font-weight: 700; }
.lx-breadcrumb__sep { color: var(--text-mention-grey); margin: 0 .25rem; }
.lx-breadcrumb__sep::before { --icon-size: .875rem; }
.lx-ribbon__kind { font-weight: 700; }
/* An empty division (its heading only): the same invitation. */
.lx-numbered[data-numbered="division"] > .le-node-view-content:not(:has(> :not(h2[data-act="titre_division"])))::after {
  color: var(--text-mention-grey);
  content: "Division vide : insérez un article ou une division depuis le ruban.";
  display: block;
  font-style: italic;
  margin: .5rem 0;
}
/* An empty dispositive: what to do, where its articles would be. */
.lx-editor__page [data-act="corps"]:empty::after {
  color: var(--text-mention-grey);
  content: "Dispositif vide : insérez un article ou une division depuis le ruban.";
  display: block;
  font-style: italic;
  margin: 1rem 0;
}
.lx-ribbon__select { font-size: .75rem; line-height: 1.25rem; margin: 0; min-height: 0; padding: 0 2rem 0 .5rem; width: auto; }
.lx-ref-targets { list-style: none; padding: 0; }

/* The outline: a line per part, the current one marked; a writer's controls show on hover and
   focus (always on touch screens). */
.lx-editor__outline > .lx-outline__entry { align-items: center; display: flex; gap: .25rem; }
.lx-outline__entry--nested { margin-left: 1rem; }
.lx-outline__link { flex: 1; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.lx-outline__link:hover { text-decoration: underline; }
.lx-outline__link[aria-current] { color: var(--text-active-blue-france); font-weight: 700; }
.lx-outline__entry--here { border-left-color: var(--border-active-blue-france) !important; }
.lx-outline__controls { display: flex; flex: 0 0 auto; opacity: 0; }
.lx-outline__entry:hover .lx-outline__controls, .lx-outline__entry:focus-within .lx-outline__controls { opacity: 1; }
@media (hover: none) { .lx-outline__controls { opacity: 1; } }
.lx-outline__entry[draggable="true"] { cursor: grab; }
/* Where a dragged node would go: a line above or below the entry, or the division framed. */
.lx-outline__entry--drop-before { box-shadow: inset 0 2px 0 var(--border-active-blue-france); }
.lx-outline__entry--drop-after { box-shadow: inset 0 -2px 0 var(--border-active-blue-france); }
.lx-outline__entry--drop-inside { background-color: var(--background-contrast-blue-france); }

/* Which part of the act each block is: a label outside the page, on the desk, from its `data-act`:
   placed against the content (positioned by leptos-editor), past the page's left margin (set by the
   editor as `--lx-page-margin`), at the height of its line (`top: auto`). */
.lx-editor__page .le-content > [data-act]::before,
.lx-editor__page [data-act="preambule"] > [data-act]::before,
.lx-editor__page [data-act="article"]::before,
.lx-editor__page [data-act="division"]::before {
  color: var(--text-mention-grey);
  font-size: .625rem;
  font-weight: 400;
  left: calc(-1 * var(--lx-page-margin, 0px) - 6.75rem);
  letter-spacing: 0;
  line-height: 1.5rem;
  pointer-events: none;
  position: absolute;
  text-align: right;
  text-transform: none;
  top: auto;
  width: 6.25rem;
}
.lx-editor__page [data-act="entete"]::before { content: "En-tête"; }
.lx-editor__page [data-act="references"]::before { content: "Références"; }
.lx-editor__page [data-act="titre"]::before { content: "Titre"; }
.lx-editor__page [data-act="autorite"]::before { content: "Formule d'auteur"; }
.lx-editor__page [data-act="preambule"]::before { content: none; }
/* Visas, considérants and the proposer open with their formula, added at display (and export),
   never typed: it replaces their margin label. */
.lx-editor__page [data-act="preambule"] > [data-act="visa"]::before,
.lx-editor__page [data-act="preambule"] > [data-act="considerant"]::before,
.lx-editor__page [data-act="preambule"] > [data-act="proposant"]::before {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  left: auto;
  line-height: inherit;
  position: static;
  text-align: left;
  width: auto;
}
.lx-editor__page [data-act="visa"]::before { content: "VU "; }
.lx-editor__page [data-act="considerant"]::before { content: "CONSIDÉRANT "; }
.lx-editor__page [data-act="proposant"]::before { content: "SUR PROPOSITION "; }
.lx-editor__page [data-act="verbe"]::before { content: "Verbe"; }
.lx-editor__page [data-act="corps"]::before { content: none; }
.lx-editor__page [data-act="division"]::before { content: "Division"; }
.lx-editor__page [data-act="article"]::before { content: "Article"; }
.lx-editor__page [data-act="signature"]::before { content: "Signature"; }
.lx-editor__page [data-act="annexe"]::before { content: "Annexe"; }
/* No room left of the page (a phone; crate::shell `labels_fit`): no label rather than one cut
   off, the status bar naming the part at the cursor; the formulas of the visas and the like stay. */
.lx-editor__page--bare [data-act]:not([data-act="visa"], [data-act="considerant"], [data-act="proposant"], [data-act^="titre_"])::before { display: none; }
@media (max-width: 47.99em) {
  .lx-editor__page [data-act]:not([data-act="visa"], [data-act="considerant"], [data-act="proposant"], [data-act^="titre_"])::before { display: none; }
}

/* Articles and divisions carry their computed name, then their editable title on the same line:
   "Article 1er : Objet". The margin label would repeat it. */
.lx-editor__page [data-act="article"]::before, .lx-editor__page [data-act="division"]::before { content: none; }
.lx-numbered { margin: 1rem 0; }
/* Alinéas (circulaire du 20 octobre 2000, `lexiredac_act::alineas`): every line of an article is
   numbered in the margin, its title excepted, a table once; at the height of its line (`top:
   auto`), against the article's edge whatever the indent (lists, citations). */
.lx-numbered[data-numbered="article"] { counter-reset: lx-alinea; position: relative; }
/* leptos-editor positions list items (`.le-content li`), which would anchor the number on the bullet. */
.lx-numbered[data-numbered="article"] li { position: static; }
.lx-numbered[data-numbered="article"] p:not(td p, th p),
.lx-numbered[data-numbered="article"] table { counter-increment: lx-alinea; }
.lx-numbered[data-numbered="article"] p:not(td p, th p)::before,
.lx-numbered[data-numbered="article"] table::before {
  color: var(--text-mention-grey);
  content: counter(lx-alinea);
  font-size: .625rem;
  font-weight: 400;
  left: -1.75rem;
  line-height: 1.5rem;
  position: absolute;
  text-align: right;
  top: auto;
  user-select: none;
  width: 1.25rem;
}
.lx-numbered > .le-node-view-content { display: contents; }
.lx-numbered__name { font-size: 1rem; font-weight: 700; user-select: none; }
/* A section validated by a human (RF-AGT-17): closed to the assistant, not to its writers. */
.lx-numbered[data-validated] { box-shadow: -4px 0 0 var(--border-plain-success); position: relative; }
/* Its lock, a round tag in the page's left margin (the validated mockup), off the alinéas'
   numbers. */
.lx-numbered__lock {
  align-items: center;
  background-color: var(--background-contrast-success);
  border-radius: 50%;
  color: var(--text-default-success);
  display: inline-flex;
  height: 1.75rem;
  justify-content: center;
  left: -3.75rem;
  position: absolute;
  top: 0;
  user-select: none;
  width: 1.75rem;
}
.lx-numbered__lock::before { --icon-size: 1rem; }
@media (max-width: 47.99em) {
  .lx-numbered__lock { margin-right: .5rem; position: static; vertical-align: middle; }
}
.lx-numbered[data-numbered="division"] > .lx-numbered__name { font-size: 1.125rem; text-transform: uppercase; }
.lx-numbered [data-act="titre_article"], .lx-numbered [data-act="titre_division"] {
  display: inline-block;
  font-size: 1rem;
  margin: 0;
  min-width: 4rem;
}
/* An empty title holds the editor's trailing break, which would push it to the next line. */
.lx-numbered [data-act^="titre_"] > br.ProseMirror-trailingBreak { display: none; }
.lx-numbered [data-act="titre_division"] { font-size: 1.125rem; }
.lx-numbered [data-act="titre_article"]::before, .lx-numbered [data-act="titre_division"]::before { content: " : "; }
/* The first paragraph starts on its own line, under the name and title. */
.lx-numbered [data-act="titre_article"] + *, .lx-numbered [data-act="titre_division"] + * { margin-top: .5rem; }
/* An article without a title: a dashed slot where it would go, shown on hover or focus (always on
   touch screens), as a field one can write in. */
.lx-numbered__slot {
  background: none;
  border: 1px dashed var(--border-default-grey);
  border-radius: .25rem;
  color: var(--text-mention-grey);
  cursor: text;
  font-style: italic;
  margin-left: .25rem;
  opacity: 0;
  padding: 0 .5rem;
  transition: opacity .15s;
}
.lx-numbered__slot::before { content: ": "; font-style: normal; }
.lx-numbered:hover > .lx-numbered__slot, .lx-numbered__slot:focus-visible { opacity: 1; }
@media (hover: none) { .lx-numbered__slot { opacity: .7; } }

/* The table of contents and the cross-references, computed at display time. */
.lx-toc { border: 1px dashed var(--border-default-grey); margin: 1rem 0; padding: .75rem 1rem; user-select: none; }
.lx-toc__title { font-weight: 700; margin: 0 0 .5rem; }
.lx-toc__list { margin: 0; padding-left: 1.25rem; }
.lx-toc__entry[data-depth="1"] { margin-left: 1rem; }
.lx-toc__entry[data-depth="2"] { margin-left: 2rem; }
.lx-ref { background-color: var(--background-contrast-blue-france); border-radius: .25rem; padding: 0 .25rem; }

/* Development only: the act's tree as XML, each element folding. */
.lx-xml { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .75rem; line-height: 1.25rem; overflow-x: auto; }
.lx-xml details > summary { cursor: pointer; list-style: none; white-space: nowrap; }
.lx-xml details > summary::-webkit-details-marker { display: none; }
.lx-xml details > summary::before { color: var(--text-mention-grey); content: "▸ "; }
.lx-xml details[open] > summary::before { content: "▾ "; }
.lx-xml__children { border-left: 1px dotted var(--border-default-grey); margin-left: .25rem; padding-left: .75rem; }
.lx-xml__line { padding-left: .75rem; }
.lx-xml__tag { color: var(--text-action-high-blue-france); }
.lx-xml__attr { color: var(--text-default-warning); }
.lx-xml__value { color: var(--text-default-success); }
.lx-xml__text { color: var(--text-default-grey); }

/* The versions' history: a condensed vertical timeline, a dot per version on one line. */
.lx-timeline { border-left: 2px solid var(--border-default-grey); list-style: none; margin: 0 0 1.5rem .375rem; padding: 0; }
.lx-timeline__item {
  align-items: baseline;
  display: grid;
  gap: 0 .5rem;
  grid-template-columns: 1fr auto;
  padding: 0 0 .75rem 1rem;
  position: relative;
}
.lx-timeline__item::marker { content: none; }
/* The dot is a link (the version at its date): a 1.5rem target around a .625rem dot. */
.lx-timeline__dot {
  background-image: none;
  height: 1.5rem;
  left: -.8125rem;
  position: absolute;
  top: 0;
  width: 1.5rem;
}
.lx-timeline__dot::before {
  background-color: var(--background-action-high-blue-france);
  border: 2px solid var(--background-default-grey);
  border-radius: 50%;
  content: "";
  height: .875rem;
  left: .3125rem;
  position: absolute;
  top: .3125rem;
  width: .875rem;
}
.lx-timeline__dot:hover::before { background-color: var(--background-action-high-blue-france-hover); }
.lx-timeline__dot[aria-current]::before {
  box-shadow: 0 0 0 2px var(--border-action-high-blue-france);
  height: 1rem;
  left: .25rem;
  top: .25rem;
  width: 1rem;
}
.lx-timeline__answer { grid-column: 1 / -1; margin-top: .5rem; }
.lx-callout { padding-right: 2.5rem; position: relative; }
/* Closing the version at a date: a plain cross in the corner (`fr-btn` hides its text). */
.lx-callout-close { position: absolute; right: .25rem; top: .25rem; }
.lx-timeline__head, .lx-timeline__meta { grid-column: 1; }
.lx-timeline__head { display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0; }
.lx-timeline__label { font-weight: 700; }
.lx-timeline__item form { grid-row: span 2; }
.lx-timeline__meta { color: var(--text-mention-grey); font-size: .75rem; line-height: 1.25rem; margin: 0; }
.lx-timeline__item--voided .lx-timeline__dot::before { background-color: var(--border-default-grey); }
.lx-timeline__item--voided .lx-timeline__label { color: var(--text-mention-grey); text-decoration: line-through; }
.lx-editor__page {
  background-color: var(--background-default-grey);
  box-shadow: 0 2px 6px var(--border-default-grey);
  margin: 0 auto;
  max-width: 52rem;
  min-height: 60rem;
  padding: 3rem var(--lx-page-margin);
  /* Continuous layout: the labels go past this padding (paged, the editor sets the margin). */
  --lx-page-margin: 4rem;
}
/* Page view (leptos-editor's `Pagination`): its frames are the sheets, ours steps aside; the
   bloc-marque is the act's own header (`entete`). */
.lx-editor__page:has(.le-editor-paged) {
  background: none;
  box-shadow: none;
  max-width: none;
  min-height: 0;
  padding: 0;
  position: relative;
  width: fit-content;
}
/* leptos-editor paints its own, narrower desk around the pages: ours fills the whole column, and
   the first page starts at the top. */
.lx-editor__page .le-editor-paged { background: none; overflow: visible; padding: 0; }
.lx-editor__page h1[data-act="titre"] { text-align: center; }
.lx-margins { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.lx-margins > legend { grid-column: 1 / -1; }
.lx-margins .fr-input-group { margin: 0 0 1rem; }
/* A template variable stands out until it is filled (RF-ACT-11). */
/* A forced case (`textCase` mark): shown, the typed text is unchanged. */
.lx-editor__page [data-case="upper"] { text-transform: uppercase; }
.lx-editor__page [data-case="lower"] { text-transform: lowercase; }
.lx-case-btn { font-weight: 700; }
/* The ribbon shows icons only (its text at size zero): these buttons show their letters. */
.lx-act-ribbon .lx-case-btn > span { font-size: .8125rem; line-height: 1; }
.lx-act-ribbon .lx-size-select { font-size: .8125rem; margin: 0; min-height: 2rem; padding: .25rem 2rem .25rem .5rem; width: auto; }
/* Text sizes (`textSize` mark), relative to the act's own: the export uses the same scale. */
.lx-editor__page [data-size="xxs"] { font-size: .625em; }
.lx-editor__page [data-size="xs"] { font-size: .75em; }
.lx-editor__page [data-size="s"] { font-size: .875em; }
.lx-editor__page [data-size="l"] { font-size: 1.25em; }
.lx-editor__page [data-size="xl"] { font-size: 1.5em; }
.lx-editor__page [data-size="xxl"] { font-size: 2em; }
.lx-editor__page [data-variable] {
  background-color: var(--background-contrast-blue-france);
  border-bottom: 2px solid var(--border-action-high-blue-france);
}
/* Comments anchored outside the text (ADR-0004 D-2), drawn as decorations. */
.lx-editor__page .comment-anchor { background-color: var(--background-contrast-yellow-tournesol); }
.lx-editor__page .comment-anchor--active { background-color: var(--background-action-low-yellow-tournesol); }
.lx-editor__page .comment-anchor--resolved { background-color: transparent; }
@media (max-width: 47.99em) {
  /* The window scrolls (phone, strong zoom): the desk grows with the act, and no box between
     it and the window scrolls (the DSFR's tabs clip), else the review bar would stick to a box
     that never scrolls (end of the act, not of the screen). */
  .lx-editor__body { display: block; }
  .lx-editor__desk { overflow: visible; }
  .lx-editor__main > .fr-tabs { overflow: visible; }
  /* Above the status bar, which sticks to the bottom too: kept on one line, its height known. */
  .lx-review-bar { bottom: 2.25rem; }
  .lx-editor__statusbar { overflow: hidden; white-space: nowrap; }
  /* The rail is a row: the open panel is underlined instead. */
  .lx-editor__rail .fr-btn[aria-current]::after { bottom: -.25rem; height: 2px; left: .5rem; right: .5rem; top: auto; width: auto; }
}
@media (max-width: 62em) {
  .lx-editor__body > .ldsfr-splitter { display: none; }
  /* Up to a tablet's width the panel is a drawer from the left, over the act, as the Armoires'
     tree (`:target` opens it without JavaScript): the act keeps the width. */
  .lx-editor__body > .lx-drawer-backdrop { background-color: hsla(0, 0%, 9%, .64); inset: 0; position: fixed; z-index: 1000; }
  .lx-editor__panel.lx-drawer {
    background-color: var(--background-default-grey);
    bottom: 0;
    filter: drop-shadow(var(--overlap-shadow));
    left: 0;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform .25s;
    width: min(85vw, 22rem);
    z-index: 1001;
  }
  .lx-editor__panel.lx-drawer--open, .lx-editor__panel.lx-drawer:target { transform: none; }
  /* The notch sticks out of the drawer: the content scrolls, not the drawer. */
  .lx-editor__panel.lx-drawer { overflow: visible; padding: 0; }
  .lx-editor__panel.lx-drawer > .lx-editor__panel-content { height: 100%; overflow-y: auto; padding: 1rem; }
}
@media (max-width: 47.99em) {
  .lx-editor__rail { flex-direction: row; border-right: 0; }
  .lx-editor__panel { border-right: 0; }
  .lx-editor__page { --lx-page-margin: 1.5rem; padding: 1.5rem; }
}

/* A pressed toggle of the toolbar (the current alignment). */

/* The header of the first page: the bloc-marque on the left (Marianne and motto by the DSFR's
   `fr-logo`, around the authority's name), the administrative stamp on the right. */
.lx-editor__page [data-act="entete"] { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: var(--lx-entete-gap, 14mm); }
.lx-editor__page [data-act="entete"] > [data-node-view="bloc_marque"] { flex: 0 1 50%; }
.lx-bloc-marque > .le-node-view-content > p { margin: 0; }
/* The stamp starts on the authority's name, under the Marianne (the DSFR's `fr-logo::before`: 1rem high,
   .3333rem under it), as the État's charter places the direction. */
.lx-editor__page [data-act="timbre"] { flex: 0 1 45%; font-size: .875rem; padding-top: 1.3333rem; text-align: right; }
.lx-editor__page [data-act="timbre"] > p { margin: 0; }

/* Focus: the page itself is framed, not the text inside its margins. */
.lx-editor__page .le-editor-paged .le-content:focus { outline: none; }
.lx-editor__page .le-editor-paged.le-focused .le-page { box-shadow: 0 0 0 2px var(--border-active-blue-france); }

/* The variables panel: one item per variable, its name then its value. */
.lx-variables { list-style: none; margin: 0; padding: 0; }
.lx-variables__item { border-bottom: 1px solid var(--border-default-grey); padding: .5rem 0; }
.lx-variables__name { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .25rem; }
.lx-variables__value { align-items: center; display: flex; gap: .5rem; }
.lx-variables__value .fr-input { margin-top: 0; }
.lx-pieces { list-style: none; margin: 0; padding: 0; }
.lx-access-requests { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.lx-pieces__item { border-bottom: 1px solid var(--border-default-grey); padding: .5rem 0; }
.lx-pieces__name { font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.lx-pieces__item .fr-text--xs { margin: .25rem 0; }
.lx-pieces__text { max-height: 20rem; overflow-y: auto; white-space: pre-wrap; }
.lx-pieces__head { align-items: flex-start; display: flex; gap: .5rem; }
.lx-pieces__head > div { flex: 1; min-width: 0; }
.lx-pieces__analyses { list-style: none; margin: 0 0 .25rem; padding: 0; }
.lx-pieces__analyses li { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; }
.lx-pieces__analysis { background: var(--background-alt-grey); border-left: 3px solid var(--border-default-grey); margin: .25rem 0 .5rem; max-height: 24rem; overflow-y: auto; padding: .5rem .75rem; }
/* The act's workspace (design 2026-11-15 §3.4): an explorer of folders, files open in tabs. */
.lx-workspace { list-style: none; margin: 0 0 1rem; padding: 0; }
.lx-workspace__row[data-depth="2"] { padding-left: 1rem; }
.lx-workspace__row[data-depth="3"] { padding-left: 2rem; }
.lx-workspace__row[data-depth="4"] { padding-left: 3rem; }
.lx-workspace__row[data-depth="5"] { padding-left: 4rem; }
.lx-workspace__row[data-depth="6"] { padding-left: 5rem; }
.lx-workspace__row[data-depth="7"] { padding-left: 6rem; }
.lx-workspace__row[data-depth="8"] { padding-left: 7rem; }
.lx-workspace__bar { align-items: center; display: flex; font-size: .75rem; gap: .5rem; justify-content: space-between; }
.lx-workspace__bar > * { margin: 0; }
.lx-workspace__row { align-items: center; display: flex; gap: .25rem; }
.lx-workspace__row::before { content: none; }
.lx-workspace__delete { flex: none; margin: 0; }
.lx-workspace__folder, .lx-workspace__file {
  align-items: center; background: none; border: 0; display: flex; gap: .25rem; min-height: 2.5rem;
  overflow-wrap: anywhere; text-align: left; width: 100%;
}
.lx-workspace__folder { font-weight: 500; }
.lx-workspace__file { font-family: ui-monospace, Menlo, monospace; font-size: .875rem; }
.lx-workspace__folder:hover, .lx-workspace__file:hover { background: var(--background-default-grey-hover); }
.lx-workspace__meta { color: var(--text-mention-grey); font-family: inherit; font-size: .75rem; margin-left: auto; }
.lx-workspace__file-view { display: flex; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; }
.lx-workspace__head { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.lx-workspace__crumbs { align-items: baseline; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.lx-workspace__note { color: var(--text-mention-grey); font-size: .75rem; margin: 0; }
.lx-workspace__json { font-family: ui-monospace, Menlo, monospace; font-size: .875rem; }
.lx-json summary { cursor: pointer; padding: .125rem 0; }
.lx-json__items { list-style: none; margin: 0; padding: 0 0 0 1.25rem; }
.lx-json__items > li::before { content: none; }
.lx-json__key { color: var(--text-title-blue-france); font-weight: 700; margin-right: .5rem; }
.lx-json__key::after { content: " :"; }
.lx-json__count { color: var(--text-mention-grey); }
.lx-json__value { overflow-wrap: anywhere; white-space: pre-wrap; }
.lx-workspace__md { max-width: 48rem; }
.lx-workspace__src { background: var(--background-alt-grey); overflow: auto; padding: 1rem; white-space: pre-wrap; }
.lx-workspace__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* The main view: the act, and beside it the pieces open in tabs (no tab bar while only the act is
   open). The DSFR's tabs size their panel by script: here it fills the view, and scrolls. */
.lx-editor__main { display: flex; flex: 1; min-width: 0; }
.lx-editor__main > .fr-tabs {
  box-shadow: none;
  flex: 1;
  flex-flow: column nowrap;
  margin-top: 0;
  min-width: 0;
  padding-top: 0;
}
.lx-editor__main > .fr-tabs::before { display: none; }
.lx-editor__main .fr-tabs__list { flex: 0 0 auto; margin: 0; }
.lx-editor__main .fr-tabs__panel {
  border-top: 1px solid var(--border-default-grey);
  display: flex;
  flex: 1;
  left: 0;
  margin-right: 0;
  min-height: 0;
  padding: 0;
}
.lx-editor__main--solo .fr-tabs__list { display: none; }
.lx-editor__main--solo .fr-tabs__panel { border-top: 0; }
.lx-piece { flex: 1; overflow: auto; padding: 1.5rem 2rem; }
.lx-piece__text { white-space: pre-wrap; }
.lx-piece__page { display: block; height: auto; max-width: 100%; }

/* A piece read page by page (maquette `piece-ocr`): its bar, its pages on the left, the page's
   image and text side by side. A cited page and a page without text are told by an icon too. */
.lx-piece__bar { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.lx-piece__bar .fr-segmented { margin: 0; }
.lx-piece__search { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-left: auto; }
.lx-piece__reader { align-items: start; display: grid; gap: 1rem; grid-template-columns: 3.5rem minmax(0, 1fr); }
.lx-piece__pages ol { display: flex; flex-direction: column; gap: .375rem; list-style: none; margin: 0; max-height: 75vh; overflow-y: auto; padding: 0; }
.lx-piece__thumb {
  align-items: flex-end;
  background: var(--background-default-grey);
  border: 1px solid var(--border-default-grey);
  display: flex;
  font-size: .75rem;
  height: 3.75rem;
  justify-content: center;
  position: relative;
  width: 2.875rem;
}
.lx-piece__thumb[aria-current="page"] { border: 2px solid var(--border-active-blue-france); font-weight: 700; }
.lx-piece__thumb--empty { background: var(--background-contrast-warning); color: var(--text-default-warning); }
.lx-piece__mark { position: absolute; right: .125rem; top: .125rem; }
.lx-piece__view--both { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 48em) { .lx-piece__view--both { grid-template-columns: minmax(0, 1fr); } }
.lx-piece__card { border: 1px solid var(--border-default-grey); padding: .75rem 1rem; }
.lx-piece__cited { background: var(--background-contrast-yellow-tournesol); color: inherit; text-decoration: underline; }
.lx-piece__hit { outline: 2px solid var(--border-plain-warning); }
.lx-piece__cited-by { border-top: 1px solid var(--border-default-grey); margin-top: .75rem; padding-top: .5rem; }
.lx-piece__unread { margin-top: 1rem; }
.lx-piece__card-head { align-items: center; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: .5rem; }
.lx-piece__card-head .fr-btn { margin-left: auto; }
/* The way past the list of the pages shows only once focused (RGAA 12.7). */
.lx-piece__skip:not(:focus) { clip: rect(0, 0, 0, 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* leptos-editor draws its pages white with grey headers: in the DSFR's colours here, so that the
   page follows the theme (ADR-0026 D9), the dark one included. */
.lx-editor__page .le-page { background: var(--background-default-grey); }
.lx-editor__page .le-page-header, .lx-editor__page .le-page-footer { color: var(--text-mention-grey); }

/* Tables in the act: full width, ruled, a cell's content from its top; header cells set apart. */
/* Separate borders, carried by the cells: they follow the rows the paged preview shifts down, and
   nothing is drawn in the empty band at the foot of a page. A row pushed to a new page, the first
   one and the repeated header copies (same selectors, under the page) get the top rule. */
.lx-editor__page table { border-collapse: separate; border-spacing: 0; margin: .5rem 0; table-layout: fixed; width: 100%; }
.lx-editor__page td, .lx-editor__page th {
  border-bottom: 1px solid var(--border-default-grey);
  border-right: 1px solid var(--border-default-grey);
  min-width: 2rem;
  padding: .25rem .5rem;
  text-align: left;
  vertical-align: top;
}
.lx-editor__page tr:first-child > *, .lx-editor__page .le-page-break-row > * { border-top: 1px solid var(--border-default-grey); }
.lx-editor__page tr > :first-child { border-left: 1px solid var(--border-default-grey); }
.lx-editor__page th { background-color: var(--background-alt-grey); font-weight: 700; }
.lx-editor__page td > p, .lx-editor__page th > p { margin: 0; }

/* Module studio (sub-project 6bis): the little the DSFR does not give. */
.studio-draftbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.5rem 1rem; background: var(--background-default-grey); border-bottom: 1px solid var(--border-default-grey); }
.studio-draftbar__text { margin: 0; font-weight: 700; }
.studio-family { margin-block-end: 1.5rem; background: var(--background-default-grey); border: 1px solid var(--border-default-grey); }
.studio-family__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-default-grey); }
.studio-family__head h2 { margin: 0; flex: 0 1 auto; }
.studio-family__head .fr-link { margin-inline-start: auto; }
.studio-resources, .studio-tree { list-style: none; padding: 0; margin: 0 0 1rem; }
.studio-new { margin-block: 1rem; }
.studio-indent-0 { padding-inline-start: 0; }
.studio-indent-1 { padding-inline-start: 1.5rem; }
.studio-indent-2 { padding-inline-start: 3rem; }
.studio-indent-3 { padding-inline-start: 4.5rem; }
.studio-indent-4 { padding-inline-start: 6rem; }
.studio-indent-5 { padding-inline-start: 7.5rem; }
.studio-indent-6 { padding-inline-start: 9rem; }
.studio-diagnostics { list-style: none; padding: 0; }
/* A modal is visible at once when it opens (only its opacity fades): leptos-dsfr gives the focus to
   its first field on the next frame, which fails while the DSFR's visibility transition still hides
   it. Closing keeps the DSFR's fade. */
.fr-modal--opened { transition: opacity .3s, visibility 0s; }
/* Module page: side menu of its sections, one section shown beside it. */
.studio-module { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; margin-block-start: 1.5rem; }
.studio-module__menu { padding: 0; }
.studio-module__menu .fr-sidemenu__inner { position: sticky; top: 4.5rem; padding: 0; box-shadow: none; }
.studio-module__menu .fr-sidemenu__link { width: 100%; text-align: start; background: transparent; }
.studio-module__section { min-width: 0; }
@media (max-width: 47.99em) { .studio-module { grid-template-columns: 1fr; gap: 1rem; } .studio-module__menu .fr-sidemenu__inner { position: static; } }
.studio-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-block-end: 1.5rem; }
.studio-section__head h2 { margin: 0; }
.studio-description { margin-block-end: 2rem; }
.studio-description__text { display: block; width: 100%; padding: .5rem .75rem; margin-inline: -.75rem; font: inherit; text-align: start; color: inherit; background: transparent; border-radius: .25rem; cursor: text; }
.studio-description__text:hover { background: var(--background-alt-grey); box-shadow: inset 0 0 0 1px var(--border-default-grey); }
.studio-description__text .fr-icon-edit-line { margin-inline-start: .5rem; color: var(--text-mention-grey); opacity: 0; }
.studio-description__text:hover .fr-icon-edit-line, .studio-description__text:focus-visible .fr-icon-edit-line { opacity: 1; }
.studio-description .fr-hint-text { min-height: 1.25rem; margin: .25rem 0 0; }
/* Versions: a vertical timeline, the draft on top. */
.studio-timeline { position: relative; list-style: none; margin: 0 0 2rem; padding: 0 0 0 2rem; }
.studio-timeline::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: .5625rem; width: 2px; background: var(--border-default-grey); }
.studio-timeline__item { position: relative; padding-block-end: 1.75rem; }
.studio-timeline__item::before { content: ""; position: absolute; top: .3rem; left: -1.75rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--background-default-grey); border: 2px solid var(--border-action-high-blue-france); }
.studio-timeline__item:nth-child(2)::before { background: var(--border-action-high-blue-france); }
.studio-timeline__item--draft::before { border-style: dashed; border-color: var(--border-default-grey); }
.studio-timeline__item--empty::before { border-color: var(--border-default-grey); }
.studio-timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-block-end: .25rem; }
.studio-timeline__head .fr-hint-text { margin: 0; }
.studio-timeline__note { margin-block-end: .5rem; }
.studio-timeline__item p { margin-block-end: .5rem; }
.studio-timeline__detail { margin-block: .75rem; padding: 1rem; background: var(--background-alt-grey); }
.studio-compare-any summary { cursor: pointer; font-weight: 700; color: var(--text-action-high-blue-france); margin-block-end: 1rem; }
.studio-archive { margin-block-end: 2rem; }
.studio-archive .fr-select-group { margin-block-end: 0; }
.studio-archive .fr-upload-group { margin-block-end: 1rem; }

/* Graph editor (E4): a rail of icons, ONE panel, the canvas on the rest, nothing on the right. */
.studio-editor { display: flex; height: 72vh; min-height: 28rem; border: 1px solid var(--border-default-grey); background: var(--background-default-grey); }
.studio-editor__rail { display: flex; flex-direction: column; gap: .25rem; padding: .25rem; border-inline-end: 1px solid var(--border-default-grey); }
.studio-rail__button { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; color: var(--text-action-high-blue-france); background: transparent; }
.studio-rail__button[aria-pressed="true"] { background: var(--background-action-low-blue-france); box-shadow: inset 3px 0 0 var(--border-active-blue-france); }
.studio-rail__button:disabled { color: var(--text-disabled-grey); }
.studio-editor__panel { flex: 0 0 20rem; min-width: 18rem; overflow: auto; padding: 1rem; border-inline-end: 1px solid var(--border-default-grey); }
.studio-editor__main { position: relative; flex: 1 1 0; min-width: 0; height: 100%; overflow: auto; }
.studio-editor__main > .studio-list { padding: 1rem; }
.studio-draftbar__views { display: flex; gap: .25rem; }
.studio-draftbar__views [aria-pressed="true"] { background: var(--background-action-low-blue-france); }
.studio-skip { display: flex; gap: 1rem; }
.studio-dataflow { max-height: 60vh; overflow: auto; font-size: .75rem; }
.studio-list__form { margin-block-start: 1rem; }
.studio-graph-summary { margin-block: .5rem; }
/* A node is 56px high (demeter_flow::NODE_HEIGHT): three lines that never wrap. */
.studio-node__kind, .studio-node__label, .studio-node__summary { display: block; padding-inline: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-node__kind { padding-block-start: .125rem; font-size: .625rem; line-height: .875rem; text-transform: uppercase; }
.studio-node__label { font-size: .875rem; line-height: 1.25rem; }
.studio-node__summary { font-size: .6875rem; line-height: 1rem; }
.studio-node__badge { position: absolute; top: -.6rem; right: .25rem; padding: 0 .4rem; font-size: .7rem; font-weight: 700; color: #fff; background: var(--background-flat-error); }
.flow-node.has-error { border-color: var(--border-plain-error); border-width: 2px; }
/* The graph editor fills the window under the compact header, as the act editor does. */
.studio-graph-page { display: flex; flex-direction: column; }
.studio-graph-page .studio-editor { border-inline: 0; border-block-end: 0; }
@media (min-width: 48em) {
  .studio-graph-page { flex: 1; min-height: 0; }
  .studio-graph-page .studio-editor { flex: 1; height: auto; min-height: 0; }
}

.studio-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.studio-tiles .fr-tile__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }

.studio-palette__item { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 2rem; margin-block-end: .25rem; text-align: start; }
.studio-node__kind[class*="fr-icon-"]::before { --icon-size: .75rem; margin-inline-end: .25rem; vertical-align: -.0625rem; }

/* Workspace tabs of the graph editor. */
.studio-editor__workspace { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; height: 100%; }
.studio-editor__workspace > .studio-editor__main { flex: 1 1 0; height: auto; min-height: 0; }
.studio-editor__workspace [hidden] { display: none; }
.studio-wtabs { display: flex; flex: 0 0 auto; overflow-x: auto; border-block-end: 1px solid var(--border-default-grey); }
.studio-wtabs__item { display: flex; align-items: center; background: var(--background-action-low-blue-france); }
.studio-wtabs__tab { padding: .5rem .75rem; min-height: 2.5rem; font-weight: 700; white-space: nowrap; color: var(--text-action-high-blue-france); background: transparent; }
.studio-wtabs__item:has([aria-selected="true"]) { background: var(--background-default-grey); box-shadow: inset 0 2px 0 var(--border-active-blue-france); }
.studio-wtabs__close { width: 1.5rem; height: 1.5rem; margin-inline-end: .25rem; color: var(--text-action-high-blue-france); background: transparent; }
.studio-wpanel { flex: 1 1 0; min-height: 0; overflow: auto; padding: 1rem; }
/* `Flow` fills its container: without a height the schema canvas would not show at all. */
.studio-schema-canvas { position: relative; height: 70vh; min-height: 28rem; border: 1px solid var(--border-default-grey); }
.studio-editor__main .studio-schema-canvas { height: 100%; min-height: 0; border: 0; }
.studio-schema-list { padding: 1rem; }

/* Trial and examples (E8, E9). A traced node is told by its heavier border as well as its colour. */
.flow-node.is-traced { border-color: var(--border-active-blue-france); border-width: 3px; }
.studio-rail__button { position: relative; }
.studio-rail__dot { position: absolute; top: .375rem; right: .375rem; width: .625rem; height: .625rem; border-radius: 50%; background: var(--background-flat-error); }
.studio-rail__dot[hidden] { display: none; }
.studio-editor__workspace { position: relative; }
.studio-trial-banner { position: absolute; inset-inline: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding: .5rem; background: var(--background-default-grey); border-block-start: 2px solid var(--border-active-blue-france); }
.studio-trial__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: .75rem; }
.studio-trial__steps { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.studio-trial__stream { max-height: 18rem; overflow: auto; margin-block-end: 1rem; padding: .5rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--background-alt-grey); }
.studio-trial__stream p { margin-block-end: .5rem; }
.studio-trial__question { margin-block: .75rem; padding: .75rem; border-inline-start: 4px solid var(--border-active-blue-france); background: var(--background-alt-blue-france); }
.studio-trial__proposals { list-style: none; margin: 0 0 1rem; padding: 0; }
.studio-trial__proposals li { margin-block-end: .75rem; padding: .5rem; border: 1px solid var(--border-default-grey); }
.studio-example { padding-block: .5rem; border-block-end: 1px solid var(--border-default-grey); }
.studio-example__actions { display: inline-flex; gap: .25rem; margin-inline-start: .5rem; }
.studio-example-row { margin-block-end: 1rem; padding: .5rem; border: 1px solid var(--border-default-grey); }

/* Assistant page: a side menu of sections, one section shown at a time. */
.studio-assistant-menu { flex-basis: 14rem; }
.studio-assistant-menu [aria-current="true"] { background: var(--background-action-low-blue-france); box-shadow: inset 3px 0 0 var(--border-active-blue-france); }
.studio-assistant-section { padding: 1rem 1.5rem; }
.studio-assistant-section [hidden] { display: none; }
.studio-starter-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.studio-starter-row { display: flex; align-items: center; gap: .5rem; border-block-end: 1px solid var(--border-default-grey); }
.studio-starter-row__main { flex: 1 1 0; min-width: 0; display: flex; gap: .75rem; align-items: baseline; padding: .5rem; text-align: start; background: transparent; }
.studio-starter-row__main[aria-expanded="true"] { background: var(--background-action-low-blue-france); }
.studio-starter-row__main strong, .studio-starter-row__summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-starter-row__main strong { flex: 0 0 auto; max-width: 40%; }
.studio-starter-row__summary { flex: 1 1 0; min-width: 0; color: var(--text-mention-grey); }
.studio-starter { margin-block: 1rem; }

/* Platform administration of the LLM providers and models */
/* LLM administration: rows of providers and models, actions on the right. */
.llm-rows { list-style: none; padding: 0; margin: 0 0 2rem; }
.llm-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .75rem; border-top: 1px solid var(--border-default-grey); }
.llm-row__main p { margin: 0; }
.llm-row__title { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.llm-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.llm-row__actions .fr-checkbox-group { margin: 0; }
.llm-group { margin-block: 1.5rem .5rem; }
.llm-remote { max-height: 16rem; overflow-y: auto; margin-block-end: 1rem; }
.llm-details { margin-block: 1rem; }
.llm-details summary { cursor: pointer; margin-block-end: 1rem; color: var(--text-action-high-blue-france); }
.studio-code { max-height: 24rem; overflow: auto; margin-block: .5rem; padding: .5rem; font-size: .8125rem; white-space: pre; background: var(--background-alt-grey); border: 1px solid var(--border-default-grey); }
.studio-diff { list-style: none; padding: 0; }
.studio-diff > li { margin-block-end: 1rem; }
.studio-diff__added, .studio-diff__removed, .studio-diff__same { display: block; }
.studio-diff__added { background: var(--background-contrast-success); }
.studio-diff__removed { background: var(--background-contrast-error); }
.studio-compare { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-block-end: 1rem; }

/* Studio form: a label with an action on its right, top-aligned. DSFR has no utility class for
   it, and `style-src 'self'` refuses an inline style (R109), so it lives here. */
.studio-label-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
/* The summary of the suggestions by part (design §2.1): one line per part, a button. */
.lx-progress { margin: 0 0 .5rem; }
.lx-parts { list-style: none; margin: .5rem 0; padding: 0; }
.lx-parts > li { padding: 0 !important; }
.lx-part { align-items: center; background: none; border: 0; border-top: 1px solid var(--border-default-grey); cursor: pointer; display: flex; font: inherit; gap: .5rem; min-height: 2.5rem; padding: .25rem 0; text-align: left; width: 100%; }
.lx-part:hover { background-color: var(--background-default-grey-hover); }
.lx-part__label { flex: 1 1 auto; }
.lx-part__count { background-color: var(--background-contrast-grey); color: var(--text-mention-grey); }
/* What still lacks something, highlighted in the text: a dashed outline too, not colour alone. */
.lx-editor [data-todo] { background-color: var(--background-contrast-warning); cursor: text; outline: 1px dashed var(--border-plain-warning); outline-offset: 1px; }
/* A citation no tool attested (ADR-0036): a left rule and a label in the text, not colour
   alone; the list is in the block's title, the panel and the review bar say it in words. */
.lx-editor [data-unverified] { border-left: 3px solid var(--border-plain-warning); padding-left: .5rem; }
.lx-editor [data-unverified]::before { color: var(--text-default-warning); content: "Citation non vérifiée sur Légifrance"; display: block; font-size: .75rem; font-weight: 700; }
.lx-unverified { margin: .25rem 0; }
.lx-unverified__list { margin: .25rem 0 0; overflow-wrap: anywhere; }
.lx-panel-more { margin: 1rem 0; }
.lx-panel-more > summary { cursor: pointer; font-size: .875rem; margin-bottom: .5rem; }
/* The bar follows the width of the act's column (a container query, not the window's: the
   panels take their share): one line from 30rem, keys without their words under 62rem (the
   words stay for assistive technologies). */
.lx-editor__desk { container: lx-desk / inline-size; }
@container lx-desk (min-width: 30rem) {
  .lx-review-bar { flex-wrap: nowrap; gap: 0 .75rem; }
  .lx-review-bar__keys { flex-wrap: nowrap; gap: 0 .25rem; white-space: nowrap; }
  .lx-review-bar__todo { flex: 0 1 auto; max-width: 10rem; }
}
@container lx-desk (max-width: 62rem) {
  .lx-key-label { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
}
/* Legal citations (design 2026-11-17 §10, maquette `marque-citation.html`): the mark is
   underlined neutral, its state is in the pill after it (form and name, never the color alone). */
.lx-editor__page [data-cite] { text-decoration: underline dotted var(--text-mention-grey); text-underline-offset: 3px; }
.lx-editor__page [data-cite-state="repealed"] { text-decoration: line-through 1px var(--text-default-error); }
.lx-editor__page .lx-cite--current { background-color: var(--background-contrast-info); }
.lx-pill {
  align-items: center; background: none; border: 1px solid currentColor; border-radius: .7rem; cursor: pointer;
  display: inline-flex; font: 700 .75rem/1 Marianne, sans-serif; height: 1.35rem; justify-content: center;
  margin: 0 .15rem; min-width: 1.35rem; padding: 0 .25rem; vertical-align: .1em;
}
.lx-pill::before { --icon-size: .9rem; }
.lx-pill[data-state="verified"], .lx-pill[data-state="confirmed"] { background: var(--background-contrast-success); color: var(--text-default-success); }
.lx-pill[data-state="unconfirmed"] { background: var(--background-contrast-warning); color: var(--text-default-warning); }
.lx-pill[data-state="repealed"] { background: var(--background-contrast-error); color: var(--text-default-error); }
.lx-pill[data-state="modified"] { background: var(--background-contrast-info); color: var(--text-default-info); }
.lx-pill:focus-visible { outline: 2px solid #0a76f6; outline-offset: 2px; }
.lx-citations__kind { color: var(--text-mention-grey); }
.lx-citations__meta { font-size: .85rem; margin: 0 0 .25rem; }
.lx-citations__occ { font-size: .85rem; margin: .25rem 0 0; padding-left: 1.1rem; }
/* The reader of a cited text (design 2026-11-17 §8.1): large, full screen below 992px. */
.lx-reader__path { color: var(--text-mention-grey); }
.lx-reader__text { font-size: .95rem; line-height: 1.7; }
.lx-reader__text mark { background: var(--background-contrast-yellow-tournesol); color: inherit; }
.lx-reader__foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.lx-reader__link { margin-inline-start: auto; }
@media (max-width: 61.99em) { .lx-reader .fr-modal__body { min-height: 100vh; } }
.lx-citations__table td, .lx-citations__table th { font-size: .85rem; }
.lx-excerpt { background: var(--background-alt-grey); border-left: 4px solid var(--border-default-blue-france); font-size: .9rem; margin: .75rem 0; padding: .75rem 1rem; }
