/* Reader's Lounge â€” Atelier / Book Pulse palette (catalogue.css untouched) v1.0.20 */
.bp-lounge{
  --bp-bg:#06080D;
  --bp-card:#0b111a;
  --bp-text:#F2EDE4;
  --bp-muted:#8b95a8;
  --bp-gold:#C6A75E;
  --bp-cyan:#3ec9f0;
  --bp-line:rgba(139,149,168,.28);
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:1.25rem 1rem 3.5rem;
  color:var(--bp-text);
  font-family:"Libre Franklin",system-ui,-apple-system,sans-serif;
  box-sizing:border-box;
  background:var(--bp-bg);
}
.bp-lounge *,.bp-lounge *::before,.bp-lounge *::after{box-sizing:border-box}

/* Secondary lounge nav */
.bp-lounge-nav{
  margin:0 0 1.75rem;
  border-bottom:1px solid var(--bp-line);
}
.bp-lounge-nav__list{
  display:flex;
  flex-wrap:wrap;
  gap:.15rem 1.35rem;
  list-style:none;
  margin:0;
  padding:0 0 .65rem;
}
.bp-lounge-nav__link{
  display:inline-block;
  padding:.35rem 0 .5rem;
  color:var(--bp-muted);
  text-decoration:none;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  border-bottom:2px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}
.bp-lounge-nav__link:hover{color:var(--bp-text)}
.bp-lounge-nav__item.is-active .bp-lounge-nav__link{
  color:var(--bp-gold);
  border-bottom-color:var(--bp-gold);
}

.bp-lounge-head{margin:0 0 1rem}
.bp-lounge-title,
.bp-lounge-welcome__title,
.bp-lounge-section__title{
  font-family:"Libre Franklin",system-ui,sans-serif;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#fff;
  margin:0;
  line-height:1.15;
}
.bp-lounge-title{font-size:clamp(1.35rem,2.4vw,1.85rem);margin-bottom:.35rem}
.bp-lounge-welcome{margin:0 0 1.5rem}
.bp-lounge-welcome__title{font-size:clamp(1.55rem,3vw,2.2rem)}
.bp-lounge-welcome__sub,
.bp-lounge-lead{
  margin:.55rem 0 0;
  color:var(--bp-muted);
  font-size:.92rem;
  letter-spacing:.02em;
  line-height:1.5;
  max-width:36rem;
}
.bp-lounge-lead{margin:0 0 1.25rem}
.bp-lounge-signedin{
  margin:.65rem 0 0;
  font-size:.78rem;
  color:var(--bp-muted);
}
.bp-lounge-signedin strong{color:var(--bp-text);font-weight:600}

.bp-lounge-section{margin:0 0 2.25rem}
.bp-lounge-section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:1rem;
}
.bp-lounge-section__title{font-size:clamp(1.05rem,1.8vw,1.25rem);margin-bottom:.75rem}
.bp-lounge-section__head .bp-lounge-section__title{margin-bottom:0}
.bp-lounge-section__title--quiet{
  font-size:.78rem;
  letter-spacing:.16em;
  color:var(--bp-muted);
  font-weight:600;
}
.bp-lounge-section__link{
  color:var(--bp-cyan);
  text-decoration:none;
  font-size:.78rem;
  letter-spacing:.06em;
}
.bp-lounge-section__link:hover{text-decoration:underline;color:var(--bp-gold)}

