.vs-dialog { box-sizing: border-box; width: min(760px, calc(100vw - 24px)); max-height: 88vh; max-height: 88dvh; padding: 0; border: 1px solid #b69ad4; border-radius: 16px; background: #faf8ff; color: #352c4d; }
.vs-dialog::backdrop { background: #23133188; }
.vs-panel { padding: 14px; font: 14px/1.6 system-ui, sans-serif; color: #352c4d; text-align: left; overflow-wrap: anywhere; }
.vs-panel *, .vs-panel *::before, .vs-panel *::after { box-sizing: border-box; }
.vs-panel-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-dialog .vs-panel-head { position: sticky; top: -14px; z-index: 2; padding: 10px 0; background: #faf8ff; box-shadow: 0 4px 8px #faf8ff; }
.vs-panel h2 { font: 700 20px/1.4 system-ui, sans-serif; margin: 0 auto 0 0; }
.vs-panel h3 { font: 700 14px/1.5 system-ui, sans-serif; margin: 14px 0 4px; }
.vs-panel > details { border: 1px solid #dfd5ed; border-radius: 10px; background: white; padding: 12px; margin: 12px 0; }
.vs-panel summary { font-weight: 700; cursor: pointer; padding: 3px 0; }
.vs-panel a { color: #6845a0; text-decoration: underline; text-underline-offset: 3px; }
.vs-panel p { margin: 6px 0; }
.vs-panel .vs-hint, .vs-panel small { color: #766982; font-size: 12px; line-height: 1.6; }
.vs-panel .vs-feedback:empty { display: none; }
.vs-feedback { background: #eee6ff; padding: 8px; border-radius: 6px; }
.vs-panel textarea { width: 100%; min-height: 100px; font: 16px/1.5 system-ui; }
.vs-panel ol, .vs-panel ul { position: static; display: block; width: auto; height: auto; padding: 0; margin: 8px 0; list-style: none; }
.vs-panel li { position: static; display: block; width: auto; height: auto; margin: 0; padding: 10px 0; border-bottom: 1px solid #eee7f6; background: transparent; }
.vs-queue li strong { display: block; margin-bottom: 6px; }
.vs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vs-videos small { display: block; margin-top: 3px; }
.vs-search { display: flex; gap: 6px; margin-top: 10px; }
.vs-search input { min-width: 0; flex: 1; width: 100%; border: 1px solid #b69ad4; border-radius: 6px; padding: 8px; background: white; color: #352c4d; font: 16px/1.4 system-ui; }
.vs-search button { flex-shrink: 0; }
.vs-growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.vs-growth-grid > div { padding: 8px; background: #f6f1fc; border-radius: 8px; text-align: center; }
.vs-growth-grid span { display: block; font-size: 12px; }
.vs-growth-grid strong { display: block; font-size: 18px; }
.vs-panel progress { width: 100%; height: 12px; accent-color: #8f65c7; }
.vs-panel table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.vs-panel td, .vs-panel th { padding: 5px 8px; border-bottom: 1px solid #eee7f6; text-align: left; }
.bili-hub--desktop .bili-hub__chart { height: 27px; margin-top: 3px; }
.bili-hub--desktop .vs-open { display: block; width: 100%; min-height: 25px; padding: 3px; margin-top: 4px; font-size: 11px; line-height: 1.2; }
.bili-hub--mobile .vs-panel { padding: 0; }
.bili-hub--mobile .vs-panel .song-tool-button { min-height: 40px; }
.song-item-actions { flex-wrap: wrap; }
.vs-compact-open { display: none; }
.vs-panel .vs-queue-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.vs-panel .vs-queue-head strong { flex: 1; min-width: 0; margin: 0; }
.vs-panel .vs-drag-handle { flex: 0 0 32px; min-width: 32px; padding: 2px; font-size: 24px; line-height: 1.2; cursor: grab; touch-action: none; user-select: none; }
.vs-panel .vs-drag-handle[hidden] { display: none; }
.vs-panel .vs-queue-status { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; background: #f1ebf7; color: #685478; font-size: 11px; }
.vs-panel .vs-queue-status[data-status="copied"] { background: #f8eed9; color: #795c23; }
.vs-panel .vs-queue-status[data-status="requested"] { background: #e2f1e9; color: #386c50; }
.vs-panel .vs-queue-item { padding: 10px 4px; }
.vs-panel .vs-queue-ghost { opacity: .4; background: #ede1fa; }
.vs-panel .vs-queue-chosen { outline: 1px solid #aa89c8; background: #f6effd; }
.vs-panel .vs-undo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px; margin-top: 10px; background: #f8eed9; border-radius: 6px; font-size: 12px; }
.vs-panel .vs-undo[hidden] { display: none; }
@media (max-width: 719px) { .is-desktop-template .vs-compact-open { display: inline-block; } }
