.ng-reader-region.is-locked {
  position: relative; isolation: isolate;
  min-height: min(410px,68svh);
}
/* Show the article titles and reserve a quiet placeholder for each locked summary. */
.ng-reader-directory[inert] { pointer-events: none; user-select: none; opacity: .68 }

ng-reader-banner[hidden] { display:none }
ng-reader-banner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  touch-action: pan-y pinch-zoom;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 12%, transparent);
}
.ng-unlock-card {
  position: sticky; top: clamp(116px,32svh,320px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1fr);
  grid-template-areas: "lock" "title" "copy" "note";
  text-align: center; align-items: start;
  width: min(100%,520px); padding: 24px 28px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: 0 12px 40px rgb(17 36 65 / 12%); color: var(--text);
}
.ng-lock-mark {
  grid-area: lock; justify-self: center; width: 48px; height: 52px; padding: 8px; margin-bottom: 10px;
  background: color-mix(in srgb,var(--blue) 8%,var(--surface)); color: var(--blue); border-radius: 14px;
}
.ng-unlock-card h2 { grid-area:title; font-size:clamp(21px,3vw,25px); line-height:1.35; margin:0 0 8px }
.ng-unlock-copy { grid-area:copy }
.ng-unlock-card .ng-benefits,.ng-reader-dialog .ng-benefits { color:var(--text); margin:0; font-size:15px; line-height:1.7 }
.ng-lifetime { display:inline-block }
.ng-update-note { color:var(--muted); margin:4px 0 0; font-size:14px; line-height:1.65 }
.ng-unlock-card button { background:var(--blue); color:var(--on-accent); border-radius:8px; min-height:44px; padding:9px 18px; font-weight:650; margin-top:16px }
.ng-unlock-card .ng-source-note,.ng-reader-dialog .ng-source-note {
  grid-area:note; border-top:1px solid var(--line); margin:20px 0 0; padding-top:12px;
  font-size:12px; color:var(--muted); line-height:1.65; text-wrap:pretty; text-align:left;
}

@media (max-width:540px) {
  ng-reader-banner { padding-inline:6px }
  .ng-unlock-card { padding:18px 16px 14px }
  .ng-lock-mark { width:42px; height:46px; padding:7px; border-radius:10px }
  .ng-unlock-card h2 { margin-bottom:6px }
  .ng-unlock-card .ng-source-note { margin-top:16px }
  .ng-unlock-card .ng-source-note,.ng-reader-dialog .ng-source-note {
    text-wrap:wrap; text-align:justify; text-align-last:left; text-justify:inter-character;
  }
}
.ng-reader-primary { background:var(--blue); color:var(--on-accent,white); border-radius:8px; padding:11px 16px; font-weight:650 }
ng-article-views { display:inline-flex; align-items:center; gap:5px; color:var(--muted); font-size:12px; line-height:1.5; white-space:nowrap }
ng-article-views:empty { display:none }
.article-row-copy ng-article-views, #series-chapters ng-article-views { margin-top:4px }
.reader-meta ng-article-views { margin-inline-start:10px }
.ng-reader-dialog { width:min(460px,calc(100% - 32px)); padding:26px; color:var(--text); background:var(--surface) }
.ng-reader-dialog h2 { font-size:22px; margin:0 28px 8px 0 }
.ng-reader-dialog label { display:block; font-size:14px; font-weight:600; margin:20px 0 8px }
.ng-reader-dialog a { display:inline-block; color:var(--blue); margin-top:16px; font-size:14px }
.ng-fields { display:flex; gap:8px }
.ng-fields input { flex:1; min-width:0; padding:11px 12px; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:8px }
.ng-reader-dialog [role=alert]:not(:empty) { margin-top:8px; font-size:14px }
.ng-reader-dialog .ng-context { color:var(--muted); line-height:1.65 }
@media(max-width:650px) { .ng-fields { flex-direction:column } }

.ng-purchase-scope { color: var(--blue); font-weight: 700 }

ng-reader-banner[data-channel="articles"] .ng-unlock-card {
  top: 50vh; top: 50dvh; transform: translateY(-50%);
}
@media (max-height: 520px) {
  ng-reader-banner[data-channel="articles"] .ng-unlock-card { position: relative; top: auto; transform: none; }
}
