.prep-resource-tray{--resource-accent:#685bd8;position:fixed;inset:104px 24px 24px auto;box-sizing:border-box;margin:0;padding:0;width:min(510px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 128px);border:1px solid #e3e2ee;border-radius:20px;background:#fff;box-shadow:0 20px 70px #24203d24;z-index:160;overflow:hidden;color:#292735;font:14px/1.5 system-ui,sans-serif}
.prep-resource-tray[open]{display:flex;flex-direction:column}.prep-resource-tray header{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 20px;gap:16px}.prep-resource-eyebrow{display:block;font-size:11px;font-weight:650;letter-spacing:.12em;color:#8b849d;margin-bottom:4px}.prep-resource-tray h3{margin:0;font-size:22px;letter-spacing:-.03em}.prep-resource-tray p{margin:6px 0 0;color:#817c90;font-size:12px}.prep-resource-tray button,.prep-resource-preview button{font:inherit;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}.prep-resource-tray button:focus-visible,.prep-resource-tray input:focus-visible,.prep-resource-tray select:focus-visible,.prep-resource-preview button:focus-visible{outline:3px solid #bdb5f6;outline-offset:2px}.prep-resource-tray [data-close],.prep-resource-preview [data-dismiss]{border:1px solid #e9e6f0;border-radius:10px;background:#fff;width:34px;height:34px;padding:0;flex-shrink:0;font-size:22px;color:#80778f}.prep-resource-tray [data-close]:hover,.prep-resource-preview [data-dismiss]:hover{background:#f3f1fc;color:#493a9b}
.prep-resource-tray form{padding:0 24px 18px;border-bottom:1px solid #eeedf4}.prep-resource-search{display:flex;gap:8px}.prep-resource-tray input{min-width:0;flex:1;box-sizing:border-box;height:42px;border:1px solid #e3dfed;border-radius:10px;background:#faf9fd;padding:0 12px;font:inherit;font-size:13px}.prep-resource-tray input::placeholder{color:#a09aac}.prep-resource-tray .btn{box-sizing:border-box;border:1px solid #e5e1ee;border-radius:9px;background:#fff;color:#6c637c;padding:7px 12px;white-space:nowrap;font-size:12px;line-height:1.5}.prep-resource-tray .btn:hover:not(:disabled){background:#f5f2ff;border-color:#cbc3f0}.prep-resource-tray .prep-resource-search button{background:#f2efff;color:#6250bc;border-color:#e4defb;padding:0 16px}.prep-resource-filters{display:flex;gap:14px;margin-top:14px}.prep-resource-filters label{flex:1;display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;color:#898197}.prep-resource-tray select{height:34px;min-width:0;flex:1;background:#fff;border:1px solid #e9e5f0;border-radius:8px;padding:0 8px;color:#4f465e;font:inherit;font-size:12px}
.prep-resource-list{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:8px 12px;scrollbar-width:thin;scrollbar-color:#d9d3e8 transparent}.prep-resource-item{display:flex;gap:12px;align-items:center;padding:16px 12px;border-radius:12px;border:1px solid transparent;margin:2px 0;transition:background .15s,border-color .15s}.prep-resource-item:hover{background:#faf9ff;border-color:#ede9f8}.prep-resource-item[draggable=true]{cursor:grab;touch-action:pan-y}.prep-resource-item[data-busy=true]{background:#f8f6ff}.prep-resource-item>div{flex:1;min-width:0}.prep-resource-item strong{display:block;font-size:13px;font-weight:600;line-height:1.5}.prep-resource-tray .prep-resource-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;color:#302b40;background:none;border:0;padding:0;font:inherit;overflow-wrap:anywhere}.prep-resource-name:hover{text-decoration:underline}.prep-resource-item small{display:block;font-size:11px;color:#928b9f;margin-top:5px;overflow-wrap:anywhere}.prep-resource-item [data-status]{font-size:11px;color:#8b82a1}.prep-resource-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:48px;border-radius:10px;background:#f1edfe;color:#7867ca;font-size:10px;font-weight:750;letter-spacing:.03em}.prep-resource-icon[data-file-type=pdf]{background:#fff0ee;color:#d77566}.prep-resource-icon[data-file-type=word]{background:#edf3ff;color:#5b84cf}.prep-resource-icon[data-file-type=presentation]{background:#fff4e8;color:#d39852}.prep-resource-icon[data-file-type=spreadsheet]{background:#eaf7f0;color:#59a380}.prep-resource-actions{display:flex;flex-direction:column-reverse;gap:4px;flex-shrink:0}.prep-resource-tray [data-insert]{background:#6d5ed5;border-color:#6d5ed5;color:white;min-width:76px;font-weight:550}.prep-resource-tray [data-insert]:hover:not(:disabled){background:#5e4dc4;border-color:#5e4dc4}.prep-resource-tray [data-preview]:not(.prep-resource-name){background:transparent;border-color:transparent;padding:2px 12px;color:#9388af}.prep-resource-tray button:disabled{opacity:.5;cursor:not-allowed}.prep-resource-tray footer{display:flex;align-items:center;gap:8px;padding:14px 24px;border-top:1px solid #eeedf4;background:#fcfbfe}.prep-resource-tray [data-page]{flex:1;color:#90889f;font-size:11px}.prep-resource-empty{padding:64px 24px!important;text-align:center;color:#8b829b!important;line-height:1.8}.prep-resource-tray [data-retry]{display:block;margin:0 auto 20px}.prep-resource-notice{margin:12px 24px 4px!important;padding:10px 12px;border-radius:9px;background:#fff8e8;color:#8a6724!important;font-size:12px;line-height:1.5}
.prep-resource-drop{position:fixed;z-index:150;box-sizing:border-box;background:#b2a2f31a;outline:2px dashed #9985e0;outline-offset:-8px;pointer-events:auto;padding:22px 28px;color:#5c469f;font:600 15px system-ui;text-align:left}.prep-resource-drop[hidden]{display:none}.prep-resource-spinner{display:inline-block;vertical-align:middle;margin-right:8px;width:14px;height:14px;border:2px solid #e4def7;border-top-color:#8672d2;border-radius:50%;animation:resource-spin .8s linear infinite}@keyframes resource-spin{to{transform:rotate(360deg)}}
.prep-resource-preview{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(1040px,calc(100vw - 48px));height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #e4dfef;border-radius:18px;color:#302b40;box-shadow:0 20px 80px #241c4533;overflow:hidden}.prep-resource-preview[open]{display:flex;flex-direction:column}.prep-resource-preview::backdrop{background:#29203966;backdrop-filter:blur(3px)}.prep-resource-preview header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:1px solid #eeebf4}.prep-resource-preview h3{font:600 16px/1.5 system-ui;margin:0;overflow-wrap:anywhere}.prep-resource-preview-body{flex:1;min-height:0;overflow:auto;background:#f6f5f9;display:grid;place-items:center;font:14px/1.7 system-ui;color:#888092;padding:16px}.prep-resource-preview-body iframe{height:100%;min-height:300px;width:100%;border:0;background:#fff;border-radius:6px}.prep-resource-preview-body img{max-width:100%;max-height:100%;object-fit:contain}.prep-resource-preview-body video{max-width:100%;max-height:100%}.prep-resource-preview-body pre{box-sizing:border-box;align-self:start;width:100%;white-space:pre-wrap;overflow-wrap:anywhere;color:#4a4358;background:white;border:1px solid #e9e5ef;border-radius:10px;padding:28px;margin:0;font:14px/1.9 system-ui}.prep-resource-preview footer{padding:12px 24px;font:12px/1.6 system-ui;color:#9a91a8;border-top:1px solid #eeebf4}.prep-resource-preview-body button{background:white;border:1px solid #ddd5ef;border-radius:8px;color:#7462b7;padding:8px 16px}
@media(max-width:700px){.prep-resource-tray{inset:80px 12px 16px auto;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 96px)}.prep-resource-tray header{padding:18px}.prep-resource-tray form{padding:0 18px 14px}.prep-resource-tray footer{padding:12px 18px}.prep-resource-item{gap:9px;padding:14px 8px}.prep-resource-icon{width:32px;height:42px}.prep-resource-preview{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.prep-resource-preview header{padding:14px}.prep-resource-preview-body{padding:8px}}
@media(prefers-reduced-motion:reduce){.prep-resource-spinner{animation:none}.prep-resource-tray *{transition:none!important}}

.prep-resource-item[data-busy="true"]{position:relative;overflow:hidden}.resource-import-progress{position:absolute;bottom:0;left:0;width:100%;height:4px;border:0;accent-color:#7465e8}
