/* Illustrated setup choices, scoped to the assembly lab and shared UI tokens. */
body[data-activity="assembly"] > header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  flex-shrink: 0;
}
body[data-activity="assembly"] .headerTitle { grid-column: 1; grid-row: 1; }
body[data-activity="assembly"] .headerTitle .back { display: inline-flex; margin: 0 0 0 16px; }
body[data-activity="assembly"] .stats { grid-column: 2; grid-row: 1; }
body[data-activity="assembly"] .setup {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 4px 24px;
}
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 4px; color: var(--mfm-muted); font: 600 12px/1.5 var(--mfm-font); }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body[data-activity="assembly"] .setup .choice-card { position: relative; display: block; margin: 0; cursor: pointer; font-size: 14px; letter-spacing: normal; text-transform: none; touch-action: manipulation; }
.choice-card input[type="radio"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choice-face { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 48px; padding: 4px 18px 4px 8px; border-radius: var(--mfm-radius-control); text-align: left; color: var(--mfm-muted); }
.choice-face svg { width: 32px; height: 32px; flex-shrink: 0; }
.choice-text { display: block; min-width: 0; }
.choice-text strong { display: block; color: var(--mfm-ink); font: 700 14px/1.4 var(--mfm-font); }
.choice-description { display: block; color: var(--mfm-muted); font: 400 12px/1.4 var(--mfm-font); }
.instrument-choices .choice-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.choice-check { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: var(--mfm-primary); color: var(--mfm-panel); font-size: 9px; opacity: 0; }
.choice-card:hover .choice-face { background: var(--mfm-primary-soft); border-color: var(--mfm-primary-border); }
.choice-card input:checked + .choice-face { background: var(--mfm-primary-soft); border-color: var(--mfm-primary); color: var(--mfm-primary); box-shadow: inset 0 0 0 1px var(--mfm-primary); }
.choice-card input:checked + .choice-face .choice-check { opacity: 1; }
.choice-card input:focus-visible + .choice-face { outline: 3px solid var(--mfm-primary); outline-offset: 3px; }
body[data-activity="assembly"] .setup .modecopy { grid-column: 1 / -1; grid-row: auto; padding: 0; color: var(--mfm-muted); font-size: 12px; }
body[data-activity="assembly"] .setup .modecopy:has(#modeCopy:empty) { display: none; }
body[data-activity="assembly"] .setup .mobileBench { grid-row: auto; }
@media (max-width: 850px) {
  body[data-activity="assembly"] > header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body[data-activity="assembly"] .headerTitle .back { margin-left: 12px; }
  body[data-activity="assembly"] .stats { grid-column: 1; grid-row: 2; }
  body[data-activity="assembly"] .setup { grid-column: 1; grid-row: 3; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .choice-face { flex-direction: column; gap: 0; min-height: 64px; padding: 4px; text-align: center; }
  .choice-face svg { width: 28px; height: 24px; }
  .difficulty-choices .choice-face svg { width: 24px; height: 18px; }
  .difficulty-choices .choice-text strong { font-size: 12px; }
  body[data-activity="assembly"] .setup .modecopy { margin-top: 0; }
}
