/* 3D Studio: Edit mode (edit.js) and the Modifiers panel (modifiers.js). */

/* The select mode buttons and X-ray in the tool bar. */
.d3-selmode .seg-btn { display: grid; place-items: center; width: 32px; padding: 4px 0; }

/* Selection counts: one line each when the panel is narrow. */
.d3-edit-counts { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.d3-edit-btns .btn { flex: 1 1 auto; }

/* The menu at the pointer (X: delete). */
.d3-pop { position: absolute; z-index: 6; min-width: 170px; }

/* Modifiers. */
.d3-mod-addrow .d3-mod-add { flex: 1 1 auto; min-width: 0; }
.d3-mod-head { display: flex; align-items: center; gap: 2px; margin: 12px 0 4px; padding-top: 8px; border-top: 1px solid var(--border); }
.d3-mod-name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--text); font-size: 0.8rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.d3-mod-ib { flex: none; width: 28px; height: 28px; }
.d3-mod-ib:disabled { opacity: 0.35; }
.d3-mod-axes .seg-btn { min-width: 36px; }

@media (max-width: 760px) {
  .d3-selmode .seg-btn { width: 36px; height: 36px; }
  .d3-mod-ib { width: 36px; height: 36px; }
}

/* Edit mode has more tools than fit a phone: keep them whole and let the bar scroll. */
@media (max-width: 760px) {
  .d3-app[data-mode="edit"] .d3-tools { flex: none; }
}

/* The knife's and bisect's own buttons in the tool bar: Cut and Stop, for a screen without keys. */
.d3-knife-btn { flex: none; white-space: nowrap; }
