.p-bibliotheques .biblio{padding-top: 14px}
.p-bibliotheques .biblio h1{font-size: 27px}
.p-bibliotheques .biblio .page-tete{margin-bottom: 14px}
.p-bibliotheques .rangement{display: grid;grid-template-columns: repeat(4,minmax(0,1fr));gap: 10px;margin:10px 0 6px}
.p-bibliotheques .rangement div{display: flex;gap: 10px;align-items: flex-start;padding: 10px 12px;border: 1px solid var(--bord);border-radius: var(--r-m);background: var(--surface);font-size: 12.5px;color: var(--texte-3);line-height: 1.4}
.p-bibliotheques .rangement b{display: block;color: var(--texte);font-weight: 600;font-size: 13px}
.p-bibliotheques .rangement .ic{color: var(--accent);margin-top: 1px}
.p-bibliotheques .outils{display: flex;flex-wrap: wrap;align-items: center;gap: 10px;margin-bottom: 12px}
.p-bibliotheques .outils .recherche{position: relative;width: 340px}
.p-bibliotheques .outils #f-agent{width: auto;max-width: 220px}
.p-bibliotheques .agents-skill{margin-top: 2px}
.p-bibliotheques .outils .recherche .ic{position: absolute;left: 10px;top: 50%;transform: translateY(-50%);color: var(--texte-3)}
.p-bibliotheques .outils .recherche input{padding-left: 34px}
.p-bibliotheques .outils .stats{margin-left: auto;font-size: 12.5px;color: var(--texte-3);white-space: nowrap}
.p-bibliotheques .outils .segmente button{white-space: nowrap}
.p-bibliotheques .tab-comp .proprio{white-space: nowrap}
.p-bibliotheques .tab-comp{border: 1px solid var(--bord);border-radius: var(--r-l);background: var(--surface);overflow: hidden}
.p-bibliotheques .tab-comp .tableau td{padding: 8px 12px}
.p-bibliotheques .tab-comp tbody tr{cursor: pointer}
.p-bibliotheques .tab-comp .idc{font-family: var(--mono);font-size: 13px;font-weight: 600;color: var(--texte);background: none;border: 0;padding: 0;text-align: left}
.p-bibliotheques .tab-comp .idc:hover{color: var(--accent)}
.p-bibliotheques .tab-comp .desc{font-size: 12.5px;color: var(--texte-3)}
.p-bibliotheques .tab-comp .apps{display: flex;gap: 4px;flex-wrap: wrap}
.p-bibliotheques .tab-comp .num{text-align: right;color: var(--texte-3);font-variant-numeric: tabular-nums;white-space: nowrap}
.p-bibliotheques .vers{font-family: var(--mono);font-size: 12px}
.p-bibliotheques .versions{display: grid;gap: 8px}
.p-bibliotheques .version{border: 1px solid var(--bord);border-radius: var(--r-m);padding: 10px 12px;background: var(--surface)}
.p-bibliotheques .version.actuelle{border-color: var(--accent)}
.p-bibliotheques .version ul{margin: 6px 0 0;padding-left: 18px;font-size: 13px;color: var(--texte-2)}
.p-bibliotheques .tiroir h3{margin-top: 18px}
.p-bibliotheques .tiroir:not(.ouvert){box-shadow: none}
.p-bibliotheques .memoire{display: grid;grid-template-columns: minmax(0,1fr) 340px;gap: 16px}
.p-bibliotheques .fiche{border: 1px solid var(--bord);border-left: 3px solid var(--accent);border-radius: var(--r-l);background: var(--surface);padding: 14px 16px;margin-bottom: 14px}
.p-bibliotheques .fiche dl{display: grid;grid-template-columns: 120px 1fr;gap: 4px 12px;font-size: 13px;margin: 8px 0 0}
.p-bibliotheques .fiche dt{color: var(--texte-3)}
.p-bibliotheques .fiche dd{margin: 0}
.p-bibliotheques .resultats{display: grid;gap: 8px}
.p-bibliotheques .res{border: 1px solid var(--bord);border-radius: var(--r-m);background: var(--surface);padding: 10px 14px}
.p-bibliotheques .res:hover{border-color: var(--bord-fort)}
.p-bibliotheques .res .t{font-weight: 600;font-size: 14px;margin: 3px 0 2px}
.p-bibliotheques .res .x{font-family: var(--serif);font-size: 14.5px;color: var(--texte-2);line-height: 1.45}
.p-bibliotheques .res mark{background: var(--att-doux);color: inherit;border-radius: 3px;padding: 0 2px}
.p-bibliotheques .res .src{font-size: 12px;color: var(--texte-3);display: flex;gap: 8px;align-items: center;margin-top: 4px}
.p-bibliotheques .note textarea{width: 100%;min-height: 118px;resize: vertical;font-size: 13.5px;line-height: 1.45}
.p-bibliotheques .filtre-secret{display: flex;gap: 6px;align-items: center;font-size: 12.5px;margin: 8px 0 10px}
.p-bibliotheques .filtre-secret.ok{color: var(--ok)}
.p-bibliotheques .filtre-secret.err{color: var(--err)}
.p-bibliotheques .chrono{list-style: none;margin: 8px 0 0;padding: 0 0 0 14px;border-left: 2px solid var(--bord);display: grid;gap: 10px;font-size: 13px}
.p-bibliotheques .chrono li{position: relative}
.p-bibliotheques .chrono li::before{content: "";position: absolute;left: -20px;top: 5px;width: 10px;height: 10px;border-radius: 50%;background: var(--surface);border: 2px solid var(--bord-fort)}
.p-bibliotheques .chrono li.nouveau::before{border-color: var(--accent);background: var(--accent)}
.p-bibliotheques .chrono .q{font-size: 11.5px;color: var(--texte-3)}
.p-bibliotheques .types{display: flex;gap: 6px}
.p-bibliotheques .types button{border: 1px solid var(--bord);background: var(--surface);border-radius: 999px;padding: 3px 11px;font-size: 12.5px;color: var(--texte-2)}
.p-bibliotheques .types button[aria-pressed="true"]{background: var(--texte);color: var(--fond);border-color: var(--texte)}
/* Onglet Composants (lot E2, EX-85) : la page autour des cartes ; les composants eux-mêmes ne sont habillés que par
   css/composants/theme-eben.css. */
