/* ===== NC Deploy on a phone · browse, audit and pending ===== */

/* the section runs with the page, the listing first and Tools stacked under it */
#eng-nc-deploy:not(.hidden) { display: block; }
.nc-pane { min-height: 0; }
.nc-encoder-list { flex: none; max-height: none; overflow: visible; }

/* the bar's actions are thumb-sized, and Deploy stays last in the sideways scroll */
#eng-nc-deploy .pathbar .pathbar-active { min-height: 2.5rem; display: inline-flex; align-items: center; gap: 0.4rem; }
#eng-nc-deploy .pathbar .btn-secondary,
#eng-nc-deploy .pathbar .btn-primary,
#eng-nc-deploy .pathbar .btn-icon { min-height: 2.5rem; }


/* ─── Listing · every folder and file a full-width tap, long names wrap rather than push ─── */
.nc-encoder-row { flex-wrap: wrap; min-height: var(--touch); padding: 0.5rem 0.6rem; gap: 0.4rem 0.6rem; }
.nc-encoder-name { min-width: 0; overflow-wrap: anywhere; }
/* the select box is a thumb target, the spacer on a folder keeps the names in one column */
.nc-encoder-select { width: 20px; height: 20px; }
.nc-encoder-select-spacer { width: 20px; }
.nc-file-path { overflow-wrap: anywhere; }
/* a changed file's buttons drop under its name rather than squeezing it · thumb-sized */
.nc-row-actions { flex-basis: 100%; margin-left: 0; }
.nc-row-actions button,
.nc-changes-go { min-height: var(--touch); }
/* the bulk bar wraps its actions under the count */
.nc-bulk-toolbar { flex-wrap: wrap; gap: 0.5rem; }
.nc-bulk-actions { flex-wrap: wrap; }
.nc-bulk-actions button { min-height: var(--touch); }
.nc-audit-filter { flex-wrap: wrap; }
.nc-audit-filter button,
.nc-audit-filter label { min-height: 2.5rem; }


/* ─── Tools · one field per line, every button across the panel ─── */
.nc-tools .tab-btn { min-height: var(--touch); }
.nc-tools .form-grid { grid-template-columns: minmax(0, 1fr); }
/* the loop's revision comments spanned two desktop columns, which a single column doesn't have */
.nc-tools .form-grid .form-field { grid-column: auto !important; }
.nc-tools input,
.nc-tools select { min-height: var(--touch); }
.nc-encode-footer .btn-primary,
.nc-loop-generate { width: 100%; min-height: var(--touch); justify-content: center; }
.nc-loop-files-actions { flex-wrap: wrap; }
.nc-loop-files-actions select,
.nc-loop-files-actions button { flex: 1 1 100%; min-height: var(--touch); }
.nc-loop-msg-add-row { flex-wrap: wrap; }
.nc-loop-msg-add-row input { flex: 1 1 100%; }
.nc-loop-msg-add-row button { min-height: var(--touch); }
