/* Education Library — in-site reader (member view on /library).
   Dark+gold redesign idiom. Loaded only on library.html. CSP-safe (external file,
   no inline). Self-contained token fallbacks so it renders correctly even though
   library.html does not load redesign-member.css. */
:root{
  --libr-surface:#15100a; --libr-field:#0d0a06;
  --libr-line:rgba(245,241,233,0.08); --libr-line-2:rgba(245,241,233,0.12);
  --libr-text:#f5f1e9; --libr-muted:#9c9fa8; --libr-faint:#7d776c;
  --libr-gold:#d4b483; --libr-gold-hi:#e0c79a; --libr-red:#c79a9a;
  --libr-serif:'Newsreader',Georgia,serif; --libr-sans:'Hanken Grotesk',system-ui,sans-serif; --libr-mono:'JetBrains Mono',ui-monospace,monospace;
}
.libr{max-width:1180px;margin:0 auto;padding:48px 24px 80px;font-family:var(--libr-sans);color:var(--libr-text)}
.libr__head{margin-bottom:28px}
.libr__eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--libr-gold);margin:0 0 10px}
.libr__dot{width:6px;height:6px;border-radius:50%;background:var(--libr-gold)}
.libr__title{font-family:var(--libr-serif);font-size:clamp(28px,4vw,40px);line-height:1.1;margin:0 0 8px;font-weight:500}
.libr__sub{color:var(--libr-muted);font-size:15px;max-width:62ch;margin:0}
.libr__layout{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}
@media(max-width:860px){.libr__layout{grid-template-columns:1fr}}
.libr__nav{position:sticky;top:24px;background:var(--libr-surface);border:1px solid var(--libr-line);border-radius:16px;padding:16px;max-height:80vh;display:flex;flex-direction:column;gap:12px}
@media(max-width:860px){.libr__nav{position:static;max-height:none}}
.libr__search{width:100%;background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:10px;padding:10px 12px;color:var(--libr-text);font-family:var(--libr-sans);font-size:14px}
.libr__search::placeholder{color:var(--libr-faint)}
.libr__list{overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding-right:4px}
.reader-group{display:flex;flex-direction:column;gap:5px}
.reader-group__title{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--libr-faint);margin:6px 0 2px;display:flex;align-items:center;gap:8px}
.reader-item{display:flex;flex-direction:column;gap:3px;text-align:left;background:transparent;border:1px solid transparent;border-radius:10px;padding:9px 11px;cursor:pointer;color:var(--libr-text);font-family:var(--libr-sans);transition:background .15s,border-color .15s}
.reader-item:hover{background:var(--libr-field);border-color:var(--libr-line)}
.reader-item.is-active{background:rgba(212,180,131,0.1);border-color:rgba(212,180,131,0.35)}
.reader-item__title{font-size:14px;line-height:1.3}
.reader-item__meta{font-size:11.5px;color:var(--libr-faint);text-transform:capitalize}
.lib-diff{font-size:10px;padding:1px 6px;border-radius:6px;border:1px solid var(--libr-line-2);color:var(--libr-faint);text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.lib-diff--foundation{color:var(--libr-text);border-color:var(--libr-line-2)}
.lib-diff--core{color:var(--libr-muted);border-color:var(--libr-line-2)}
.lib-diff--advanced{color:var(--libr-gold);border-color:rgba(212,180,131,0.4)}
.libr__pane{background:var(--libr-surface);border:1px solid var(--libr-line);border-radius:16px;padding:28px 30px;min-height:440px}
.libr__empty{color:var(--libr-muted);font-size:15px;padding:48px 0;text-align:center}
.libr__doc-head{border-bottom:1px solid var(--libr-line);padding-bottom:14px;margin-bottom:18px}
.libr__doc-head h2{font-family:var(--libr-serif);font-size:26px;margin:0 0 6px;font-weight:500}
.libr__meta{color:var(--libr-faint);font-size:13px;margin:0;text-transform:capitalize}
.libr__content{position:relative;font-size:16px;line-height:1.72;color:#e8e3d8}
.libr__content h1,.libr__content h2,.libr__content h3,.libr__content h4{font-family:var(--libr-serif);font-weight:500;line-height:1.25;margin:1.4em 0 .5em;color:var(--libr-text)}
.libr__content h1{font-size:25px}.libr__content h2{font-size:21px}.libr__content h3{font-size:18px}
.libr__content p{margin:0 0 1em}
.libr__content ul,.libr__content ol{margin:0 0 1em;padding-left:1.4em}
.libr__content li{margin:.3em 0}
.libr__content code{font-family:var(--libr-mono);font-size:.9em;background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:5px;padding:1px 5px}
.libr__content a{color:var(--libr-gold)}
.libr__content blockquote{border-left:2px solid var(--libr-gold);margin:1em 0;padding:.2em 0 .2em 1em;color:var(--libr-muted)}
.libr__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--libr-line)}
.libr__btn{background:var(--libr-field);border:1px solid var(--libr-line-2);color:var(--libr-text);border-radius:10px;padding:9px 16px;font-family:var(--libr-sans);font-size:14px;cursor:pointer;transition:border-color .15s,background .15s}
.libr__btn:hover{border-color:var(--libr-gold);background:rgba(212,180,131,0.08)}
.libr__legal{color:var(--libr-faint);font-size:12px;margin:16px 0 0}
.libr__status{margin-top:16px;color:var(--libr-muted);font-size:14px}
.libr__status.jrnl-error{color:var(--libr-red)}