.p-bibliotheques .onglets{margin-bottom: 14px}
.p-bibliotheques .bande-cmp{display: flex;gap: 10px;align-items: center;flex-wrap: wrap;border: 1px solid var(--bord);border-radius: var(--r-m);background: var(--surface-2);padding: 9px 12px;font-size: 13px;margin: 0 0 12px}
.p-bibliotheques .bande-cmp .pousse,.p-bibliotheques .filtres-cmp .pousse{margin-left: auto}
.p-bibliotheques .bande-cmp .note{flex-basis: 100%}
/* Une bibliothèque : nom, licence (vérifiée, à vérifier, non acceptée), état (proposée ou pas), et pour les
   administrateurs ce que dit la licence et l'action « Proposer aux projets » / « Ne plus proposer » (retour d'Elie,
   17/11). */
.p-bibliotheques .libs-cmp{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));gap: 8px;flex-basis: 100%;min-width: 0;align-items: start}
.p-bibliotheques .lib-cmp{display: flex;flex-direction: column;gap: 5px;max-width: 100%;min-width: 0;overflow-wrap: anywhere;font-size: 12px;padding: 8px 10px;border-radius: 8px;border: 1px solid var(--bord-fort);background: var(--surface);color: var(--texte-2)}
.p-bibliotheques .lib-cmp.non{border-style: dashed}
.p-bibliotheques .lib-cmp .lib-tete{display: flex;flex-wrap: wrap;gap: 6px;align-items: baseline}
.p-bibliotheques .lib-cmp .lib-tete b{color: var(--texte);font-size: 13px}
.p-bibliotheques .lib-cmp .lic{font-size: 11px;color: var(--att)}
.p-bibliotheques .lib-cmp .lic.ok{color: var(--ok)}
.p-bibliotheques .lib-cmp .lic.ko{color: var(--err)}
.p-bibliotheques .lib-cmp .etat-lib{font-size: 11px;padding: 1px 7px;border-radius: 999px;background: var(--surface-2);color: var(--texte-2)}
.p-bibliotheques .lib-cmp .etat-lib.oui{background: var(--ok-doux);color: var(--ok)}
.p-bibliotheques .lib-cmp .lib-msg{margin: 0;line-height: 1.4}
.p-bibliotheques .lib-cmp .lib-actions{display: flex;flex-wrap: wrap;gap: 8px;align-items: center}
.p-bibliotheques .lib-cmp .lib-refus{margin: 0;color: var(--err);line-height: 1.4}
.p-bibliotheques .filtres-cmp{display: flex;gap: 6px;flex-wrap: wrap;align-items: center;margin: 0 0 12px}
.p-bibliotheques .filtres-cmp button{border: 1px solid var(--bord);background: var(--surface);border-radius: 999px;padding: 5px 11px;font-size: 13px;color: var(--texte-2)}
.p-bibliotheques .filtres-cmp button[aria-pressed="true"]{background: var(--texte);color: var(--surface);border-color: var(--texte)}
.p-bibliotheques .filtres-cmp select{width: auto}
.p-bibliotheques .raison{color: var(--att)}
.code-cmp{background: var(--surface-2);border: 1px solid var(--bord);border-radius: var(--r-m);padding: 10px 12px;font: 12px/1.45 var(--mono);white-space: pre-wrap;word-break: break-word;max-height: 60vh;overflow: auto}
.p-bibliotheques .lien-cmp{border: 0;background: none;padding: 0;font: inherit;font-size: 12px;color: var(--accent);cursor: pointer;text-decoration: underline}
/* Bibliothèque › Skills (lot L9) : la Bibliothèque de la v52 (filtres, tableau compact paginé, fiche d'un skill). */
.p-bibliotheques .v46-sk-f{display: flex;gap: 12px;align-items: center;flex-wrap: wrap;margin-bottom: 12px}
.p-bibliotheques .v46-sk-f .pousse{margin-left: auto}
.p-bibliotheques .v46-rech{display: flex;gap: 6px;align-items: center;border: 1px solid var(--bord-fort);border-radius: var(--r-m);padding: 0 10px;background: var(--surface)}
.p-bibliotheques .v46-rech input{border: 0;background: transparent;width: 220px;max-width: 100%}
.p-bibliotheques .v46-rech input:focus{box-shadow: none}
.p-bibliotheques .sk-ag{width: auto;max-width: 220px}
.p-bibliotheques .v46-tags{display: flex;gap: 4px;flex-wrap: wrap}
.p-bibliotheques .v46-tags button{border: 1px solid var(--bord);background: var(--surface);border-radius: 999px;padding: 2px 10px;font-size: 12px;color: var(--texte-2);cursor: pointer}
.p-bibliotheques .v46-tags button[aria-pressed="true"]{background: var(--accent);border-color: var(--accent);color: var(--sur-accent, #fff)}
.p-bibliotheques .sk-tableau{padding: 0;overflow: hidden}
.p-bibliotheques .p-skills td{padding-top: 8px;padding-bottom: 8px;vertical-align: middle}
.p-bibliotheques .p-skills td>div:not([class]),.p-bibliotheques .p-skills td .muet{display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden}
.p-bibliotheques .v46-cl{cursor: pointer}
.p-bibliotheques .v46-cl:hover{background: var(--surface-2)}
.p-bibliotheques .v46-ag{display: inline-flex;gap: 2px;align-items: center;font-size: 12px;margin: 1px 6px 1px 0;white-space: nowrap}
.p-bibliotheques .v46-sk-ed{display: grid;grid-template-columns: minmax(0, 1fr) 340px;gap: 16px;margin-top: 12px;align-items: start}
.p-bibliotheques .v46-sk-cote{display: flex;flex-direction: column;gap: 12px;min-width: 0}
.p-bibliotheques .v46-sk-cote h3{display: flex;gap: 7px;align-items: center}
.p-bibliotheques .v46-sk-txt{font-size: 13px;line-height: 1.5;width: 100%;resize: vertical}
.p-bibliotheques .sk-sans-marge{margin-top: 0}
.p-bibliotheques .sk-agents{flex-wrap: wrap;margin-bottom: 8px}
.p-bibliotheques .v46-li{display: flex;gap: 8px;align-items: baseline;padding: 5px 0;border-top: 1px solid var(--bord);font-size: 13.5px;min-width: 0;overflow-wrap: anywhere}
.p-bibliotheques .v46-li:first-of-type{border-top: 0}
.p-bibliotheques .v46-li .pousse{margin-left: auto}
.p-bibliotheques .sk-depot-l{display: flex;gap: 12px;align-items: flex-start;flex-wrap: wrap}
.p-bibliotheques .sk-depot{display: inline-flex;flex-direction: column;align-items: center;gap: 2px;width: 120px;padding: 10px 8px;border: 1.5px dashed var(--bord-fort);border-radius: var(--r-s);color: var(--texte-3);text-align: center;font-size: 13px;font-weight: 400;cursor: pointer}
.p-bibliotheques .sk-depot:hover,.p-bibliotheques .sk-depot.survol{border-color: var(--accent)}
.p-bibliotheques .sk-depot-l input:focus-visible{outline: none}
.p-bibliotheques .sk-depot-l:focus-within .sk-depot{outline: 2px solid var(--accent);outline-offset: 2px}
.p-bibliotheques .sk-joints{list-style: none;margin: 0;padding: 0;flex: 1 1 220px;min-width: 0}
.p-bibliotheques .sk-joints li{display: flex;gap: 8px;align-items: center;padding: 4px 0;border-top: 1px solid var(--bord);overflow-wrap: anywhere}
.p-bibliotheques .sk-joints li:first-child{border-top: 0}
.p-bibliotheques .sk-joints .pousse{margin-left: auto}
.p-bibliotheques .sk-joints .tres-petit{white-space: nowrap}
@media (max-width: 900px){
  .p-bibliotheques .v46-sk-ed{grid-template-columns: minmax(0, 1fr)}
  .p-bibliotheques .v46-rech{flex: 1 1 100%}
  .p-bibliotheques .v46-rech input{width: 100%}
}
.p-bibliotheques .form-cmp .code-saisie{flex-basis: 100%;font-size: 12.5px;line-height: 1.45;resize: vertical}
.p-bibliotheques .form-cmp .analyse-cmp{flex-basis: 100%;margin: 0;color: var(--ok)}
.p-bibliotheques .form-cmp .analyse-cmp.raison{color: var(--err)}
.p-bibliotheques .sk-ag-l{display: inline-flex;align-items: center;gap: 6px;white-space: nowrap}
.p-bibliotheques .v46-li > .muet:first-child{flex: none;white-space: nowrap}
/* Bande des bibliothèques compacte (contrôle de chef-suivi, 19/11) : repliable, cartes sur une ligne. */
.p-bibliotheques .libs-det{flex: 1 1 auto;min-width: 0}
.p-bibliotheques .libs-det>summary{cursor: pointer;list-style-position: inside}
.p-bibliotheques .libs-det[open]>summary{margin-bottom: 8px}
.p-bibliotheques .libs-det .note{display: block;margin-top: 6px}
.p-bibliotheques .lib-cmp{flex-direction: row;flex-wrap: wrap;align-items: center;gap: 4px 8px;padding: 6px 10px}
.p-bibliotheques .lib-cmp .lib-msg{flex-basis: 100%}
.p-bibliotheques .libs-cmp{grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr))}
.p-bibliotheques .lib-msg>summary{cursor: pointer;color: var(--texte-2)}
/* Fiche d'un skill à 390 px : bouton sur plusieurs lignes, ligne d'épinglage qui passe à la ligne. */
.p-bibliotheques #sk-publier{height: auto;min-height: 34px;white-space: normal;text-align: left;line-height: 1.3;padding-top: 6px;padding-bottom: 6px}
.p-bibliotheques .v46-li{flex-wrap: wrap}
.p-bibliotheques .v46-li .puce{white-space: nowrap}
.p-bibliotheques .v46-li .pousse .btn{white-space: nowrap}
