.community-page {
  padding-top: 52px;
  min-width: 0;
}
.community-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.community-heading h1 {
  font: 650 clamp(2rem, 4vw, 3rem) / 1.2 var(--font-body);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.community-heading p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.community-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.community-actions .button {
  white-space: normal;
}
.community-navigation {
  display: grid;
  gap: 14px;
  margin-bottom: 25px;
}
.community-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 10px;
  background: #1c1e25;
}
.community-tabs button {
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b6bfce;
  cursor: pointer;
  font: 550 0.8rem var(--font-body);
}
.community-tabs button.active {
  border-color: #7184bd;
  background: #272d49;
  color: #e1e8ff;
}
.community-navigation > p {
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.community-page [data-community-feedback] {
  font-size: 0.83rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.community-page [data-community-feedback]:empty {
  display: none;
}
.community-page .is-error {
  color: #f1a4a4;
}
.community-filters {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(130px, 1fr)) auto;
  gap: 12px;
  margin: 22px 0;
}
.community-filters .field {
  min-width: 0;
  width: 100%;
  font-size: 0.8rem;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.community-card {
  padding: 22px;
  border: 1px solid #3c414f;
  background: #21242d;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.community-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.community-card-heading > div {
  min-width: 0;
}
.community-card-heading img,
.community-composition-icon {
  width: 68px;
  height: 68px;
  flex: none;
  object-fit: contain;
  border-radius: 10px;
  background: #171a21;
}
.community-composition-icon {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #9cafeb;
}
.community-card h2 {
  font: 600 1.05rem/1.5 var(--font-body);
  margin: 0;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
.community-card-heading p {
  font-size: 0.73rem;
  color: #b1bdd8;
  margin: 5px 0 0;
}
.community-card-description {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  min-height: 42px;
}
.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  flex-wrap: wrap;
  margin-top: auto;
}
.community-card code,
.community-detail code {
  font:
    0.7rem ui-monospace,
    monospace;
  color: #9faecd;
  overflow-wrap: anywhere;
}
.community-card-link {
  font-size: 0.8rem;
  color: #b7c6fa;
  text-decoration: none;
}
.community-card:hover {
  border-color: #7483b1;
}
.community-status {
  padding: 3px 7px;
  background: #2b344c;
  color: #c4d1fa;
  border-radius: 5px;
}
.community-status.hidden {
  background: #3f3029;
  color: #e4bf9c;
}
.community-empty {
  grid-column: 1/-1;
  min-height: 230px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
}
.community-empty h2 {
  font: 600 1.3rem var(--font-body);
}
.community-empty p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}
.community-pagination {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.76rem;
  color: var(--muted);
}
.community-page .panel {
  border-radius: 12px;
  min-width: 0;
}
.community-detail,
.community-editor {
  padding: 28px;
}
.community-detail h2,
.community-editor h2 {
  font: 600 1.5rem var(--font-body);
  margin: 0 0 12px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.community-detail-heading,
.community-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.community-detail-heading > div {
  min-width: 0;
}
.community-detail-heading p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}
.community-detail > p {
  font-size: 0.85rem;
  line-height: 1.8;
}
.community-instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  color: #bcc3d1;
  font-size: 0.84rem;
}
.community-equipment {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.community-equipment > div {
  padding: 12px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  border: 1px solid #3b414f;
  background: #20242e;
  border-radius: 10px;
  min-width: 0;
  text-align: center;
}
.community-equipment img {
  width: 80px;
  max-width: 100%;
  height: 80px;
  object-fit: contain;
}
.community-equipment span {
  font-size: 0.72rem;
  line-height: 1.6;
  color: #c1cbdf;
  overflow-wrap: anywhere;
}
.community-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.community-abilities > span {
  display: grid;
  place-items: center;
  gap: 5px;
}
.community-abilities img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.community-abilities b {
  font-size: 0.65rem;
  color: #aebcdd;
}
.community-composition-details {
  display: grid;
  gap: 14px;
}
.community-composition-details details {
  padding: 20px;
  border: 1px solid #3f4657;
  border-radius: 10px;
  background: #1b1f29;
}
.community-composition-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #d7dfef;
  line-height: 1.7;
}
.community-composition-details summary span:last-child {
  margin-left: 15px;
  color: #a4b6e3;
  font-size: 0.75rem;
}
.community-editor form,
.community-dialog form {
  display: grid;
  gap: 20px;
}
.community-editor label,
.community-dialog label {
  display: grid;
  gap: 9px;
  font-size: 0.82rem;
  color: #c1c9da;
}
.community-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.community-editor .field,
.community-dialog .field {
  width: 100%;
  min-width: 0;
  font-size: 0.85rem;
}
.community-editor textarea,
.community-dialog textarea {
  height: auto;
  padding: 13px;
  min-height: 100px;
  resize: vertical;
}
.community-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.community-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: #1d212a;
  color: #e6eaf3;
  border: 1px solid #6275a2;
  border-radius: 14px;
  padding: 26px;
  overflow: auto;
  box-sizing: border-box;
}
.community-dialog::backdrop {
  background: #05070dd9;
}
.community-dialog h2 {
  font: 600 1.3rem var(--font-body);
  margin: 0 0 22px;
}
.community-dialog h3 {
  font: 600 1.1rem var(--font-body);
  overflow-wrap: anywhere;
}
.community-dialog p,
.community-dialog li {
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.community-notice {
  border: 1px solid #5a6687;
  background: #252f45;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.85;
  color: #c5d2ee;
}
.community-review-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.community-review-equipment img {
  height: 65px;
  width: 65px;
  background: #151922;
  border-radius: 9px;
}
.community-page .gear-studio-layout,
.community-dialog .gear-studio-layout {
  grid-template-columns: 350px minmax(0, 1fr);
}
.community-page .gear-studio-heading h3,
.community-dialog .gear-studio-heading h3 {
  font: 600 1.1rem var(--font-body);
}
.community-page [data-community-members] {
  min-width: 0;
}
.community-page [data-community-members] h3 {
  font: 600 1.1rem var(--font-body);
}
.community-page [data-community-members] > p {
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--muted);
}
.community-page .ops-composition-member {
  background: #20242e;
}
.community-page button:disabled,
.community-dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}
.community-page button:focus-visible,
.community-dialog button:focus-visible {
  outline: 2px solid #a8baff;
  outline-offset: 3px;
}
@media (max-width: 1050px) {
  .community-heading {
    align-items: start;
    flex-direction: column;
  }
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-equipment {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .community-page .gear-studio-layout,
  .community-dialog .gear-studio-layout {
    grid-template-columns: 1fr;
  }
  .community-page .gear-loadout,
  .community-dialog .gear-loadout {
    max-width: 420px;
    margin: auto;
    width: 100%;
  }
}
@media (max-width: 650px) {
  .community-page {
    padding-top: 35px;
  }
  .community-grid,
  .community-field-grid {
    grid-template-columns: 1fr;
  }
  .community-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-filters > input {
    grid-column: 1/-1;
  }
  .community-filters > button {
    grid-column: 1/-1;
  }
  .community-tabs button {
    flex: 1;
    padding: 10px;
    min-width: 110px;
  }
  .community-heading h1 {
    font-size: 2rem;
  }
  .community-detail,
  .community-editor {
    padding: 18px;
  }
  .community-dialog {
    padding: 18px;
  }
  .community-equipment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-actions .button {
    flex: 1;
    min-width: 120px;
  }
  .community-detail-heading .community-actions {
    width: 100%;
  }
  .community-editor-actions .button {
    width: 100%;
    white-space: normal;
  }
  .community-pagination {
    gap: 8px;
    font-size: 0.65rem;
  }
  .community-pagination .button {
    padding: 8px;
    font-size: 0.7rem;
  }
  .community-page .ops-composition-member {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .community-page .ops-composition-member .ops-row-actions {
    grid-column: 1/-1;
  }
  .community-page .gear-loadout,
  .community-dialog .gear-loadout {
    min-width: 0;
  }
}

/* Readable library cards and controls, scoped to the public Builds page. */
.community-page .community-heading p {
  font-size: 16px;
  color: #cdd5e1;
  line-height: 1.7;
}
.community-page .community-navigation {
  gap: 18px;
  margin-bottom: 28px;
}
.community-page .community-tabs {
  padding: 7px;
  gap: 8px;
  background: #202631;
  border-color: #4b566b;
}
.community-page .community-tabs button {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 22px;
  color: #d3dbe8;
  min-height: 48px;
}
.community-page .community-tabs button.active {
  background: #35415d;
  border-color: #a7b9e6;
  color: #fff;
}
.community-page .community-navigation > p {
  font-size: 14px;
  line-height: 1.8;
  color: #c4cddc;
}
.community-page .community-navigation > p a {
  color: #f0d28e;
  text-underline-offset: 3px;
}
.community-page .community-filters {
  padding: 18px;
  background: #1f252f;
  border: 1px solid #4d596e;
  border-radius: 12px;
  margin: 24px 0;
  gap: 14px;
  align-items: center;
}
.community-page .community-filters .field {
  font-size: 14px;
  line-height: 1.5;
  min-height: 48px;
  padding: 12px 14px;
  color: #f1f4fa;
  background: #2a313d;
  border-color: #68758d;
}
.community-page .community-filters .field::placeholder {
  color: #c1cbda;
  opacity: 1;
}
.community-page .community-filters .button {
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
}
.community-page .community-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.community-page .community-card {
  padding: 24px;
  gap: 18px;
  background: #252d3a;
  border-color: #62718a;
  min-height: 310px;
}
.community-page .community-card-heading {
  gap: 20px;
  align-items: center;
}
.community-page .community-card-heading > img,
.community-page .community-card-heading > .armory-picture,
.community-page .community-composition-icon {
  height: 96px;
  width: 96px;
  flex: none;
  border-radius: 10px;
  background: #1b222d;
}
.community-page .community-card-heading > .armory-picture > img {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  background: transparent;
}
.community-page .community-card h2 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 650;
  color: #f5f7fc;
}
.community-page .community-card-heading p {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd8ee;
  margin-top: 7px;
}
.community-page .community-card-description {
  font-size: 16px;
  line-height: 1.75;
  color: #e0e6f0;
  min-height: 56px;
  -webkit-line-clamp: 3;
}
.community-page .community-card-footer {
  font-size: 14px;
  line-height: 1.7;
  color: #c8d3e4;
  padding-top: 16px;
  border-top: 1px solid #4a576c;
}
.community-page .community-card > code {
  font-size: 12px;
  line-height: 1.6;
  color: #bdcce4;
}
.community-page .community-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #91a8d1;
  border-radius: 8px;
  background: #354664;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}
.community-page .community-card:hover {
  border-color: #b8c8e7;
}
.community-page .community-card-link:hover {
  background: #40567b;
  border-color: #c0d2f3;
}
.community-page .community-card-heading:focus-visible,
.community-page .community-card-link:focus-visible {
  outline: 2px solid #f3d58f;
  outline-offset: 5px;
  border-radius: 8px;
}
.community-page .community-pagination {
  margin-top: 28px;
  padding: 18px 0;
  gap: 18px;
  font-size: 14px;
  color: #d1daea;
  flex-wrap: wrap;
  line-height: 1.6;
}
.community-page .community-pagination .button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 16px;
}
@media (max-width: 800px) {
  .community-page .community-grid {
    grid-template-columns: 1fr;
  }
  .community-page .community-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-page .community-filters > input {
    grid-column: 1/-1;
  }
  .community-page .community-filters > .button {
    grid-column: 1/-1;
  }
}
@media (max-width: 650px) {
  .community-page .community-tabs button {
    padding: 10px 14px;
    font-size: 14px;
    min-width: 120px;
  }
  .community-page .community-filters {
    padding: 15px;
    gap: 12px;
  }
  .community-page .community-card {
    padding: 20px;
    gap: 16px;
    min-height: 300px;
  }
  .community-page .community-card-heading {
    gap: 15px;
  }
  .community-page .community-card-heading > img,
  .community-page .community-card-heading > .armory-picture,
  .community-page .community-composition-icon {
    height: 82px;
    width: 82px;
  }
  .community-page .community-card h2 {
    font-size: 20px;
  }
  .community-page .community-card-description {
    font-size: 15px;
  }
  .community-page .community-heading p {
    font-size: 15px;
  }
  .community-page .community-pagination {
    gap: 12px;
  }
  .community-page .community-pagination .button {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .community-page .community-card {
    padding: 16px;
  }
  .community-page .community-card-heading > img,
  .community-page .community-card-heading > .armory-picture,
  .community-page .community-composition-icon {
    height: 72px;
    width: 72px;
  }
  .community-page .community-card h2 {
    font-size: 18px;
  }
  .community-page .community-card-heading p {
    font-size: 13px;
  }
  .community-page .community-card-footer {
    font-size: 13px;
  }
  .community-page .community-filters {
    padding: 12px;
    gap: 10px;
  }
}

.community-page .community-votes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0;
  min-width: 0;
}
.community-page .community-vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #7e8da6;
  border-radius: 8px;
  background: #202a39;
  color: #e2eaf7;
  text-decoration: none;
  font: 500 13px/1.4 var(--font-body);
  cursor: pointer;
  box-sizing: border-box;
}
.community-page .community-vote svg {
  height: 19px;
  width: 19px;
  flex: none;
}
.community-page .community-vote strong {
  font-size: 14px;
  font-weight: 650;
  min-width: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.community-page .community-vote:hover {
  border-color: #c5d6f3;
  background: #33445e;
  color: #fff;
}
.community-page .community-vote.is-active {
  border-color: #f0cf85;
  color: #ffe3a0;
  background: #493e27;
  box-shadow: inset 0 0 0 1px #a99059;
}
.community-page .community-vote:focus-visible {
  outline: 2px solid #f2d18a;
  outline-offset: 4px;
}
.community-page .community-vote:disabled {
  opacity: 0.6;
  cursor: wait;
}
.community-page .community-detail > .community-votes {
  margin: 20px 0 24px;
}
@media (max-width: 650px) {
  .community-page .community-card .community-vote {
    flex: 1;
    font-size: 12px;
    padding: 10px;
  }
  .community-page .community-votes {
    gap: 8px;
  }
}
.community-page .community-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform: none;
}
.community-page .community-card::after {
  content: none;
}
.community-page .community-tabs button {
  overflow-wrap: anywhere;
}

