.legacy-gallery .gallery-tools { display: flex; align-items: center; margin: 8px 12px 0; gap: 4px; }
.legacy-gallery .gallery-tools .van-search { flex: 1; min-width: 0; padding: 4px 0; }
.legacy-gallery .gallery-tool { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border: 0; background: transparent; color: #666; font-size: 22px; cursor: pointer; }
.legacy-gallery .gallery-tool.is-selected, .legacy-gallery .gallery-favorite[aria-pressed="true"] { color: #0084ff; }
.legacy-gallery .gallery-tool:disabled { opacity: .4; cursor: default; }
.legacy-gallery .gallery-view-label { color: #0084ff; font-size: 14px; margin: 6px 20px 0; }
.legacy-gallery .set-tops { margin-top: 8px; }
.legacy-gallery .img-box { margin-bottom: 10px; min-width: 0; }
.legacy-gallery .img-box > img { cursor: zoom-in; height: auto; }
.legacy-gallery .img-box > .gallery-item-caption { display: flex; align-items: center; gap: 3px; min-height: 36px; line-height: 1.4; white-space: normal; }
.legacy-gallery .gallery-item-caption > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.legacy-gallery .gallery-favorite { width: 30px; height: 32px; flex: 0 0 30px; padding: 0; border: 0; color: #999; background: transparent; font-size: 19px; cursor: pointer; }
.legacy-gallery .gallery-message { padding: 20px 14px; color: #666; font-size: 14px; text-align: center; line-height: 1.6; overflow-wrap: anywhere; }
.legacy-gallery .gallery-message p { margin: 0 0 10px; }
.legacy-gallery .gallery-message button { border: 1px solid #0084ff; background: #fff; color: #0084ff; border-radius: 4px; font-size: 14px; padding: 6px 14px; cursor: pointer; }
.legacy-gallery .gallery-broken { width: 100%; min-height: 160px; border: 0; background: #f5f5f5; color: #888; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; cursor: pointer; }
.legacy-gallery .gallery-broken .van-icon { font-size: 28px; }
.legacy-gallery button:focus-visible, .legacy-gallery img:focus-visible { outline: 2px solid #0084ff; outline-offset: 2px; }
.van-image-preview .van-image__loading { pointer-events: none; }
