.atlas-share {
  box-sizing: border-box;
  width: min(30.625rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #d0d2c1;
  border-radius: 1rem;
  background: #fffdf6;
  color: var(--ink);
  box-shadow: 0 1rem 3.6rem #17362929;
  overflow: auto;
}
.atlas-share::backdrop { background: #203c3485; }
.atlas-share [hidden] { display: none; }
.atlas-share .share-head, .share-title, .share-by, .share-switch, .share-actions { display: flex; align-items: center; }
.atlas-share .share-head {
  position: static; justify-content: space-between;
  margin: 0 0 1.15rem; padding: 0; background: none; color: inherit; border: 0;
}
.share-title { gap: .4rem; }
.atlas-share .share-head h2 { font-size: 1.65rem; letter-spacing: -.045em; margin: 0; }
.atlas-share button { font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.atlas-share :focus-visible { outline: 3px solid #b56b31; outline-offset: 3px; }
.atlas-share .share-close, .atlas-share .share-back {
  width: 42px; height: 42px; padding: 0; border: 0; background: transparent;
  font: 1.65rem/1 system-ui; border-radius: .4rem;
}
.share-summary { padding: 1.1rem 1.25rem .75rem; background: #f6f3e8; border: 1px solid #e4e0cd; border-radius: .6rem; }
.share-by { justify-content: space-between; gap: .5rem; font-size: .85rem; color: #52665b; }
.share-by strong { display: inline-flex; align-items: center; gap: .45rem; color: #315347; }
.share-by img { display: block; flex: none; }
.share-context { display: block; margin-top: .7rem; color: var(--muted); }
.share-context:not([hidden]) + .share-sentence { margin-top: .25rem; }
.share-sentence { margin: .8rem 0 .4rem; font-size: clamp(1.65rem,5vw,2.05rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.share-map { display: block; width: 100%; height: clamp(92px,15vh,114px); object-fit: contain; }
.share-map.has-overview { height: auto; }
.share-switch { justify-content: space-between; min-height: 3.5rem; cursor: pointer; font-weight: 550; }
.share-guess {
  appearance: none; position: relative; width: 38px; height: 23px; padding: 0; margin: 0;
  border: 1px solid #929e91; border-radius: 1rem; background: #d2d8cc; cursor: pointer;
}
.share-guess::before { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: white; }
.share-guess:checked { background: #245545; border-color: #245545; }
.share-guess:checked::before { left: 18px; }
.share-actions { gap: .55rem; border-top: 1px solid #dce0d3; padding-top: .85rem; }
.share-switch[hidden] + .share-actions { margin-top: 1rem; }
.share-actions button, .atlas-share .share-export {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem .35rem; min-height: 44px; border-radius: .45rem;
  border: 1px solid #97a99a; background: transparent; font-size: .95rem;
}
.share-actions svg { width: 1.1rem; height: 1.1rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.atlas-share .share-copy, .atlas-share .share-export { background: #184a3f; border-color: #184a3f; color: white; }
.share-formats { display: flex; gap: .25rem; padding: .2rem; margin-bottom: .75rem; border: 1px solid #c8cdbd; border-radius: .5rem; }
.share-formats button { flex: 1; min-height: 44px; border: 0; border-radius: .35rem; background: transparent; }
.share-formats [aria-pressed=true] { background: #dce8db; }
.share-preview { display: grid; place-items: center; min-height: 8rem; padding: .65rem; background: #e7ebdf; border-radius: .5rem; }
.share-preview canvas { display: block; max-width: 100%; height: min(39dvh,325px); object-fit: contain; }
.atlas-share .share-export { margin-top: .9rem; width: 100%; }
.share-export:disabled { opacity: .55; }
.share-url { width: 100%; margin-top: .6rem; padding: .5rem; font: inherit; }
.share-status { margin: .6rem 0 0; font-size: .9rem; color: #335941; }
.share-status:empty { display: none; }
@media (max-width: 600px) {
  .share-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .share-actions button { min-height: 46px; }
}

.share-copy .copy-check, .share-copy.is-copied .copy-symbol { display: none; }
.share-copy.is-copied .copy-check { display: block; }