/* Compact library cards â€” reference thumbnails, not invasive */
.bp-lib-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:1.25rem 1.1rem;
}
.bp-lib-grid--wide{
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
}
.bp-lib-scroll{
  display:flex;
  gap:1.1rem;
  overflow-x:auto;
  padding:0 0 .5rem;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.bp-lib-scroll .bp-lib-card{
  flex:0 0 132px;
  max-width:132px;
  scroll-snap-align:start;
}
.bp-lib-card{
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.bp-lib-card--compact .bp-lib-card__cover{
  aspect-ratio:2/3;
  /* max-height removed: show full cover */
}
.bp-lib-card__cover{
  aspect-ratio:2/3;
  /* max-height removed: show full cover */
  background:#0a0e16;
  overflow:hidden;
  position:relative;
}
.bp-lib-card__cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.bp-lib-card__cover-ph{width:100%;height:100%;background:linear-gradient(160deg,#121826,#06080D)}
.bp-lib-card__body{padding:.7rem .75rem .85rem;display:flex;flex-direction:column;gap:.3rem;flex:1}
.bp-lib-card__title{
  margin:0;
  font-size:.78rem;
  font-weight:700;
  color:var(--bp-text);
  line-height:1.3;
  letter-spacing:.02em;
}
.bp-lib-card__formats{
  margin:0;
  font-size:.58rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--bp-gold);
}
.bp-lib-card__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.25rem .35rem;
  margin-top:.15rem;
}
.bp-lib-btn{
  color:var(--bp-cyan);
  text-decoration:none;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.bp-lib-btn:hover{color:var(--bp-gold)}
.bp-lib-btn--disabled{
  color:var(--bp-muted);
  cursor:not-allowed;
  opacity:.65;
}
/* DOWNLOADED label: center on the download control (no layout drift otherwise). */
.bp-lib-btn--download.bp-lib-btn--downloaded,
.bp-lib-btn--downloaded{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-width:6.8rem;
}
.bp-lib-btn-sep{color:var(--bp-muted);font-size:.62rem}
.bp-lib-card__quota{
  margin:.1rem 0 0;
  font-size:.65rem;
  color:var(--bp-muted);
}
.bp-lib-card__quota strong{color:var(--bp-text);font-weight:600}
.bp-lib-card__quota--empty{color:#c98a8a}
.bp-lib-card__upsell{
  position:relative;
  margin:.25rem 0 0;
  padding-top:.35rem;
  padding-right:1.15rem;
  border-top:1px solid var(--bp-line);
  font-size:.62rem;
  color:var(--bp-gold);
  line-height:1.35;
}
.bp-lib-card__upsell-text{display:inline}
.bp-lib-card__upsell-x{
  position:absolute;
  top:.1rem;
  right:0;
  appearance:none;
  border:0;
  background:transparent;
  color:var(--bp-muted);
  font:inherit;
  font-size:.85rem;
  font-weight:700;
  line-height:1;
  width:1.05rem;
  height:1.05rem;
  padding:0;
  margin:0;
  cursor:pointer;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.bp-lib-card__upsell-x:hover,
.bp-lib-card__upsell-x:focus{
  color:var(--bp-gold);
  outline:1px solid rgba(198,167,94,.55);
  outline-offset:1px;
}
.bp-lib-card__upsell--primary{
  margin:.45rem 0 0;
  padding:.65rem .7rem;
  padding-right:1.4rem;
  border:1px solid rgba(198,167,94,.55);
  background:rgba(198,167,94,.08);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
}
.bp-lib-card__upsell--primary .bp-lib-card__upsell-x{
  top:.35rem;
  right:.35rem;
}

/* Filters */
.bp-lib-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin:0 0 1.25rem;
}
.bp-lib-filter{
  appearance:none;
  border:1px solid var(--bp-line);
  background:transparent;
  color:var(--bp-muted);
  font:inherit;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:.45rem .85rem;
  border-radius:3px;
  cursor:pointer;
}
.bp-lib-filter:hover{color:var(--bp-text);border-color:rgba(198,167,94,.45)}
.bp-lib-filter.is-active{
  color:#06080D;
  background:var(--bp-gold);
  border-color:var(--bp-gold);
}

/* Free book CTA band â€” prominent hero */
.bp-lounge-free{
  padding:1.35rem 1.4rem;
  border:1px solid rgba(198,167,94,.35);
  background:linear-gradient(135deg,rgba(198,167,94,.08),rgba(6,8,13,.4));
  border-radius:6px;
}
.bp-lounge-free--hero{
  border:2px solid var(--bp-gold);
  background:linear-gradient(145deg,rgba(198,167,94,.16),rgba(11,17,26,.85) 45%,rgba(6,8,13,.95));
  padding:1.6rem 1.5rem 1.7rem;
  box-shadow:0 0 0 1px rgba(198,167,94,.12),0 12px 40px rgba(0,0,0,.35);
  margin-bottom:2rem;
}
.bp-lounge-free__eyebrow{
  margin:0 0 .45rem;
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--bp-gold);
}
.bp-lounge-free__heading{
  font-size:clamp(1.25rem,2.4vw,1.65rem) !important;
  color:#fff !important;
  margin-bottom:.55rem !important;
  letter-spacing:.2em;
}
.bp-lounge-free__copy{
  margin:0 0 1.15rem;
  color:#d8d2c6;
  font-size:.95rem;
  max-width:36rem;
  line-height:1.55;
}
.bp-lounge-cta{
  display:inline-block;
  padding:.7rem 1.25rem;
  background:var(--bp-gold);
  color:#06080D;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-decoration:none;
  border-radius:3px;
  border:none;
  cursor:pointer;
}
.bp-lounge-cta:hover{filter:brightness(1.08);color:#06080D}
/* Beat Atelier .atelier-component a { color: gold } on gold buttons */
.bp-lounge a.bp-lounge-cta,
.bp-lounge a.bp-lounge-cta:link,
.bp-lounge a.bp-lounge-cta:visited,
.bp-lounge a.bp-lounge-cta:hover,
.bp-lounge a.bp-lounge-cta:focus,
.bp-lounge a.bp-lounge-cta:active {
  color: #06080D !important;
  text-decoration: none !important;
}
.bp-lounge-cta--block{display:block;text-align:center;margin-top:.75rem}
.bp-lounge-cta--hero{
  padding:.85rem 1.5rem;
  font-size:.78rem;
  letter-spacing:.18em;
}
.bp-lounge-cta--signin{margin-top:.75rem;width:100%;max-width:16rem}

/* Duo panels */
.bp-lounge-duo{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem;
  margin:0 0 1.75rem;
}
@media (max-width:720px){
  .bp-lounge-duo{grid-template-columns:1fr}
}
.bp-lounge-panel{
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  padding:1.15rem 1.2rem 1.25rem;
}
.bp-lounge-teaser-list{
  margin:0 0 1rem;
  padding:0 0 0 1.1rem;
  color:var(--bp-text);
  font-size:.88rem;
  line-height:1.55;
}
.bp-lounge-teaser-list li{margin:.35rem 0}
.bp-lounge-muted{margin:0;color:var(--bp-muted);font-size:.78rem}

/* Quiet account strip */
.bp-lounge-account-quiet{
  padding-top:1.25rem;
  border-top:1px solid var(--bp-line);
}
.bp-lounge-acct-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1.35rem;
  list-style:none;
  margin:.65rem 0 0;
  padding:0;
}
.bp-lounge-acct-links a{
  color:var(--bp-muted);
  text-decoration:none;
  font-size:.78rem;
  letter-spacing:.04em;
}
.bp-lounge-acct-links a:hover{color:var(--bp-gold)}

/* Free book grid â€” small covers + high-contrast meta panel */
.bp-free-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:1.35rem 1.1rem;
}
.bp-free-card{
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.bp-free-card__cover{
  aspect-ratio:2/3;
  /* max-height removed: show full cover */
  background:#0a0e16;
}
.bp-free-card__cover img{display:block;width:100%;height:100%;object-fit:contain}
/* Dark meta panel: cream/white text â€” never gold-on-gold over covers */
.bp-free-card__meta{
  background:#0a0f18;
  padding:.85rem .9rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.35rem;
  flex:1;
  border-top:1px solid rgba(139,149,168,.2);
}
.bp-lounge .bp-free-card__title,
.bp-free-card__title{
  margin:0;
  font-size:.82rem;
  font-weight:700;
  line-height:1.3;
  color:#F2EDE4 !important;
  letter-spacing:.01em;
  text-shadow:none;
  background:transparent;
}
.bp-lounge .bp-free-card__blurb,
.bp-free-card__blurb{
  margin:0;
  font-size:.72rem;
  color:#b8c0ce !important;
  line-height:1.45;
  flex:1;
}
.bp-free-card .bp-lounge-cta{
  margin:0;
  color:#06080D !important;
  background:var(--bp-gold);
}

/* Exclusives magazine list */
.bp-excl-list{display:flex;flex-direction:column;gap:1rem}
.bp-excl-card{
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  padding:1.1rem 1.25rem;
}
.bp-excl-card__status{
  margin:0 0 .35rem;
  font-size:.65rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--bp-gold);
  font-weight:700;
}
.bp-excl-card__title{
  margin:0 0 .4rem;
  font-size:1.05rem;
  font-weight:700;
  color:#fff;
}
.bp-excl-card__excerpt{
  margin:0;
  color:var(--bp-muted);
  font-size:.88rem;
  line-height:1.5;
}

/* Account placeholders */
.bp-acct-list{
  list-style:none;
  margin:1.5rem 0 0;
  padding:0;
  border:1px solid var(--bp-line);
  border-radius:6px;
  overflow:hidden;
  background:var(--bp-card);
}
.bp-acct-list li{
  display:flex;
  flex-direction:column;
  gap:.25rem;
  padding:1rem 1.2rem;
  border-bottom:1px solid var(--bp-line);
}
.bp-acct-list li:last-child{border-bottom:none}
.bp-acct-list__label{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bp-text);
}
.bp-acct-list__hint{font-size:.85rem;color:var(--bp-muted);line-height:1.45}
.bp-lounge-inline-link{color:var(--bp-cyan);text-decoration:none}
.bp-lounge-inline-link:hover{color:var(--bp-gold);text-decoration:underline}

/* Embedded Sign in panel */
.bp-lounge-signin{
  margin:0 0 1.75rem;
  padding:1.15rem 1.25rem 1.3rem;
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  max-width:22rem;
}
.bp-lounge-signin__title{
  margin:0 0 .35rem;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#fff;
}
.bp-lounge-signin__hint{
  margin:0 0 .85rem;
  font-size:.78rem;
  color:var(--bp-muted);
  line-height:1.4;
}
.bp-lounge-signin__form{display:flex;flex-direction:column;gap:.35rem}
.bp-lounge-signin__label{
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bp-muted);
  margin-top:.35rem;
}
.bp-lounge-signin__input{
  appearance:none;
  width:100%;
  max-width:16rem;
  padding:.55rem .65rem;
  border:1px solid var(--bp-line);
  border-radius:3px;
  background:#06080D;
  color:var(--bp-text);
  font:inherit;
  font-size:.88rem;
}
.bp-lounge-signin__input:focus{
  outline:1px solid var(--bp-gold);
  border-color:var(--bp-gold);
}

