.detail-dialog:is([data-view="point"], [data-view="group"]) {
  width: min(calc(100% - 2.25rem), 40.5rem);
  max-height: min(79dvh, 49rem);
  border-color: #936d9a96;
  border-radius: 1.2rem;
  background: linear-gradient(154deg, #291d34, #1a1426 70%);
  box-shadow: 0 18px 70px #0b0719b8, inset 0 1px #e2b2f326;
  transform-origin: center;
  animation: none;
  scrollbar-color: #725481 transparent;
  scrollbar-gutter: stable;
}

.detail-dialog:is([data-view="point"], [data-view="group"])::backdrop {
  background: #10081b28;
  backdrop-filter: none;
}

.detail-dialog:is([data-view="point"], [data-view="group"]) > form {
  height: 1px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.detail-dialog:is([data-view="point"], [data-view="group"]) .dialog-close {
  inset: .72rem .72rem auto auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .72rem;
  background: #382940;
  box-shadow: 0 2px 10px #0a0711a1, inset 0 1px #f7dfef19;
}

.detail-dialog:is([data-view="point"], [data-view="group"]) .dialog-close:hover { background: #593755; }

.tag-access, .result-access {
  --tag-color: #a7e3d5;
}

.result-access {
  display: inline-block;
  color: var(--tag-color);
  border: 1px solid #4f796b;
  border-radius: .3rem;
  padding: .02rem .35rem;
  margin-top: .3rem;
  font-size: .68rem;
  line-height: 1.4;
}

.point-access {
  display: grid;
  gap: .65rem;
  border: 1px solid #587f7885;
  border-radius: .82rem;
  padding: .88rem;
  background: linear-gradient(140deg, #222e34, #20202f 65%, #241d30);
}

.point-access-heading h3 { margin: 0 0 .24rem; }
.point-access-precision {
  display: flex;
  align-items: center;
  gap: .34rem;
  color: #afe5d9;
  font-size: .83rem;
  font-weight: 600;
}
.point-access-steps {
  margin: 0;
  padding-inline-start: 1.35rem;
  font-size: .93rem;
}
.point-access-steps li { padding-inline-start: .25rem; }
.point-access-steps li::marker { font-weight: 720; color: #a7e3d5; }
.point-access-note { color: #d2c4d8; font-size: .81rem; }
.point-access-sources {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .28rem .6rem;
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.point-access-sources h4 { margin: 0; color: #e6dfea; font-size: inherit; }

.point-gallery {
  display: grid;
  gap: .7rem;
  min-width: 0;
}
.point-gallery h3 { margin: 0; }

.point-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #7657838c;
  border-radius: .85rem;
  background: #171020;
}

.point-photo-preview {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0f0c18;
  overflow: hidden;
  cursor: zoom-in;
}

.point-photo-preview:focus-visible { outline-offset: -3px; }
.point-photo-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 24dvh;
  object-fit: contain;
  transition: max-height .22s ease;
}
.point-photo.is-enlarged .point-photo-preview { cursor: zoom-out; }
.point-photo.is-enlarged .point-photo-image { max-height: 46dvh; }

.point-photo-zoom-icon {
  position: absolute;
  display: grid;
  place-items: center;
  right: .62rem;
  bottom: .62rem;
  width: 2.2rem;
  aspect-ratio: 1;
  border: 1px solid #c0a3c985;
  border-radius: .55rem;
  background: #241931ee;
  color: #fbe7ff;
  pointer-events: none;
}

.point-photo figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .55rem;
  padding: .58rem .72rem;
  font-size: .85rem;
}

.point-photo-caption { min-width: 0; overflow-wrap: anywhere; }
.point-photo-credits {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem .48rem;
  color: #c7b6cc;
  margin-top: .1rem;
}
.point-photo-credits span:empty { display: none; }
.point-photo-fallback { padding: .66rem .72rem; color: #ddcbe3; }

.point-photo-thumbnails {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .2rem .2rem .38rem;
}

.point-photo-thumbnails button {
  display: grid;
  justify-items: start;
  flex: 0 0 5.8rem;
  color: #e4d1ea;
  border: 1px solid #65476f;
  border-radius: .52rem;
  padding: .22rem;
  background: #21172c;
  font-size: .76rem;
}
.point-photo-thumbnails button[aria-pressed="true"] { border-color: #f495cb; color: #fff0f7; }
.point-photo-thumbnails img { display: block; width: 100%; height: 2.8rem; object-fit: cover; border-radius: .28rem; }
.point-photo-thumbnails span { padding: .15rem .23rem .01rem; }

.detail-body .point-media-links {
  display: grid;
  gap: .45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.detail-body .point-media-links li { margin: 0; }
.point-media-links a {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .63rem;
  padding: .54rem .62rem;
  border-radius: .55rem;
  border: 1px solid #684773a3;
  background: #241931;
  color: #f4e5f2;
  font-size: .88rem;
}
.point-media-links a:hover { border-color: #f0acdaaa; background: #3b2347; }
.point-media-links a > [data-icon] { color: #f5abdb; font-size: 1.04rem; }
.point-media-links strong { display: block; overflow-wrap: anywhere; }
.point-media-links small { display: block; color: #cdadcf; }

@media (max-width: 600px) {
  .detail-dialog:is([data-view="point"], [data-view="group"]) {
    width: calc(100% - 1.85rem);
    max-height: 76dvh;
    border-radius: .9rem;
  }
  .detail-dialog:is([data-view="point"], [data-view="group"]) #dialog-content { padding: 1.05rem; }
  .detail-dialog:is([data-view="point"], [data-view="group"]) .detail-top h2 {
    font-size: clamp(1.8rem, 8vw, 2.65rem);
  }
}
