/* OBSCURA OS: the Engineering Suite's assemblies (pro-code/eng-asm.js and
   eng-asm-joints.js): the Assembly panel's components, joints and
   exploded-view steps, and the bill of materials. On the design system's
   tokens (theme.css), so a colourway and dark mode reach them. */

.eng-asm { display: grid; gap: 6px; }
.eng-asm-h { margin: 8px 4px 0; font-size: var(--text-2xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.eng-asm-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.eng-asm-row { display: flex; align-items: center; gap: 2px; border-radius: var(--radius-sm); }
.eng-asm-row:hover { background: var(--paper-inset); }
.eng-asm-row.eng-on { background: var(--accent-soft); }
.eng-asm-main { display: grid; flex: 1; min-width: 0; min-height: 36px; padding: 4px 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.eng-asm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); }
.eng-asm-how { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-2xs); color: var(--ink-faint); }
.eng-on .eng-asm-name { color: var(--accent-strong); font-weight: 600; }
.eng-off .eng-asm-name { text-decoration: line-through; color: var(--ink-faint); }
.eng-asm-row.eng-err .eng-asm-name, .eng-asm-row.eng-err .eng-asm-how { color: var(--danger); }
.eng-asm-grounded { color: var(--accent-strong); }
.eng-asm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.eng-asm-acts .eng-btn { font-size: var(--text-xs); }
.eng-asm-acts .eng-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

/* The Part field of a component, in the Properties panel. */
.eng-asm-part { display: grid; gap: 4px; }
.eng-asm-part > span:first-child { font-size: var(--text-xs); color: var(--ink-soft); }
.eng-asm-part .eng-hint { margin: 0; font-size: var(--text-2xs); }
.eng-asm-part .eng-btn { justify-self: start; font-size: var(--text-xs); }

/* The joint dialog: which two places it joins. */
.eng-asm-sides .cad-link { min-height: 28px; }

/* The bill of materials: its table may be wider than a phone. */
.eng-asm-bom { overflow-x: auto; }
.eng-asm-bom .eng-hint { font-size: var(--text-2xs); }

@media (max-width: 720px) {
  .eng-asm-main { min-height: 44px; }
}
