/* Bibliothèque des ads (Neo 28/10/2026) : toutes nos pubs, triables et filtrables, et les croisements format × message / persona.
   v3 du 28/10 : en-tête sur une ligne, 4 chiffres, filtres en pastilles, fiche d'une pub à droite. */
#biblio { position: fixed; inset: 0; z-index: 210; background: var(--page); display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); outline: none; }
#biblio > * { min-width: 0; }
.b-tete { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 24px 14px; border-bottom: 1px solid var(--ring); background: linear-gradient(180deg, var(--side), var(--page)); }
.b-l1 { display: flex; align-items: center; gap: 16px; }
.b-l1 h2 { font: 700 26px/1 var(--display); letter-spacing: -.01em; margin-right: auto; }
.b-vues { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ring); }
.b-vues button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.b-vues button:hover { color: var(--text); }
.b-vues button.on { background: var(--lime); color: var(--on-lime); }
.b-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: var(--tile); color: var(--text2); font-size: 14px; cursor: pointer; }
.b-x:hover { background: var(--tile-hover); color: var(--text); }

.b-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.b-kpi > div { padding: 12px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring); }
.b-kpi span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.b-kpi b { font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.b-kpi b small { font: 500 13px var(--sans); color: var(--muted); }

.b-barre { display: flex; gap: 12px; align-items: center; }
.b-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 0; }
.b-chip { flex: none; display: inline-flex; align-items: center; height: 32px; border-radius: 999px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ring); overflow: hidden; }
.b-chip button { height: 100%; border: 0; background: transparent; padding: 0 12px; font-size: 13px; color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.b-chip button:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.b-chip i { font-style: normal; font-size: 10px; opacity: .6; }
.b-chip.on { background: var(--lime-10); box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-chip.on button { color: var(--lime); }
.b-chip.on b { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.b-chip .b-chip-x { padding: 0 10px 0 4px; font-size: 11px; }
.b-sep { width: 1px; height: 20px; background: var(--ring2); margin: 0 4px; }
.b-raz { flex: none; height: 32px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.b-raz:hover { color: var(--text); }
.b-cherche { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ring); }
.b-cherche:focus-within { box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-cherche svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.b-cherche input { width: 200px; min-height: 0; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 13px; outline: none; }
.b-barre > .b-cherche { flex: none; }

/* menu d'une pastille : chaque choix avec ses pubs et son rendement */
.b-pop { position: fixed; z-index: 230; width: 320px; max-height: min(460px, 70vh); display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--ring2), 0 18px 48px rgba(0, 0, 0, .55); }
.b-pop .b-cherche { height: 34px; } .b-pop .b-cherche input { width: 100%; }
.b-pop-t, .b-pop-l button { display: grid; grid-template-columns: 1fr 44px 62px; gap: 8px; align-items: center; }
.b-pop-t { padding: 2px 10px; font-size: 11px; color: var(--muted); } .b-pop-t span:not(:first-child) { text-align: right; }
.b-pop-l { overflow: auto; display: grid; gap: 2px; }
.b-pop-l button { position: relative; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13px; cursor: pointer; overflow: hidden; }
.b-pop-l button:hover { background: var(--tile); }
.b-pop-l button.on { background: var(--lime-10); color: var(--lime); }
.b-pop-l button.vide span { color: var(--amber); }
.b-pop-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.b-pop-l small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; position: relative; }
.b-pop-l b { text-align: right; font: 700 14px var(--display); font-variant-numeric: tabular-nums; position: relative; }
.b-pop-l b.peu { color: var(--muted); font-weight: 500; }
.b-pop-l i { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: var(--muted); opacity: .35; }
.b-pop-l i.bon { background: var(--lime); opacity: .6; } .b-pop-l i.moyen { background: var(--amber); opacity: .6; } .b-pop-l i.mauvais { background: var(--red); opacity: .6; }

.b-corps { overflow: auto; padding: 16px 24px 40px; min-height: 0; }
.b-tab { overflow: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ring2); background: var(--card); }
.b-tab table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.b-tab thead th { position: sticky; top: 0; z-index: 2; background: var(--side); text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 11px 10px; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 1px solid var(--ring2); }
.b-tab thead th:hover, .b-tab thead th.on { color: var(--text); }
.b-tab thead th i { font-style: normal; color: var(--lime); margin-left: 4px; }
.b-tab td { padding: 7px 10px; border-top: 1px solid var(--ring); vertical-align: middle; }
.b-tab tbody tr:first-child td { border-top: 0; }
.b-tab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-tab tbody tr[data-pub] { cursor: pointer; transition: background .12s; }
.b-tab tbody tr[data-pub]:hover td { background: rgba(255, 255, 255, .03); }
.b-tab tbody tr.sel td { background: var(--lime-10); }
.b-v { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--tile); }
.b-v img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-v i, .b-fv i { font: 700 12px var(--display); color: var(--muted); font-style: normal; }
.b-nom { min-width: 220px; max-width: 300px; }
.b-nom b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-nom small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; margin-top: 2px; }
.b-regie { flex: none; display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 5px; font: 600 10px var(--display); letter-spacing: .03em; background: rgba(66, 133, 244, .16); color: #8ab4ff; margin-right: 6px; }
.b-regie.tiktok { background: rgba(255, 0, 80, .14); color: #ff7aa0; }
.b-win { font-style: normal; color: var(--lime); margin-right: 6px; }
.b-e { white-space: nowrap; max-width: 150px; }
.b-tab thead th[data-tri=format] { border-left: 1px solid var(--ring2); } .b-tab td[data-ed=format] { border-left: 1px solid var(--ring); }
.b-e span { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 3px 8px; margin: -3px -8px; border-radius: 7px; }
.b-e:hover span { background: var(--tile); box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-e.vide span { color: var(--amber); opacity: .55; }
.b-e.vide:hover span { opacity: 1; }
.b-e.neo span { color: var(--lime); }
.b-e select, .b-fe select { width: auto; max-width: 170px; height: 28px; min-height: 0; padding: 0 4px; border: 0; border-radius: 7px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--lime-24); color: var(--text); font-size: 13px; }
.b-dep { position: relative; min-width: 96px; }
.b-dep span { position: relative; z-index: 1; }
.b-dep i { position: absolute; right: 10px; bottom: 6px; height: 3px; width: calc((100% - 20px) * var(--w) / 100); border-radius: 2px; background: var(--ring2); }
.b-r { display: inline-block; min-width: 52px; padding: 3px 8px; border-radius: 7px; font-weight: 700; }
.b-r.bon { background: rgba(209, 254, 23, .12); } .b-r.moyen { background: var(--amber-10); } .b-r.mauvais { background: var(--red-10); }
.bon { color: var(--lime); } .moyen { color: var(--amber); } .mauvais { color: var(--red); }
.b-plus { display: flex; align-items: center; gap: 10px; margin: 16px auto 0; height: 42px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--tile); color: var(--text); font-weight: 600; cursor: pointer; }
.b-plus:hover { background: var(--tile-hover); } .b-plus small { color: var(--muted); font-weight: 500; }
.b-rien { padding: 40px; text-align: center; }

/* croisements */
.b-leg { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.b-leg span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: currentColor; vertical-align: -1px; }
.b-leg .peu { color: var(--muted); } .b-leg .vide::before { background: transparent; box-shadow: inset 0 0 0 1px var(--lime); }
.b-leg .etoile::before { display: none; } .b-leg .etoile { color: var(--lime); }
.b-mat thead th { cursor: default; text-align: center; } .b-mat thead th:first-child { text-align: left; }
.b-mat tbody th { position: sticky; left: 0; z-index: 1; background: var(--side); text-align: left; font-weight: 600; padding: 8px 12px; white-space: nowrap; border-top: 1px solid var(--ring); }
.b-mat td.b-c { position: relative; min-width: 116px; padding: 10px; text-align: center; cursor: pointer; transition: filter .12s; }
.b-mat td.b-c[data-f]:hover { filter: brightness(1.25); box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-c b { display: block; font: 700 20px/1.1 var(--display); }
.b-c small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; margin-top: 2px; }
.b-c em { position: absolute; top: 6px; right: 8px; font: 600 11px var(--display); font-style: normal; color: var(--lime); }
.b-c.bon { background: rgba(209, 254, 23, .12); } .b-c.moyen { background: var(--amber-10); } .b-c.mauvais { background: var(--red-10); }
.b-c.peu b { color: var(--text2); font-weight: 500; }
.b-c.vide { cursor: default; } .b-c.vide span { display: inline-block; padding: 3px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--lime-24); color: var(--lime); font-size: 11px; opacity: .6; }
.b-c.tot { cursor: default; background: rgba(255, 255, 255, .03); } .b-c.tot b { color: var(--text); font-size: 16px; }
.b-mat tr.tot th { background: var(--side); }

