.zh-wf-browser-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; font-family: sans-serif;
}
.zh-wf-browser-dialog {
  background: var(--toolbar-bg); border: 1px solid var(--border); border-radius: 10px;
  width: 860px; max-width: 95vw; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45); color: var(--text);
}
.zh-wf-browser-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.zh-wf-browser-header h3 { margin: 0; font-size: 16px; color: var(--link); }
.zh-wf-browser-close {
  background: transparent; border: none; color: var(--text-muted); font-size: 22px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.zh-wf-browser-close:hover { color: var(--accent); }
.zh-wf-browser-search {
  padding: 10px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.zh-wf-browser-search input {
  width: 100%; box-sizing: border-box; padding: 7px 12px;
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 13px; outline: none;
}
.zh-wf-browser-search input:focus { border-color: var(--link); }
.zh-wf-browser-grid {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; align-content: start;
}
.zh-wf-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  background: var(--bg); display: flex; flex-direction: column;
}
.zh-wf-card:hover {
  border-color: var(--link); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.zh-wf-card-cover {
  width: 100%; aspect-ratio: 16/9; background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.zh-wf-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zh-wf-card-cover .zh-wf-no-cover {
  font-size: 36px; opacity: 0.25; -webkit-user-select: none; user-select: none; color: var(--link);
}
.zh-wf-card-name {
  padding: 8px 10px 2px; font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid var(--border); font-weight: 600;
}
.zh-wf-card-filename {
  padding: 0 10px 2px; font-size: 10px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zh-wf-card-meta {
  padding: 0 10px 8px; font-size: 11px; color: var(--text-muted);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.zh-wf-card-version {
  padding: 0 10px 6px; font-size: 10px; color: var(--text-faint);
}
.zh-wf-empty {
  grid-column: 1 / -1; color: var(--text-muted); font-size: 14px;
  text-align: center; padding: 40px 0;
}
