.edition-switch {
  display: inline-flex; align-items: center; gap: 2px; width: max-content; padding: 2px;
  background: #211a2eee; border: 1px solid #dbc39a76; border-radius: 50px;
  box-shadow: 0 2px 15px #170f263d; color: #f3e9dd;
}
.edition-switch--site { position: fixed; z-index: 7; top: max(8px,env(safe-area-inset-top)); right: max(13px,env(safe-area-inset-right)); }
.edition-switch button {
  display: grid; place-items: center; border: 0; border-radius: 50px; min-width: 38px; min-height: 31px;
  padding: 2px 7px; cursor: pointer; background: transparent; color: #dbccdf;
  font: 600 .73rem/1 system-ui,sans-serif; letter-spacing: .045em;
}
.edition-switch button[aria-pressed="true"] { background: #ede0ce; color: #271d32; }
.edition-switch button[aria-pressed="false"]:hover { background: #4a3b56; color: white; }
.edition-switch button:focus-visible { outline-offset: 0; }
dialog .edition-switch { margin-right: auto; align-self: flex-start; }
.chapter-gate .preview-dismiss { align-items: center; }
.chapter-actions .private-label { color: var(--paper); font-size: .84rem; }
.chapter-lock-group { display: inline-flex; gap: .45rem; align-items: center; }
@media (pointer:coarse) { .edition-switch button { min-height: 39px; min-width: 41px; } }
.map { container-type: inline-size; }
.map-print-names { position: absolute; inset: 0; pointer-events: none; }
.map-print-names, .map-print-names--portrait { display: none; }
html[lang="en"] .map-print-names--wide { display: block; }
.map-print-names > * {
  position: absolute; left: var(--tag-x); top: var(--tag-y); transform: translate(-50%,-50%);
  display: grid; place-content: center; justify-items: center;
  min-width: var(--tag-width); min-height: var(--tag-height); padding: 0 .18em;
  color: #f8eee4; text-decoration: none; text-align: center;
  font: italic 1.22cqw/1.02 Georgia,serif; white-space: pre;
  background: #292337; border-radius: .24em; box-shadow: 0 0 .22em .13em #292337dd;
}
.map-print-names a { pointer-events: auto; }
.map-print-names a:hover { color: #ffe3ab; }
.map-print-names--portrait > * { font-size: 2.45cqw; }
@media (max-width:740px), (max-width:1100px) and (pointer:coarse) {
  html[lang="en"] .map-print-names--wide { display: none; }
  html[lang="en"] .map-print-names--portrait { display: block; }
}
.chapter-actions .chapter-lock { width: auto; height: auto; min-height: 40px; padding: .35rem .7rem; border-radius: 2rem; display: inline-flex; align-items: center; gap: .5rem; }
.chapter-actions .chapter-lock .private-label { font-size: .81rem; }
.reader-controls #relock-reader { grid-column: 1 / -1; justify-self: center; min-height: 2rem; margin-top: .15rem; font-size:.8rem; }
