/* 图个乐 · 编辑器增强样式（缩放条 + 左栏设备折叠） */

/* 缩放条 */
.zg-zoom {
  position: fixed; z-index: 9998;
  display: flex; align-items: center; gap: 2px;
  padding: 5px 7px; border-radius: 10px;
  background: rgba(255,255,255,.96);
  border: 1px solid #e6eaf1;
  box-shadow: 0 6px 18px rgba(24,39,75,.10);
  font-size: 12px; color: #3b4a63; user-select: none;
  backdrop-filter: blur(6px);
}
.zg-zoom button {
  border: 0; background: transparent; color: #4a5a75;
  font-size: 12px; line-height: 20px; padding: 2px 7px; border-radius: 6px;
  cursor: pointer; font-family: inherit;
}
.zg-zoom button:hover { background: #eef3fb; color: #1c47a8; }
.zg-zoom button.on { background: #e8f0fe; color: #1c47a8; font-weight: 600; }
.zg-zoom-v { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; color: #25324a; font-weight: 600; }
.zg-zoom-sep { width: 1px; height: 14px; background: #e6eaf1; margin: 0 3px; }

/* 左栏设备列表：默认两行，可展开 */
.zg-dev-grid { max-height: 58px; overflow: hidden; transition: max-height .18s ease; }
.zg-dev-grid.open { max-height: 420px; }
.zg-dev-more {
  margin: 2px 0 6px; padding: 2px 6px;
  border: 0; background: transparent; color: #8a96a8;
  font-size: 11px; cursor: pointer; border-radius: 5px;
  font-family: inherit;
}
.zg-dev-more:hover { color: #1c47a8; background: #f2f6fd; }
.zg-dev-more i { font-style: normal; font-size: 9px; }

/* 窄屏（手机）：缩放条只留 − 百分比 ＋，靠右上 */
.zg-zoom.compact { padding: 3px 4px; gap: 0; border-radius: 9px; }
.zg-zoom.compact .zg-zoom-sep,
.zg-zoom.compact [data-a="fit"],
.zg-zoom.compact [data-a="one"] { display: none; }
.zg-zoom.compact .zg-zoom-v { min-width: 38px; font-size: 11px; }
.zg-zoom.compact button { padding: 2px 6px; }