/* Continue reading + quick-access by module */
.libr-cont{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:rgba(212,180,131,0.07);border:1px solid rgba(212,180,131,0.25);border-radius:12px;padding:10px 14px;margin-bottom:18px}
.libr-cont__lab{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--libr-gold)}
.libr-cont__btn{background:transparent;border:0;color:var(--libr-text);font-family:var(--libr-serif);font-size:15px;cursor:pointer;text-align:left;padding:0}
.libr-cont__btn:hover{color:var(--libr-gold-hi)}
/* Guided Start Here spine */
.libr-start{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:linear-gradient(180deg,rgba(212,180,131,0.1),rgba(212,180,131,0.04));border:1px solid rgba(212,180,131,0.3);border-radius:12px;padding:12px 16px;margin-bottom:18px}
.libr-start__kicker{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--libr-gold);flex-basis:100%}
.libr-start__next{display:flex;flex-direction:column;gap:2px;background:transparent;border:0;cursor:pointer;text-align:left;padding:0;flex:1;min-width:200px}
.libr-start__step{font-size:11px;color:var(--libr-faint);text-transform:uppercase;letter-spacing:.04em}
.libr-start__title{font-family:var(--libr-serif);font-size:16px;color:var(--libr-text)}
.libr-start__next:hover .libr-start__title{color:var(--libr-gold-hi)}
.libr-start__prog{font-size:12px;color:var(--libr-faint);white-space:nowrap}
/* Per-user watermark (deterrence overlay + persistent badge) */
.libr__wm{margin:.5em 0 0;font-size:11px;letter-spacing:.05em;color:var(--libr-faint);font-family:var(--libr-mono)}
.libr-video__wrap{position:relative}
.libr-wm{position:absolute;inset:0;overflow:hidden;pointer-events:none;user-select:none;display:flex;flex-wrap:wrap;gap:60px 80px;align-content:center;justify-content:center;transform:rotate(-28deg) scale(1.4);opacity:.06;z-index:1}
.libr-wm__t{white-space:nowrap;font-family:var(--libr-mono);font-size:13px;letter-spacing:.08em;color:var(--libr-text)}
.libr-wm--video{opacity:.14}
.libr-modwrap{margin-bottom:20px}
.libr-modwrap__lab{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--libr-faint);margin:0 0 8px}
.libr-modnav{display:flex;flex-wrap:wrap;gap:8px}
.libr-mod{display:inline-flex;align-items:center;gap:7px;background:var(--libr-surface);border:1px solid var(--libr-line);border-radius:999px;padding:6px 12px;cursor:pointer;color:var(--libr-text);font-family:var(--libr-sans);font-size:13px;transition:border-color .15s,background .15s}
.libr-mod:hover{border-color:var(--libr-line-2);background:var(--libr-field)}
.libr-mod.is-active{background:rgba(212,180,131,0.14);border-color:rgba(212,180,131,0.5);color:var(--libr-gold-hi)}
.libr-mod__c{font-size:11px;color:var(--libr-faint);background:var(--libr-field);border-radius:999px;padding:1px 7px;min-width:18px;text-align:center}
.libr-mod.is-active .libr-mod__c{color:var(--libr-gold);background:rgba(212,180,131,0.12)}
.libr-cont__pos{color:var(--libr-faint);font-size:12px}

