#reader-access {
  --access-accent: #c9aff7;
  box-sizing: border-box; width: min(460px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto;
  overscroll-behavior: contain; color: #f2f0f7; background: #191920;
  border: 1px solid #44404e; border-radius: 20px; box-shadow: 0 24px 80px #0008;
  font-family: Manrope, sans-serif; text-align: center;
}
html:has(#reader-access[open]) { overflow: hidden; scrollbar-gutter: auto; }
#reader-access[data-kind="premium"] { --access-accent: #dfc68b; }
#reader-access::backdrop { background: rgb(8 8 14 / 76%); }
#reader-access [hidden] { display: none !important; }
#reader-access svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#reader-access #access-close {
  position: absolute; right: 16px; top: 15px; z-index: 1; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid #4a4653; border-radius: 50%;
  color: #cfccd6; background: transparent; cursor: pointer;
}
#access-close svg { width: 15px; height: 15px; }
.access-header { padding: 31px 30px 24px; }
#reader-access .access-tier { margin: 0 38px 18px; display: flex; justify-content: center; align-items: center; gap: 8px;
  color: var(--access-accent); font-size: 12px; font-weight: 650; line-height: 1.4; }
.access-tier svg { width: 17px; height: 17px; }
#reader-access h2 { margin: 0 0 9px; font-size: clamp(27px,4.5vw,35px); font-weight: 600; line-height: 1.13; letter-spacing: -.042em; }
#access-title:focus { outline: none; }
#reader-access #access-description { margin: 0; color: #cfccd6; font-size: 15px; line-height: 1.55; }
#reader-access .access-features { margin: 0 0 16px; padding: 0; list-style: none; border-block: 1px solid #393640; }
#access-features { margin: 0 30px 24px; }
.access-features li { display: grid; grid-template-columns: 1fr; justify-items: center; position: relative; padding: 12px 0; }
.access-features li + li { border-top: 1px solid #302e37; }
.access-features strong { display: flex; justify-content: center; align-items: center; gap: 8px; }
.access-features svg { width: 17px; height: 17px; color: var(--access-accent); }
.access-features span { display: block; }
.access-features strong { color: #f2f0f7; font-weight: 650; font-size: 14px; }
.access-features span { margin-top: 3px; color: #c0bdc9; line-height: 1.42; font-size: 12.5px; }
#reader-access .access-research h3 { margin: 0 0 11px; font-size: 12px; font-weight: 600; color: #bbb7c5; }
.access-research ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 11px clamp(12px, 6vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.access-research li { display: flex; text-align: left; justify-content: flex-start; align-items: center; gap: 9px; }
.access-research svg { flex: none; width: 17px; height: 17px; color: var(--access-accent); }
.access-research strong { font-weight: 600; font-size: 13px; line-height: 1.4; }
.access-footer { padding: 0 30px 27px; }
.access-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
#reader-access .access-actions > * { display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  box-sizing: border-box; padding: 9px 18px; line-height: 1.3; border: 1px solid #514b5c; border-radius: 24px;
  font: 650 14px/1.3 Manrope,sans-serif; text-decoration: none; color: #f2f0f7; background: transparent; }
#reader-access #access-signup,#reader-access #access-retry { color: #191522; background: #cfb4f7; border-color: #cfb4f7; }
#reader-access #access-upgrade:disabled { background: #302d2a; border-color: #524a3d; color: #c4b79b; cursor: not-allowed; opacity: 1; }
#reader-access #access-upgrade:enabled { background: #dfc99d; border-color: #dfc99d; color: #211c15; cursor: pointer; }
#reader-access #access-upgrade:enabled:hover { background: #ecd9b4; }
#reader-access #access-upgrade:enabled:active { background: #cfb583; }
#reader-access[data-kind="premium"] .access-actions:has(#access-signup:not([hidden])) #access-upgrade { flex-basis: 100%; max-width: 100%; }
#reader-access a:hover,#reader-access #access-close:hover { border-color: #c9aff7; color: white; }
#reader-access #access-signup:hover { background: #dfc8fd; }
#reader-access :is(a,button):focus-visible { outline: 2px solid #c9aff7; outline-offset: 3px; }
@media (max-width:480px) {
  #reader-access {border-radius:16px;}
  .access-header { padding: 26px 21px 21px; }
  #access-features { margin-inline:21px; }
  .access-footer { padding: 0 21px 22px; }
}

@media (max-width: 360px) {
  .access-research ul { column-gap: 12px; }
  .access-research li { gap: 6px; }
}

body:not([data-reader-signed-in]) #saved-count { display: none; }
