.cover-stage { position: relative; }
#language-control {
  position: absolute;
  z-index: 2;
  inset: max(12px, calc((100% - var(--cover-height, 100%)) / 2 + 12px)) max(14px, calc((100% - var(--cover-width, 100%)) / 2 + 14px)) auto auto;
  display: grid;
  align-items: start;
  min-height: 44px;
}
#language-control > span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg);
  color: #000;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.theme-dark #language-control > span { color: var(--text); }
#language-control svg { width: 15px; height: 15px; }
#language-choice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#language-control:focus-within > span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#cover-load-error {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  width: max-content;
  max-width: 95%;
}
#cover-load-error button, [data-russian] { padding: 10px; min-height: 44px; }
[data-russian] { text-decoration: underline; color: var(--accent); }
html:not(:lang(ru)) .cover-actions > button { white-space: normal; line-height: 1.15; overflow-wrap: anywhere; }
html:not(:lang(ru)) .cover-actions > button { padding-inline: 5px; gap: 4px; }
html:not(:lang(ru)) .reviews-heading p, html:not(:lang(ru)) .toc-name { overflow-wrap: anywhere; }
html:lang(zh-Hans), html:lang(zh-Hans) :is(.sidebar-book strong,.reviews-heading .eyebrow,.poster-title) {
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
html:lang(hi), html:lang(hi) :is(.sidebar-book strong,.reviews-heading .eyebrow,.poster-title) {
  font-family: system-ui, "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", Mangal, sans-serif;
}
#language-choice option:lang(zh-Hans) { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
#language-choice option:lang(hi) { font-family: "Nirmala UI", "Kohinoor Devanagari", sans-serif; }
.edition-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 8px; }
@media (scripting: none) { .cover-actions, .cover-progress { display: none; } }
.edition-preview-body{overflow:auto;min-height:100dvh}
.edition-preview{width:min(620px,calc(100% - 32px));margin:24px auto;font:1rem/1.55 system-ui,sans-serif}
.edition-preview img{display:block;width:auto;max-width:100%;max-height:60dvh}
.edition-book-description{flex-shrink:0;margin:0 16px 10px;font:13px/1.45 system-ui,sans-serif}