/* Written lessons / Video lessons tabs */
.libr-tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--libr-line)}
.libr-tab{display:inline-flex;align-items:center;gap:7px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--libr-muted);font-family:var(--libr-sans);font-size:14px;font-weight:600;padding:9px 4px 11px;margin-bottom:-1px;cursor:pointer;transition:color .15s,border-color .15s}
.libr-tab:hover{color:var(--libr-text)}
.libr-tab.is-active{color:var(--libr-gold-hi);border-color:var(--libr-gold)}
.libr-tab__badge{font-size:11px;color:var(--libr-faint);background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:999px;padding:1px 7px;min-width:18px;text-align:center}
.libr-tab.is-active .libr-tab__badge{color:var(--libr-gold);border-color:rgba(212,180,131,0.4)}

/* Inline Lesson Video player */
.libr-video__el{display:block;width:100%;max-width:100%;border-radius:12px;background:#000;aspect-ratio:16/9}

/* "Show all N modules" toggle chip — same shape as module chips, gold accent. */
.libr-mod--more { border-color: rgba(212, 175, 55, 0.45); color: #d4af37; }
.libr-mod--more:hover { border-color: #d4af37; background: rgba(212, 175, 55, 0.08); }

/* #12c — member progress dashboard (streak + lessons done + module bars). */
.libr-dash{background:var(--libr-surface);border:1px solid var(--libr-line);border-radius:14px;padding:16px 18px;margin-bottom:18px}
.libr-dash__hero{display:flex;align-items:center;gap:18px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid var(--libr-line)}
.libr-ring{position:relative;width:66px;height:66px;flex:none}
.libr-ring svg{width:66px;height:66px;transform:rotate(-90deg)}
.libr-ring__bg{fill:none;stroke:var(--libr-line-2);stroke-width:5}
.libr-ring__fg{fill:none;stroke:var(--libr-gold);stroke-width:5;stroke-linecap:round;transition:stroke-dashoffset .6s cubic-bezier(.4,0,.2,1)}
.libr-ring__pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--libr-mono);font-size:14px;color:var(--libr-gold-hi);font-variant-numeric:tabular-nums}
.libr-dash__idw{min-width:0}
.libr-dash__rank{font-family:var(--libr-serif);font-size:22px;color:var(--libr-text);line-height:1.15}
.libr-dash__ranksub{font-size:13px;color:var(--libr-muted);margin-top:3px}
.libr-dash__ranksub b{color:var(--libr-gold-hi);font-weight:600}
.libr-dash__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.libr-dash__kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--libr-gold)}
.libr-dash__stats{display:flex;gap:22px;flex-wrap:wrap}
.libr-dash__stat{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1}
.libr-dash__val{font-family:var(--libr-serif);font-size:26px;color:var(--libr-text)}
.libr-dash__lab{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--libr-faint);margin-top:2px}
.libr-dash__bars{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.libr-dash__bar{display:grid;grid-template-columns:1fr 120px auto;align-items:center;gap:10px}
@media(max-width:560px){.libr-dash__bar{grid-template-columns:1fr 70px auto}}
.libr-dash__barname{font-size:13px;color:var(--libr-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.libr-dash__barct{font-size:12px;color:var(--libr-faint);font-variant-numeric:tabular-nums}
.libr-dash__prog{-webkit-appearance:none;appearance:none;width:100%;height:7px;border:0;border-radius:999px;background:var(--libr-field);overflow:hidden}
.libr-dash__prog::-webkit-progress-bar{background:var(--libr-field);border-radius:999px}
.libr-dash__prog::-webkit-progress-value{background:var(--libr-gold);border-radius:999px}
.libr-dash__prog::-moz-progress-bar{background:var(--libr-gold);border-radius:999px}

/* #15 — video playback-speed control. */
.libr-vspeed{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}
.libr-vspeed__lab{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--libr-faint);margin-right:2px}
.libr-vspeed__btn{background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:999px;color:var(--libr-muted);font-family:var(--libr-sans);font-size:12px;padding:4px 10px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.libr-vspeed__btn:hover{color:var(--libr-text)}
.libr-vspeed__btn.is-active{color:var(--libr-gold);border-color:rgba(212,180,131,0.45);background:rgba(212,180,131,0.1)}

/* #16c — "Log a session on this" reader→journal cross-link. */
.libr__btn--ghost{color:var(--libr-gold);border-color:rgba(212,180,131,0.35);text-decoration:none;display:inline-flex;align-items:center}
.libr__btn--ghost:hover{border-color:var(--libr-gold);background:rgba(212,180,131,0.08)}

/* #15 — per-lesson private notes panel. */
.libr-notes{margin-top:16px;border-top:1px solid var(--libr-line);padding-top:14px}
.libr-notes__head{margin-bottom:8px}
.libr-notes__kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--libr-gold)}
.libr-notes__empty{color:var(--libr-faint);font-size:13px;margin:0 0 10px}
.libr-notes__list{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.libr-note{display:flex;align-items:flex-start;gap:10px;background:var(--libr-field);border:1px solid var(--libr-line);border-radius:10px;padding:9px 11px}
.libr-note__body{margin:0;font-size:14px;line-height:1.45;color:var(--libr-text);white-space:pre-wrap;flex:1;min-width:0;overflow-wrap:anywhere}
.libr-note__del{background:transparent;border:0;color:var(--libr-faint);font-family:var(--libr-sans);font-size:12px;cursor:pointer;padding:2px 4px;flex:none}
.libr-note__del:hover{color:var(--libr-red)}
.libr-notes__add{display:flex;flex-direction:column;gap:8px}
.libr-notes__input{width:100%;background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:10px;padding:10px 12px;color:var(--libr-text);font-family:var(--libr-sans);font-size:14px;resize:vertical;min-height:44px}
.libr-notes__input::placeholder{color:var(--libr-faint)}
.libr-notes__btn{align-self:flex-start;background:rgba(212,180,131,0.12);border:1px solid rgba(212,180,131,0.4);color:var(--libr-gold-hi);font-family:var(--libr-sans);font-size:13px;font-weight:600;border-radius:999px;padding:7px 16px;cursor:pointer;transition:background .15s,border-color .15s}
.libr-notes__btn:hover{background:rgba(212,180,131,0.2)}
.libr-notes__btn:disabled{opacity:.5;cursor:default}

/* #15 — highlight button + saved-quote display. */
.libr-notes__head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.libr-notes__hl{background:var(--libr-field);border:1px solid var(--libr-line-2);border-radius:999px;color:var(--libr-gold);font-family:var(--libr-sans);font-size:12px;padding:4px 12px;cursor:pointer;transition:border-color .15s,background .15s}
.libr-notes__hl:hover{border-color:rgba(212,180,131,0.5);background:rgba(212,180,131,0.08)}
.libr-notes__hl:disabled{opacity:.5;cursor:default}
.libr-note__quote{margin:0 0 6px;padding:6px 0 6px 12px;border-left:2px solid var(--libr-gold);color:var(--libr-text);font-style:italic;font-size:14px;line-height:1.45;overflow-wrap:anywhere}

/* #16a — "What's new" changelog panel (member reader). */
.libr-log{background:var(--libr-surface);border:1px solid var(--libr-line);border-radius:14px;padding:16px 18px;margin-bottom:18px}
.libr-log__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.libr-log__kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--libr-gold)}
.libr-log__note{font-size:12px;color:var(--libr-faint)}
.libr-log__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.libr-log__meta{display:flex;align-items:baseline;gap:10px;margin-bottom:5px}
.libr-log__date{font-family:var(--libr-mono);font-size:11px;color:var(--libr-faint)}
.libr-log__title{font-size:14px;font-weight:600;color:var(--libr-text)}
.libr-log__items{list-style:disc;margin:0;padding-left:20px;display:flex;flex-direction:column;gap:3px}
.libr-log__items li{font-size:13px;color:var(--libr-muted);line-height:1.45}

