.library-intro-note{max-width:720px;margin:0 0 18px;color:#7e887e;font-size:11px;line-height:1.65}
.library-upload-card{padding:20px;margin-bottom:18px;border:1px solid #e9e6de;background:#fffefa}
.library-upload-card h2,.study-guide h2{font:600 18px var(--serif);margin:0 0 5px;color:#414b40}
.library-upload-card>p{margin:0 0 14px;color:#8b9389;font-size:10px;line-height:1.6}
.upload-warning{display:flex;gap:11px;align-items:flex-start;padding:12px 13px;margin:14px 0;background:#f8f0e3;border:1px solid #eadfca;border-radius:9px;color:#725b36;font-size:10px;line-height:1.55}
.upload-warning strong{display:block;color:#644d2a;margin-bottom:2px}
.upload-warning-mark{flex:none;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#efe2ca;font:700 13px var(--serif)}
.upload-field{display:block;margin:14px 0 11px}
.upload-field>span{display:block;margin:0 0 6px;color:#596257;font-size:10px;font-weight:650}
.upload-file-input{display:block;width:100%;padding:10px;border:1px dashed #c9cec3;border-radius:8px;background:#fbfaf6;color:#697369;font:10px var(--sans);cursor:pointer}
.upload-file-input::file-selector-button{margin-right:10px;padding:7px 10px;border:0;border-radius:6px;background:#e9eee5;color:#4d624e;font-size:9px;font-weight:600;cursor:pointer}
.upload-formats{margin:-4px 0 13px;color:#949b91;font-size:8px;line-height:1.5}
.rights-check{display:flex;gap:9px;align-items:flex-start;padding:12px 13px;margin:12px 0;border:1px solid #e6e5dc;border-radius:8px;background:#f9f8f3;color:#606b5f;font-size:10px;line-height:1.55;cursor:pointer}
.rights-check input{width:15px;height:15px;margin:1px 0 0;accent-color:#607a61;flex:none}
.upload-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.upload-actions button:disabled{opacity:.48;cursor:not-allowed}
.upload-privacy{margin:11px 0 0;color:#899186;font-size:9px;line-height:1.6}
.library-status{min-height:17px;margin:10px 0 0;color:#6a7869;font-size:10px;line-height:1.5}
.library-status.is-error{color:#a44c40}
.library-status.is-loading{display:flex;align-items:center;gap:8px}
.library-status.is-loading::before{content:"";width:12px;height:12px;border:2px solid #d9dfd4;border-top-color:#607a61;border-radius:50%;animation:library-spin .8s linear infinite}
@keyframes library-spin{to{transform:rotate(360deg)}}
.library-list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:21px 0 10px}
.library-list-head h2{font:600 18px var(--serif);margin:0}
.library-list-head p{font-size:9px;color:#92988f;margin:4px 0 0}
.study-guide-list{display:grid;gap:13px}
.study-guide{padding:18px}
.study-guide-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #efede7}
.study-guide-ident{min-width:0}
.study-guide-ident h2{margin:1px 0 3px;overflow-wrap:anywhere}
.study-guide-meta{display:flex;gap:8px;flex-wrap:wrap;color:#90978d;font-size:8px}
.study-guide-meta span+span::before{content:"·";margin-right:8px;color:#bec3ba}
.guide-delete{flex:none;border:0;background:transparent;color:#92998f;font-size:9px;cursor:pointer}
.guide-summary{margin:12px 0;color:#697367;font:13px/1.65 var(--serif)}
.guide-topics{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0 15px}
.guide-topic-chip{padding:5px 8px;border-radius:999px;background:#edf1e9;color:#5c715c;font-size:8px}
.guide-chapter{padding:12px 0;border-top:1px solid #f0eee8}
.guide-chapter summary{display:flex;align-items:flex-start;gap:9px;cursor:pointer;list-style:none}
.guide-chapter summary::-webkit-details-marker{display:none}
.chapter-number{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f0f2ec;color:#617660;font:600 10px var(--serif)}
.chapter-heading{flex:1;min-width:0}
.chapter-heading strong{display:block;color:#4b5549;font:600 14px var(--serif)}
.chapter-heading small{display:block;margin-top:3px;color:#92998f;font-size:8px}
.chapter-summary{margin:10px 0 11px 33px;color:#747e72;font-size:10px;line-height:1.6}
.chapter-section-label{margin:10px 0 6px 33px;color:#91988e;font-size:8px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.chapter-topic-list{display:grid;gap:7px;margin:0 0 9px 33px;padding:0;list-style:none}
.chapter-topic-list li{color:#677166;font-size:9px;line-height:1.5}
.chapter-topic-list strong{color:#4e5c4d}
.mastery-list{display:grid;gap:6px;margin:0 0 10px 33px;padding:0;list-style:none}
.mastery-item{display:flex;gap:8px;align-items:flex-start;color:#697367;font-size:9px;line-height:1.5}
.mastery-item input{width:14px;height:14px;margin:0;accent-color:#607a61;flex:none}
.mastery-item input:checked+span{text-decoration:line-through;color:#a0a79d}
.study-guide-actions{display:flex;justify-content:flex-start;margin-top:12px;padding-top:11px;border-top:1px solid #f0eee8}
.study-guide-actions button{font-size:9px}
.library-empty{padding:25px;text-align:center;color:#868f84}
.library-empty strong{display:block;color:#596457;font:600 16px var(--serif)}
.library-empty p{font-size:9px;line-height:1.6;margin:6px 0 0}
@media(max-width:600px){.library-upload-card,.study-guide{padding:14px}.study-guide-head{gap:8px}.library-list-head{align-items:flex-start;flex-direction:column}.chapter-summary,.chapter-section-label,.chapter-topic-list,.mastery-list{margin-left:0}}

/* M-Zoom AI black-and-blue theme for the independently styled Study library. */
.library-intro-note{color:#526b86}
.library-upload-card,.study-guide{background:#ffffff;border-color:#d3e1ef}
.library-upload-card h2,.study-guide h2,.chapter-heading strong,.library-empty strong{color:#193d63}
.library-upload-card>p,.upload-privacy,.library-list-head p,.study-guide-meta,.chapter-heading small,.chapter-section-label,.library-empty{color:#526b86}
.upload-warning{background:#e7f1fc;border-color:#c0d5eb;color:#526b86}
.upload-warning strong{color:#1e5fa8}
.upload-warning-mark{background:#dbeaf8;color:#deebff}
.upload-field>span{color:#526b86}
.upload-file-input{border-color:#b2c9df;background:#ffffff;color:#d6e1f0}
.upload-file-input::file-selector-button{background:#1d4ed8;color:#fff}
.upload-formats{color:#5c7490}
.rights-check{border-color:#304159;background:#edf4fb;color:#526b86}
.rights-check input,.mastery-item input{accent-color:#3b82f6}
.library-status{color:#1e5fa8}
.library-status.is-error{color:#fb7185}
.library-status.is-loading::before{border-color:#c3d8ed;border-top-color:#286dbb}
.study-guide-head,.study-guide-actions{border-color:#2a3950}
.study-guide-meta span+span::before{color:#70819a}
.guide-delete{color:#9aaac0}
.guide-summary{color:#526b86}
.guide-topic-chip{background:#172b48;color:#a9caff}
.guide-chapter{border-color:#27364c}
.chapter-number{background:#172b48;color:#1e5fa8}
.chapter-summary,.chapter-topic-list li,.mastery-item{color:#526b86}
.chapter-heading small,.chapter-section-label{color:#91a2b8}
.chapter-topic-list strong{color:#193d63}
.mastery-item input:checked+span{color:#8394aa}
.library-empty strong{color:#193d63}

/* Study Library uses the same flat blue-and-white workspace surfaces. */
.library-upload-card,.study-guide{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:0;padding-right:0}
.library-upload-card h2,.study-guide h2,.chapter-heading strong,.library-empty strong{color:#173b61!important}
.library-upload-card>p,.upload-privacy,.library-list-head p,.study-guide-meta,.chapter-heading small,.chapter-section-label,.library-empty,.chapter-summary,.chapter-topic-list li,.mastery-item{color:#526b86!important}
.upload-warning{background:#edf4fb!important;border:0!important;border-left:3px solid #2467b5!important;border-radius:0!important;color:#365a7d!important}
.upload-warning strong,.guide-topic-chip{color:#184f83!important}
.upload-warning-mark,.chapter-number{background:transparent!important;color:#2467b5!important}
.upload-field>span{color:#365a7d!important}
.upload-file-input{border:0!important;border-bottom:1px solid #b3c8dc!important;border-radius:0!important;background:transparent!important;color:#365a7d!important}
.upload-file-input::file-selector-button{border-radius:2px!important;background:#2467b5!important;color:#fff!important}
.rights-check{border:0!important;border-top:1px solid #d5e2ef!important;border-bottom:1px solid #d5e2ef!important;border-radius:0!important;background:transparent!important;color:#365a7d!important}
.study-guide-head,.study-guide-actions,.guide-chapter{border-color:#d5e2ef!important}
.guide-topic-chip{background:transparent!important;border-bottom:1px solid #c4d9ed;border-radius:0!important}
.chapter-number{border:0!important;border-radius:0!important}

/* Shared M_Zoom AI classic blue-and-white library palette */
.library-intro-note,.library-upload-card>p,.upload-privacy,.library-list-head p,.study-guide-meta,.chapter-heading small,.chapter-section-label,.library-empty{color:#5d7188!important}
.library-upload-card,.study-guide{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.library-upload-card h2,.study-guide h2,.chapter-heading strong,.library-empty strong{color:#183653!important}
.upload-warning{background:#f1f5fa!important;border-color:#d8e2ee!important;color:#526a82!important}
.upload-warning strong{color:#285b91!important}
.upload-warning-mark{background:#e2ebf5!important;color:#285b91!important}
.upload-field>span{color:#425a73!important}
.upload-file-input{border-color:#bacbdb!important;background:#fff!important;color:#425a73!important}
.upload-file-input::file-selector-button{background:#2d639d!important;color:#fff!important}
.rights-check{border-color:#d8e2ee!important;background:#f7f9fc!important;color:#425a73!important}
.rights-check input,.mastery-item input{accent-color:#2d639d!important}
.library-status{color:#285b91!important}
.library-status.is-error{color:#a94d55!important}
.library-status.is-loading::before{border-color:#d8e2ee!important;border-top-color:#2d639d!important}
.study-guide-head,.study-guide-actions{border-color:#dfe7ef!important}
.study-guide-meta span+span::before,.guide-delete{color:#8292a4!important}
.guide-summary{color:#526a82!important}
.guide-topic-chip,.chapter-number{background:#edf3f9!important;color:#315f8b!important}

/* Matching richer blue theme for Study Library */
.library-intro-note,.library-upload-card>p,.upload-privacy,.library-list-head p,.study-guide-meta,.chapter-heading small,.chapter-section-label,.library-empty{color:#506983!important}
.library-upload-card,.study-guide{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.library-upload-card h2,.study-guide h2,.chapter-heading strong,.library-empty strong{color:#173653!important}
.upload-warning{background:#dce8f5!important;border-color:#bdcde0!important;color:#405c78!important}.upload-warning strong{color:#25598e!important}.upload-warning-mark{background:#c8d9ec!important;color:#214f7e!important}
.upload-field>span{color:#3b5875!important}.upload-file-input{border-color:#aebfd1!important;background:#f5f8fc!important;color:#3b5875!important}.upload-file-input::file-selector-button{background:#2f69ab!important;color:#fff!important}
.rights-check{border-color:#bccde0!important;background:#e3ecf6!important;color:#3b5875!important}.rights-check input,.mastery-item input{accent-color:#2f69ab!important}
.library-status{color:#285b91!important}.library-status.is-error{color:#9c4651!important}.library-status.is-loading::before{border-color:#c5d3e2!important;border-top-color:#2f69ab!important}
.study-guide-head,.study-guide-actions{border-color:#cad7e5!important}.study-guide-meta span+span::before,.guide-delete{color:#71869b!important}.guide-summary{color:#46617b!important}.guide-topic-chip,.chapter-number{background:#dce8f5!important;color:#315f8b!important}
