.mve-community {
  gap: 0 !important;
  max-width: 1220px;
  margin-inline: auto;
  color: var(--foreground);
}
.mvd-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 3px 0 20px;
  border-bottom: 1px solid var(--border);
}
.mvd-eyebrow {
  display: block;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: 5px;
}
.mvd-intro h1 {
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 650;
}
.mvd-intro-copy {
  min-width: 0;
}
.mvd-intro-copy > p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-top: 6px;
}
.mvd-stats {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}
.mvd-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 0 22px;
  border-left: 1px solid var(--border);
}
.mvd-stats > div:last-child {
  padding-right: 0;
}
.mvd-stats dd {
  font-size: 23px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.035em;
}
.mvd-stats dt {
  font-size: 10px;
  color: var(--muted-foreground);
}
.mvd-utility {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
}
.mvd-scope {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.mvd-scope > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px !important;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.mvd-scope > button[aria-pressed=true] {
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  font-weight: 600;
}
.mvd-scope > button > span {
  font-size: 9px;
  min-width: 16px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  padding: 0 3px;
}
.mvd-utility > .mve-search {
  max-width: 440px;
  flex: 1;
  margin-left: auto;
}
#root main .mve-community .mve-search input {
  font-size: 11px;
  height: 33px;
  min-height: 33px !important;
  border-radius: 5px;
}
.mvd-my-lists {
  font-size: 10px;
  color: var(--primary);
  white-space: nowrap;
  line-height: 32px;
}
.mvd-directory {
  min-width: 0;
  padding-top: 9px;
}
.mvd-directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.mvd-directory-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.mvd-directory-heading h2 {
  font: 600 19px/1.35 var(--font-serif,Georgia,serif);
  letter-spacing: -.02em;
}
.mvd-results {
  font-size: 10px;
  color: var(--muted-foreground);
}
.mvd-clear {
  font-size: 10px;
  color: var(--primary);
  min-height: 26px !important;
  padding: 3px 6px;
  border-radius: 4px;
}
.mvd-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
#root main .mve-community .mvd-filterbar > select {
  height: 29px;
  min-height: 29px !important;
  width: 170px;
  max-width: 100%;
  font-size: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 25px 3px 9px;
  color: var(--foreground);
}
.mvd-sort-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mvd-sort-tabs > span {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 8px;
  color: var(--muted-foreground);
  padding-right: 7px;
}
.mvd-sort-tabs button {
  font-size: 10px;
  min-height: 28px !important;
  color: var(--muted-foreground);
  padding: 4px 9px;
  border-radius: 4px;
  position: relative;
}
.mvd-sort-tabs button[aria-pressed=true] {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  font-weight: 650;
}
.mvd-filterbar > select:last-child {
  display: none;
}
.mve-community .mve-shelves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
  align-items: start;
}
.mve-community .mve-shelf {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.mvd-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.mve-community .mve-shelf h2 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.015em;
  margin: 0;
  min-width: 0;
  flex: 1;
  min-height: 36px;
}
.mve-community .mve-shelf h2 > button {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  font: inherit;
  min-height: 24px !important;
  text-align: left;
  padding: 0;
  border: 0;
  border-radius: 2px;
  line-height: 1.4;
  color: var(--foreground);
}
.mvd-featured {
  font-size: 7px;
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: .04em;
  padding: 2px 4px;
  line-height: 1.5;
  border-radius: 3px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.mve-community .mve-shelf-description {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 18px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted-foreground);
  margin: 2px 0 7px !important;
}
.mvd-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 21px;
  margin-bottom: 9px;
  font-size: 9px;
  color: var(--muted-foreground);
}
.mvd-curator {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mvd-curator img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.mvd-curator > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* B18: the stored curator badge (Grandmaster / Noble / S-Rank / …) */
.mvd-curator-badge {
  flex-shrink: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  color: var(--primary);
}
.mvd-updated {
  flex-shrink: 0;
  font-size: 8px;
}
.mve-community .mve-shelf-gallery {
  width: 100%;
  max-width: none;
  margin: 0 0 9px;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mve-community .mve-shelf-gallery > a {
  aspect-ratio: 2/3;
  border-radius: 4px;
  box-shadow: none;
  max-height: none;
  overflow: hidden;
}
.mve-community .mve-shelf-gallery img {
  object-fit: cover;
  transition: filter .15s ease;
}
.mve-community .mve-shelf-gallery > a:hover img {
  filter: brightness(1.06);
}
.mvd-themes {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 25px;
  margin-bottom: 7px;
  overflow: hidden;
}
.mvd-themes > a {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 50%;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  padding: 3px 5px;
  font-size: 8px;
  line-height: 1.4;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  white-space: nowrap;
}
.mvd-themes > a > span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.mvd-themes small {
  font-size: 7px;
  color: var(--primary);
  flex-shrink: 0;
}
.mve-community .mve-shelf-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 0;
  padding: 0;
  margin-top: 0;
  min-height: 28px;
}
.mvd-shelf-counts {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: var(--muted-foreground);
  margin-right: auto;
  min-width: 0;
  white-space: nowrap;
}
.mvd-favorites {
  color: var(--muted-foreground);
}
.mve-community .mve-shelf-save {
  min-height: 28px !important;
  font-size: 9px;
  border-color: transparent;
  background: transparent;
  padding: 4px 5px;
}
.mve-community .mve-shelf-save.is-saved {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
}
.mvd-open {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--primary);
  min-height: 28px !important;
  padding: 4px 0 4px 3px;
  white-space: nowrap;
}
.mvd-open svg {
  width: 12px;
  height: 12px;
}
.mve-community .mve-discover-footnote {
  margin-top: 15px;
  padding: 12px 0 4px;
  font-size: 10px;
}
.mve-community :is(button, a):focus-visible {
  outline: 1.5px solid color-mix(in srgb, var(--primary) 70%, transparent);
  outline-offset: 2px;
}
.mve-community :is(select, input):focus,
.mve-community :is(select, input):focus-visible {
  outline: none !important;
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.mve-community :is(.mvd-themes > a, .mvd-open, .mvd-my-lists, .mve-shelf h2 > button):hover {
  color: var(--primary);
}
@media (min-width: 1450px) {
  .mve-community .mve-shelf-gallery {
    max-width: 100%;
  }
}
@media (max-width: 1050px) {
  .mve-community .mve-shelves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 22px;
  }
  .mvd-intro {
    padding-bottom: 17px;
  }
  .mvd-stats > div {
    padding-inline: 17px;
  }
  .mvd-intro h1 {
    font-size: 26px;
  }
}
@media (min-width: 640px) and (max-width: 1050px) {
  .mve-community .mve-shelf-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 330px;
    margin-inline: 0;
  }
  .mve-community .mve-shelf-gallery > a {
    aspect-ratio: 2/3;
  }
}
@media (max-width: 639px) {
  .mvd-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 13px;
  }
  .mvd-intro h1 {
    font-size: 24px;
  }
  .mvd-eyebrow {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .mvd-intro-copy > p {
    font-size: 10px;
    max-width: 290px;
    line-height: 1.6;
    margin-top: 5px;
  }
  .mvd-stats {
    gap: 18px;
    flex-direction: row;
    width: 100%;
  }
  .mvd-stats > div {
    flex-direction: row-reverse;
    align-items: baseline;
    gap: 5px;
    padding: 0;
    border: 0;
  }
  .mvd-stats dd {
    font-size: 15px;
  }
  .mvd-stats dt {
    font-size: 9px;
  }
  .mvd-utility {
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .mvd-utility > .mve-search {
    max-width: none;
    margin-left: 0;
    flex-basis: 100%;
    order: 3;
  }
  .mvd-scope > button {
    font-size: 10px;
    min-height: 28px !important;
    padding: 4px 9px;
  }
  .mvd-my-lists {
    margin-left: auto;
    font-size: 9px;
  }
  .mvd-directory {
    padding-top: 7px;
  }
  .mvd-directory-heading {
    margin-bottom: 8px;
  }
  .mvd-directory-heading h2 {
    font-size: 18px;
  }
  .mvd-results {
    font-size: 9px;
  }
  .mvd-filterbar {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .mvd-sort-tabs {
    display: none;
  }
  .mvd-filterbar > select:last-child {
    display: block;
  }
  #root main .mve-community .mvd-filterbar > select {
    width: auto;
    flex: 1;
    font-size: 10px;
    min-width: 0;
    height: 31px;
    min-height: 31px !important;
  }
  .mve-community .mve-shelves {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .mve-community .mve-shelf h2 {
    font-size: 14px;
    min-height: 0;
  }
  .mve-community .mve-shelf h2 > button {
    min-height: 24px !important;
  }
  .mvd-featured {
    font-size: 8px;
    margin-top: 3px;
  }
  .mve-community .mve-shelf-description {
    font-size: 10px;
    margin: 3px 0 6px !important;
  }
  .mvd-byline {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .mvd-curator img {
    width: 18px;
    height: 18px;
  }
  .mvd-updated {
    font-size: 9px;
  }
  .mve-community .mve-shelf-gallery {
    gap: 6px;
    max-width: none;
    margin-bottom: 8px;
  }
  .mvd-themes {
    min-height: 26px;
    margin-bottom: 6px;
  }
  .mvd-themes > a {
    font-size: 9px;
    padding: 4px 6px;
  }
  .mvd-themes small {
    font-size: 8px;
  }
  .mvd-shelf-counts {
    font-size: 10px;
    gap: 12px;
  }
  .mve-community .mve-shelf-save,
  .mvd-open {
    font-size: 10px;
    min-height: 30px !important;
  }
  .mve-community .mve-discover-footnote {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mve-community .mve-shelf-gallery img {
    transition: none;
  }
}
