/* bloc 1 */
:root {
  --ink: #182531;
  --muted: #62717c;
  --paper: #fffdf8;
  --ground: #edf2f4;
  --blue: #24526d;
  --soft: #e5f0f4;
  --ok: #107064;
  --warn: #a55b11;
  --line: #d4e0e5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
main { max-width: 980px; margin: auto; padding: 32px 18px 54px; }
h1, h2, h3, .greek { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: 2.25rem; color: #143d55; }
.lede { margin: .2rem 0 1.4rem; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
button {
  appearance: none;
  border: 1px solid transparent;
  background: #e1e9ed;
  color: #1a3648;
  padding: 9px 13px;
  border-radius: 9px;
  font: 600 .93rem system-ui;
  cursor: pointer;
}
button:hover { filter: brightness(.97); }
button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #8bb8cc;
  outline-offset: 2px;
}
button.primary, .active { background: var(--blue); color: #fff; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px #1c39400d;
  border-radius: 14px;
  padding: 25px;
}
.hidden { display: none !important; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.meta { color: var(--muted); font-size: .9rem; }
.greek { font-size: 1.65rem; line-height: 1.5; margin: 24px 0; }
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
label { font-weight: 650; display: block; margin: 13px 0 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #aebfc9;
  border-radius: 8px;
  background: white;
  padding: 10px;
  font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.answer {
  margin-top: 15px;
  padding: 14px;
  border-left: 4px solid var(--blue);
  background: #eef5f7;
  white-space: pre-wrap;
}
.answer:not(.hidden) { animation: flip .28s ease; }
@keyframes flip {
  from { opacity: 0; transform: rotateX(70deg); }
  to { opacity: 1; transform: none; }
}
.status { font-weight: 700; margin-top: 12px; }
.ok { color: var(--ok); }
.bad { color: var(--warn); }
.choice {
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.choice input { width: auto; margin: 0; }
.choice:hover { background: var(--soft); }
.lessonList { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; align-items: center; }
.small { font-size: .85rem; color: var(--muted); }
details { margin-top: 13px; }
summary { cursor: pointer; font-weight: 650; }
.progress {
  height: 9px;
  background: #e0e8eb;
  border-radius: 9px;
  overflow: hidden;
  margin: 12px 0;
}
.progress > i { display: block; height: 100%; background: var(--ok); width: 0; }
.rbar { margin-top: 12px; }
.hist { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.rate .r-forgot { background: #c62828; color: #fff; }
.rate .r-hard { background: #ef8f00; color: #fff; }
.rate .r-good { background: var(--ok); color: #fff; }
.rate .r-easy { background: #1976d2; color: #fff; }
.rate button:disabled { opacity: .45; cursor: default; }
.srs-legend { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 2px; }
.srs-legend span { font-size:.82rem; font-weight:700; padding:4px 8px; border-radius:999px; }
.srs-forgot { color:#c62828; }
.srs-hard { color:#ef8f00; }
.srs-good { color:var(--ok); }
.srs-easy { color:#1976d2; }

.corrige {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #eef5f7;
  white-space: pre-wrap;
}
.addBox { margin-top: 18px; }
.addBox summary { color: var(--blue); }
.itemCard .greek { font-size: 1.3rem; margin: 8px 0 10px; }
.phraseGroup { margin-top: 12px; }
.phraseGroup .card { margin-top: 10px; }
.filterRow { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0; }
.filterRow label { margin: 0; flex: 1; min-width: 180px; }
.morphFilters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 16px; margin: 12px 0; }
.morphFilterGroup { display: block; margin: 0; }
.morphFilterStack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.morphFilterGroup label { display: block; min-width: 0; }
.morphFilterGroup select { display: block; margin-top: 6px; }
.morphFilterActions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.morphFilterActions button { font-size: .85rem; padding: 6px 9px; }
.morphClassChoices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px 10px; width: 100%; margin-top: 6px; }
.morphClassChoices .choice { margin-top: 5px; font-size: .9rem; }
.morphClassChoices .choice input { width: auto; }
.morphTypeDropdown { position: relative; width: 100%; }
.morphTypeDropdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface, #fff); }
.morphTypeDropdown > summary::-webkit-details-marker { display: none; }
.morphTypeDropdown > summary::after { content: '▾'; color: var(--muted); }
.morphTypeDropdown[open] > summary::after { content: '▴'; }
#morphClassSummary { margin-left: auto; color: var(--muted); font-size: .86rem; font-weight: 400; }
.morphTypeDropdownBody { padding: 8px 10px 10px; margin-top: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface, #fff); }
#morphForm { white-space: pre-line; }


.morphFilterHelp { grid-column: 1 / -1; margin: 0; }
.reviewBox { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.reviewGroup { margin-top: 14px; }
.reviewBox > #errorsText:empty { display:none; }
.reviewBox > #errorsText { color:var(--muted); font-size:.9rem; }
.reviewGroup .itemCard { padding:12px 15px; margin:8px 0; }
.reviewGroup .itemCard .greek { margin:3px 0 6px; }
.reviewGroup .itemCard .hist { margin-top:2px; }
.review-context { font-size:.82rem; margin-bottom:2px; }
.reviewGroup h4 { margin: 0 0 8px; font-size: .95rem; color: var(--muted); }
.itemCard .actions { margin-top: 10px; }
.danger { color: var(--warn); }
.manageHint { margin: 0 0 12px; }
.libraryCard { margin: 12px 0; }
.libraryCard .greek { margin: 8px 0; overflow-wrap: anywhere; }
.libraryCard .libraryPreview { white-space: pre-wrap; overflow-wrap: anywhere; }
.libraryCard .libraryFields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.libraryCard .libraryFields .wide { grid-column: 1 / -1; }
.libraryCard .meta { overflow-wrap: anywhere; }
@media (max-width: 650px) { .libraryCard .libraryFields { grid-template-columns: 1fr; } .libraryCard .libraryFields .wide { grid-column: auto; } }

@media (max-width: 650px) {
  main { padding: 22px 12px; }
  .panel { padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .greek { font-size: 1.35rem; }
}

.vocabFilterGroup{min-width:min(100%,22rem);flex:1 1 22rem;max-width:none}
.vocabFilterGroup>label{display:block;margin-bottom:.4rem;font-weight:600}
.vocabFilterGroup select{display:block;box-sizing:border-box;min-width:100%;max-width:100%;font-size:.96rem;line-height:1.4;padding:.45rem;white-space:normal}
#vocabChoices{align-items:start}
@media(max-width:700px){.vocabFilterGroup{flex-basis:100%}.vocabFilterGroup select{min-height:12rem!important}}
.vocabFilterActions{display:flex;flex-wrap:wrap;gap:.35rem;margin:.25rem 0 .45rem}
.smallBtn{font-size:.82rem;padding:.35rem .55rem}
#vocabFilterSummary{margin:.6rem 0 1rem}

/* Styles Copyright Rémi LUBIN */
.header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.header-copyright-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5f0f4;
  border: 1.5px solid #a3c4d3;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .88rem;
  color: #143d55;
  box-shadow: 0 2px 6px rgba(20, 61, 85, 0.06);
}
.header-copyright-pill .pill-symbol {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue);
}
.header-copyright-pill .pill-name {
  font-weight: 750;
  letter-spacing: .02em;
}
.header-copyright-pill .pill-badge {
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.app-footer {
  margin-top: 40px;
  border-top: 2px solid var(--line);
  padding-top: 26px;
}
.copyright-hero-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #edf5f8 100%);
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(36, 82, 109, 0.10);
}
.hero-copy-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: Georgia, serif;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(36, 82, 109, 0.3);
}
.hero-copy-body {
  flex: 1;
}
.hero-copy-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #143d55;
  letter-spacing: .02em;
  font-family: Georgia, serif;
}
.hero-copy-subtitle {
  font-size: .98rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 2px;
}
.hero-copy-text {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 650px) {
  .header-title-row { flex-direction: column; align-items: flex-start; }
  .copyright-hero-card { flex-direction: column; text-align: center; gap: 14px; padding: 18px; }
  .hero-copy-icon { margin: auto; }
}

/* Styles des Tableaux de référence (fidèles au PDF) */
.tableaux-container .tableaux-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 24px;
  padding: 10px 14px;
  background: #edf5f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: sticky;
  top: 10px;
  z-index: 10;
}
.tableaux-container .tableaux-subnav a {
  color: var(--blue);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: .88rem;
  font-weight: 650;
  background: #fff;
  border: 1px solid var(--line);
  transition: all .15s ease;
}
.tableaux-container .tableaux-subnav a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tableaux-section {
  margin-bottom: 38px;
  scroll-margin-top: 75px;
}
.tableaux-section h3 {
  font-size: 1.35rem;
  color: #143d55;
  margin: 24px 0 8px;
  border-bottom: 2px solid var(--soft);
  padding-bottom: 6px;
}
.tableaux-section h4 {
  font-size: 1.08rem;
  color: var(--blue);
  margin: 20px 0 8px;
}
.table-wrap {
  overflow-x: auto;
  margin: 12px 0 22px;
  border-radius: 8px;
  background: #fff;
}
.pdf-table {
  border-collapse: collapse;
  width: 100%;
  border: 1.5px solid #8ba4b6;
  background: #fff;
  font-variant-numeric: tabular-nums;
  margin: auto;
}
.pdf-table th, .pdf-table td {
  border: 1px solid #b8cbdb;
  padding: 5px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: .82rem;
}
.pdf-table thead th {
  background: #eef3f7;
  color: #1a384f;
  font-size: .82rem;
  font-weight: 700;
  border-bottom: 1.5px solid #8ba4b6;
}
.pdf-table thead th.hdr-tense {
  background: #fbf0e6;
  color: #40281b;
}
.pdf-table thead th.col-mode-hdr {
  background: #e0ecf5;
  width: 48px;
}
.pdf-table .col-mode {
  background: #e2eef6;
  color: #12344c;
  font-weight: 800;
  font-size: .78rem;
  vertical-align: middle;
  border-right: 1.5px solid #8ba4b6;
  width: 48px;
}
.pdf-table .sep-mode > td {
  border-top: 1.5px solid #8ba4b6;
}
.pdf-table .col-label {
  font-weight: 650;
  color: #3b5166;
  text-align: left;
  background: #fcfdfe;
  white-space: nowrap;
  font-size: .80rem;
}
.pdf-table .gr {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: .01em;
  color: #143047;
}
.pdf-table .empty-cell {
  background: #fbfcfd;
}
.pdf-table .row-pluriel th, .pdf-table .row-pluriel td {
  background: #e8f5ea;
  color: #1e5a25;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  font-size: .84rem;
  padding: 6px;
  border-top: 1.5px solid #8ba4b6;
  border-bottom: 1.5px solid #8ba4b6;
}
.side-by-side-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  align-items: start;
}
.side-col {
  min-width: 0;
}
.side-col h4 {
  margin-top: 6px;
  text-align: center;
}
.tableaux-container .note {
  background: #fff8ec;
  border-left: 4px solid #d3a35e;
  padding: 12px 15px;
  border-radius: 6px;
  color: #60491f;
  margin: 16px 0;
  font-size: .92rem;
}
@media (max-width: 720px) {
  .side-by-side-grid { grid-template-columns: 1fr; }
  .tableaux-container .tableaux-subnav { position: static; }
  .pdf-table th, .pdf-table td { padding: 6px 8px; font-size: .9rem; }
  .pdf-table .gr { font-size: 1.1rem; }
}

/* bloc 2 */
.grammar-hint {
  margin: 14px 0;
  padding: 10px 13px;
  border: 1px solid var(--line, #d9e0e6);
  border-radius: 9px;
  background: var(--soft, #f7f9fb);
}
.grammar-hint summary {
  cursor: pointer;
  font-weight: 650;
}
.grammar-hint #phraseGrammarText {
  margin-top: 10px;
  line-height: 1.55;
}
.grammar-hint #phraseTypeText {
  margin: 8px 0 0;
}

/* bloc 3 */
.phrase-filter-row { align-items: flex-start; }
.phrase-filter-field { position: relative; flex: 1 1 240px; min-width: 210px; }
.phrase-filter-label { display: block; margin: 0 0 6px; font-weight: 600; }
.phrase-level-dropdown { position: relative; display: block; width: 100%; min-width: 0; }
.phrase-level-dropdown > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; list-style: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; background: white; min-height: 42px;
}
.phrase-level-dropdown > summary::-webkit-details-marker { display: none; }
.phrase-level-dropdown > summary::after { content: '▾'; color: var(--muted); }
.phrase-level-dropdown[open] > summary::after { content: '▴'; }
.phrase-level-panel {
  position: absolute; z-index: 80; top: calc(100% + 6px); left: 0;
  width: max(100%, 270px); max-width: min(440px, calc(100vw - 48px));
  box-sizing: border-box; padding: 10px 12px; background: white;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px #18253126;
}
.phrase-level-options { position: static; min-width: 0; max-height: min(45vh, 300px); overflow: auto; box-shadow: none; margin: 0; padding: 0; border: 0; background: transparent; }
.phrase-level-options label { display: flex; align-items: center; gap: 8px; padding: 7px 2px; margin: 0; cursor: pointer; }
.phrase-level-options input { width: auto; margin: 0; flex: 0 0 auto; }
.phrase-level-actions { display: flex; gap: 7px; flex-wrap: wrap; padding-bottom: 9px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
.phrase-level-actions button { font-size: .82rem; padding: 6px 9px; }
.phrase-series-controls { align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.phrase-series-controls .small { margin: 0; }
@media (max-width: 600px) {
  .phrase-filter-field { flex-basis: 100%; }
  .phrase-level-panel { width: 100%; max-width: 100%; }
  .phrase-series-controls { flex-wrap: wrap; }
}


/* Cohérence des deux filtres de vocabulaire : compteurs disponibles et panneaux superposés. */
#vocabLessonPick, #vocabKindPick { min-width: 0; }
#vocabLessonPick .multiPick, #vocabKindPick .multiPick { width: 100%; }
#vocabLessonPick .multiPickBody, #vocabKindPick .multiPickBody { max-height: min(55vh, 360px); }
.phrase-filter-field select { display: block; width: 100%; box-sizing: border-box; }
/* Menus multi-sélection compacts */
.multiPick { position:relative; min-width:0; width:100%; }
.multiPick > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; padding:10px 12px; border:1px solid #aebfc9; border-radius:9px; background:#fff; font-weight:600; }
.multiPick > summary::-webkit-details-marker { display:none; }
.multiPick > summary::after { content:'▾'; color:var(--muted); }
.multiPick[open] > summary::after { content:'▴'; }
.multiPick .pickCount { color:var(--muted); font-size:.84rem; font-weight:500; margin-left:auto; text-align:right; }
.multiPickBody { position:absolute; z-index:30; top:calc(100% + 5px); left:0; right:0; max-height: min( min(60vh, 390px), 390px); overflow:auto; padding:9px 11px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 24px #18253120; }
.multiPickActions { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:7px; margin-bottom:5px; border-bottom:1px solid var(--line); }
.multiPickActions button { font-size:.82rem; padding:6px 9px; }
.multiPickOption { display:flex; align-items:flex-start; gap:9px; padding:6px 4px; margin:0; border-radius:6px; font-weight:500; cursor:pointer; }
.multiPickOption:hover { background:var(--soft); }
.multiPickOption input { width:auto; margin:3px 0 0; flex:0 0 auto; }
.multiPick select, #vocabLessonFilter, #vocabKindFilter, #morphTimeFilter, #morphMoodFilter, #morphVoiceFilter { display:none !important; }
/* Tous les panneaux de filtres restent ancrés à leur bouton, y compris sur petit écran. */
.multiPick { position: relative; z-index: 1; }
.multiPick[open] { z-index: 100; }
.multiPickBody {
  position: absolute !important;
  top: calc(100% + 5px); left: 0; right: 0;
  z-index: 120; width: 100%;
  max-height: min(60vh, 390px); overflow: auto;
  margin-top: 0; box-shadow: 0 8px 24px #18253120;
}
.phrase-filter-field { position: relative; }
.phrase-level-dropdown { position: relative; z-index: 1; }
.phrase-level-dropdown[open] { z-index: 100; }
.phrase-level-panel { position: absolute !important; top: calc(100% + 6px); left: 0; z-index: 120; }
.morphTypeDropdown { position: relative; z-index: 1; }
.morphTypeDropdown[open] { z-index: 100; }
.morphTypeDropdownBody {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  z-index: 120; max-height: min(60vh, 390px); overflow: auto;
  margin-top: 0; box-shadow: 0 8px 24px #18253120;
}
@media (max-width: 650px) {
  .multiPickBody, .phrase-level-panel, .morphTypeDropdownBody {
    max-height: min(55vh, 320px);
  }
}

/* bloc 4 */
/* Nav inter-modules */
.lang-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line, #d4e0e8);
  border-radius: 14px;
  box-shadow: 0 6px 18px #1a233608;
}
.lang-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 650;
  font-size: .9rem;
  color: #3a4a5c;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.lang-nav a:hover {
  background: #f3f6f9;
  border-color: #d7dee8;
  color: #1a2332;
}
.lang-nav a.home {
  color: #5c6b7a;
}
.lang-nav a.current {
  background: #eef3f7;
  border-color: #c8d6e0;
  color: #1a384f;
  pointer-events: none;
}
.lang-nav .nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 520px) {
  .lang-nav { flex-direction: column; align-items: stretch; }
  .lang-nav .nav-right { justify-content: stretch; }
  .lang-nav a { justify-content: center; }
}


/* Progression globale + corbeille */
.global-progress {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 18px #1a233608;
}
.global-progress .gp-item { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 160px; }
.global-progress .gp-label { font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.global-progress .gp-track {
  flex: 1; height: 8px; background: #e0e8eb; border-radius: 99px; overflow: hidden; min-width: 50px;
}
.global-progress .gp-fill { height: 100%; background: var(--ok); border-radius: 99px; transition: width .25s; }
.global-progress .gp-fill.warn { background: var(--warn); }
.global-progress .gp-nums { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.trash-bulk {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 12px; padding: 10px 12px;
  background: #fff8f0; border: 1px solid #f0d4b8; border-radius: 10px;
}
.trash-bulk.hidden { display: none !important; }
.trash-bulk span { font-size: .88rem; color: var(--warn); font-weight: 650; margin-right: auto; }
.library-badge {
  display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; margin-left: 4px;
}
.library-badge.masked { background: #fff1df; color: #8b4d08; }
.library-badge.trash { background: #fdecea; color: #a33; }
.library-badge.custom { background: #e7f6ec; color: #176536; }
