.class-pdf-count,.subject-resource-count{display:block;color:var(--green-2);font:700 11px var(--head);margin-bottom:13px}.class-card .button{width:100%}.subject-grid{grid-template-columns:repeat(3,1fr)}.subject-card{display:flex;flex-direction:column;align-items:flex-start}.subject-card .button{margin-top:auto}.subject-card .subject-resource-count{margin-top:5px}.resource-heading{align-items:center}.resource-toolbar{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr) minmax(180px,1fr);gap:10px;padding:15px;background:#fff;border:1px solid var(--border);border-radius:9px}.resource-results{font-size:11px;margin:12px 0;color:var(--muted)}.pdf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.pdf-card{min-width:0;background:#fff;border:1px solid var(--border);border-radius:9px;padding:17px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px 13px;transition:box-shadow .2s,border-color .2s}.pdf-card:hover{border-color:#d1dbd2;box-shadow:var(--shadow)}.pdf-card-icon,.pdf-doc-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:#e9efe9;color:var(--green)}.pdf-card-icon svg,.pdf-doc-icon svg{width:19px}.pdf-card-body{min-width:0}.pdf-card-title{font:700 13px/1.45 var(--head);color:var(--green);overflow-wrap:anywhere;margin:1px 0 7px}.pdf-card-meta,.pdf-card-folder{font-size:10px;color:var(--muted);margin:0}.pdf-card-folder{margin-top:4px;overflow-wrap:anywhere}.pdf-card-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}.pdf-card-actions .button{min-height:37px;padding:0 12px;font-size:10px}.pdf-page-wrap{width:min(1440px,calc(100% - 40px));margin:28px auto 64px}.pdf-reader-shell{border:1px solid var(--border);background:#fff;border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}.pdf-toolbar{position:sticky;top:76px;z-index:10;min-height:74px;padding:12px 18px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:16px}.pdf-back-link{white-space:nowrap;color:var(--green-2);font:700 11px var(--head)}.pdf-document-title{display:flex;align-items:center;gap:11px;min-width:0;flex:1}.pdf-document-title>div{min-width:0}.pdf-document-title strong,.pdf-document-title small{display:block}.pdf-document-title strong{font:700 12px var(--head);color:var(--green);overflow-wrap:anywhere}.pdf-document-title small{font-size:9px;color:var(--muted);margin-top:3px}.pdf-toolbar-actions{display:flex;gap:7px;align-items:center}.pdf-toolbar-actions .button{min-height:37px;padding:0 11px;font-size:10px;white-space:nowrap}.is-disabled{opacity:.48;pointer-events:none}.pdf-controls{display:flex;justify-content:center;align-items:center;gap:35px;padding:11px 16px;border-bottom:1px solid var(--border);background:#fafbf9}.pdf-page-controls,.pdf-zoom-controls{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.reader-control-button{width:34px;height:32px;display:grid;place-items:center;background:#fff;border:1px solid var(--border);border-radius:5px;color:var(--green);font:700 18px var(--head);cursor:pointer}.reader-control-button:disabled{opacity:.45;cursor:not-allowed}.pdf-page-controls input{height:30px;width:50px;border:1px solid var(--border);border-radius:4px;text-align:center;color:var(--ink);font:600 11px var(--head)}.pdf-zoom-controls>span{min-width:58px;text-align:center;font-size:10px}.pdf-zoom-controls .fit-button{width:auto;padding:0 10px;font-size:10px}.pdf-status{min-height:56vh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:13px}.loading-spinner{width:20px;height:20px;border:2px solid #dfe5df;border-top-color:var(--green-2);border-radius:50%;animation:pdf-spin .8s linear infinite}@keyframes pdf-spin{to{transform:rotate(360deg)}}.pdf-error{margin:28px;padding:20px;background:#fff3f1;border:1px solid #efd0cb;border-radius:7px;color:#8b342b;font-size:13px;line-height:1.6}.pdf-stage{min-height:65vh;max-height:calc(100vh - 260px);overflow:auto;background:#e9ece8;padding:22px;display:flex;justify-content:center;align-items:flex-start}.pdf-stage canvas{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 6px 24px rgba(24,35,31,.18)}.pdf-reader-shell:fullscreen{height:100vh;width:100vw;border:0;border-radius:0;display:flex;flex-direction:column;background:#fff}.pdf-reader-shell:fullscreen .pdf-toolbar{top:0;flex:0 0 auto}.pdf-reader-shell:fullscreen .pdf-controls{flex:0 0 auto}.pdf-reader-shell:fullscreen .pdf-stage{max-height:none;min-height:0;flex:1}.pdf-reader-shell:fullscreen .pdf-status{min-height:0;flex:1}
@media(max-width:900px){.subject-grid{grid-template-columns:repeat(2,1fr)}.pdf-grid{grid-template-columns:1fr}.pdf-toolbar{flex-wrap:wrap;top:64px}.pdf-document-title{order:2;flex-basis:100%}.pdf-toolbar-actions{margin-left:auto}.pdf-back-link{margin-right:auto}.pdf-page-wrap{width:calc(100% - 28px)}.pdf-stage{max-height:calc(100vh - 300px)}}
@media(max-width:600px){.subject-grid{grid-template-columns:1fr}.resource-toolbar{grid-template-columns:1fr}.pdf-page-wrap{width:calc(100% - 20px);margin-top:12px}.pdf-toolbar{padding:10px;gap:9px}.pdf-toolbar-actions{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr}.pdf-toolbar-actions .button{padding:0 6px;font-size:9px}.pdf-controls{justify-content:space-between;gap:8px;padding:9px 7px}.pdf-page-controls,.pdf-zoom-controls{gap:5px}.pdf-page-controls input{width:42px}.pdf-zoom-controls .fit-button{padding:0 6px}.pdf-stage{min-height:55vh;max-height:calc(100vh - 285px);padding:10px 5px}.pdf-status{min-height:55vh}.pdf-error{margin:14px;padding:14px}.pdf-doc-icon{width:34px;height:34px}.pdf-document-title{gap:8px}}