/* Write a review */
.bp-review-form{
  display:flex;
  flex-direction:column;
  gap:.4rem;
  max-width:28rem;
  padding:1.1rem 1.2rem 1.25rem;
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
}
.bp-review-form__label{
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bp-muted);
  margin-top:.4rem;
}
.bp-review-form__select,
.bp-review-form__textarea{
  appearance:none;
  width:100%;
  padding:.55rem .65rem;
  border:1px solid var(--bp-line);
  border-radius:3px;
  background:#06080D;
  color:var(--bp-text);
  font:inherit;
  font-size:.88rem;
}
.bp-review-form__textarea{resize:vertical;min-height:5.5rem}
.bp-review-form__stars{
  border:none;
  margin:.35rem 0 .15rem;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1rem;
}
.bp-review-star{
  font-size:.85rem;
  color:var(--bp-text);
  cursor:pointer;
}
.bp-lounge-flash{
  margin:0 0 1rem;
  padding:.7rem .9rem;
  border-radius:4px;
  font-size:.88rem;
  max-width:28rem;
}
.bp-lounge-flash--ok{
  background:rgba(62,201,240,.12);
  border:1px solid rgba(62,201,240,.35);
  color:#c8eef8;
}
.bp-lounge-flash--err{
  background:rgba(201,138,138,.12);
  border:1px solid rgba(201,138,138,.4);
  color:#f0d0d0;
}

