.jdsl-library { min-width: 0; padding: 12px; color: #b6b6bf; font: 12px/18px "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
.jdsl-library *, .jdsl-view-overlay * { box-sizing: border-box; }
.jdsl-library[hidden], .jdsl-library [hidden], .jdsl-view-overlay [hidden] { display: none !important; }
.jdsl-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.jdsl-header h3 { margin: 0; color: #e0e0e5; font-size: 13px; font-weight: 500; }
.jdsl-header > span { color: #777780; font-size: 10px; }
.jdsl-filters { display: flex; gap: 4px; margin-bottom: 12px; }
.jdsl-library button, .jdsl-view-overlay button { min-width: 0; padding: 5px 8px; border: 0; border-radius: 6px; background: #2b2b2f; color: inherit; font: inherit; cursor: pointer; }
.jdsl-library button:hover, .jdsl-view-overlay button:hover { background: #39393e; color: #eeeef2; }
.jdsl-library button:focus-visible, .jdsl-view-overlay button:focus-visible { outline: 1px solid #9dc1c5; outline-offset: 2px; }
.jdsl-filters button { flex: 1 1 0; padding: 5px 4px; font-size: 10px; }
.jdsl-filters button[aria-pressed="true"] { background: #44444b; color: #e7e7ed; }
.jdsl-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 10px; }
.jdsl-card { min-width: 0; padding: 8px; overflow: hidden; border: 1px solid #ffffff09; border-radius: 12px; background: #222225; }
.jdsl-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 7px; background: #101012; }
.jdsl-card strong { display: block; margin-top: 7px; overflow: hidden; color: #d5d5dd; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.jdsl-card small { display: block; color: #82828d; font-size: 10px; }
.jdsl-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-top: 8px; }
.jdsl-actions button { padding: 4px 2px; font-size: 10px; }
.jdsl-actions .jdsl-remove { color: #c89c9c; }
.jdsl-empty { grid-column: 1 / -1; padding: 32px 12px; margin: 0; color: #73737e; text-align: center; }
.jdsl-note { margin: 12px 0 0; color: #70707a; font-size: 9px; line-height: 14px; }
.jdsl-view-overlay { position: fixed; z-index: 380; inset: 0; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); place-items: center; padding: 16px; background: #000a; color: #d4d4dc; font: 12px/18px "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
.jdsl-view-dialog { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(960px,100%); min-width: 0; max-height: 100%; padding: 16px; overflow: auto; border: 1px solid #ffffff10; border-radius: 14px; background: #1d1d20; }
.jdsl-view-dialog h3 { margin: 0; font-size: 13px; line-height: 20px; font-weight: 500; }
.jdsl-view-media { display: block; min-width: 0; min-height: 0; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; background: #09090b; }
.jdsl-view-close { align-self: flex-end; min-width: 64px !important; }
@media (max-width: 760px) { .jdsl-view-overlay { position: fixed; padding: 8px; } .jdsl-view-dialog { padding: 12px; } }
