html[data-asen-telegram]{
  --asen-page-safe-top:calc(max(env(safe-area-inset-top,0px),var(--asen-tg-device-top,0px)) + var(--asen-tg-content-top,0px));
  --asen-page-safe-right:calc(max(env(safe-area-inset-right,0px),var(--asen-tg-device-right,0px)) + var(--asen-tg-content-right,0px));
  --asen-page-safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--asen-tg-device-bottom,0px)) + var(--asen-tg-content-bottom,0px));
  --asen-page-safe-left:calc(max(env(safe-area-inset-left,0px),var(--asen-tg-device-left,0px)) + var(--asen-tg-content-left,0px));
}

html[data-player-theme] .preferences-links button{
  background:var(--player-panel);color:var(--player-ink);border-color:var(--player-line)
}
/* Reading column only; the existing page owns the header and safe-area offsets. */
.member-help-reading {
  max-width: 35rem;
  margin-inline: auto;
  color: var(--player-ink, currentColor);
  overflow-wrap: anywhere;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  padding: 2px 2px 8px;
}
#page-faq.active, #page-faq-detail.active {
  display: flex; flex-direction: column; height: 100dvh; min-height: 0;
  padding-bottom: calc(108px + var(--asen-page-safe-bottom, env(safe-area-inset-bottom, 0px)));
  padding-inline: max(16px, var(--asen-page-safe-left, env(safe-area-inset-left, 0px)), var(--asen-page-safe-right, env(safe-area-inset-right, 0px)));
}
html.asen-landscape :is(#page-faq.active, #page-faq-detail.active, #page-about.active) {
  padding-top: calc(var(--asen-landscape-header, 70px) + 32px);
}
html.asen-landscape :is(#page-faq.active, #page-faq-detail.active) {
  padding-bottom: calc(12px + var(--asen-page-safe-bottom, env(safe-area-inset-bottom, 0px)));
}
:is(#page-faq, #page-faq-detail, #page-about) h1[tabindex="-1"]:focus {outline: none}
.member-help-reading h1 {font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.4; margin: 1rem 0}
.member-help-reading article p {line-height: 1.75; margin: 0}
@media (orientation: landscape) and (max-height: 540px) {
  .member-help-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .65rem;
  }
  .member-help-heading .back-button {
    flex: none;
    min-height: 44px;
    margin: 0;
  }
  .member-help-heading h1 {
    min-width: 0;
    margin: 0;
    font-size: 1.1rem;
  }
}
#faqQuestions {list-style: none; counter-reset: faq; padding: 0; margin: 0}
#faqQuestions li {counter-increment: faq; border-bottom: 1px solid var(--player-line, #665641)}
#faqQuestions button {
  display: grid; grid-template-columns: 2ch minmax(0, 1fr) .55rem; gap: .75rem;
  align-items: center; width: 100%; min-height: 46px; padding: .7rem .3rem;
  background: transparent; border: 0; color: inherit; text-align: start; line-height: 1.45;
}
#faqQuestions button::before {content: counter(faq); opacity: .7; font-variant-numeric: tabular-nums}
#faqQuestions button::after {
  content: ""; width: .4rem; height: .4rem; border: solid currentColor;
  border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .65;
}
#faqQuestions button:focus-visible {outline: 2px solid currentColor; outline-offset: -2px}

.popular-card-fallback .popular-name{
  display:block;position:absolute;z-index:2;inset-inline:3px;bottom:4px;
  padding:1px 2px;border-radius:3px;background:#090c12;color:#fff;
  font-size:10px;line-height:1.2;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

#page-about .about-content{overflow-wrap:anywhere}
html[data-player-theme="light"] #page-about .about-content h2{color:var(--player-ink)}
