.madaro-access {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}
.madaro-access[hidden], [data-save-piece][hidden] { display: none; }
.entry > .madaro-access {
  position: absolute;
  inset: 1rem 1rem auto auto;
  z-index: 5;
}
.madaro-access button, .madaro-favorite-piece, .madaro-dialog button {
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid #9c795c;
  border-radius: 2rem;
  background: #251f1c;
  color: #fff;
  font: 500 .875rem system-ui, sans-serif;
  cursor: pointer;
}
.madaro-access button:hover, .madaro-favorite-piece:hover, .madaro-dialog button:hover { background: #4a3830; }
.madaro-access button:focus-visible, .madaro-favorite-piece:focus-visible, .madaro-dialog :focus-visible { outline: 2px solid #b78142; outline-offset: 3px; }
.madaro-favorite-piece { margin-bottom: 1rem; }
.madaro-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: 85vh;
  box-sizing: border-box;
  padding: 1.4rem;
  color: #211a15;
  background: #fffcf6;
  border: 1px solid #b99a72;
  border-radius: 1.2rem;
  font: 1rem/1.5 system-ui, sans-serif;
}
.madaro-dialog::backdrop { background: #15100ccc; }
.madaro-dialog h2 { margin: 0 0 .75rem; font: 600 2rem 'Cormorant Garamond', Georgia, serif; }
.madaro-dialog p { margin: .6rem 0; }
.madaro-dialog input { display: block; width: 100%; box-sizing: border-box; padding: .65rem; font: inherit; margin: .35rem 0 .7rem; }
.madaro-dialog ul { padding-left: 1.2rem; }
.madaro-dialog li { margin-bottom: .6rem; }
.madaro-dialog li a { color: #674620; margin-right: .5rem; }
.madaro-dialog [data-close-panel] { margin-top: 1rem; }
@media (max-width: 650px) { .collection-header:has(.madaro-access) { flex-wrap: wrap; } }

.minimal .collection-header { position: relative; min-height: 64px; }
.collection-header .elegance-access { position: absolute; right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); flex-wrap: nowrap; gap: .15rem; }
.elegance-access button { position: relative; display: grid; place-items: center; width: 44px; padding: 0; color: inherit; background: transparent; border: 0; }
.elegance-access button:hover { background: #9c795c35; }
.entry > .elegance-access button { color: #fff; background: #1c1610a8; }
.collection-header:has(.elegance-access) { position: relative; padding-right: max(7.5rem, 13vw); }
.minimal .collection-header:has(.elegance-access) { padding-left: max(7.5rem, 13vw); }
.elegance-access svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.elegance-access [data-favorite-count] { position: absolute; right: 0; top: 0; min-width: 1rem; height: 1rem; line-height: 1rem; border-radius: 1rem; background: #6c4828; color: white; font-size: .66rem; }
.elegance-access [data-favorite-count="0"] { display: none; }
@media(max-width: 420px) { .minimal .collection-header:has(.elegance-access) { justify-content: flex-start; padding-left: .8rem; } }
