/* Observations (fil de notes) et étiquettes personnelles des articles — voir pages/observations-ui.js et pages/etiquettes-ui.js */

/* ---------- Observations ---------- */
.ob-list { max-height: 45vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ob-note { border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; background: var(--panel); }
.ob-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .86em; }
.ob-act { margin-left: auto; display: flex; gap: 2px; }
.ob-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9em; margin-top: 3px; }
.ob-text textarea { width: 100%; resize: vertical; }

/* ---------- Étiquettes : pastilles dans les listes ---------- */
.mt-chips { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; flex-wrap: nowrap; }
.mt-chip { font-size: .66rem; line-height: 1.5; padding: 0 6px; border-radius: 999px; font-weight: 600; white-space: nowrap; max-width: 86px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.mt-more { font-size: .66rem; color: var(--muted); align-self: center; }
.mt-hide { display: none !important; }

/* ---------- Étiquettes : barre de filtre ---------- */
.mt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 3px 0; font-size: .8em; }
#mt-bar-s { padding: 0; }
.mt-manage { border: 1px dashed var(--border); background: transparent; color: inherit; border-radius: 999px; padding: 1px 9px; cursor: pointer; font: inherit; }
.mt-pillbtn, .mt-toggle { border: 1px solid var(--c); background: transparent; color: inherit; border-radius: 999px; padding: 1px 9px; cursor: pointer; font: inherit; }
.mt-pillbtn small { opacity: .65; }
.mt-pillbtn.on, .mt-toggle.on { background: var(--c); color: var(--i); }
.mt-count { color: var(--muted); margin-left: 4px; }
.mt-clear { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 1em; padding: 0 4px; }

/* ---------- Étiquettes : fiche article et fenêtre « Mes étiquettes » ---------- */
.mt-art { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px; }
.mt-edit-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.mt-new { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-new input[type="text"], .mt-new .input { flex: 1 1 160px; min-width: 0; width: auto; }
.mt-new input[type="color"], .mt-row input[type="color"] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: transparent; }
.mt-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.mt-name { flex: 1; text-align: left; background: none; border: none; font: inherit; font-weight: 600; cursor: pointer; color: inherit; padding: 4px 0; }
.mt-arts { max-height: 36vh; overflow-y: auto; margin-top: 6px; }
.mt-art-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px solid var(--border); font-size: .88em; }
.mt-hits { border: 1px solid var(--border); border-radius: 6px; max-height: 190px; overflow-y: auto; }

@media (max-width: 900px) {
  .mt-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .mt-bar::-webkit-scrollbar { display: none; }
  .mt-bar > * { flex: none; }
  .mt-manage, .mt-pillbtn, .mt-toggle { min-height: 34px; }
}
