.sl-library {
  --sl-ink:#263e35;
  --sl-muted:#536057;
  --sl-line:#cec9b7;
  width:min(100%,680px); margin-inline:auto; color:var(--sl-ink); text-align:start;
  font:400 15px/1.5 var(--sans,system-ui,sans-serif); color-scheme:light;
}
.sl-library *, .sl-library *::before, .sl-library *::after { box-sizing:border-box; }
.sl-library button,.sl-library select { font:inherit; cursor:pointer; touch-action:manipulation; }
.sl-library :is(button,select,input,a):focus-visible { outline:3px solid #98682b; outline-offset:3px; }
.sl-library .sl-shelf,.sl-library .sl-page { padding:clamp(15px,4vw,28px); border:1px solid #c9c6af; border-radius:6px; background:#f9f6ea; }
.sl-library .sl-shelf-title,.sl-library .sl-chapter-title {
  color:var(--sl-ink); font:600 clamp(23px,4.5vw,33px)/1.25 var(--serif,Georgia,serif);
  margin:0 0 20px; letter-spacing:normal;
}
.sl-library .sl-group-title { margin:22px 0 12px; padding-block-end:7px; border-bottom:1px solid var(--sl-line); color:var(--sl-muted); font:600 15px/1.4 var(--serif,Georgia,serif); }
.sl-library .sl-books { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:17px 20px; }
.sl-library .sl-practice { display:inline-block; margin-top:24px; }
.sl-library .sl-book {
  display:grid; grid-template-columns:57px 1fr; grid-template-rows:auto auto; align-content:center; gap:5px 12px; padding:0; margin:0; border:0;
  border-radius:4px; background:transparent; color:var(--sl-ink); text-align:start; min-width:0;
}
.sl-library .sl-cover {
  --cloth:#36584d;
  position:relative; display:block; grid-row:span 2; align-self:center; width:100%; height:78px;
  border:1px solid #27362d66; border-radius:2px 5px 4px 2px; isolation:isolate;
  background:repeating-linear-gradient(15deg,transparent 0 3px,#fff1 3.2px,transparent 3.8px),var(--cloth);
  box-shadow:inset -3px -2px 0 #0002,2px 3px 2px #53492f26;
}
.sl-library [data-library-book="zhuangzi"] .sl-cover { --cloth:#6a4a3b; }
.sl-library [data-library-book="qingjing"] .sl-cover { --cloth:#435563; }
.sl-library [data-library-book="zuowang"] .sl-cover { --cloth:#526146; }
.sl-library [data-library-book="neiguan"] .sl-cover { --cloth:#5e656c; }
.sl-library [data-library-book="liezi"] .sl-cover { --cloth:#846046; }
.sl-library [data-library-book="wenzi"] .sl-cover { --cloth:#58485a; }
.sl-library [data-library-book="ganying"] .sl-cover { --cloth:#774844; }
.sl-library [data-library-book="yinfu"] .sl-cover { --cloth:#4c5351; }
.sl-library .sl-cover::before {
  position:absolute; inset:6% auto 6% 10%; width:1px; background:#e2d7ae; content:'';
  border-left:1px solid #231e1766; box-shadow:1px 0 #fff3;
}
.sl-library .sl-cover::after {
  position:absolute; inset:6% auto 6% 0; width:10%; content:'';
  background:repeating-linear-gradient(0deg,#e0d3ad 0 1.5px,transparent 1.5px 25%);
}
.sl-library .sl-slip {
  position:absolute; right:12%; top:8%; padding:3px 1px 4px; background:#ede2c1; color:#27382d;
  border:3px double #b8a887; writing-mode:vertical-rl; letter-spacing:.07em;
  font:500 12px/1.15 var(--serif,Georgia,serif);
}
.sl-library .sl-book:is(:hover,:focus-visible) .sl-book-title { text-decoration:underline; text-underline-offset:3px; }
.sl-library .sl-book:is(:hover,:focus-visible) .sl-cover { box-shadow:inset -3px -2px 0 #0002,3px 5px 5px #53492f40; }
.sl-library .sl-book-title { align-self:end; font:600 clamp(17px,2.4vw,20px)/1.2 var(--serif,Georgia,serif); overflow-wrap:anywhere; }
.sl-library .sl-scope { align-self:start; }
.sl-library .sl-scope,.sl-library .sl-location { color:var(--sl-muted); font:400 13px/1.45 var(--sans,system-ui,sans-serif); }
.sl-library .sl-resume {
  width:100%; display:grid; gap:3px; margin:22px 0 0; padding:12px 14px; color:var(--sl-ink);
  text-align:start; border:1px solid #bfc1ad; border-left:3px solid #69775b; border-radius:3px; background:#eeefdf;
}
.sl-library .sl-resume-label,.sl-library .sl-control-label { color:var(--sl-muted); font-size:13px; }
.sl-library .sl-resume-title { font-weight:600; }
.sl-library .sl-page { scroll-margin-top:10px; }
.sl-library .sl-tools,.sl-library .sl-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sl-library .sl-back,.sl-library .sl-bookmark,.sl-library .sl-turn {
  min-height:41px; margin:0; padding:7px 10px; background:transparent; border:1px solid var(--sl-line);
  color:var(--sl-ink); border-radius:4px; font:600 14px/1.3 var(--sans,system-ui,sans-serif);
}
.sl-library .sl-back { border-color:transparent; padding-inline:0 8px; }
.sl-library :is(.sl-back,.sl-bookmark,.sl-turn):hover:enabled,.sl-library .sl-resume:hover { background:#e8ead9; }
.sl-library .sl-bookmark { display:inline-flex; align-items:center; gap:7px; }
.sl-library .sl-bookmark::before {
  width:10px; height:14px; background:#827352; content:''; clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%);
}
.sl-library .sl-bookmark[aria-pressed="true"] { color:#fdf8e8; background:#355247; }
.sl-library .sl-bookmark[aria-pressed="true"]::before { background:#ecd8a6; }
.sl-library .sl-work { margin:23px 0 6px; color:#506b59; font:600 15px/1.35 var(--sans,system-ui,sans-serif); }
.sl-library .sl-chapter-title { margin-bottom:4px; }
.sl-library .sl-chapter-title:focus { outline:none; }
.sl-library .sl-location { margin:0; }
.sl-library .sl-controls {
  display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:5px 12px;
  border-block:1px solid var(--sl-line); padding-block:9px; margin-block:18px;
}
.sl-library .sl-contents { min-width:0; max-width:100%; display:grid; gap:3px; }
.sl-library .sl-select { color:var(--sl-ink); width:100%; max-width:100%; min-height:39px; padding:5px 7px; border-radius:3px; border:1px solid #a5af9d; background:#fffdf6; }
.sl-library .sl-parallel { display:flex; min-height:39px; align-items:center; gap:6px; color:var(--sl-ink); font-size:14px; cursor:pointer; }
.sl-library .sl-parallel input { min-width:17px; width:17px; height:17px; margin:0; accent-color:#3a604a; }
.sl-library .sl-pair + .sl-pair { margin-top:18px; }
.sl-library .sl-primary,.sl-library .sl-secondary { font:400 clamp(18px,2.8vw,21px)/1.6 var(--serif,Georgia,serif); margin:0; color:var(--sl-ink); }
.sl-library .sl-secondary { margin-top:5px; color:var(--sl-muted); font-size:16px; line-height:1.6; }
.sl-library .sl-passage[data-parallel="false"] .sl-secondary { display:none; }
.sl-library .sl-notes { margin-top:24px; padding:15px 17px; border-inline-start:3px solid #839274; background:#eef0e3; border-radius:0 5px 5px 0; }
.sl-library .sl-notes h4 { color:var(--sl-ink); margin:0 0 6px; font:650 15px/1.4 var(--sans,system-ui,sans-serif); }
.sl-library .sl-notes p { color:var(--sl-ink); margin:0 0 7px; font:400 15px/1.55 var(--sans,system-ui,sans-serif); }
.sl-library .sl-source { color:#375c47; text-underline-offset:3px; font-size:14px; }
.sl-library .sl-notes .reading-conclusion-title { border-top:1px solid var(--sl-line); padding-top:12px; margin-top:12px; }
.sl-library .sl-notes .reading-notice-inline { margin:10px 0 0; color:var(--sl-muted); font-size:13px; }
.sl-library .sl-nav { margin-top:18px; }
.sl-library .sl-count { color:var(--sl-muted); font-size:13px; font-variant-numeric:tabular-nums; }
.sl-library .sl-turn:disabled { opacity:.42; cursor:default; }
@media(max-width:440px) {
  .sl-library .sl-book-title { font-size:16px; }
  .sl-library .sl-scope { font-size:12px; }
}
.sl-library .sl-editions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:14px; }
.sl-library .sl-edition {
  min-height:39px; margin:0; padding:7px 12px; border:1px solid #a9b09a; border-radius:4px;
  background:#f5f3e7; color:var(--sl-ink); font:600 14px/1.3 var(--sans,system-ui,sans-serif);
}
.sl-library .sl-edition[aria-pressed="true"] { background:#3c594b; color:#fff8e7; border-color:#3c594b; }
.sl-library .sl-sources { display:flex; flex-wrap:wrap; gap:4px 18px; }
.sl-library .sl-primary,.sl-library .sl-secondary { white-space:pre-line; }
.sl-library .sl-observation { margin-top:24px; padding-top:18px; border-top:1px solid var(--sl-line); }
.sl-library .sl-observation h4 { margin:0 0 8px; font:600 20px/1.35 var(--serif,Georgia,serif); }
.sl-library .sl-observation-cards { padding:0; margin:14px 0; list-style:none; counter-reset:observation; display:grid; gap:12px; }
.sl-library .sl-observation-cards li { padding:14px 16px; border:1px solid var(--sl-line); border-radius:5px; background:#f0efdf; counter-increment:observation; }
.sl-library .sl-observation-cards h5 { margin:0 0 7px; font:600 16px/1.4 var(--sans,system-ui,sans-serif); }
.sl-library .sl-observation-cards h5::before { content:counter(observation) ' · '; color:var(--sl-muted); }
.sl-library .sl-observation-cards p { margin:0; font-size:15px; line-height:1.6; }
.sl-library .sl-reflection-label { display:grid; gap:8px; margin:12px 0; font-size:15px; }
.sl-library .sl-reflection-input { width:100%; max-width:100%; padding:11px; border:1px solid #a5af9d; border-radius:4px; background:#fffdf6; color:var(--sl-ink); resize:vertical; font:400 16px/1.5 var(--sans,system-ui,sans-serif); }
.sl-library textarea:focus-visible { outline:3px solid #98682b; outline-offset:3px; }
.sl-library .sl-reflection-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; }
.sl-library .sl-reflection-actions a { display:inline-flex; align-items:center; text-decoration:none; }
