.resource-library-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.resource-library-heading h3{margin-bottom:8px}.resource-library-heading p{margin:0;max-width:550px}.resource-library-heading>button{flex-shrink:0}
.resource-library-filters{display:flex;align-items:flex-end;gap:14px;padding:20px 0}.resource-library-filters label{display:grid;gap:7px;min-width:170px;font-size:12px;color:var(--muted,#6e7480)}.resource-library-filters select,.resource-metadata-body select,.resource-pack-body select,.upload-controls .resource-upload-version{background:#fff;border:1px solid var(--line,#dfe1e7);border-radius:11px;min-height:42px;padding:9px 12px;color:var(--text,#22242a);font:inherit}.resource-library-filters>.muted{margin-inline-start:auto;padding:10px 0;font-size:12px}
.resource-purpose-group+.resource-purpose-group{margin-top:24px}.resource-purpose-group h4{font-size:13px;margin:0 0 8px;display:flex;align-items:center;gap:8px}.resource-purpose-group h4 span{font-size:11px;background:#eff0f4;border-radius:20px;min-width:23px;text-align:center;padding:3px;color:var(--muted,#6e7480)}.resource-purpose-group .document-row{border-radius:12px;padding:15px 12px;background:rgba(247,247,250,.65);margin-bottom:5px;border:1px solid rgba(225,227,233,.65)}
.document-row .resource-meta-tags{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:6px}.resource-meta-tag{font-size:10px;line-height:1.5;background:#f0f1f5;border-radius:5px;padding:2px 6px;color:var(--muted,#6e7480)}.document-row .resource-updated{font-size:10px;color:var(--muted,#6e7480)}.resource-empty{padding:28px 12px;text-align:center;color:var(--muted,#6e7480)}
#resource-metadata-dialog,#resource-pack-dialog{width:min(620px,calc(100vw - 32px));border:1px solid rgba(215,217,225,.8);border-radius:24px;padding:0;max-height:calc(100dvh - 50px);overflow:auto;box-shadow:0 28px 100px #1e25352e;background:rgba(255,255,255,.98)}
#resource-metadata-dialog::backdrop,#resource-pack-dialog::backdrop{background:rgba(29,34,44,.36);backdrop-filter:blur(6px)}
#resource-metadata-dialog .detail-topbar,#resource-pack-dialog .detail-topbar{position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);z-index:1;padding:20px 26px}.resource-metadata-body,.resource-pack-body{padding:24px 26px}.resource-metadata-body .form-grid,.resource-pack-body .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.resource-metadata-body .field:last-child{grid-column:1/-1}.resource-metadata-body .field small{line-height:1.6;color:var(--muted,#6e7480);font-size:12px}.resource-file-name,.resource-pack-title{margin:0 0 20px;font-size:16px;font-weight:600;overflow-wrap:anywhere}
.resource-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line,#e6e7ed);position:sticky;bottom:0;background:rgba(255,255,255,.95);backdrop-filter:blur(12px)}.resource-dialog-actions button{display:inline-flex;align-items:center;gap:6px}.resource-pack-notice{display:flex;gap:10px;font-size:12px;line-height:1.8;background:#f5f6fa;border-radius:12px;padding:14px;margin-top:20px;color:var(--muted,#6e7480)}.resource-pack-notice svg{flex:0 0 17px;margin-top:2px}.resource-pack-progress{width:100%;height:7px;accent-color:#e61e2b}.resource-pack-limit{font-size:11px;color:var(--muted,#6e7480);line-height:1.7}.resource-warning{font-size:12px;color:#a3680b;line-height:1.7}.resource-pack-body .form-message{line-height:1.7;font-size:13px}
.upload-controls{flex-wrap:wrap}.upload-controls .resource-upload-version{min-width:110px;width:130px}.upload-controls select{max-width:210px}.editor-files .document-row{flex-wrap:wrap}.editor-files .doc-text{flex:1;min-width:160px}.resource-pack-action{display:inline-flex;align-items:center;gap:6px}
@media(max-width:650px){.resource-library-heading{flex-direction:column}.resource-library-heading>button{align-self:stretch;justify-content:center}.resource-library-filters{gap:9px;flex-wrap:wrap}.resource-library-filters label{min-width:0;flex:1}.resource-library-filters>.muted{flex-basis:100%;margin:0;padding:0}.resource-purpose-group .document-row{padding:12px 8px}.document-row .doc-action{font-size:12px}.resource-metadata-body,.resource-pack-body{padding:20px}.resource-dialog-actions{padding:16px 20px}.resource-metadata-body .form-grid,.resource-pack-body .form-grid{grid-template-columns:1fr}.upload-controls>*{max-width:100%!important}.upload-controls .resource-upload-version{width:100%}#resource-metadata-dialog,#resource-pack-dialog{border-radius:20px;max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){#resource-metadata-dialog,#resource-pack-dialog{animation:none!important;transition:none!important}}

.selection-actions{flex-wrap:wrap;gap:10px}.selection-actions button{display:inline-flex;align-items:center;gap:6px}.projects-open{white-space:nowrap}@media(max-width:650px){.top-tools{gap:8px}.projects-open span{font-size:11px}.selection-actions button{flex:1;justify-content:center;white-space:nowrap}.selection-actions .primary-button{flex-basis:100%}}

[data-resource-action="metadata-reload"][hidden]{display:none!important}
.projects-open>span{display:inline}