/* Forum stub â€” quiet parking spot */
.bp-lounge-forum-stub{
  margin:0 0 2rem;
  padding:.85rem 1.1rem;
  border:1px dashed rgba(139,149,168,.35);
  border-radius:6px;
  background:rgba(11,17,26,.5);
  max-width:28rem;
}
.bp-lounge-forum-stub__label{
  margin:0 0 .25rem;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--bp-muted);
}
.bp-lounge-forum-stub__copy{
  margin:0;
  font-size:.8rem;
  color:var(--bp-muted);
  line-height:1.45;
}


/* === v1.0.6 registration + side-by-side sign-in / register cards === */
.bp-lounge--register{ max-width:none; }
.bp-reg-welcome{margin-bottom:1.35rem}
.bp-reg-auth{
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  margin:0 0 2rem;
  align-items:start;
}
@media (min-width:780px){
  .bp-reg-auth{
    grid-template-columns:minmax(15.5rem,18.5rem) minmax(17rem,22rem);
    gap:1.15rem;
    justify-content:start;
  }
}
/* Login fields: average email length â€” not full half-page */
.bp-reg-auth .bp-lounge-signin{
  max-width:18.5rem;
  width:100%;
}
.bp-reg-auth .bp-lounge-signin__input{
  max-width:16.5rem;
  width:100%;
  box-sizing:border-box;
}
.bp-reg-auth .bp-lounge-cta--signin{
  max-width:16.5rem;
}
.bp-reg-auth .bp-reg-form-wrap,
.bp-reg-auth .bp-reg-card--register{
  max-width:22rem;
  width:100%;
}
.bp-reg-card,
.bp-reg-auth .bp-lounge-signin,
.bp-reg-form-wrap{
  margin:0;
  padding:1.35rem 1.4rem 1.5rem;
  background:var(--bp-card);
  border:1px solid var(--bp-line);
  border-radius:6px;
  max-width:none;
  width:100%;
  box-sizing:border-box;
}
.bp-reg-card__title{
  margin:0 0 .45rem;
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;
}
.bp-reg-card__eyebrow{
  margin:0 0 .35rem;
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--bp-gold);
}
.bp-reg-card__claim{
  margin:0 0 .55rem;
  font-size:.95rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--bp-gold);
  line-height:1.35;
}
.bp-reg-card__copy{
  margin:0 0 1rem;
  font-size:.82rem;
  color:var(--bp-muted);
  line-height:1.45;
}
.bp-reg-auth .bp-lounge-signin__title{
  font-size:.9rem;
  letter-spacing:.14em;
}
.bp-reg-auth .bp-lounge-signin__input,
.bp-reg-form__input{
  max-width:none;
}
.bp-lounge-signin__remember{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  margin:.65rem 0 .35rem;
  font-size:.82rem;
  color:var(--bp-text);
  line-height:1.35;
  cursor:pointer;
  text-transform:none;
  letter-spacing:0;
  font-weight:500;
}
.bp-lounge-signin__remember input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  margin:.05rem 0 0;
  width:1.15rem;
  height:1.15rem;
  border:1.5px solid rgba(139,149,168,.7);
  border-radius:3px;
  background:transparent;
  flex-shrink:0;
  position:relative;
  cursor:pointer;
  accent-color:var(--bp-gold);
}
.bp-lounge-signin__remember input[type="checkbox"]:checked{
  border-color:var(--bp-gold);
  background:rgba(198,167,94,.18);
  box-shadow:inset 0 0 0 1px rgba(198,167,94,.35);
}
.bp-lounge-signin__remember input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  left:.32rem;
  top:.08rem;
  width:.32rem;
  height:.55rem;
  border:solid var(--bp-gold);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.bp-lounge-signin__remember input[type="checkbox"]:focus-visible{
  outline:2px solid rgba(198,167,94,.55);
  outline-offset:2px;
}
.bp-reg-auth .bp-lounge-cta--signin{
  margin-top:.55rem;
  width:100%;
  text-align:center;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.bp-reg-form{
  display:flex;
  flex-direction:column;
  gap:.4rem;
  max-width:none;
}
.bp-reg-form__label{
  margin:.55rem 0 0;
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bp-muted);
}
.bp-reg-form__label:first-of-type{margin-top:0}
.bp-reg-form__input{
  appearance:none;
  width:100%;
  padding:.65rem .75rem;
  background:#06080D;
  border:1px solid var(--bp-line);
  border-radius:3px;
  color:var(--bp-text);
  font:inherit;
  font-size:.9rem;
  box-sizing:border-box;
}
.bp-reg-form__input:focus{
  outline:none;
  border-color:var(--bp-gold);
  box-shadow:0 0 0 1px rgba(198,167,94,.35);
}
.bp-reg-form__submit{
  margin-top:1.1rem;
  width:100%;
  text-align:center;
  border:none;
}
.bp-lib-empty{
  margin:0 0 2rem;
  padding:2rem 1.5rem;
  text-align:center;
  border:1px dashed var(--bp-line);
  border-radius:6px;
  background:rgba(11,17,26,.4);
}
.bp-lib-empty__title{
  margin:0 0 .5rem;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fff;
}
.bp-lib-empty__copy{
  margin:0 0 1rem;
  color:var(--bp-muted);
  font-size:.9rem;
  line-height:1.5;
  max-width:28rem;
  margin-left:auto;
  margin-right:auto;
}



