.pd-resource-list{display:grid;gap:10px}.pd-resource{display:flex;align-items:center;justify-content:flex-start;gap:24px;min-width:0;padding:0;border:0;border-radius:0;background:transparent}.pd-resource-name{display:flex;align-items:center;min-width:0;flex:0 1 auto}.pd-resource-name>a{display:inline-flex;align-items:center;gap:8px;max-width:100%;color:#4e3c69;font-size:14px;font-weight:500;overflow-wrap:anywhere}.pd-resource-name>a>span{min-width:0}.pd-resource-icon{flex:0 0 20px;width:20px;height:20px}.pd-resource-name>a:focus{outline:none;box-shadow:none}.pd-resource-name>a:is(:focus-visible,:active){color:var(--ali-orange,#ff7b00)}.pd-resource-name>a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.ali-resource-preview{position:fixed;top:6vh;right:24px;z-index:80;width:min(710px,calc(100vw - 32px));height:min(780px,86dvh);display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e5dcf4;border-radius:14px;box-shadow:0 18px 60px #41266c38}.ali-resource-preview header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid #eee8f6}.ali-resource-preview h2{font-size:15px;overflow-wrap:anywhere;margin:0;color:#3a4241}.ali-resource-preview header button{flex-shrink:0;width:34px;height:34px;border:0;border-radius:8px;background:#eee5fb;color:#6033b3;font-size:22px}.ali-resource-preview .resource-view{flex:1;min-height:0;background:#f3f4f6;display:flex;align-items:center;justify-content:center;overflow:auto}.ali-resource-preview iframe{width:100%;height:100%;border:0}.ali-resource-preview img,.ali-resource-preview video{max-width:100%;max-height:100%;object-fit:contain}.ali-resource-preview audio{max-width:100%}.ali-resource-preview footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;font-size:12px;border-top:1px solid #eee8f6}.ali-resource-preview footer p{flex:1;min-width:150px;color:#737489}.ali-resource-preview footer a{color:#6033b3;text-decoration:underline}.ali-resource-preview .resource-view>p{padding:20px;color:#737489;font-size:14px}
@media(max-width:640px){.pd-resource{flex-wrap:wrap}}
.brand-resource-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.resource-view-actions{display:flex;gap:14px;flex-wrap:wrap}.resource-view-actions a[hidden]{display:none}.brand-resources li{flex-wrap:wrap}.brand-resource-title{flex:1 1 220px}.ali-resource-preview [data-preview-download]{font-weight:500}
.ali-resource-preview header button{display:grid;place-items:center;padding:0;line-height:1;box-sizing:border-box}.ali-resource-preview header button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.brand-resource-actions .action-link{display:inline-flex;align-items:center;justify-content:center;line-height:20px;border:1px solid transparent;text-align:center}
.brand-resource-actions .action-link:is(:hover,:focus-visible,:active){background:#ffe8d2;color:#674327;border-color:#efccab;box-shadow:var(--ali-glass-glow)}

@media(hover:hover) and (pointer:fine){.pd-resource-name>a:hover{color:var(--ali-orange,#ff7b00)}}

/* Keep movement on the frame, never on the document or its native controls. */
.ali-resource-preview>header,.ali-resource-preview>footer{flex-shrink:0}
.ali-resource-preview h2{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ali-resource-preview.is-draggable>header{cursor:grab}
.ali-resource-preview.is-draggable>header:focus-visible{outline:2px solid var(--ali-orange,#ff7b00);outline-offset:-3px}
.ali-resource-preview.is-dragging>header{cursor:grabbing;user-select:none}
.ali-resource-preview.is-dragging iframe{pointer-events:none}
.ali-resource-preview[data-preview-kind="download"]{height:auto;max-height:86dvh}
.ali-resource-preview[data-preview-kind="download"] .resource-view{min-height:100px}
@media(max-width:768px),(max-width:1024px) and (pointer:coarse){
  .ali-resource-preview{top:15dvh;right:max(20px,calc((100vw - 620px)/2));width:min(620px,calc(100vw - 40px));height:min(620px,70dvh);max-height:70dvh}
  .ali-resource-preview>header{gap:8px;padding:8px 12px}
  .ali-resource-preview h2{font-size:14px;line-height:1.5}
  .ali-resource-preview header button{width:44px;height:44px}
  .ali-resource-preview>footer{gap:4px;padding:8px 12px}
  .ali-resource-preview footer p{flex-basis:100%;min-width:0;font-size:12px;line-height:1.5}
  .ali-resource-preview .resource-view-actions{width:100%;justify-content:flex-end;gap:18px}
  .ali-resource-preview .resource-view-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
  .ali-resource-preview[data-preview-kind="download"]{max-height:70dvh}
  .ali-resource-preview[data-preview-kind="download"] .resource-view{min-height:0}
}
