/* ===== Nest Studio on a phone · the sheet drawing and its inspector, view only ===== */

/* the section runs with the page, drawing first and the inspector stacked under it */
#eng-nests:not(.hidden) { display: block; }

/* the view-only chip leads the bar's actions, so it's the first thing seen past the trail */
#eng-nests .phone-view-only-note { flex: none; }
#eng-nests .pathbar .btn-icon,
#eng-nests .pathbar .transfer-btn { min-height: 2.5rem; min-width: 2.5rem; }


/* ─── Canvas · the full width and a definite height, so the drawing fits rather than overflows ─── */
.nest-canvas-pane {
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
/* the file jump takes the bar's first line, the view tools scroll sideways on the next */
.nest-canvas-bar { flex-wrap: wrap; gap: 0.4rem; padding: 0.4rem; }
.nest-canvas-bar .nest-file-combo { flex: 1 1 100%; width: auto; }
.nest-bar-gap { display: none; }
.nest-tool-say:empty { display: none; }
.nest-tool-say { flex: 1 1 100%; margin: 0; font-size: 0.78rem; }
.nest-tool-row { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.nest-tool-row::-webkit-scrollbar { display: none; }
.nest-tool { flex: none; min-height: 2.5rem; }
/* the key hints belong to a keyboard, which a phone doesn't have */
.nest-tool kbd { display: none; }
/* a sheet's aspect is wider than tall, so the drawing gets most of a phone's width in height */
.nest-canvas-body { flex: none; height: min(62dvh, 26rem); }
.nest-canvas-pane:has(> .nest-canvas-body > #nests-viewer-empty:not(.hidden)) .nest-canvas-body { height: 12rem; }
/* prev and next are thumb-sized over the bottom corner of the drawing */
.nest-overlay-nav .nest-ov-btn { min-width: var(--touch); min-height: var(--touch); font-size: 1.1rem; }

/* measured parts · the sheet list, the stage and its side panel stack down the page */
.nest-measured { position: static; display: flex; flex-direction: column; gap: 0.6rem; padding: 0.5rem; }
.nest-canvas-pane:has(#nests-measured:not(.hidden)) .nest-canvas-body { height: auto; }
.nest-measured-rail { max-height: 14rem; }
.nest-measured-stage-wrap { height: min(55dvh, 22rem); }
.nest-measured-side { overflow: visible; }
.nest-measured-side .tab-btn,
.nest-inspector-tabs .tab-btn { min-height: var(--touch); }
.nest-pick-list li { min-height: var(--touch); }


/* ─── Inspector · the sheet's facts and parts list, stacked under the drawing as plain reading ─── */
.nest-inspector { max-height: none; }
.nest-inspector-body { overflow: visible; }
.nest-parts-list li { min-height: var(--touch); }