/* Own-tick on freebook cards â€” tiny control, gold hover */
.bp-free-own{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  margin-top:.55rem;
  padding:.2rem .35rem;
  border:1px solid transparent;
  border-radius:4px;
  text-decoration:none;
  color:var(--bp-muted);
  font-size:.65rem;
  line-height:1.2;
  letter-spacing:.02em;
  align-self:flex-start;
  transition:border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.bp-free-own__tick{
  display:inline-block;
  width:1.05rem;
  height:1.05rem;
  border:1.5px solid rgba(139,149,168,.7);
  border-radius:3px;
  background:transparent;
  flex-shrink:0;
  position:relative;
}
.bp-free-own__label{
  color:inherit;
}
.bp-free-own:hover,
.bp-free-own:focus-visible{
  color:var(--bp-gold);
  border-color:rgba(198,167,94,.65);
  box-shadow:0 0 0 1px rgba(198,167,94,.25), 0 0 8px rgba(198,167,94,.18);
  outline:none;
}
.bp-free-own:hover .bp-free-own__tick,
.bp-free-own:focus-visible .bp-free-own__tick{
  border-color:var(--bp-gold);
  box-shadow:inset 0 0 0 1px rgba(198,167,94,.35);
}
.bp-free-own:hover .bp-free-own__tick::after,
.bp-free-own:focus-visible .bp-free-own__tick::after,
.bp-free-own.is-checked .bp-free-own__tick::after,
.bp-free-own[aria-pressed="true"] .bp-free-own__tick::after{
  content:"";
  position:absolute;
  left:.28rem;
  top:.08rem;
  width:.32rem;
  height:.55rem;
  border:solid var(--bp-gold);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* Register page: narrow login; art right edge fixed; registration fades over lounge */
.atelier-component:has(.bp-reg-page) {
  max-width: 70rem; /* art overhang unchanged */
}
.bp-lounge--register {
  max-width: none;
}
.bp-lounge--register.bp-reg-page {
  position: relative;
  max-width: 68rem;
  isolation: isolate;
  padding: 0.25rem 0 0.5rem;
  overflow: visible;
}
.bp-reg-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 42rem; /* pulled left â€” login email-width + register */
  padding-right: 0;
}
/* Art right edge stays; starts under registration so lounge runs under it */
.bp-reg-art {
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: 16rem;
  right: 0; /* leave image right hand where it is */
  z-index: 0;
  margin: 0;
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  border: none;
  background: #06080D;
  pointer-events: none;
}
.bp-reg-art__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 1;
  filter: none;
}
.bp-reg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 8, 13, 0.88) 0%,
    rgba(6, 8, 13, 0.45) 22%,
    rgba(6, 8, 13, 0.18) 48%,
    rgba(6, 8, 13, 0.08) 72%,
    rgba(6, 8, 13, 0.06) 100%
  );
}
/* Login solid; registration transparent with reducing fade over the image */
.bp-reg-page .bp-reg-card--login,
.bp-reg-page .bp-lounge-signin {
  background: var(--bp-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bp-reg-page .bp-reg-card--register,
.bp-reg-page .bp-reg-form-wrap {
  background: linear-gradient(
    105deg,
    rgba(11, 17, 26, 0.72) 0%,
    rgba(11, 17, 26, 0.42) 48%,
    rgba(11, 17, 26, 0.18) 100%
  );
  border-color: rgba(198, 167, 94, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.bp-reg-page .bp-reg-form__input {
  background: rgba(6, 8, 13, 0.55);
}
@media (max-width: 900px) {
  .atelier-component:has(.bp-reg-page) {
    max-width: 48rem;
  }
  .bp-lounge--register.bp-reg-page {
    max-width: 100%;
  }
  .bp-reg-main {
    max-width: 100%;
  }
  .bp-reg-auth .bp-lounge-signin,
  .bp-reg-auth .bp-reg-form-wrap,
  .bp-reg-auth .bp-reg-card--register {
    max-width: none;
  }
  .bp-reg-art {
    left: 0;
    right: 0;
    top: 0;
    height: 9rem;
    bottom: auto;
    border-radius: 8px;
  }
  .bp-reg-art::after {
    background: linear-gradient(
      180deg,
      rgba(6, 8, 13, 0.25) 0%,
      rgba(6, 8, 13, 0.55) 55%,
      rgba(6, 8, 13, 0.9) 100%
    );
  }
}

/* ===== Page backdrops v1.0.18 — SAME as register: wide art band; fields stay LEFT/narrow ===== */
/* Outer shell matches .bp-reg-page (68rem) so BACKGROUND IMAGE is the same width as registration.
   Content/fields stay on the left (max 36rem) like .bp-reg-main — NOT stretched across the art. */
.atelier-component:has(.bp-lounge--lounge),
.atelier-component:has(.bp-lounge--library),
.atelier-component:has(.bp-lounge--freebook),
.atelier-component:has(.bp-lounge--account),
.atelier-component:has(.bp-lounge--exclusives) {
  max-width: 70rem; /* same overhang as register */
}
.bp-lounge--lounge,
.bp-lounge--library,
.bp-lounge--freebook,
.bp-lounge--account,
.bp-lounge--exclusives {
  position: relative;
  isolation: isolate;
  background: transparent;
  max-width: 68rem; /* same as .bp-reg-page — widens BACKGROUND canvas, not form fields */
  width: 100%;
}
/* Content/fields: left column only — do not widen fields into the art */
.bp-lounge--lounge > *:not(.bp-lounge-backdrop),
.bp-lounge--library > *:not(.bp-lounge-backdrop),
.bp-lounge--freebook > *:not(.bp-lounge-backdrop),
.bp-lounge--account > *:not(.bp-lounge-backdrop),
.bp-lounge--exclusives > *:not(.bp-lounge-backdrop) {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  width: 100%;
}
/* Mirror .bp-reg-art exactly — wide visible background image */
.bp-lounge-backdrop {
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  left: 16rem;
  right: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 0 10px 10px 0;
  border: none;
  background: #06080D;
}
.bp-lounge-backdrop__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 1;
  filter: none;
}
/* Exact same overlay as .bp-reg-art::after â€” not heavier */
.bp-lounge-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 8, 13, 0.88) 0%,
    rgba(6, 8, 13, 0.45) 22%,
    rgba(6, 8, 13, 0.18) 48%,
    rgba(6, 8, 13, 0.08) 72%,
    rgba(6, 8, 13, 0.06) 100%
  );
}
.bp-lounge-backdrop--lounge .bp-lounge-backdrop__img { object-position: 70% center; }
.bp-lounge-backdrop--library .bp-lounge-backdrop__img { object-position: 28% center; }
.bp-lounge-backdrop--freebook .bp-lounge-backdrop__img { object-position: 62% 35%; }
.bp-lounge-backdrop--account .bp-lounge-backdrop__img { object-position: center center; }
.bp-lounge-backdrop--exclusives .bp-lounge-backdrop__img { object-position: 55% center; }
/* child max-width set above with z-index */
/* Panels readable over visible art â€” same alpha family as register register-card */
.bp-lounge--lounge .bp-lounge-panel,
.bp-lounge--lounge .bp-lounge-free--hero,
.bp-lounge--library .bp-lib-card,
.bp-lounge--library .bp-lib-empty,
.bp-lounge--freebook .bp-free-card,
.bp-lounge--account .bp-acct-list,
.bp-lounge--account .bp-lounge-account-signed,
.bp-lounge--exclusives .bp-excl-card {
  background: rgba(11, 17, 26, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.bp-lounge--freebook .bp-free-card__meta {
  background: rgba(10, 15, 24, 0.78);
}
/* Account ledger / writing â€” clearly visible treatment */
.bp-lounge--account .bp-acct-list--ledger {
  border: 1px solid rgba(198, 167, 94, 0.45);
  box-shadow:
    inset 4px 0 0 rgba(160, 70, 70, 0.65),
    inset 0 0 0 1px rgba(198, 167, 94, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.35);
  background:
    repeating-linear-gradient(
      transparent,
      transparent 2.15rem,
      rgba(198, 167, 94, 0.10) 2.15rem,
      rgba(198, 167, 94, 0.10) calc(2.15rem + 1px)
    ),
    linear-gradient(105deg, rgba(28, 24, 18, 0.82) 0%, rgba(11, 17, 26, 0.55) 100%);
}
.bp-lounge--account .bp-acct-list--ledger li {
  border-color: rgba(198, 167, 94, 0.22);
  padding-left: 0.35rem;
}
.bp-lounge--account .bp-acct-list--ledger .bp-acct-list__label {
  color: #e8dcc0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.bp-lounge--account .bp-acct-lead {
  max-width: 36rem;
  color: #c9c2b4;
  letter-spacing: 0.03em;
  border-left: 3px solid rgba(198, 167, 94, 0.55);
  padding-left: 0.85rem;
}
@media (max-width: 900px) {
  .bp-lounge-backdrop {
    left: 0;
    right: 0;
    top: 0;
    height: 9rem;
    bottom: auto;
    border-radius: 8px;
  }
  .bp-lounge-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(6, 8, 13, 0.25) 0%,
      rgba(6, 8, 13, 0.55) 55%,
      rgba(6, 8, 13, 0.9) 100%
    );
  }
}