@media(prefers-reduced-motion:reduce){
  .libr-dash__prog,.libr-vspeed__btn,.libr__btn--ghost,.libr-notes__btn,.libr-notes__hl{transition:none}
}

/* ═══════════════════════════════════════════════════════════════════════════
   v-lib6 (2026-08-22) — inline highlights + the opening film.
   The annotations backend already shipped with `quote`, `anchor` and `color`
   (migration 0039 called them "reserved for a future inline-highlight version").
   This is that version: select a passage, pick a colour, and the highlight is
   painted into the lesson and restored on every re-open.
   CSP-safe: colours are classes, never inline styles; the only JS-set styles are
   the popover position and the canvas size, both applied through the CSSOM.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---- the marks ----
   Colours + the ✎ note affordance now live in the SHARED assets/margin-notes.css
   (class `mark.mn`), so the Library and the Academy are visibly one system. Only
   the reader-specific bits stay here. */
.libr__content mark.mn{
  box-decoration-break:clone; -webkit-box-decoration-break:clone;
}

/* ---- selection popover ---- */
.lh-pop{
  position:absolute; z-index:80; display:flex; align-items:center; gap:7px; padding:7px 9px;
  border-radius:12px; background:#1b150d; border:1px solid #2b2419;
  box-shadow:0 14px 40px rgba(0,0,0,.65);
}
.lh-pop[hidden]{ display:none }
.lh-pop__c{ width:22px; height:22px; border-radius:7px; border:1px solid rgba(255,255,255,.14); cursor:pointer; padding:0; transition:transform .12s ease }
.lh-pop__c:hover{ transform:scale(1.13) }
.lh-pop__c[data-lc="yellow"]{ background:linear-gradient(180deg,#e8d2a4,#c8a878) }
.lh-pop__c[data-lc="green"] { background:linear-gradient(180deg,#6fd8c2,#3fb79f) }
.lh-pop__c[data-lc="blue"]  { background:linear-gradient(180deg,#8fd2ff,#69c2ff) }
.lh-pop__c[data-lc="pink"]  { background:linear-gradient(180deg,#ff9b97,#ef6b66) }
.lh-pop__c[data-lc="orange"]{ background:linear-gradient(180deg,#f0c06a,#e0a94a) }
.lh-pop__sep{ width:1px; height:18px; background:#2b2419 }
.lh-pop__b{ background:none; border:0; color:#a49d90; font-family:inherit; font-size:12.5px; font-weight:650;
  cursor:pointer; padding:4px 8px; border-radius:7px; white-space:nowrap }
.lh-pop__b:hover{ color:#fff; background:rgba(255,255,255,.07) }

/* ---- notes panel: highlights split from notes ---- */
.libr-notes__tabs{ display:flex; gap:6px; margin:10px 0 12px; border-bottom:1px solid rgba(255,255,255,.08) }
.libr-notes__tab{ background:none; border:0; color:#a49d90; font-family:inherit; font-size:13px; font-weight:650;
  padding:8px 13px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px }
.libr-notes__tab:hover{ color:#f2eee6 }
.libr-notes__tab.is-on{ color:#fff; border-bottom-color:#c8a878 }
.libr-notes__tab span{ font-family:ui-monospace,monospace; font-size:11px; color:#6f685b; margin-left:6px }
.libr-note__sw{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:8px; vertical-align:middle }
.libr-note__sw--yellow{ background:#e8d2a4 } .libr-note__sw--green{ background:#3fb79f }
.libr-note__sw--blue{ background:#69c2ff }  .libr-note__sw--pink{ background:#ef6b66 }
.libr-note__sw--orange{ background:#e0a94a }
/* --- shared margin notes (from other entitled members) --- */
.libr-note--from{ border-color:rgba(105,194,255,.26) }
.libr-note__by{ font-family:var(--libr-mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:#69c2ff; margin-bottom:6px }
.libr-note__shared{ display:inline-block; font-family:var(--libr-mono); font-size:9px; letter-spacing:.1em;
  text-transform:uppercase; color:#69c2ff; border:1px solid rgba(105,194,255,.4); border-radius:20px;
  padding:2px 7px; margin-right:6px }
.libr-notes__fine{ color:var(--libr-faint); font-size:11.5px; line-height:1.5; margin:10px 0 0 }
.libr-note__jump{ background:none; border:0; color:#c8a878; font-family:inherit; font-size:12px; cursor:pointer; padding:2px 6px; border-radius:6px }
.libr-note__jump:hover{ color:#fff; background:rgba(200,168,120,.14) }
mark.mn.is-flash{ animation:lhFlash 1.4s ease }
@keyframes lhFlash{ 0%,100%{ filter:none } 30%,60%{ filter:brightness(1.9) } }

/* ---- the opening film ---- */
#libIntro{ position:fixed; inset:0; z-index:200; background:#050303; display:none }
#libIntro.is-on{ display:block }
#libIntro canvas{ position:absolute; inset:0; width:100%; height:100%; display:block }
.libi__vig{ position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 90% at 50% 50%,transparent 25%,rgba(0,0,0,.55) 78%,rgba(0,0,0,.93) 100%) }
.libi__stage{ position:absolute; inset:0; display:grid; place-items:center; padding:26px; text-align:center }
.libi__gate{ display:flex; flex-direction:column; align-items:center; gap:24px }
.libi__mark{ width:82px; height:82px; border-radius:23px; display:grid; place-items:center;
  font-family:Georgia,serif; font-size:40px; font-weight:600; color:#181206;
  background:linear-gradient(150deg,#e8d2a4,#a8895a);
  box-shadow:0 0 0 1px rgba(232,210,164,.35),0 0 70px rgba(200,168,120,.34); animation:libiBreathe 3.4s ease-in-out infinite }
@keyframes libiBreathe{ 0%,100%{ transform:scale(1) } 50%{ transform:scale(1.035) } }
.libi__t{ font-family:Georgia,serif; font-weight:400; font-size:clamp(26px,4.6vw,44px); color:#fff; margin:0 }
.libi__s{ color:#a49d90; font-size:15px; max-width:46ch; margin:0; line-height:1.65 }
.libi__btn{ margin-top:2px; border:0; cursor:pointer; padding:15px 34px; border-radius:999px; font-family:inherit;
  font-weight:750; font-size:15px; letter-spacing:.06em; text-transform:uppercase; color:#181206;
  background:linear-gradient(180deg,#e8d2a4,#c8a878); box-shadow:0 10px 34px rgba(200,168,120,.3); transition:transform .16s ease }
.libi__btn:hover{ transform:translateY(-2px) }
.libi__skipgate{ background:none; border:0; color:#6f685b; cursor:pointer; font-family:inherit; font-size:13px; padding:6px }
.libi__skipgate:hover{ color:#a49d90 }
.libi__line{ font-family:Georgia,serif; font-weight:400; color:#fff; font-size:clamp(24px,4.4vw,50px);
  line-height:1.18; max-width:20ch; margin:0; opacity:0; transform:translateY(18px); filter:blur(6px);
  animation:libiIn 1.15s cubic-bezier(.2,.7,.2,1) forwards }
.libi__line em{ font-style:normal; color:#e8d2a4 }
.libi__line--hero{ font-size:clamp(26px,5.2vw,58px); max-width:17ch }
@keyframes libiIn{ to{ opacity:1; transform:none; filter:blur(0) } }
.libi__shelf{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; max-width:min(900px,94vw) }
.libi__card{ flex:1 1 190px; min-width:180px; border:1px solid #2b2419; border-radius:15px; padding:18px; text-align:left;
  background:linear-gradient(180deg,rgba(28,22,14,.92),rgba(16,11,7,.8)); opacity:0; transform:translateY(22px);
  animation:libiIn .8s cubic-bezier(.2,.7,.2,1) forwards }
.libi__card b{ display:block; font-family:Georgia,serif; font-size:27px; color:#fff; font-weight:600; line-height:1 }
.libi__card span{ display:block; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#c8a878; margin-top:8px }
.libi__card p{ margin:9px 0 0; font-size:13px; line-height:1.6; color:#a49d90 }
.libi__skip{ position:absolute; right:20px; bottom:20px; z-index:9; background:rgba(20,15,9,.6); border:1px solid #2b2419;
  color:#a49d90; border-radius:999px; padding:9px 18px; font-family:inherit; font-size:12.5px; cursor:pointer }
.libi__skip:hover{ color:#fff; border-color:#a8895a }
.libi__bar{ position:absolute; left:0; right:0; bottom:0; height:2px; background:rgba(255,255,255,.06); z-index:9 }
.libi__bar i{ display:block; height:100%; width:0; background:linear-gradient(90deg,#a8895a,#e8d2a4) }
body.libi-lock{ overflow:hidden }
@media (prefers-reduced-motion:reduce){ #libIntro *{ animation:none !important } }

/* ===== GEX THEMES (GENERATED - do not edit, run scripts/gen-themes.py) ===== */
/* -- theme dark -- */
html[data-theme="dark"] { --libr-surface: #0b0c0e; --libr-field: #040405; --libr-muted: #8f97a3; --libr-faint: #7d8590; }
html[data-theme="dark"] .libr-video__el { background: #040404; }
html[data-theme="dark"] .lh-pop { background: #101114; }
html[data-theme="dark"] .lh-pop { border-color: #1a1c21; }
html[data-theme="dark"] .lh-pop__sep { background: #1a1c21; }
html[data-theme="dark"] .lh-pop__b { color: #9aa3ae; }
html[data-theme="dark"] .libr-notes__tab { color: #9aa3ae; }
html[data-theme="dark"] .libr-notes__tab span { color: #6b7380; }
html[data-theme="dark"] #libIntro { background: #020203; }
html[data-theme="dark"] .libi__vig { background: radial-gradient(120% 90% at 50% 50%,transparent 25%,rgba(4, 4, 4, .55) 78%,rgba(4, 4, 4, .93) 100%); }
html[data-theme="dark"] .libi__mark { color: #0b0c0e; }
html[data-theme="dark"] .libi__s { color: #9aa3ae; }
html[data-theme="dark"] .libi__btn { color: #0b0c0e; }
html[data-theme="dark"] .libi__skipgate { color: #6b7380; }
html[data-theme="dark"] .libi__skipgate:hover { color: #9aa3ae; }
html[data-theme="dark"] .libi__card { border-color: #1a1c21; }
html[data-theme="dark"] .libi__card { background: linear-gradient(180deg,rgba(17, 18, 22, .92),rgba(5, 4, 3, .8)); }
html[data-theme="dark"] .libi__card p { color: #9aa3ae; }
html[data-theme="dark"] .libi__skip { background: rgba(6, 5, 4, .6); }
html[data-theme="dark"] .libi__skip { color: #9aa3ae; }
html[data-theme="dark"] .libi__skip { border-color: #1a1c21; }
/* -- theme white -- */
html[data-theme="white"] { --libr-surface: #f4f0e8; --libr-field: #fbfaf7; --libr-line: rgba(36, 31, 22, 0.08); --libr-line-2: rgba(36, 31, 22, 0.12); --libr-text: #241f16; --libr-muted: #6c675d; --libr-faint: #8a8478; --libr-gold: #a5803c; --libr-gold-hi: #b08a45; --libr-red: #a05656; }
html[data-theme="white"] .reader-item.is-active { background: rgba(165, 128, 60, 0.1); }
html[data-theme="white"] .reader-item.is-active { border-color: rgba(165, 128, 60, 0.35); }
html[data-theme="white"] .lib-diff--advanced { border-color: rgba(165, 128, 60, 0.4); }
html[data-theme="white"] .libr__content { color: #332d1e; }
html[data-theme="white"] .libr__btn:hover { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .libr-cont { background: rgba(165, 128, 60, 0.07); }
html[data-theme="white"] .libr-cont { border-color: rgba(165, 128, 60, 0.25); }
html[data-theme="white"] .libr-start { background: linear-gradient(180deg,rgba(165, 128, 60, 0.1),rgba(165, 128, 60, 0.04)); }
html[data-theme="white"] .libr-start { border-color: rgba(165, 128, 60, 0.3); }
html[data-theme="white"] .libr-mod.is-active { background: rgba(165, 128, 60, 0.14); }
html[data-theme="white"] .libr-mod.is-active { border-color: rgba(165, 128, 60, 0.5); }
html[data-theme="white"] .libr-mod.is-active .libr-mod__c { background: rgba(165, 128, 60, 0.12); }
html[data-theme="white"] .libr-tab.is-active .libr-tab__badge { border-color: rgba(165, 128, 60, 0.4); }
html[data-theme="white"] .libr-video__el { background: #f4f4f4; }
html[data-theme="white"] .libr-mod--more { border-color: rgba(143, 117, 20, 0.45); }
html[data-theme="white"] .libr-mod--more { color: #8f7514; }
html[data-theme="white"] .libr-mod--more:hover { border-color: #8f7514; }
html[data-theme="white"] .libr-mod--more:hover { background: rgba(143, 117, 20, 0.08); }
html[data-theme="white"] .libr-vspeed__btn.is-active { border-color: rgba(165, 128, 60, 0.45); }
html[data-theme="white"] .libr-vspeed__btn.is-active { background: rgba(165, 128, 60, 0.1); }
html[data-theme="white"] .libr__btn--ghost { border-color: rgba(165, 128, 60, 0.35); }
html[data-theme="white"] .libr__btn--ghost:hover { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .libr-notes__btn { background: rgba(165, 128, 60, 0.12); }
html[data-theme="white"] .libr-notes__btn { border-color: rgba(165, 128, 60, 0.4); }
html[data-theme="white"] .libr-notes__btn:hover { background: rgba(165, 128, 60, 0.2); }
html[data-theme="white"] .libr-notes__hl:hover { border-color: rgba(165, 128, 60, 0.5); }
html[data-theme="white"] .libr-notes__hl:hover { background: rgba(165, 128, 60, 0.08); }
html[data-theme="white"] .lh-pop { background: #efe9de; }
html[data-theme="white"] .lh-pop { border-color: #e7dfd0; }
html[data-theme="white"] .lh-pop__c[data-lc="yellow"] { background: linear-gradient(180deg,#c3a05f,#9a7434); }
html[data-theme="white"] .lh-pop__c[data-lc="green"] { background: linear-gradient(180deg,#6fd8c2,#1d8a74); }
html[data-theme="white"] .lh-pop__c[data-lc="blue"] { background: linear-gradient(180deg,#8fd2ff,#1f78c0); }
html[data-theme="white"] .lh-pop__c[data-lc="pink"] { background: linear-gradient(180deg,#ff9b97,#c23a34); }
html[data-theme="white"] .lh-pop__c[data-lc="orange"] { background: linear-gradient(180deg,#f0c06a,#b07f2e); }
html[data-theme="white"] .lh-pop__sep { background: #e7dfd0; }
html[data-theme="white"] .lh-pop__b { color: #75705f; }
html[data-theme="white"] .lh-pop__b:hover { color: #211d16; }
html[data-theme="white"] .libr-notes__tab { color: #75705f; }
html[data-theme="white"] .libr-notes__tab:hover { color: #282318; }
html[data-theme="white"] .libr-notes__tab.is-on { color: #211d16; }
html[data-theme="white"] .libr-notes__tab span { color: #9c968a; }
html[data-theme="white"] .libr-note__sw--yellow { background: #c3a05f; }
html[data-theme="white"] .libr-note__sw--green { background: #1d8a74; }
html[data-theme="white"] .libr-note__sw--blue { background: #1f78c0; }
html[data-theme="white"] .libr-note__sw--pink { background: #c23a34; }
html[data-theme="white"] .libr-note__sw--orange { background: #b07f2e; }
html[data-theme="white"] .libr-note--from { border-color: rgba(31, 120, 192, .26); }
html[data-theme="white"] .libr-note__by { color: #1f78c0; }
html[data-theme="white"] .libr-note__shared { color: #1f78c0; }
html[data-theme="white"] .libr-note__shared { border-color: rgba(31, 120, 192, .4); }
html[data-theme="white"] .libr-note__jump { color: #9a7434; }
html[data-theme="white"] .libr-note__jump:hover { color: #211d16; }
html[data-theme="white"] .libr-note__jump:hover { background: rgba(154, 116, 52, .14); }
html[data-theme="white"] #libIntro { background: #fbfaf8; }
html[data-theme="white"] .libi__vig { background: radial-gradient(120% 90% at 50% 50%,transparent 25%,rgba(244, 244, 244, .55) 78%,rgba(244, 244, 244, .93) 100%); }
html[data-theme="white"] .libi__mark { color: #f4f0e8; }
html[data-theme="white"] .libi__mark { background: linear-gradient(150deg,#c3a05f,#8a6a30); }
html[data-theme="white"] .libi__t { color: #211d16; }
html[data-theme="white"] .libi__s { color: #75705f; }
html[data-theme="white"] .libi__btn { color: #f4f0e8; }
html[data-theme="white"] .libi__btn { background: linear-gradient(180deg,#c3a05f,#9a7434); }
html[data-theme="white"] .libi__skipgate { color: #9c968a; }
html[data-theme="white"] .libi__skipgate:hover { color: #75705f; }
html[data-theme="white"] .libi__line { color: #211d16; }
html[data-theme="white"] .libi__line em { color: #c3a05f; }
html[data-theme="white"] .libi__card { border-color: #e7dfd0; }
html[data-theme="white"] .libi__card { background: linear-gradient(180deg,rgba(236, 229, 216, .92),rgba(246, 243, 241, .8)); }
html[data-theme="white"] .libi__card b { color: #211d16; }
html[data-theme="white"] .libi__card span { color: #9a7434; }
html[data-theme="white"] .libi__card p { color: #75705f; }
html[data-theme="white"] .libi__skip { background: rgba(246, 244, 241, .6); }
html[data-theme="white"] .libi__skip { color: #75705f; }
html[data-theme="white"] .libi__skip { border-color: #e7dfd0; }
html[data-theme="white"] .libi__skip:hover { color: #211d16; }
html[data-theme="white"] .libi__skip:hover { border-color: #8a6a30; }
html[data-theme="white"] .libi__bar i { background: linear-gradient(90deg,#8a6a30,#c3a05f); }
/* ===== END GEX THEMES ===== */

















