/* fiche d'une pub */
#b-fiche { position: fixed; top: 0; right: 0; bottom: 0; z-index: 220; width: min(400px, 100vw); overflow: auto; padding: 20px; background: var(--card);
  box-shadow: -1px 0 0 var(--ring2), -24px 0 60px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 14px; animation: b-fiche .2s var(--ease) both; }
@keyframes b-fiche { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
#b-fiche > .b-x { position: absolute; top: 14px; right: 14px; z-index: 1; }
.b-fv { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--tile); flex: none; }
.b-fv img { width: 100%; height: 100%; object-fit: contain; background: #000; }
#b-fiche h3 { font: 700 19px/1.2 var(--display); }
#b-fiche > p.muted { display: flex; align-items: center; flex-wrap: wrap; font-size: 12px; gap: 2px; }
.b-fk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-fk > div { padding: 10px 12px; border-radius: 12px; background: var(--tile); }
.b-fk span { display: block; font-size: 11px; color: var(--muted); }
.b-fk b { font: 700 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.b-fk.sept > div { background: transparent; box-shadow: inset 0 0 0 1px var(--ring); }
.b-fk.sept b { font-size: 15px; }
.b-fe { display: grid; grid-template-columns: 96px 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.b-fe dt { color: var(--muted); padding: 6px 0; }
.b-fe dd { margin: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.b-fe dd:hover { background: var(--tile); box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-fe dd.vide { color: var(--amber); } .b-fe dd.neo { color: var(--lime); }
.b-ft { font-size: 13px; color: var(--text2); white-space: pre-wrap; }
.b-ft span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.b-voir { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-weight: 700; flex: none; }
.b-voir:hover { text-decoration: none; filter: brightness(1.05); }

@media (max-width: 900px) {
  .b-tete { padding: 14px 14px 12px; gap: 12px; } .b-corps { padding: 12px 12px 40px; }
  .b-l1 { flex-wrap: wrap; gap: 10px; } .b-l1 h2 { font-size: 22px; }
  .b-vues { order: 3; width: 100%; } .b-vues button { flex: 1; padding: 0 6px; }
  .b-kpi { grid-template-columns: repeat(2, 1fr); gap: 8px; } .b-kpi b { font-size: 20px; }
  .b-barre { flex-direction: column-reverse; align-items: stretch; } .b-cherche input { width: 100%; }
  .b-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .b-sep { flex: none; }
}

/* v4 du 28/10 : « Ce qui marche » (combinaisons, meilleures pubs, classements), filtres secondaires, croisement au choix */
.b-chip.plus button { color: var(--muted); }
.b-pop-plus { width: 220px; } .b-pop-plus .b-pop-l button { grid-template-columns: 1fr auto; } .b-pop-plus i { position: static; opacity: .6; font-style: normal; background: none; height: auto; width: auto; }
.b-bloc { margin-bottom: 22px; }
.b-bloc > h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font: 700 16px var(--display); }
.b-bloc > h3 small { font: 500 12px var(--sans); color: var(--muted); }
.b-combos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.b-combo { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; border: 0; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ring2); text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.b-combo:hover { box-shadow: inset 0 0 0 1px var(--lime-24); transform: translateY(-1px); }
.b-cv { display: grid; place-items: center; width: 72px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--tile); }
.b-cv img { width: 100%; height: 100%; object-fit: cover; }
.b-cv i, .b-mv i { font: 700 12px var(--display); color: var(--muted); font-style: normal; }
.b-cr { display: flex; align-items: baseline; gap: 6px; margin: 0; } .b-cr b { font: 700 24px/1 var(--display); } .b-cr small { color: var(--muted); font-size: 12px; }
.b-ctags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.b-ctags span { padding: 2px 8px; border-radius: 999px; background: var(--tile); font-size: 12px; color: var(--text); }
.b-ctags span:first-child { background: var(--lime-10); color: var(--lime); }
.b-combo > div > small { color: var(--muted); font-size: 12px; }
.b-meill { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.b-mp { flex: none; width: 128px; padding: 0; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring2); overflow: hidden; cursor: pointer; text-align: left; transition: box-shadow .15s; }
.b-mp:hover { box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-mv { display: grid; place-items: center; width: 128px; height: 160px; background: var(--tile); overflow: hidden; }
.b-mv img { width: 100%; height: 100%; object-fit: cover; }
.b-mp > span { display: block; padding: 8px 10px; } .b-mp b { font: 700 16px var(--display); display: block; }
.b-mp small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.b-class { padding: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring2); }
.b-class h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font: 700 14px var(--display); }
.b-class h3 small { font: 500 11px var(--sans); color: var(--amber); opacity: .8; }
.b-class ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.b-class li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px 38px; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; cursor: pointer; font-size: 13px; }
.b-class li:hover { background: var(--tile); } .b-class li.on { background: var(--lime-10); box-shadow: inset 0 0 0 1px var(--lime-24); }
.b-rang { color: var(--muted); font: 600 11px var(--display); grid-row: span 2; }
.b-lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-barre-r { height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; }
.b-barre-r i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--muted); }
.b-barre-r i.bon { background: var(--lime); } .b-barre-r i.moyen { background: var(--amber); } .b-barre-r i.mauvais { background: var(--red); }
.b-class li b { text-align: right; font: 700 14px var(--display); }
.b-class li small { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.b-peu { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 10px 0 0; font-size: 12px; }
.b-peu > span { color: var(--muted); margin-right: 2px; }
.b-peu button { height: 24px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--tile); color: var(--text2); font-size: 12px; cursor: pointer; }
.b-peu button:hover { color: var(--text); }
.b-peu em { padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--lime-24); color: var(--lime); font-style: normal; opacity: .75; }
.b-vide { font-size: 13px; }
.b-axes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.b-axes label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.b-axes select { width: auto; min-height: 0; height: 32px; padding: 0 8px; border: 0; border-radius: 9px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--ring2); color: var(--text); font-size: 13px; }
.b-inv { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--tile); color: var(--text2); cursor: pointer; }
.b-axes .b-leg { margin: 0 0 0 auto; }
.b-acc { padding: 10px 12px; border-radius: 12px; background: var(--tile); font: 600 15px/1.35 var(--display); }
@media (max-width: 900px) { .b-axes .b-leg { margin: 4px 0 0; width: 100%; } .b-classes { grid-template-columns: 1fr; } }
/* les boutons de Lucid Ads ont une hauteur fixe (style.css) : les cartes cliquables reprennent leur forme */
#biblio .b-combo { display: grid; height: auto; justify-content: stretch; white-space: normal; font-weight: 500; font-size: 13px; padding: 10px; }
#biblio .b-mp { display: block; height: auto; white-space: normal; font-weight: 500; padding: 0; }
#biblio .b-combo:active, #biblio .b-mp:active { transform: scale(.99); }
#biblio .b-pop-l button { display: grid; justify-content: stretch; font-weight: 500; white-space: nowrap; }
#biblio .b-chip button { height: 100%; padding: 0 12px; border-radius: 0; font-weight: 500; }
#biblio .b-chip .b-chip-x { padding: 0 10px 0 4px; }
#biblio .b-vues button { font-weight: 600; } #biblio .b-vues button:active { transform: none; }