/* Equipment-first community library. */
.community-page .community-library-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #1c2024;
  border-color: #434a52;
  align-items: end;
  padding: 22px;
  gap: 18px;
}
.community-library-filters > label {
  display: grid;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #d9e1ea;
  line-height: 1.5;
}
.community-library-filters .library-search {
  grid-column: span 2;
}
.community-page .community-library-filters .field {
  background: #252b32;
  border-color: #525f70;
  min-height: 46px;
}
.library-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.library-filter-actions .button {
  flex: 1;
  padding: 12px;
}
.library-weapons {
  display: flex;
  gap: 9px;
  grid-column: 1/-1;
  overflow-x: auto;
  padding: 4px 2px 12px;
  max-width: 100%;
  scrollbar-width: thin;
}
.library-weapons button {
  width: 62px;
  height: 62px;
  flex: none;
  padding: 3px;
  border: 1px solid #4c5664;
  border-radius: 8px;
  background: #14191e;
  cursor: pointer;
}
.library-weapons .armory-picture {
  width: 100%;
  height: 100%;
}
.library-weapons button[aria-pressed='true'] {
  border-color: #e6c374;
  background: #443a26;
  box-shadow: 0 0 0 1px #e6c374;
}
.library-display {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #3e464f;
}
.library-toggles {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.library-toggles label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #d5dfe9;
  cursor: pointer;
}
.library-toggles input {
  width: 18px;
  height: 18px;
  accent-color: #d8b968;
}
.community-page .community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.community-page .library-build-card {
  padding: 20px;
  gap: 12px;
  border: 1px solid #414a52;
  background: linear-gradient(150deg, #252a2d, #1a1e22);
  border-radius: 12px;
  min-height: 0;
  box-shadow: 0 8px 24px #0002;
  position: relative;
  overflow: hidden;
}
.library-card-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  flex-wrap: wrap;
}
.library-activity {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.025em;
  padding: 5px 9px;
  border: 1px solid #406c83;
  color: #b6e5ff;
  background: #1a3542;
  border-radius: 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.library-activity[data-activity='pve'],
.library-activity[data-activity='openworld'],
.library-activity[data-activity='gathering'] {
  color: #bcf2cf;
  border-color: #387052;
  background: #193a2a;
}
.library-activity[data-activity='hellgate'],
.library-activity[data-activity='corrupted'] {
  color: #ffc7c7;
  border-color: #914848;
  background: #48252a;
}
.library-activity[data-activity='zvz'],
.library-activity[data-activity='avalonian'] {
  color: #e1d0ff;
  border-color: #715496;
  background: #362747;
}
.community-page .library-card-top .community-votes {
  margin: 0;
  gap: 5px;
  flex-wrap: nowrap;
}
.community-page .library-card-top .community-vote {
  padding: 7px 9px;
  gap: 5px;
  min-height: 36px;
  border-color: #56616b;
  background: #181d22;
  color: #d4dce8;
  border-radius: 6px;
  flex: none;
}
.community-page .library-card-top .community-vote.is-active {
  border-color: #d9bc72;
  color: #ffe2a1;
  background: #413722;
}
.library-card-top .community-vote > span {
  display: none;
}
.community-page .library-card-top .community-vote svg {
  width: 15px;
  height: 15px;
}
.community-page .library-card-top .community-vote strong {
  font-size: 13px;
}
.library-card-title {
  color: #f7f4e9;
  text-decoration: none;
  display: block;
  min-width: 0;
}
.community-page .library-card-title h2 {
  font-size: 19px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-card-title:hover h2 {
  color: #f3ce7d;
}
.library-card-role {
  font-size: 12px;
  color: #c2cbd6;
  line-height: 1.6;
  margin: 0;
}
.library-equipment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 270px;
  align-self: center;
  padding: 12px;
  box-sizing: border-box;
  background: radial-gradient(ellipse at center, #5f50352a, transparent 75%), #15191b;
  border: 1px solid #4c4940;
  border-radius: 10px;
  text-decoration: none;
}
.library-gear {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid #554d3d;
  border-radius: 7px;
  background: #242724;
  overflow: hidden;
}
.library-gear .armory-picture {
  width: 100%;
  height: 100%;
}
.library-gear.is-empty {
  border-color: #343b3e;
  background: #181d1f;
  color: #65717a;
}
.library-gear.is-empty .armory-slot-glyph {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}
.library-variants {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 36px;
}
.library-variants > span:first-child {
  font-size: 12px;
  color: #ccd3de;
  margin-right: 3px;
}
.library-variants > span:not(:first-child) {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid #4d5358;
  background: #181c20;
}
.library-variants .armory-picture {
  width: 100%;
  height: 100%;
}
.community-page .library-build-card .community-card-description {
  font-size: 14px;
  line-height: 1.65;
  min-height: 0;
  -webkit-line-clamp: 2;
  color: #cdd6df;
}
.community-page .library-build-card .community-card-footer {
  padding-top: 12px;
  border-color: #3f474f;
  gap: 6px 12px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: auto;
}
.community-page .library-build-card .community-card-footer > span:first-child {
  font-size: 13px;
  color: #e0e5ed;
  overflow-wrap: anywhere;
}
.community-card-footer time {
  color: #b4c2d2;
}
.community-page .library-build-card .community-card-link {
  min-height: 40px;
  padding: 8px 12px;
  background: #30353a;
  border-color: #5e6260;
  color: #f1dfb7;
  justify-content: space-between;
  font-size: 13px;
}
.community-page .library-build-card .community-card-link:hover {
  border-color: #ddbd77;
  background: #3a3b34;
}
.community-grid[data-equipment='false'] .library-equipment,
.community-grid[data-variants='false'] .library-variants {
  display: none;
}
@media (max-width: 1100px) {
  .community-page .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-page .community-library-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .community-library-filters .library-search {
    grid-column: span 2;
  }
  .library-filter-actions {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  .community-page .community-grid {
    grid-template-columns: 1fr;
  }
  .community-page .community-library-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 14px;
  }
  .community-library-filters .library-search {
    grid-column: 1/-1;
  }
  .library-filter-actions {
    grid-column: 1/-1;
  }
  .community-page .community-library-filters .field {
    padding: 10px;
    font-size: 13px;
  }
  .community-page .library-build-card {
    padding: 18px;
  }
  .library-equipment {
    max-width: 285px;
  }
  .library-display {
    align-items: flex-start;
  }
  .library-toggles {
    gap: 18px;
  }
  .library-toggles label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .community-page .community-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .community-page .community-tabs button {
    min-width: 0;
    width: 100%;
    padding: 10px 5px;
    font-size: 13px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .community-page .community-pagination {
    font-size: 12px;
    gap: 8px;
  }
  .community-page .community-pagination .button {
    font-size: 12px;
    padding: 8px 10px;
  }
}
@media (max-width: 700px) {
}

/* Publication references remain readable and easy to copy on desktop and mobile. */
.community-publication-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}
.community-id-label {
  font-size: 13px;
  font-weight: 600;
  color: #ccd6df;
}
.community-id-control {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #53605d;
  border-radius: 8px;
  overflow: hidden;
  background: #111b1b;
}
.community-id-control code {
  padding: 10px 12px;
  color: #ecd493;
  font:
    500 13px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
  white-space: normal;
  user-select: all;
  min-width: 0;
  background: transparent;
}
.community-id-copy {
  display: grid;
  place-items: center;
  flex: none;
  align-self: stretch;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid #53605d;
  border-radius: 0;
  background: #273332;
  color: #f1dfae;
  cursor: pointer;
}
.community-id-copy:hover,
.community-id-copy.is-copied {
  background: #3c4a39;
  color: #fff2bd;
}
.community-id-copy:focus-visible {
  outline: 2px solid #f3d58f;
  outline-offset: -4px;
}
.community-detail-heading > div:first-child {
  min-width: 0;
}

/* Share the frame while letting each preview use the available card width. */
.community-page .community-grid .library-build-card {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  min-height: 590px;
}
.community-grid .library-build-card > * {
  min-width: 0;
}
.library-card-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  min-height: 78px;
}
.community-page .library-card-heading h2 {
  font-size: 19px;
  line-height: 25px;
}
.library-card-heading .library-card-role {
  overflow-wrap: anywhere;
}
.library-card-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 265px;
  flex: 1;
}
.community-page .community-grid .library-card-visual .library-equipment {
  max-width: 250px;
  width: 100%;
  margin: 0;
  flex: none;
  padding: 10px;
  gap: 6px;
}
.community-page .library-build-card .library-variants {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 32px;
  margin: 0;
}
.community-page .library-build-card .library-variants > span:not(:first-child) {
  width: 32px;
  height: 32px;
}
.community-page .library-build-card .library-variants > span:first-child {
  font-size: 12px;
}
.community-page .community-grid .library-build-card .community-card-description {
  font-size: 13px;
  line-height: 20px;
  min-height: 0;
  max-height: 40px;
  margin: 0;
  padding: 0;
  -webkit-line-clamp: 2;
}
.community-page .community-grid .library-build-card .community-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 32px;
  padding: 8px 0 0;
  margin: 0;
  font-size: 12px;
  line-height: 18px;
}
.community-page .community-grid .library-build-card .community-card-footer > span:first-child {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.community-card-footer time {
  flex: none;
}
.community-page .community-grid .library-build-card .community-card-link {
  margin: 0;
  min-height: 44px;
  font-size: 13px;
  padding: 10px 12px;
}
.library-composition-preview {
  min-height: 0;
  display: grid;
  gap: 8px;
}
.library-role-summary {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.library-role-summary > span {
  font-size: 10px;
  line-height: 15px;
  padding: 3px 7px;
  border: 1px solid #466073;
  border-radius: 14px;
  color: #c5dceb;
  background: #243943;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.library-role-summary > [data-role='healer'] {
  background: #20392d;
  border-color: #3d6251;
  color: #b8dfc6;
}
.library-role-summary > [data-role^='dps'] {
  background: #3b2c28;
  border-color: #70534c;
  color: #f2c6b4;
}
.library-roster-heading {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: #a3b7c0;
  line-height: 16px;
}
.library-roster-heading > span:last-child {
  white-space: nowrap;
}
.library-roster {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
.library-roster li {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 8px;
  background: #182023;
  border: 1px solid #374349;
  border-radius: 7px;
}
.library-slot-index {
  font-size: 10px;
  color: #859aa5;
}
.library-roster .armory-picture {
  height: 34px;
  width: 34px;
  flex: none;
  border: 1px solid #6e6445;
  border-radius: 5px;
}
.library-roster li > div {
  display: grid;
  min-width: 0;
}
.library-roster strong {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.library-roster li > div > span {
  font-size: 11px;
  line-height: 15px;
  color: #a6bac5;
  overflow-wrap: anywhere;
}
.library-preview-fallback {
  color: #e3cf97;
}
.community-page
  .community-grid[data-equipment='false']
  .library-build-card
  :is(.library-equipment, .library-roster .armory-picture) {
  display: none;
}
.community-page .community-grid[data-variants='false'] .library-build-card .library-variants {
  display: none;
}
@media (max-width: 700px) {
  .community-page .community-grid .library-build-card {
    padding: 17px;
  }
}

.community-page .community-grid .library-build-card .library-source-note {
  display: block;
  max-height: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  color: #cbd6d5;
  font-size: 13px;
  line-height: 1.7;
}

.community-page .community-heading {
  align-items: flex-start;
}
.community-library-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.community-library-toolbar .community-tabs {
  flex: 1 1 450px;
  margin: 0;
}
.community-create-actions {
  flex: 0 1 auto;
  gap: 10px;
}
.community-page .community-create-actions .button {
  min-height: 46px;
  padding: 12px 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  border-radius: 10px;
}
.community-create-actions svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}
.community-page .community-library-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}
.community-library-filters .library-search {
  grid-column: span 2;
}
.community-library-filters .library-filter-actions {
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.community-library-filters .library-filter-actions .button {
  min-height: 46px;
  flex: 1;
  padding: 10px 14px;
  white-space: nowrap;
}
.library-weapon-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #d9e1ea;
}
.library-weapon-picker {
  position: relative;
  min-width: 0;
}
.community-page .library-weapon-picker summary.field {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 5px 12px;
  min-height: 46px;
  height: 46px;
  box-sizing: border-box;
}
.library-weapon-picker summary::-webkit-details-marker {
  display: none;
}
.library-weapon-picker summary > span:not(.library-picker-chevron) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-weapon-picker summary img,
.library-weapon-options img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.library-weapon-picker summary .armory-picture,
.library-weapon-options .armory-picture {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.library-picker-chevron {
  margin-left: auto;
  color: #dfc47d;
}
.library-weapon-picker[inert] {
  opacity: 0.5;
}
.library-weapon-picker[open] summary {
  border-color: #dfc47d;
}
.library-weapon-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 290px);
  max-width: calc(100vw - 68px);
  max-height: 340px;
  overflow-y: auto;
  background: #202027;
  border: 1px solid #59525c;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 35px #0008;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.library-weapon-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  min-height: 44px;
  color: #f2f0f6;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font: 500 13px/1.5 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.library-weapon-options button:hover,
.library-weapon-options button[aria-pressed='true'] {
  background: #d9bc8020;
  border-color: #d9bc8050;
}
.library-weapon-options button:focus-visible,
.library-weapon-picker summary:focus-visible {
  outline: 2px solid #dfc47d;
  outline-offset: 2px;
}
.library-weapons {
  scrollbar-width: thin;
  scrollbar-color: #a18b61 transparent;
}
@media (max-width: 1100px) {
  .community-library-toolbar .community-tabs {
    flex-basis: 100%;
  }
  .community-page .community-library-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .community-library-filters .library-filter-actions {
    grid-column: span 2;
  }
}
@media (max-width: 700px) {
  .community-page .community-library-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-library-filters .library-search,
  .community-library-filters .library-filter-actions {
    grid-column: 1/-1;
  }
  .community-create-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-page .community-create-actions .button {
    padding: 12px 9px;
    font-size: 13px;
    white-space: normal;
  }
  .community-page .community-tabs button {
    min-width: 0;
    flex: 1;
  }
  .library-weapon-options {
    left: auto;
    right: 0;
  }
}

.community-page .community-pagination {
  flex-direction: column;
  gap: 10px;
}
.community-page-summary {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.community-page-controls,
.community-page-jumps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.community-page .community-pagination [aria-current="page"] {
  color: #101217;
  background: var(--gold, #dfc486);
  border-color: var(--gold, #dfc486);
  opacity: 1;
  cursor: default;
}
.community-page .community-page-jumps .button {
  min-width: 44px;
  padding-inline: 10px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 550px) {
  .community-page-jumps {
    order: 1;
    flex-basis: 100%;
  }
}
