/* Library uses the shared light/dark palette and account shell. */
html[data-wz-screen="education-library"][data-wz-mode] main.phone {
 max-width:440px;min-height:100dvh;background:var(--sc-bg);color:var(--sc-text);
}
html[data-wz-screen="education-library"][data-wz-mode] main.phone > .hero {
 min-height:0;height:auto;padding:0;background:transparent;color:var(--sc-text);
}
html[data-wz-screen="education-library"][data-wz-mode] .hero > .back {
 display:inline-flex;align-items:center;min-height:44px;margin:0 16px;color:var(--sc-text);
}
html[data-wz-screen="education-library"][data-wz-mode] #education-workspace.lib-page {
 display:block;padding:10px 16px calc(100px + env(safe-area-inset-bottom));background:transparent;color:var(--sc-text);
}
.lib-page .lib-hero {
 min-height:164px;background:linear-gradient(90deg,#081d36c9 5%,#081d3630 76%),url(assets/education/library-notebook.jpg) center/cover;
}
.lib-page .lib-hero p {max-width:210px}
.lib-search {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0 8px}
.lib-search .sc-search {min-width:0}
.lib-quick {gap:5px}
.lib-quick .sc-chip {padding:6px 8px;min-height:38px}
.lib-page .sc-heading {margin-top:22px}
.lib-page .lib-note,.lib-sheet .lib-note {background:var(--sc-soft)}
.lib-page .lib-owned {
 display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;
 min-height:58px;margin:0 0 7px;padding:9px 12px;background:var(--sc-panel);
 border:1px solid var(--sc-border);border-radius:15px;color:var(--sc-text);text-decoration:none;
}
.lib-page .lib-owned::after {content:'›';color:var(--sc-accent);font-size:19px}
.lib-page .lib-owned .edu-cover {width:35px;height:35px;border-radius:8px;object-fit:cover}
.lib-page .lib-owned > .app-icon {width:34px;height:34px;border-radius:8px;background:var(--sc-soft);color:var(--sc-accent)}
.lib-page .lib-owned .edu-row-copy {display:grid;gap:3px}
.lib-page .lib-owned small {color:var(--sc-muted);font-size:13px}
.lib-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0}
.lib-grid > .sc-button {display:grid;justify-items:center;gap:6px;min-height:68px;padding:7px 3px;color:var(--sc-text);font-size:13px}
.lib-grid .app-icon {color:var(--sc-accent);background:var(--sc-soft);border-radius:8px}
.lib-page .lib-wide {width:100%;margin:4px 0}
.lib-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-wz-screen="education-library"][data-wz-mode] dialog.edu-sheet.lib-sheet {
 width:min(100%,440px);max-height:88dvh;overflow:auto;overscroll-behavior:contain;
 position:fixed;inset:auto 0 0;margin:0 auto;padding:18px 16px calc(16px + env(safe-area-inset-bottom));
 border:1px solid var(--sc-border);border-radius:22px 22px 0 0;background:var(--sc-panel);color:var(--sc-text);
}
.lib-sheet > h3,.lib-choice legend {color:var(--sc-accent);font-size:13px;font-weight:750}
.lib-choice {margin:14px 0;padding:0;border:0;min-width:0}
.lib-choice label {
 display:flex;align-items:center;gap:9px;min-height:44px;padding:6px 0;
 border-bottom:1px solid var(--sc-border);font-size:15px;font-weight:650;
}
.lib-choice input[type="radio"] {width:18px;height:18px;accent-color:var(--sc-accent)}

.lib-sheet .sc-row-icon .app-icon {display:grid;place-items:center}
.lib-sheet .sc-panel h3 {color:var(--sc-text);line-height:1.35}
.lib-sheet .sc-panel > small {text-transform:uppercase}
.lib-sheet .sc-form-status {margin:8px 0}