/* v5 du 28/10 : période, Itérer, À tester ensuite, vérification des étiquettes */
.b-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.b-per { display: flex; flex-direction: column; gap: 2px; padding: 3px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring); }
#biblio .b-per button { height: auto; flex: 1; padding: 0 12px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
#biblio .b-per button:hover { color: var(--text); } #biblio .b-per button.on { background: var(--tile-hover); color: var(--text); }
#biblio .b-verif-btn { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--amber-10); color: var(--amber); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 176, 31, .3); }
#biblio .b-verif-btn b { padding: 1px 7px; border-radius: 999px; background: var(--amber); color: var(--on-lime); font-size: 12px; }
.b-l1 h2 { margin-right: 0; } .b-l1 .b-vues { margin-left: auto; }
.b-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#biblio .b-iter { height: 30px; padding: 0 12px; border-radius: 9px; background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 700; flex: none; }
#biblio .b-iter:hover { filter: brightness(1.05); }
#biblio .b-iter.fait, #biblio .b-iter:disabled { background: var(--tile); color: var(--lime); opacity: 1; box-shadow: inset 0 0 0 1px var(--lime-24); cursor: default; }
.b-chips .b-iter { margin-left: 4px; }
.b-combo { cursor: pointer; } .b-combo .b-iter { margin-top: 8px; }
.b-essais { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.b-essai { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--lime-24); background-image: linear-gradient(135deg, var(--lime-10), transparent 60%); }
.b-essai .b-ctags { margin: 0; } .b-essai small { color: var(--muted); font-size: 12px; line-height: 1.35; } .b-essai .b-iter { margin-top: auto; }
.b-factions { display: flex; gap: 8px; } .b-factions .b-iter { height: 42px; flex: 1; font-size: 13px; } .b-factions .b-voir { flex: 1; background: var(--tile); color: var(--text); }
.b-verif { position: absolute; inset: 0; z-index: 225; background: var(--page); display: grid; grid-template-rows: auto 1fr auto; outline: none; }
.b-vtop { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--ring); } .b-vtop b { font: 700 20px var(--display); }
.b-vcorps { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 620px); gap: 28px; justify-content: center; align-items: start; padding: 22px; overflow: auto; min-height: 0; }
.b-vv { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; max-height: calc(100vh - 260px); border-radius: 16px; overflow: hidden; background: var(--tile); }
.b-vv img { width: 100%; height: 100%; object-fit: contain; background: #000; } .b-vv i { font: 700 14px var(--display); color: var(--muted); font-style: normal; }
.b-vinfo { display: flex; flex-direction: column; gap: 10px; } .b-vinfo h3 { font: 700 20px/1.2 var(--display); }
.b-vinfo > p.muted { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.b-voir.petit { align-self: flex-start; height: 34px; padding: 0 14px; font-size: 13px; background: var(--tile); color: var(--text); }
.b-vchoix { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 6px; }
.b-vchoix > span { width: 100%; font-size: 12px; color: var(--muted); }
#biblio .b-vchoix button { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--tile); color: var(--text2); font-size: 13px; font-weight: 500; }
#biblio .b-vchoix button:hover { color: var(--text); } #biblio .b-vchoix button.on { background: var(--lime); color: var(--on-lime); font-weight: 700; }
.b-vfin { display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; grid-row: 1 / -1; } .b-vfin h2 { font: 700 30px var(--display); }
@media (max-width: 900px) {
  .b-kpi { grid-template-columns: repeat(2, 1fr); } .b-per { grid-column: 1 / -1; flex-direction: row; } #biblio .b-per button { height: 30px; }
  .b-l1 .b-vues { margin-left: 0; } .b-vcorps { grid-template-columns: 1fr; padding: 14px; } .b-vv { max-height: 46vh; }
}
#biblio .b-x { padding: 0; flex: none; }
.b-combo > div { display: flex; flex-direction: column; align-items: flex-start; }

/* v6 du 28/10 (Neo : « pas trop d'infos, que Nils comprenne ») : un gros chiffre, trois blocs numérotés */
#biblio .b-kpi { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.b-gros { display: flex; align-items: baseline; gap: 10px; }
.b-gros b { font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.b-gros span { color: var(--text2); font-size: 14px; }
.b-detail { margin: 0; color: var(--muted); font-size: 13px; }
#biblio .b-per { flex-direction: row; margin-left: auto; padding: 3px; border-radius: 12px; background: var(--tile); box-shadow: none; }
#biblio .b-per button { height: 30px; flex: none; }
#biblio .b-verif-btn { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--ring2); font-weight: 500; }
#biblio .b-verif-btn:hover { color: var(--text); }
.b-marche { max-width: 1200px; }
.b-bloc > h3 { align-items: center; font-size: 18px; margin-bottom: 12px; }
.b-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font: 700 13px var(--display); }
.b-bloc { margin-bottom: 28px; }
.b-combos, .b-essais, .b-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-combo { grid-template-columns: 96px 1fr; padding: 12px; }
.b-cv { width: 96px; height: 120px; }
.b-cr b { font-size: 28px; } .b-combo .b-ctags span { font-size: 13px; }
.b-essai small { font-size: 13px; color: var(--text2); }
.b-class li { grid-template-columns: 18px minmax(0, 1fr) 80px 52px; grid-template-rows: auto; padding: 8px; font-size: 14px; }
.b-class h3 { font-size: 15px; }
#biblio .b-voir-aussi { height: auto; margin-top: 10px; padding: 6px 0; background: none; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
#biblio .b-voir-aussi:hover { color: var(--text); background: none; }
@media (max-width: 1100px) { .b-combos, .b-essais, .b-classes { grid-template-columns: 1fr; } }
@media (max-width: 900px) { #biblio .b-per { margin-left: 0; } .b-gros b { font-size: 28px; } }
#biblio .b-kpi > .b-gros, #biblio .b-kpi > .b-detail { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.b-detail { white-space: nowrap; }

/* v9 du 28/10 : régie (Meta par défaut, + TikTok), envoi au monteur ou au static maker prévu mais éteint */
.b-chip.regie button { color: var(--text); font-weight: 600; } .b-chip.regie i { font-style: normal; font-size: 12px; color: var(--muted); opacity: 1; font-weight: 500; }
.b-chip.regie.on { background: var(--tile); box-shadow: inset 0 0 0 1px var(--ring2); } .b-chip.regie.on button { color: var(--text); }
.b-envoi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; font-size: 12px; color: var(--muted); }
#biblio .b-envoi button { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--tile); color: var(--text2); }
#biblio .b-envoi button:disabled { opacity: .45; cursor: not-allowed; }
.b-envoi em { font-style: normal; font-size: 11px; color: var(--muted); }
.b-pop-envoi { width: auto; padding: 12px; }
#biblio .b-mat td.b-c.vide[data-essai] { cursor: pointer; }
