/* TopNOTE Learning — Study Library v0.9 */
#coreView .library-panel-content{padding-top:24px}
.study-library-v09{display:grid;gap:18px;padding-bottom:28px}
.library-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:26px;border:1px solid rgba(79,138,122,.18);border-radius:24px;background:linear-gradient(145deg,#fff,#eef6f2);box-shadow:0 8px 24px rgba(23,26,31,.04)}
.library-hero h3{font-family:Georgia,"Times New Roman",serif;font-size:34px;line-height:1.05;margin:6px 0 8px;color:#1f2b38}
.library-hero p{max-width:720px;margin:0;color:#66736f;line-height:1.55}
.library-hero-metrics{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.library-hero-metrics span{display:grid;gap:2px;min-width:105px;padding:11px 13px;border:1px solid #eee7dc;border-radius:14px;background:#fffefa;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#66736f}
.library-hero-metrics strong{font-size:21px;color:#232a33;letter-spacing:0}
.library-folder-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.library-folder{appearance:none;border:1px solid rgba(35,42,51,.11);background:#fff;border-radius:18px;padding:17px;text-align:left;display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:start;cursor:pointer;box-shadow:0 6px 18px rgba(23,26,31,.035);color:#232a33}
.library-folder:hover{border-color:rgba(79,138,122,.38);transform:translateY(-1px)}
.library-folder-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef6f2;color:#3e6e61;font-weight:900}
.library-folder-copy{display:grid;gap:4px}.library-folder-copy strong{font-size:14px}.library-folder-copy small{font-size:10.5px;line-height:1.35;color:#66736f}
.library-folder-count{min-width:25px;height:25px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:#f3efe7;font-size:11px;font-weight:850;color:#596579}
.library-folder-panel{scroll-margin-top:110px;border:1px solid rgba(35,42,51,.11);border-radius:22px;background:rgba(255,255,255,.94);padding:20px}
.library-panel-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:16px}.library-panel-head h4{font-family:Georgia,"Times New Roman",serif;font-size:25px;margin:3px 0 0}
.library-card-preview{display:grid;gap:3px}.library-card-preview strong{margin-top:7px}.library-card-preview p{margin:0 0 5px}
.library-source-details{border:1px solid rgba(203,185,143,.5);border-radius:18px;background:rgba(255,253,248,.88);overflow:hidden}
.library-source-details summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 18px;font-weight:800;color:#554a35}
.library-source-details summary small{font-weight:500;color:#7a7265}
.library-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 14px}
.library-source-grid>div{padding:14px;border:1px solid #eee7dc;border-radius:14px;background:#fff}
.library-source-grid p{font-size:12px;line-height:1.45;color:#66736f;margin:6px 0 0}
.library-source-details .source-gap{margin:0 18px 18px}
@media(max-width:980px){.library-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  #coreView .library-panel-content{padding-top:12px}
  .library-hero{align-items:flex-start;flex-direction:column;padding:20px;border-radius:20px}
  .library-hero h3{font-size:30px}.library-hero-metrics{justify-content:flex-start}
  .library-folder-grid{grid-template-columns:1fr 1fr}
  .library-folder{padding:14px;grid-template-columns:auto 1fr}.library-folder-count{grid-column:2;justify-self:start}
  .library-panel-head{align-items:flex-start}.library-source-details summary{align-items:flex-start;flex-direction:column}
  .library-source-grid{grid-template-columns:1fr}
}
@media(max-width:420px){.library-folder-grid{grid-template-columns:1fr}.library-hero-metrics span{min-width:0;flex:1}}
/* Listen with Jade controlled entry v0.2 */
.jade-audio-library-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 18px;border:1px solid rgba(200,169,106,.42);border-radius:18px;background:linear-gradient(135deg,#17191d,#242219);color:#f7f2e9;text-decoration:none;box-shadow:0 8px 22px rgba(23,26,31,.08)}
.jade-audio-library-card:hover{transform:translateY(-1px);border-color:rgba(200,169,106,.72)}
.jade-audio-icon-wrap{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(200,169,106,.12);color:#d8b86d}
.jade-audio-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block}
.jade-audio-card-copy{display:grid;gap:3px;min-width:0}.jade-audio-card-copy strong{font-size:14px;color:#fff}.jade-audio-card-copy small{font-size:11px;line-height:1.4;color:#c9c0b2}
.jade-audio-arrow{font-size:22px;color:#d8b86d}
#quickActions .jade-audio-quick{display:inline-flex;align-items:center;gap:8px;border-color:rgba(79,138,122,.32);background:#eef6f2;color:#294b42}
#quickActions .jade-audio-quick .jade-audio-icon{width:18px;height:18px}
@media(max-width:760px){.jade-audio-library-card{grid-template-columns:auto 1fr}.jade-audio-arrow{display:none}}
