.resource-icon,.resource-monogram{display:block;width:78px;height:78px;flex:none;border-radius:6px;object-fit:contain;image-rendering:pixelated}
.resource-monogram{display:grid;place-items:center;background:#e3eee9;color:#215e51;font-size:28px;font-weight:700}
.resource-kind{display:inline-block;padding:3px 7px;border-radius:4px;background:#edf4f0;color:#377367;font-size:10px;font-weight:600;white-space:nowrap}
.resource-kind.plugin{background:#edf1f8;color:#526b94}
.resource-free-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;background:#f0e7fb;color:#7542a5;font-size:10px;font-weight:650;white-space:nowrap}
.resource-pack-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:4px;background:#fff1d9;color:#815017;font-size:10px;font-weight:650;white-space:nowrap}
.detail-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.resource-channel{display:inline-flex;align-items:center;width:max-content;padding:3px 6px;border-radius:4px;font-size:10px;font-weight:700}
.resource-channel.stable{background:#dff2e6;color:#126643}
.resource-channel.beta{background:#fff0bc;color:#775500}
.resource-preview{position:fixed;z-index:120;width:min(460px,calc(100vw - 24px));max-height:min(720px,calc(100dvh - 24px));overflow:auto;padding:22px;border:1px solid #d6e3dd;border-radius:12px;background:#fff;color:#203137;box-shadow:0 14px 46px #183c2929;animation:resource-preview-enter .14s ease-out;overscroll-behavior:contain}
.resource-preview-head{display:flex;align-items:start;gap:13px}
.resource-preview-head>div{min-width:0}
.resource-preview-head .resource-icon,.resource-preview-head .resource-monogram{width:48px;height:48px;font-size:22px}
.resource-preview h2{margin:0;font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.resource-preview-author{margin:4px 0 9px;color:#788984;font-size:11px}
.resource-preview-content{margin:18px 0;max-height:340px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.resource-preview h3{margin:0 0 10px;font-size:12px;color:#315e4b}
.resource-preview-description{margin:0;color:#516861;font-size:13px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.resource-preview-image{display:block;width:100%;max-height:180px;object-fit:contain;margin:0 0 13px;border-radius:5px;background:#f5f8f6}
.resource-preview-features{padding-left:19px;margin:13px 0 0;color:#52685e;font-size:12px;line-height:1.8}
.resource-preview-loading{font-size:11px;color:#82918a}
.resource-preview-recommendations{margin-top:17px;padding-top:14px;border-top:1px solid #e5ece8}
.resource-preview-recommendations p{margin:6px 0;color:#61766b;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.resource-preview-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0;padding:13px 0;border-block:1px solid #e5ece8}
.resource-preview-meta dt{color:#7b8b83;font-size:11px}
.resource-preview-meta dd{margin:5px 0 0;color:#2d4942;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.resource-preview-updates{margin-top:14px}
.resource-preview-updates strong{color:#526c60;font-size:11px}
.resource-preview-updates p{max-height:160px;overflow:auto;margin:6px 0 0;color:#768275;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;overscroll-behavior:contain;scrollbar-width:thin}
.resource-preview-footer{display:flex;align-items:center;gap:9px;margin-top:17px}
.resource-preview-footer time{color:#85918b;font-size:10px}
.resource-preview-footer a{margin-left:auto;color:#176b5b;font-size:12px;font-weight:650;text-decoration:none}
.resource-preview-footer a:hover{text-decoration:underline}
@keyframes resource-preview-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.resource-preview{animation:none}}

.welcome-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.project-list-actions{display:flex;align-items:center;gap:8px;margin-inline-start:auto;padding:2px 3px 2px 9px;border-radius:9px;background:#14283edb;color:#ecf4ff;font-size:12px}
.project-list-actions button.quiet{min-height:28px;padding:3px 9px;border:1px solid #ffffff52;border-radius:7px;background:#ffffff16;color:white;font-size:12px}
.project-list-actions button.quiet:hover{background:#ffffff35}

.plugin-download{
  display:none;position:fixed;z-index:12;width:220px;container:bundle / inline-size;pointer-events:none;
  left:max(12px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));
}
body:has(#dashboard:not([hidden]),#catalog-view:not([hidden]))>.plugin-download{display:block}
body:has(#catalog-view)>.plugin-download{width:clamp(52px,calc((100vw - 1240px)/2 - 20px),220px)}
#plugin-download-all{
  display:grid;grid-template-columns:34px auto;align-items:center;gap:2px 9px;
  padding:8px 13px 8px 8px;border:1px solid transparent;border-radius:16px;text-align:left;
  color:#fff;font:inherit;line-height:1.35;cursor:pointer;pointer-events:auto;
  background:linear-gradient(112deg,#076363,#294b8a 52%,#693978) padding-box,
    linear-gradient(115deg,#70eed9,#83b9ff,#dd9aff,#ffd7a0,#70eed9) 0 50%/220% 100% border-box;
  box-shadow:0 5px 18px -6px #1b37568a,0 0 12px -5px #8d88ef;
}
.bundle-icon{
  grid-row:1 / span 2;align-self:center;box-sizing:border-box;width:34px;height:34px;padding:7px;border-radius:10px;
  background:#ffffff18;color:#b6fff0;
}
#plugin-download-label{font-size:13px;font-weight:700}
#plugin-download-status{grid-column:2;color:#e0edf8;font-size:11px;font-weight:500}
#plugin-download-short{display:none}
#plugin-download-all:disabled{opacity:1;filter:saturate(.57);cursor:default}
#plugin-download-all:focus-visible{outline:3px solid #369cd6;outline-offset:3px}
@keyframes bundle-spectrum{to{background-position:0 0,180% 50%}}
@media(prefers-reduced-motion:no-preference){
  #plugin-download-all:enabled{animation:bundle-spectrum 6s linear infinite}
}
@media(max-width:1359px),(max-height:680px){
  body>.plugin-download{max-width:52px}
}
@container bundle (max-width:215px){
  #plugin-download-all{width:52px;min-height:49px;grid-template-columns:1fr;justify-items:center;gap:1px;padding:5px 2px;border-radius:14px;text-align:center}
  .bundle-icon{grid-row:auto;width:24px;height:21px;padding:0;background:transparent}
  #plugin-download-short{display:block;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
  #plugin-download-label,#plugin-download-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .plugin-download:is(:hover,:focus-within,.has-notice) #plugin-download-status{
    left:0;bottom:calc(100% + 7px);width:max-content;height:auto;max-width:min(230px,85vw);
    padding:6px 10px;border-radius:8px;background:#233750;color:#fff;clip-path:none;text-align:left;pointer-events:none;
  }
}
