.album-icon-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.album-icon-picker legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.album-icon-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(80px, 100%), 1fr));
  gap: 8px;
}

.album-icon-options label {
  display: block;
  position: relative;
  cursor: pointer;
}

.album-icon-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.album-icon-options label > span {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 6px 3px;
  border: 1px solid #dce9df;
  border-radius: 9px;
  background: white;
  text-align: center;
  font-size: 11px;
}

.album-icon-options input:checked + span {
  border-color: #247553;
  background: #e5f4e9;
  box-shadow: inset 0 0 0 1px #247553;
}

.album-icon-options input:focus-visible + span {
  outline: 2px solid #247553;
  outline-offset: 2px;
}

.album-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.album-entry .album-card {
  position: relative;
  flex: 1;
  min-width: 0;
  border-color: #deeadf;
  border-radius: 17px;
  background: #fff;
  padding: 13px 15px;
}

.album-card-art {
  display: grid;
  grid-template-columns: minmax(0, 84px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 84px;
}

.album-ball-icon {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.album-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  justify-self: center;
  width: min(100%, 144px);
  aspect-ratio: 1;
  gap: 16px;
}

.album-thumbnail {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.album-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.album-thumbnail .icon {
  width: 55%;
  height: 55%;
  color: #6c897a;
}

.album-card h3 {
  margin: 6px 0 0;
  color: #164b37;
  overflow-wrap: anywhere;
}

.album-card p {
  margin: 3px 0 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .album-entry .album-card {
    border-radius: 14px;
    padding: 12px;
  }
}

.album-card-open {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.album-card-open:focus-visible {
  outline: 2px solid #247553;
  outline-offset: 2px;
}

.album-entry > .album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  border: 0;
  padding: 4px 2px 0;
}

.album-entry > .album-actions button {
  min-height: 44px;
}