/* Checked/owned tick: show result inside the box */
.bp-free-own.is-checked .bp-free-own__tick,
.bp-free-own[aria-pressed="true"] .bp-free-own__tick{
  border-color:var(--bp-gold);
  box-shadow:inset 0 0 0 1px rgba(198,167,94,.35);
  background:rgba(198,167,94,.12);
}
/* Library + Free Books: hide title text under covers (covers stay; alt text remains on img) */
.bp-lounge--library .bp-lib-card__title,
.bp-lounge--freebook .bp-free-card__title {
  display: none !important;
}

/* ---- Library sections: Purchased vs My selection ---- */
.bp-lib-section{margin:1.35rem 0 1.75rem}
.bp-lib-section .bp-lounge-section__title{margin-bottom:.75rem}
.bp-lib-section__empty{margin:.25rem 0 .5rem;font-size:.88rem}

/* ---- Website purchase fold: one green flap + cover corner cut to page bg ---- */
/* Cut purchased cover so top-right triangle reveals card/page bg, not cover pixels */
.bp-lib-card__cover--purchased{
  background:transparent;
}
.bp-lib-card__cover--purchased > img,
.bp-lib-card__cover--purchased > .bp-lib-card__cover-ph{
  clip-path:polygon(0 0, calc(100% - 2.35rem) 0, 100% 2.35rem, 100% 100%, 0 100%);
  -webkit-clip-path:polygon(0 0, calc(100% - 2.35rem) 0, 100% 2.35rem, 100% 100%, 0 100%);
}
/* Single green fold (inner half). Tip is transparent -> page shows through the cut. */
.bp-lib-dl-fold{
  position:absolute;
  top:0;
  right:0;
  width:2.35rem;
  height:2.35rem;
  z-index:4;
  pointer-events:none;
  background:linear-gradient(225deg, transparent 49.5%, #3f6b4d 50%);
  box-shadow:-1px 1px 2px rgba(0,0,0,.2);
}
/* Number sits on the green half (not in the transparent tip) */
.bp-lib-dl-fold__n{
  position:absolute;
  top:auto;
  right:auto;
  bottom:.28rem;
  left:.22rem;
  font-size:.72rem;
  font-weight:700;
  line-height:1;
  color:#e9f3ec;
  letter-spacing:.02em;
  text-shadow:0 1px 1px rgba(0,0,0,.35);
}
@media (max-width:480px){
  .bp-lib-card__cover--purchased > img,
  .bp-lib-card__cover--purchased > .bp-lib-card__cover-ph{
    clip-path:polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
    -webkit-clip-path:polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
  }
  .bp-lib-dl-fold{width:2rem;height:2rem}
  .bp-lib-dl-fold__n{font-size:.65rem;bottom:.22rem;left:.18rem}
}

/* Free thank-you purchase: same dog-ear cut, grey face instead of green */
.bp-lib-dl-fold--free{
  background:linear-gradient(225deg, transparent 49.5%, #6b7280 50%);
}
.bp-lib-dl-fold--free .bp-lib-dl-fold__n{
  color:#f3f4f6;
}

/* ---- Super User testing reset ---- */
.bp-lib-reset{
  margin:2rem 0 1rem;
  padding:.85rem 1rem;
  border:1px dashed rgba(139,149,168,.35);
  border-radius:6px;
  background:rgba(11,17,26,.55);
  max-width:28rem;
}
.bp-lib-reset__label{
  margin:0 0 .35rem;
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--bp-muted);
  font-weight:600;
}
.bp-lib-reset__btn{
  appearance:none;
  border:1px solid rgba(198,167,94,.4);
  background:transparent;
  color:var(--bp-text);
  font:inherit;
  font-size:.85rem;
  padding:.4rem .75rem;
  border-radius:4px;
  cursor:pointer;
}
.bp-lib-reset__btn:hover{
  border-color:var(--bp-gold);
  color:var(--bp-gold);
}
.bp-lib-reset__hint{
  margin:.45rem 0 0;
  font-size:.75rem;
  color:var(--bp-muted);
}

/* Registration / login messages on Join page */
.bp-reg-messages {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.bp-reg-messages__item {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(180, 150, 100, 0.35);
  background: rgba(40, 30, 20, 0.72);
  color: #f3e6d0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.bp-reg-messages__item--error,
.bp-reg-messages__item--warning {
  border-color: rgba(200, 90, 70, 0.55);
  background: rgba(80, 25, 20, 0.75);
}
.bp-reg-messages__item--success,
.bp-reg-messages__item--message,
.bp-reg-messages__item--notice {
  border-color: rgba(120, 160, 100, 0.45);
  background: rgba(30, 50, 30, 0.7);
}
/* Account panel — Atelier / lounge form language (no stock Joomla / Bootstrap chrome) */
.bp-lounge--account .bp-acct-panel {
  margin: 1.25rem 0 1.75rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: rgba(11, 17, 26, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(198, 167, 94, 0.35);
  border-radius: 6px;
  box-shadow:
    inset 4px 0 0 rgba(160, 70, 70, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.35);
}
.bp-lounge--account .bp-acct-panel__block {
  margin: 0 0 1.75rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(198, 167, 94, 0.22);
}
.bp-lounge--account .bp-acct-panel__block:last-of-type {
  margin-bottom: 1.25rem;
}
.bp-lounge--account .bp-acct-panel__help {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #c9c2b4;
  max-width: 36rem;
}
.bp-lounge--account .bp-acct-form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 28rem;
}
.bp-lounge--account .bp-acct-form--inline {
  max-width: 22rem;
}
.bp-lounge--account .bp-acct-form__label {
  margin-top: 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-muted);
}
.bp-lounge--account .bp-acct-form__label:first-child,
.bp-lounge--account .bp-acct-form > .bp-acct-form__label:first-of-type {
  margin-top: 0;
}
.bp-lounge--account .bp-acct-form__optional {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  opacity: 0.85;
}
.bp-lounge--account .bp-acct-form__input,
.bp-lounge--account .bp-acct-form__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--bp-line);
  border-radius: 3px;
  background: #06080D;
  color: var(--bp-text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
}
.bp-lounge--account .bp-acct-form__select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bp-gold) 50%),
    linear-gradient(135deg, var(--bp-gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}
.bp-lounge--account .bp-acct-form__input:focus,
.bp-lounge--account .bp-acct-form__select:focus {
  outline: 1px solid var(--bp-gold);
  border-color: var(--bp-gold);
}
.bp-lounge--account .bp-acct-form__input::placeholder {
  color: rgba(139, 149, 168, 0.75);
}
.bp-lounge--account .bp-acct-form__meta {
  margin: 0.75rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bp-lounge--account .bp-acct-form__username {
  font-size: 0.95rem;
  color: #e8dcc0;
  letter-spacing: 0.02em;
}
.bp-lounge--account .bp-acct-form__submit {
  margin-top: 1.1rem;
  align-self: flex-start;
  width: auto;
  min-width: 10rem;
  text-align: center;
}
.bp-lounge--account .bp-acct-panel .bp-acct-list {
  margin-top: 0;
  background: transparent;
}
.bp-lounge--account .bp-reg-messages {
  margin: 0 0 1.25rem;
}
/* Prefer Book Pulse account form chrome over stock Bootstrap/Joomla field skins */
.bp-lounge--account .bp-acct-form .form-control,
.bp-lounge--account .bp-acct-form .form-select {
  appearance: none;
  -webkit-appearance: none;
  background: #06080D;
  border: 1px solid var(--bp-line);
  border-radius: 3px;
  color: var(--bp-text);
  box-shadow: none;
}
