/* 2026-10-17 review round 2: first-run setup, chapter-complete card, clearer Premium previews. */
/* --- Premium preview: ia2 hid every .pm-veil, so free readers saw faded text with no explanation */
html.ia2 .v2-intro>.pm-veil.ls-veil,html.ia2 #study>.pm-veil.ls-veil{display:block!important}
.pm-veil.ls-veil.ls-coll,html.p17.v2.vt.vt.vt .pm-veil.ls-veil.ls-coll{display:block;margin:-4px 0 18px!important;padding:14px 16px 16px!important;border:1px solid rgba(59,63,216,.22)!important;border-radius:16px!important;background:#F5F5FF!important;color:#14162B!important;font-family:Inter,-apple-system,system-ui,sans-serif}
.pm-veil.ls-veil .pm-veil-k{display:block;font:700 11px/1 Inter,system-ui,sans-serif!important;letter-spacing:.1em!important;text-transform:uppercase;color:#3B3FD8!important;background:none!important}
.pm-veil.ls-veil .lv-t{display:block;margin:7px 0 12px;font:500 14.5px/1.4 Inter,-apple-system,system-ui,sans-serif;color:#3A3C55}
.pm-veil.ls-veil .pm-unlock{-webkit-appearance:none;appearance:none;display:block!important;width:100%;min-height:46px;margin:0!important;border:0!important;border-radius:13px!important;background:#3B3FD8!important;color:#fff!important;font:600 15.5px Inter,-apple-system,system-ui,sans-serif!important;cursor:pointer;box-shadow:none!important}
html[data-theme=dark] .pm-veil.ls-veil.ls-coll,html.p17.v2.vt.vt.vt[data-theme=dark] .pm-veil.ls-veil.ls-coll{background:#1f2240!important;border-color:#33376a!important;color:#ECEEF3!important}
html[data-theme=dark] .pm-veil.ls-veil .pm-veil-k{color:#A5A8FF!important}html[data-theme=dark] .pm-veil.ls-veil .lv-t{color:#C3C7D0}html[data-theme=dark] .pm-veil.ls-veil .pm-unlock{background:#4b50e6!important}
/* --- chapter complete */
.lc-done.ls-coll{display:block;margin:26px 0 14px!important;padding:16px!important;border:1px solid #E4E6EF!important;border-radius:18px!important;background:#fff!important;font-family:Inter,-apple-system,system-ui,sans-serif;max-width:none}
.lc-top{display:flex;align-items:center;gap:12px}
.lc-ck{flex:none;width:38px;height:38px;border-radius:50%;background:#3B3FD8;display:grid;place-items:center;transform:scale(.6);opacity:.4;transition:transform .45s cubic-bezier(.2,1.4,.4,1),opacity .3s}
.lc-done.in .lc-ck{transform:none;opacity:1}
.lc-ck svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.lc-h{display:flex;flex-direction:column;gap:2px;min-width:0}
.lc-h b{font:700 17px/1.25 Inter,-apple-system,system-ui,sans-serif;color:#14162B}
.lc-h i{font:500 13.5px/1.35 Inter,-apple-system,system-ui,sans-serif;font-style:normal;color:#3B3FD8}
.lc-in{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:#F5F5FF;font:400 14px/1.45 Inter,-apple-system,system-ui,sans-serif;color:#3A3C55}
.lc-in strong{display:block;margin:0 0 3px;font:700 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#3B3FD8}
.lc-in em{font-style:normal;font-weight:600;color:#14162B}
.lc-next{-webkit-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:14px 0 0;border:0;border-radius:14px;background:#3B3FD8;color:#fff;font:600 15.5px Inter,-apple-system,system-ui,sans-serif;cursor:pointer}
.lc-next::after{content:"";width:8px;height:8px;border-right:2px solid #fff;border-top:2px solid #fff;transform:rotate(45deg)}
html[data-theme=dark] .lc-done.ls-coll{background:#1a1d24!important;border-color:#2c303a!important}
html[data-theme=dark] .lc-ck{background:#4b50e6}html[data-theme=dark] .lc-h b{color:#ECEEF3}html[data-theme=dark] .lc-h i{color:#A5A8FF}
html[data-theme=dark] .lc-in{background:#22253a;color:#C3C7D0}html[data-theme=dark] .lc-in strong{color:#A5A8FF}html[data-theme=dark] .lc-in em{color:#ECEEF3}
html[data-theme=dark] .lc-next{background:#4b50e6}
@media (prefers-reduced-motion:reduce){.lc-ck{transition:none}}
/* --- first-run setup */
#ls-setup.ls-coll{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:#fff!important;font-family:Inter,-apple-system,system-ui,sans-serif;color:#14162B;padding:calc(14px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom))!important;box-sizing:border-box;overflow-y:auto;opacity:0;transition:opacity .25s ease;margin:0!important;border:0!important;border-radius:0!important;max-width:none}
#ls-setup.on{opacity:1}
#ls-setup .su-bar{display:flex;align-items:center;justify-content:space-between;min-height:40px}
#ls-setup .su-dots{display:flex;gap:6px}#ls-setup .su-dots i{width:22px;height:4px;border-radius:2px;background:#E4E6EF}#ls-setup .su-dots i.on{background:#3B3FD8}
#ls-setup .su-skip{-webkit-appearance:none;appearance:none;border:0;background:none;padding:8px 4px;color:#6A6C85;font:500 15px Inter,system-ui,sans-serif;cursor:pointer}
#ls-setup h2{margin:26px 0 6px;font:700 27px/1.2 Inter,-apple-system,system-ui,sans-serif;letter-spacing:-.01em;color:#14162B}
#ls-setup .su-s{margin:0 0 22px;font:400 15.5px/1.45 Inter,-apple-system,system-ui,sans-serif;color:#6A6C85}
#ls-setup .su-list{border:1px solid #E4E6EF;border-radius:16px;overflow:hidden}
#ls-setup .su-o{-webkit-appearance:none;appearance:none;position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:68px;margin:0;padding:12px 44px 12px 14px;border:0;background:transparent;text-align:left;color:#14162B;cursor:pointer;-webkit-tap-highlight-color:transparent}
#ls-setup .su-o+.su-o{border-top:1px solid #E4E6EF}
#ls-setup .su-o::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-4px;border-right:2px solid #A3A6B8;border-top:2px solid #A3A6B8;transform:rotate(45deg)}
#ls-setup .su-o:active{background:rgba(59,63,216,.06)}
#ls-setup .su-ic{flex:none;width:40px;height:40px;border-radius:12px;background:rgba(59,63,216,.10);display:grid;place-items:center}
#ls-setup .su-ic svg{width:22px;height:22px;fill:none;stroke:#3B3FD8;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#ls-setup .su-tx{display:flex;flex-direction:column;gap:2px}#ls-setup .su-tx b{font:600 16.5px/1.3 Inter,-apple-system,system-ui,sans-serif}#ls-setup .su-tx i{font:400 13.5px/1.35 Inter,-apple-system,system-ui,sans-serif;font-style:normal;color:#6A6C85}
#ls-setup .su-go{-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:52px;margin:26px 0 0;border:0;border-radius:15px;background:#3B3FD8;color:#fff;font:600 17px Inter,-apple-system,system-ui,sans-serif;cursor:pointer}
#ls-setup .su-sum{border:1px solid #E4E6EF;border-radius:16px;padding:16px;font:400 15px/1.5 Inter,-apple-system,system-ui,sans-serif;color:#3A3C55}#ls-setup .su-sum b{color:#14162B}
html[data-theme=dark] #ls-setup.ls-coll{background:#0f1115!important;color:#ECEEF3}
html[data-theme=dark] #ls-setup h2,html[data-theme=dark] #ls-setup .su-o,html[data-theme=dark] #ls-setup .su-sum b{color:#ECEEF3}
html[data-theme=dark] #ls-setup .su-s,html[data-theme=dark] #ls-setup .su-tx i,html[data-theme=dark] #ls-setup .su-skip{color:#9AA1AD}
html[data-theme=dark] #ls-setup .su-list,html[data-theme=dark] #ls-setup .su-sum{border-color:#2c303a;background:#1a1d24}html[data-theme=dark] #ls-setup .su-o+.su-o{border-top-color:#2c303a}
html[data-theme=dark] #ls-setup .su-sum{color:#C3C7D0}html[data-theme=dark] #ls-setup .su-dots i{background:#2c303a}html[data-theme=dark] #ls-setup .su-dots i.on{background:#A5A8FF}
html[data-theme=dark] #ls-setup .su-ic{background:rgba(165,168,255,.14)}html[data-theme=dark] #ls-setup .su-ic svg{stroke:#A5A8FF}html[data-theme=dark] #ls-setup .su-go{background:#4b50e6}
/* --- offline chapter notice */
.lo-off.ls-coll{display:block;margin:18px 0!important;padding:16px!important;border:1px solid #E4E6EF!important;border-radius:16px!important;background:#F5F5FF!important;font-family:Inter,-apple-system,system-ui,sans-serif;max-width:none}
.lo-off b{display:block;font:700 16px/1.3 Inter,-apple-system,system-ui,sans-serif;color:#14162B}
.lo-off span{display:block;margin:6px 0 12px;font:400 14.5px/1.45 Inter,-apple-system,system-ui,sans-serif;color:#3A3C55}
.lo-off .lo-b{-webkit-appearance:none;appearance:none;border:1px solid rgba(59,63,216,.35);background:#fff;color:#3B3FD8;border-radius:12px;padding:10px 14px;font:600 14.5px Inter,system-ui,sans-serif;cursor:pointer}
html[data-theme=dark] .lo-off.ls-coll{background:#1f2240!important;border-color:#33376a!important}html[data-theme=dark] .lo-off b{color:#ECEEF3}html[data-theme=dark] .lo-off span{color:#C3C7D0}
html[data-theme=dark] .lo-off .lo-b{background:transparent;color:#A5A8FF;border-color:#4a4f8a}
