.bm-collection {
  --c-ink: #194b3a;
  --c-soft-ink: #577264;
  --c-line: #dbe4d5;
  --c-paper: #fffef9;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-block: clamp(12px, 2vw, 26px) 40px;
  color: var(--c-ink);
}
.bm-collection *, .bm-collection *::before, .bm-collection *::after { box-sizing: border-box; }
.bm-collection button, .bm-collection input { font: inherit; }
.bm-collection button { cursor: pointer; }
.bm-collection button:focus-visible, .bm-c-search:focus-within { outline: 3px solid #d89a2d; outline-offset: 3px; }
.bm-collection h1, .bm-collection h2, .bm-collection p, .bm-collection ul { margin: 0; }
.bm-c-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: clamp(22px, 4vw, 38px); }
.bm-c-heading h1 { color: var(--c-ink); font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 900; line-height: 1.18; letter-spacing: -.045em; }
.bm-c-heading p, .bm-c-group-heading span[lang] { color: var(--c-soft-ink); font-family: ui-rounded, 'Nunito', system-ui, sans-serif; font-weight: 700; }
.bm-c-heading p { margin-top: 4px; font-size: clamp(1rem, 2vw, 1.28rem); }
.bm-c-meter { min-width: 125px; text-align: right; align-self: center; }
.bm-c-meter > span { display: inline-flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--c-soft-ink); }
.bm-c-meter b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.bm-c-progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 12px; background: #e4eadc; color: #559c77; }
.bm-c-meter .bm-c-progress { margin: 8px 0 0 auto; }
.bm-c-progress::-webkit-progress-bar { background: #e4eadc; border-radius: 12px; }
.bm-c-progress::-webkit-progress-value { background: #559c77; border-radius: 12px; }
.bm-c-progress::-moz-progress-bar { background: #559c77; border-radius: 12px; }
.bm-c-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.bm-c-filters { display: inline-flex; align-items: center; flex-wrap: wrap; padding: 4px; border: 1px solid var(--c-line); border-radius: 18px; background: #f0f3e9; }
.bm-c-filters button { min-height: 43px; padding: 8px clamp(12px, 2vw, 21px); border: 0; border-radius: 13px; color: #4f6b5c; background: transparent; font-weight: 750; font-size: .94rem; }
.bm-c-filters button[aria-pressed="true"] { color: white; background: var(--c-ink); box-shadow: 0 2px 3px #24483418; }
.bm-c-search { min-height: 47px; min-width: 200px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-paper); color: var(--c-soft-ink); cursor: text; }
.bm-c-search input { min-width: 0; width: 100%; max-width: 250px; padding: 10px 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--c-ink); font-size: 1rem; }
.bm-c-search input::placeholder { color: #68796e; }
.bm-c-results { display: grid; gap: 32px; }
.bm-c-group-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 12px; }
.bm-c-chapter-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 15px; object-fit: cover; box-shadow: 0 1px 1px #27583f16; }
.bm-c-group-heading h2, .bm-c-shelf-heading { color: var(--c-ink); font-weight: 850; }
.bm-c-group-heading h2 { font-size: 1.25rem; line-height: 1.35; }
.bm-c-group-heading span[lang] { font-size: .83rem; }
.bm-c-word-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr)); list-style: none; padding: 0; gap: 10px; }
.bm-c-word { min-width: 0; display: flex; align-items: stretch; justify-content: space-between; gap: 4px; padding: 4px 8px 4px 4px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-paper); }
.bm-c-word-main { min-width: 0; flex: 1; display: grid; gap: 2px; padding: 12px 5px 12px 12px; align-content: center; text-align: left; color: inherit; background: transparent; border: none; border-radius: 14px; }
.bm-c-en { overflow-wrap: anywhere; font-family: ui-rounded, 'Nunito', system-ui, sans-serif; font-size: 1.2rem; font-weight: 850; line-height: 1.25; letter-spacing: -.025em; }
.bm-c-translation { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .94rem; color: var(--c-soft-ink); }
.bm-c-check { display: inline-flex; color: #34785a; }
.bm-c-word-actions { display: flex; align-items: center; }
.bm-c-round { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; color: var(--c-soft-ink); background: transparent; border: 0; border-radius: 50%; }
.bm-c-listen { color: #397454; }
.bm-c-favorite[aria-pressed="true"] { color: #a03e48; }
.bm-c-favorite[aria-pressed="true"] svg { fill: #f6a9ad; }
.bm-c-round:active, .bm-c-word-main:active { background: #f0f4e9; }
.bm-c-empty { display: grid; justify-items: center; text-align: center; padding: 42px 18px; border: 1px dashed #b9cab7; border-radius: 22px; background: #f2f5ea; }
.bm-c-empty-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 15px; border-radius: 22px; background: #e0ebd9; }
.bm-c-empty h2 { font-size: 1.23rem; }
.bm-c-empty p { margin: 6px 0 17px; color: var(--c-soft-ink); }
.bm-c-small-button { display: inline-flex; min-height: 44px; gap: 7px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid #bfcfbb; border-radius: 14px; color: var(--c-ink); background: #f4f6ed; font-size: .94rem; font-weight: 750; }
.bm-c-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-paper); }
.bm-c-stat { position: relative; display: flex; align-items: center; gap: 13px; padding: clamp(14px, 2.5vw, 26px); line-height: 1.25; }
.bm-c-stat + .bm-c-stat::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--c-line); }
.bm-c-stat-icon { display: grid; flex: 0 0 auto; place-items: center; width: 47px; height: 47px; border-radius: 15px; color: #925919; background: #fff0ba; }
.bm-c-stat:nth-child(2) .bm-c-stat-icon { color: #426f4f; background: #deedd6; }
.bm-c-stat:nth-child(3) .bm-c-stat-icon { color: #6c548a; background: #eee4f7; }
.bm-c-stat > div { display: grid; gap: 3px; }
.bm-c-stat b { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; font-variant-numeric: tabular-nums; }
.bm-c-stat > div span { color: var(--c-soft-ink); font-size: .87rem; font-weight: 650; }
.bm-collection .bm-c-shelf-heading { margin: 32px 0 15px; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.bm-c-badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.bm-c-badge { min-width: 0; overflow: hidden; border-radius: 21px; border: 1px solid var(--c-line); background: var(--c-paper); }
.bm-c-badge-art { position: relative; aspect-ratio: 1.88; background: #e2ebda; }
.bm-c-badge-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-c-badge-state { position: absolute; display: flex; align-items: center; gap: 4px; top: 11px; left: 11px; padding: 4px 9px; border: 1px solid #e9e7d8; border-radius: 20px; background: #fffef9f2; color: #536b5b; font-size: .78rem; font-weight: 750; }
.bm-c-earned .bm-c-badge-state { background: #ffe495; color: #634913; border-color: #eac46b; }
.bm-c-badge-body { padding: clamp(13px, 2vw, 21px); }
.bm-c-badge-body h2 { color: var(--c-ink); font-weight: 850; font-size: 1.2rem; }
.bm-c-badge-body p { margin-top: 4px; color: var(--c-soft-ink); font-size: .9rem; }
.bm-c-badge-progress { margin-top: 17px; margin-bottom: 6px; display: flex; gap: 6px; justify-content: space-between; align-items: center; color: var(--c-soft-ink); font-size: .82rem; }
.bm-c-badge-progress b { font-variant-numeric: tabular-nums; color: var(--c-ink); }
.bm-c-badge .bm-c-small-button { width: 100%; margin-top: 16px; }
.bm-c-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (hover: hover) {
  .bm-c-word-main:hover, .bm-c-round:hover, .bm-c-small-button:hover { background: #eaf1e4; }
  .bm-c-filters button[aria-pressed="false"]:hover { background: #e3ebdc; }
}
@media (max-width: 880px) {
  .bm-c-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bm-c-toolbar { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 23px; }
  .bm-c-search { order: -1; min-width: 0; }
  .bm-c-search input { max-width: none; }
  .bm-c-filters { align-self: flex-start; }
  .bm-c-results { gap: 25px; }
  .bm-c-word-list { grid-template-columns: 1fr; }
  .bm-c-stat { flex-direction: column; gap: 6px; text-align: center; padding: 12px 3px; }
  .bm-c-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .bm-c-stat-icon svg { width: 19px; height: 19px; }
  .bm-c-badge-grid { gap: 10px; }
  .bm-c-badge-body { padding: 12px; }
  .bm-c-badge-art { aspect-ratio: 1.5; }
  .bm-c-badge-body h2 { font-size: 1.05rem; }
  .bm-c-badge-body p { font-size: .81rem; }
  .bm-c-meter { min-width: 108px; }
}
@media (max-width: 349px) {
  .bm-c-badge-grid { grid-template-columns: 1fr; }
  .bm-c-filters button { padding-inline: 8px; }
}
