/* Local toolbar preview: icon above its function name, on mouse and touch screens. */
.yv-tool-captions .yv-toolbar { height: 56px; left: 78px; }
.yv-tool-captions .yv-toolbar .yv-tg { align-items: center; }
.yv-tool-captions .yv-labeled-tool {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 48px; width: auto; height: 44px; min-height: 44px;
  padding: 4px 6px; position: relative; flex-shrink: 0; border-radius: 8px;
  touch-action: manipulation;
}
.yv-tool-captions .yv-labeled-tool > .yv-tool-symbol { width: 20px; height: 20px; flex: none; pointer-events: none; }
.yv-tool-captions .yv-labeled-tool > .yv-tool-caption {
  display: block; font-size: 10.5px; font-weight: 500; line-height: 14px;
  max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none;
}
.yv-tool-captions .yv-labeled-tool > .yv-tool-chevron { position: absolute; right: 2px; top: 11px; width: 8px; height: 8px; pointer-events: none; }
.yv-tool-captions .yv-lefttoolbar { width: 60px; max-height: calc(100% - 24px); padding: 4px 0; gap: 1px; border-radius: 12px; }
.yv-tool-captions .yv-lefttoolbar .yv-labeled-tool { width: 52px; min-width: 52px; height: 56px; min-height: 56px; padding: 3px 2px; }
.yv-tool-captions .yv-lefttoolbar .yv-tool-caption {
  max-width: 50px; white-space: normal; overflow-wrap: anywhere;
  overflow: visible; text-overflow: clip; text-align: center; line-height: 12px;
}
.yv-tool-captions .yv-lefttoolbar .yv-lefttool.active { background: #2572c7; border-color: #1e5fa8; color: #fff; }
.yv-tool-captions .yv-scene-tabs-wrap { top: 74px; left: 78px; }
.yv-tool-captions .yv-fov-panel { left: 78px; }
/* Overflow-menu commands keep their existing horizontal menu layout and hit region. */
.yv-tool-captions .yv-more-menu .yv-labeled-tool { flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; height: auto; padding: 8px 12px; }
.yv-tool-captions .yv-more-menu .yv-tool-caption { max-width: none; font-size: 13px; }
.yv-tool-captions .yv-more-menu .yv-tool-chevron { position: static; margin-left: auto; }
@media (max-width: 640px) {
  .yv-tool-captions .yv-toolbar { left: 8px; right: 8px; height: 56px; }
  .yv-tool-captions .yv-toolbar .yv-btn > .yv-tool-caption { display: block; }
  .yv-tool-captions .yv-lefttoolbar { left: 8px; width: 60px; }
  .yv-tool-captions .yv-lefttoolbar .yv-labeled-tool { min-width: 52px; width: 52px; }
}

.yv-tool-captions .yv-mobile-dock .yv-labeled-tool { min-width: 44px; height: 56px; min-height: 56px; padding: 4px; }
