.art-tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 5px;
  color: #254540;
  background: #dfebe6;
  font: 700 11px/1 system-ui, sans-serif;
}
.art-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-role, .art-role-picker { display: flex; align-items: center; gap: 8px; min-width: 0; }
.art-role-picker select { min-width: 0; flex: 1; }
.art-role-picker .art-preview:empty { display: none; }
.art-record { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 6px 10px; margin-bottom: 7px; }
.art-record .art-role span:last-child { overflow-wrap: anywhere; }
.art-record .art-tile { width: 46px; height: 46px; }
.art-draw {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 12px 0;
}
.art-draw .art-role {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f6f8f7;
}
.art-draw .art-tile {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 0;
  border-bottom: 3px solid #647981;
  background: #e2eae6;
}
.art-draw [data-rarity="SR"] .art-tile { border-color: #896998; }
.art-draw [data-rarity="SSR"] .art-tile { border-color: #bc8831; }
.art-draw .art-caption { padding: 6px 8px 8px; line-height: 1.35; }
.art-draw .art-name { display: block; font-weight: 650; overflow-wrap: anywhere; }
.art-rarity { font-size: 12px; color: var(--muted); }
.art-draw .art-role:only-child { width: min(142px, 100%); grid-column: 1 / -1; }
.art-official { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 148px), 1fr)); gap: 10px; padding: 0; list-style: none; }
.art-official .art-role { overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 540px) {
  .art-draw { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
}
#artwork-library summary { cursor: pointer; font-weight: 650; }
.art-library-body { margin-top: 12px; }
.art-badges { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 12px 0; }
.art-library-body a { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 14px; }
.art-credits { padding-left: 0; list-style: none; }
.art-credits li { margin-top: 12px; }
